Skip to content

Instantly share code, notes, and snippets.

View dvberkel's full-sized avatar
💭
Enjoying life, the universe and everything

Daan van Berkel dvberkel

💭
Enjoying life, the universe and everything
View GitHub Profile
@paulca
paulca / script.md
Last active August 29, 2015 14:25
So Coded 2015 Script

SO Coded 2015 - The MC Script

Thursday

Having given the last talk at So Coded 2013, I was delighted to be asked to come and MC the 2015 edition of the conference. The last time I MC'ed at an event, I found that briefly interviewing speakers before their slot led to a lot of randomness and, in one case, introducing the wrong speaker. So I decided to try and introduce a very loose narrative, based on a picaresque journey that represented the conference’s thematic arc, but with lots of my favourite pop culture references. Many thanks to Julia, Ole and Thorben for having me back.

I’ve added notes in italics just in case any of the (obvious, but obviously obvious to me) references aren’t clear. Much of the sense of these little bits are with apologies to Jennifer Brook and her time machine from Úll

@timyates
timyates / fb.groovy
Created December 23, 2014 22:19
FizzBuzz with groovy-stream and no conditionals
@Grab('com.bloidonia:groovy-stream:0.9.0')
import groovy.stream.*
def (n, f, b, fb) = [Closure.IDENTITY, { 'fizz' }, { 'buzz' }, {'fizzbuzz'}]
def fns = Stream.from([n, n, f, n, b, f, n, n, f, b, n, f, n, n, fb]).repeat()
def num = Stream.from(1..100).zip(fns) { counter, fn -> fn(counter) }
num.each { println it }
@wsargent
wsargent / docker_cheat.md
Last active June 29, 2024 19:32
Docker cheat sheet
@jhs
jhs / example.js
Created December 10, 2012 03:16
My Node.js modules these days
// Short module explanation // Something to gather my thoughts
// // I think this looks cool.
//
module.exports = the_exported_function // Modules are a function. Always.
//
module.exports.extra = extra // Additional API entry points if
module.exports.other = other // desired.
//
var util = require('util') // Other packages from npm or core
var assert = require('assert') // No comma-first due to lots of
@letmaik
letmaik / .travis.yml
Last active September 12, 2024 10:41
Deploy snapshots to Sonatype after Travis CI build
language: java
env:
global:
- SONATYPE_USERNAME=yourusername
- secure: "your encrypted SONATYPE_PASSWORD=pass"
after_success:
- python addServer.py
- mvn clean deploy --settings ~/.m2/mySettings.xml
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"