This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final json = [ | |
{ | |
"name": "to", | |
"type": "address", | |
}, | |
{ | |
"name": "tokenId", | |
"type": "uint256", | |
}, | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final data = [ | |
{ | |
"name":"approve", | |
"inputs":[ | |
{ | |
"name":"to", | |
"type":"address" | |
}, | |
{ | |
"name":"tokenId", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:flutter/material.dart'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
final a = Test(); | |
print("Look, it's " + a.x.toString()); | |
print("Look, it's $a.x"); | |
print("Look, it's ${a.x}"); | |
} | |
class Test { | |
final int x = 2; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <dlfcn.h> | |
int main(void) { | |
// No error checking, use dlerror | |
void* current_proc = dlopen(0, 0); | |
int (*fp)() = dlsym(current_proc, "printf"); | |
fp("Hello, World!\n"); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
printf(); | |
main(argc, argv) | |
int argc; | |
char * * argv; | |
{ | |
int i; | |
for (i = 0; i < argc; i++) | |
{ | |
printf("%s\n", argv[i]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ +78 ms] executing: [/Users/kbruen/flutter/] git rev-parse --abbrev-ref | |
--symbolic @{u} | |
[ +96 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} | |
[ ] origin/beta | |
[ ] executing: [/Users/kbruen/flutter/] git rev-parse --abbrev-ref HEAD | |
[ +24 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD | |
[ ] beta | |
[ +1 ms] executing: [/Users/kbruen/flutter/] git ls-remote --get-url origin | |
[ +28 ms] Exit code 0 from: git ls-remote --get-url origin | |
[ +2 ms] https://github.com/flutter/flutter.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import sys | |
if len(sys.argv) < 2: | |
print("Remove comments in compatible files") | |
print("// ... = remove from // until LF") | |
print("/* ... */ = remove from /* to first */ found after it") | |
print("<!-- ... --> = similar to /* ... */") | |
print() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
cout << "Hello world! << endl; | |
return 0; | |
} |