Skip to content

Instantly share code, notes, and snippets.

View saliouseck2009's full-sized avatar

ckroot saliouseck2009

  • Senegal
View GitHub Profile
@saliouseck2009
saliouseck2009 / 99_names_Allah.json
Created April 4, 2023 12:26
The is a list of 99 names of Allah
[
{
"numero": 1,
"nom": "الله",
"transliteration": "ALLAH",
"en": "Allah",
"fr": "Allah"
},
{
"numero": 2,
//Set the value if it doesn't
//You may be tempted to implement some conditional logic to handle this:
class ShoppingCart {
final Map<String, int> items = {};
void add(String key, int quantity) {
if (items.containsKey(key)) {
// item exists: update it
items[key] = quantity + items[key]!;
@saliouseck2009
saliouseck2009 / bloc_observer.dart
Last active February 25, 2022 13:12
BlocObserver usage on flutter_bloc v8.0.0
class SimpleBlocObserver extends BlocObserver {
@override
void onEvent(Bloc bloc, Object? event) {
super.onEvent(bloc, event);
print(event);
}
@override
void onTransition(Bloc bloc, Transition transition) {
super.onTransition(bloc, transition);
@saliouseck2009
saliouseck2009 / integer_division.dart
Created February 9, 2022 12:34
division entière en dart
#division entière
int n = 7 ~/ 3;
résult by excess
int exces = (7/3).ceil();
result by default
int dfault = (7/3).floor();
print(n);
print(exces);
print(dfault);
@justlearncode
justlearncode / how change keyboard to azerty in metasploitable
Last active March 14, 2024 17:00
how change keyboard to azerty in metasploitable
If on a console, that would be (as root):
# sudo loadkeys fr