Skip to content

Instantly share code, notes, and snippets.

View PaulAnnekov's full-sized avatar
🇺🇦

Paul Annekov PaulAnnekov

🇺🇦
View GitHub Profile
@PaulAnnekov
PaulAnnekov / app.dart
Created December 27, 2015 22:58
leaflet-dart-undefined-function-dartium
import 'package:my/leaflet/leaflet.dart' as L;
main() {
var map = L.map('map', new L.MapOptions(
layers: [L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png')],
center: L.latLng(48.45, 31.5),
zoom: 7
));
}
@PaulAnnekov
PaulAnnekov / bin\server.dart
Created December 3, 2014 18:41
Dart and configs
import 'dart:core';
import 'dart:async';
import 'package:path/path.dart' as path;
import 'package:app/config_loader.dart';
main(List<String> args) {
Uri configPath = new Uri.file(path.current+'/configs/config.yaml');
ConfigLoader config = new ConfigLoader(configPath.toFilePath());
config.load().then((Map config) {