This file contains hidden or 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
Future list(String mongodbUri, String database_name, String collection_name) async { | |
// Default pagination option | |
var limit = 50; | |
var skip = 0; | |
// Create database connection | |
Db db = new Db('$mongodbUri/$database_name'); | |
// Connect | |
await db.open(); |
This file contains hidden or 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:mirrors'; | |
class Class { | |
int field; | |
} | |
final mirror = reflectClass(Class); | |
final constructor = const Symbol(''); |
This file contains hidden or 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:mirrors'; | |
class Class { | |
int field; | |
} | |
final mirror = reflectClass(Class); | |
final constructor = const Symbol(''); |
This file contains hidden or 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:vane/vane.dart'; | |
class HelloWorld extends Vane { | |
Future main() { | |
return close("Hello World!"); | |
} | |
} |
This file contains hidden or 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:vane/vane.dart'; | |
class HelloWorld extends Vane { | |
Future main() { | |
write("Hello World!"); | |
return close(); | |
} | |
} |
This file contains hidden or 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:vane/vane.dart'; | |
class HelloWorld extends Vane { | |
Future main() { | |
write("Hello World!"); | |
close(); | |
return end; | |
} | |
} |
This file contains hidden or 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'; | |
void main() { | |
var input = ''' | |
Zoe Washburne | |
Hoban Washburne | |
Malcolm Reynolds | |
Simon Tam | |
River Tam | |
Buffy Summers |
This file contains hidden or 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
FB.login(function(response) { | |
if(response.authResponse) { | |
FB.api('/me', function(response) { | |
console.log("Name: " + response.name); | |
console.log("Name: " + response.id); | |
}); | |
} else { | |
console.log("Not logged in... Error"); | |
} | |
} |