Skip to content

Instantly share code, notes, and snippets.

View mahsumurebe's full-sized avatar
🏠
Working from home

Mahsum UREBE mahsumurebe

🏠
Working from home
View GitHub Profile
@mahsumurebe
mahsumurebe / main.dart
Last active December 1, 2021 18:15
Map To List
import 'map_extension.dart';
void main() {
Map<dynamic, dynamic> a = <dynamic, dynamic>{
0: 'text',
'1': [1, 2, 3],
'2': {'a': 'b', 'c': 'd'},
'3': {'0': 'a', '1': 'd'},
'4': {'a': '2', '3': 'd'},
'5': [
@mahsumurebe
mahsumurebe / json_to_dart_class.js
Last active November 1, 2021 19:45
JSON to dart class, json
type convertFN = (key: string, value: any) => void;
type convertibleTypes = (key: string, value: any) => void | string | number;
const convertibleTypeList = {
Number: (_key: string, value: any) => value % 1 === 0 ? 'int' : 'double',
String: 'String',
Boolean: 'bool',
Undefined: 'null',
@mahsumurebe
mahsumurebe / select-coin.ts
Last active February 16, 2023 08:44
Select Unspend Transaction Output
import Big from 'big.js';
interface listunspent {
txid: string,
vout: number,
address: string,
amount: number,
confirmations: number,
spendable: boolean,
}
@mahsumurebe
mahsumurebe / settings.json
Last active December 6, 2020 13:33
My Windows Terminal Settings
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{00000000-0000-0000-ba54-000000000002}",
"copyOnSelect": true,
"copyFormatting": false,
"profiles": {
"defaults": {},
"list": [
{
"guid": "{00000000-0000-0000-ba54-000000000002}",