Skip to content

Instantly share code, notes, and snippets.

View zidenis's full-sized avatar

Denis Albuquerque zidenis

View GitHub Profile
@zidenis
zidenis / null.dart
Created April 30, 2017 14:00
Null - Dart implementation
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
part of dart.core;
/**
* The reserved word [:null:] denotes an object that is the sole instance of
* this class.
*
@zidenis
zidenis / simple_echo_server.dart
Created November 13, 2016 19:49
Simple http server using Dart Shelf package
import 'package:shelf/shelf.dart';
import 'package:shelf/shelf_io.dart' as io;
void main() {
serverWithLogging();
}
Response echoHandler(Request request) {
return new Response.ok('echo: ${request.requestedUri}');
}