Skip to content

Instantly share code, notes, and snippets.

View enyo's full-sized avatar
🙌
Primarily working on Pausly

Matias Meno enyo

🙌
Primarily working on Pausly
View GitHub Profile
@enyo
enyo / simple_server.dart
Last active September 30, 2021 17:45
Writing server side Dart code
import 'dart:io';
main() async {
final server = await HttpServer.bind(InternetAddress.anyIPv6, 80);
server.listen((HttpRequest request) {
request.response.write('Hello, world!');
request.response.close();
});
}
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
import 'dart:async';
Future foo() async {
print('foo() before delay');
await Future.delayed(Duration(milliseconds: 100));
print('foo() after delay');
}
void main() async {
@enyo
enyo / changelog.sh
Created May 27, 2015 16:04
Provides a list of commits in all given folders
#!/bin/bash [0/0]
repos=(api webserver dashboard paywall utils services)
echo
for repo in ${repos[*]}
do
cd $repo
git log --since=am --pretty="format:%Cgreen$repo%Creset/%s (%Cred%h%Creset)%+b" --no-merges --author=m@tias.me
@enyo
enyo / test.html
Last active August 29, 2015 14:08
<label>
<span>Eine column</span>
<input type="text">
</label>

Ganz brandfrisch!

Fanfiction #4:

TRUE BLOOD

“Sookie und Bill haben Beziehungs-Clinche und reden ein wenig aneinander vorbei.”
Tragisches Stück in nur einem Akt.

[Bill sitzt im Flur auf der Treppe und starrt gebannt, müde und genervt in Richtung Eingangstür. Er ist sichtlich wegen etwas unruhig. Die Tür öffnet sich. Auftritt Sookie]

///
/// Generated file. Do not edit.
///
library generated_userService;
import "dart:async";
import "package:remote_services/client/client.dart";
import "proto/messages.dart";
class UserService extends Service {