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
abstract class Mixin { | |
String mixed; | |
} | |
class Base { | |
String based; | |
Base(); | |
Base.make({this.based}); |
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 bash | |
# obtains all data tables from database | |
TS=`sqlite3 $1 "SELECT tbl_name FROM sqlite_master WHERE type='table' and tbl_name not like 'sqlite_%';"` | |
# exports each table to csv | |
for T in $TS; do | |
sqlite3 $1 <<! | |
.headers on |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
class FutureData<T> { | |
T _value; | |
bool _ready = false; | |
Future<T> _onValue; | |
FutureData(FutureOr<T> value) { |
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
class TimeAlarm { | |
String id; | |
DateTime time; | |
String message; | |
} | |
class LocationAlarm { | |
String id; |
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
<html> | |
<head> | |
<title>Jaguar</title> | |
<style> | |
#title-holder { | |
width: 100%; | |
text-align: center; | |
} | |
</style> | |
</head> |
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 'dart:io'; | |
Future<int> quadF(int a) async { | |
print('Starting 2!'); | |
return a * 2; | |
} | |
Future<int> twiceF(int a) async { |
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:io'; | |
main() { | |
if (!stdout.hasTerminal) { | |
print('Stdout not attached to a terminal! Exiting...'); | |
exit(0); | |
} | |
print('${stdout.terminalLines} x ${stdout.terminalColumns}'); |
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
sudo apt-get install libgtk2.0-dev libx11-xcb-dev libdbus-1-dev libgconf-2-4 libnss3-dev xscreensaver libxtst-dev libgconf2-dev libxss-dev |