Skip to content

Instantly share code, notes, and snippets.

View sylvinus's full-sized avatar

Sylvain Zimmer sylvinus

View GitHub Profile
commit bab65fe3b85eb778af9e8029252f62c630a061ab
Author: Sylvain Zimmer <[email protected]>
Date: Tue Dec 7 21:10:26 2010 +0100
Fix CMakeList IFs to allow building on cmake 2.4.6 OS X 10.6
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8fe8b72..15d2700 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
class Jamendo_ShortCodes {
/*************************************************************
* Shortcodes
*************************************************************/
function _sh_getid($attrs) {
if (!empty($attrs[0])) {
return intval($attrs[0]);
@sylvinus
sylvinus / Chrome OS presentation video hidden equation
Created December 10, 2010 14:56
Run this on wolframalpha.com
((9*10^4+3^4+10)/100) / (
(
(2^8) - 10 + (4*(6!))+17^4+(11!/5)+(integrate 3x^5 dx from x=1 to x=9 )
)*(
2*23^6-((2^28+4)/10-(22^4+3*70-sqrt(81))
)*(
3x17^4-(sqrt(256)+31x30^2)
from fabric.api import *
import os,shutil,re,sys
def test_all():
with show('everything'):
local("echo 'a'")
@sylvinus
sylvinus / LICENSE.txt
Created October 2, 2011 10:24 — forked from 140bytes/LICENSE.txt
Mandelbrot in less than 140 bytes of Javasacript
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@sylvinus
sylvinus / LICENSE.txt
Created October 5, 2011 00:38 — forked from p01/LICENSE.txt
American Soundex in 133 bytes
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@sylvinus
sylvinus / LICENSE.txt
Created October 5, 2011 07:13 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
In my main file:
requirejs.config({
nodeRequire: require,
paths:{
"datajslib":path.resolve("./datajslib.js")
}
});
requirejs(["./databases/"+req.params.db+"/"+req.params.collection],function(DB) {
exports.getCode = function(db,col,options,cb) {
mktemp("optimizedbuild",function(err,tmpfile) {
if (err) return cb(err);
var config = {
baseUrl: path.resolve(__dirname,'../../'),
name: "./databases/"+db+'/'+col,
out: tmpfile,
var requirejs = require("requirejs");
requirejs.config({
nodeRequire: require,
baseUrl: "./"
});
requirejs(["./app/path2"],function(p2) {