Skip to content

Instantly share code, notes, and snippets.

View bartvandendriessche's full-sized avatar

Bart Vandendriessche bartvandendriessche

  • http://www.astrangeloop.com
  • Belgium
View GitHub Profile
# simple script to generate random keys
# You can modify the left and right attributes to be longer,
# or contain any mix of alphanumeric characters you like
# By using the String.succ method, keys will always be uniq.
# Depending on the amount of keys generated, key length may exceed the original length of left + right
@left = "0a0"
@right = "a0a"
1000.times do
<body>
<div id="fb-root">
<script type="text/javascript">
(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
window.fbAsyncInit = function() {
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml' xmlns:fb='http://www.facebook.com/2008/fbml'>
<fb:serverFbml>
<script type="text/fbml">
<fb:fbml>
<fb:request-form invite="true" type="XFBML" content="This is a test invitation from XFBML">
<fb:multi-friend-selector showborder="false" actiontext="Invite your friends to use this app.">
</fb:request-form>
</fb:fbml>
</script>
</fb:serverFbml>
@bartvandendriessche
bartvandendriessche / html5canvas
Created December 6, 2010 14:22
a very rough approximation of Mondriaan's work
window.onload = function() {
var canvas = document.getElementById('c');
if (canvas && canvas.getContext) {
// Canvas is supported
var ctx = canvas.getContext('2d');
ctx.gobalAlpha = 1;
ctx.fillStyle = 'red';
ctx.fillRect(0,0,185,160);
ctx.fillStyle = 'black';
ctx.fillRect(185,0,8,400);
@bartvandendriessche
bartvandendriessche / fishpatch.rb
Created February 24, 2011 19:36
Brew formula that applies a quick patch to the fish source before installing. This patch fixes the "5 second freeze" fish on osx sometimes has.
require 'formula'
class Fishpatch < Formula
url 'http://downloads.sourceforge.net/project/fish/fish/1.23.1/fish-1.23.1.tar.bz2'
homepage 'http://fishshell.org/'
md5 'ead6b7c6cdb21f35a3d4aa1d5fa596f1'
depends_on 'readline'
skip_clean 'share/doc'
@bartvandendriessche
bartvandendriessche / zootoolregex
Created October 5, 2011 16:12
If you want to import your delicious bookmarks, first regex-replace using the following regex
find: TAGS=[^"](.*?)[^"]>
replace with: TAGS="\1">
Pod::Spec.new do |s|
s.name = 'Nimbus'
s.version = '0.9.3'
s.license = 'Apache License, Version 2.0'
s.summary = 'An iOS framework whose growth is bounded by O(documentation).'
s.homepage = 'http://docs.nimbuskit.info/index.html'
s.author = { 'Jeff Verkoeyen' => 'jverkoey@gmail.com',
'Bubnov Slavik' => 'bubnovslavik@gmail.com',
'Roger Chapman' => 'rogchap@gmail.com',
'Manu Cornet' => 'manu.cornet@gmail.com',
Pod::Spec.new do |s|
s.name = 'ILTesting'
s.version = '0.1'
s.summary = 'ILTesting provides a collection of Objective C helper classes primarily for assisting with testing. That is, if you can call the current content of one class a collection.'
s.homepage = 'https://github.com/InfiniteLoopDK/ILTesting'
s.license = 'BSD'
s.author = { 'Claus Broch' => '' }
s.source = { :git => 'https://github.com/InfiniteLoopDK/ILTesting.git', :commit => :head}
s.source_files = FileList['*.{c,h,m}'].exclude('ILTestImag