Skip to content

Instantly share code, notes, and snippets.

View sebs's full-sized avatar
🌈
@127.0.0.1

Sebastian Schürmann sebs

🌈
@127.0.0.1
View GitHub Profile
@sebs
sebs / str.js
Created May 30, 2010 13:49 — forked from felixge/str.js
var sys = require('sys')
, str = exports;
// generates those big random strings
str.uuid = function() {
var uuid = '';
for (i = 0; i < 32; i++) {
uuid += Math.floor(Math.random() * 16).toString(16);
}
return uuid;
@sebs
sebs / gist:651252
Created October 28, 2010 12:40
Clicking the clickchickstick ;)
<html>
<style>
#outer {
background-color: pink;
padding:20px;
}
#middle {
background-color: green;
padding:20px;
}
@sebs
sebs / gist:740358
Created December 14, 2010 12:38
Setup node.js on Ubuntu 10.10 - Amazon EC2 Instance
sudo apt-get update
sudo apt-get install libssl-dev
sudo apt-get install g++
wget http://nodejs.org/dist/node-v0.3.1.tar.gz
tar -xvf node-v0.3.1.tar.gz
cd node-v0.3.1
./configure
make
sudo make install
cd ~
var fs = require('fs'),
step = require('step'),
jsdom = require('jsdom'),
window = jsdom.createWindow(),
Script = process.binding('evals').Script;
window.document = {};
window.Ext = {data:{Record:{}}};
var fileNames = [
@sebs
sebs / jenkins.sh
Created February 9, 2011 19:12
setup jenkins ubuntu 10.10 mini
#!/bin/sh
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo echo "deb http://pkg.jenkins-ci.org/debian binary/" > /etc/apt/sources.list.d/jenkins.list
sudo aptitude update
sudo aptitude install jenkins
@sebs
sebs / gist:836256
Created February 20, 2011 20:12
play4agile Sessions
Intro to Game Design - Antti
Delegation Poker - Jurgen Apello
Agile Engineering Practices without Computers - Ralf
Solutions for Conflict in 3D - Klaus
P2P Game Design Support - Antti
Coaching Game - Christine
Future Spectives - Ole
Nabaztag, Share Ideas & Create New Ones - Sebastian Lang
Medlers of Catan - Juergen Apelo
Outer Game, Inner Game - Christian
@sebs
sebs / index.html
Created September 14, 2011 11:06
Revolver Style Menu JQuery - Now with submenu fix
<!DOCTYPE HTML>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<title>Revolverize</title>
</head>
<body>
<h1>Menu Example</h1>
<div>
<ul id="mymenu" class="revolverized">
@sebs
sebs / gist:3003947
Created June 27, 2012 13:03
buster document.fail?
buster.testCase("modSource.getHtmlWithoutScripts", {
"setUp": function () {
$jt = jQuery.noConflict();
var res = $jt.ajax('simple', {async:false, cache:false}).responseText;
document.open('text/html', 'replace');
document.write(res);
document.close();
this.doc = document;
},
"has function": function () {
< HTTP/1.1 200 OK
< 0: t
< 1: e
< 2: x
< 3: t
< 4: /
< 5: c
< 6: s
< 7: s
< Content-Type: text/css; charset=utf-8
@sebs
sebs / gist:3039639
Created July 3, 2012 13:14
set timeout in buster.js?
var runner = buster.testRunner.create({
timeout: 500
});