This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: WebFontConfig = { google: { families: [ 'Lato:100,300:latin' ] } };(function() { var wf = document.createElement('script'); wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';wf.type = 'text/javascript'; wf.async = 'true'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wf, s); })();var css = document.createElement("style");css.type ="text/css"; css.innerHTML ="body { filter: saturate(400%); -webkit-filter: saturate(400%); -moz-filter: saturate(400%); -o-filter: saturate(400%); -ms-filter: saturate(400%); font-family: 'Lato', sans-serif !important; font-weight; 300; }"; document.body.appendChild(css); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execfile("/your/path/to/videomaker.py") | |
videomaker( | |
ts_min=1352261778000, # "from" timestamp.. | |
ts_max=1352262378000, # .."to" timestamp | |
frames=20, # number of images in the video. eg 200 frames for a video at 20 frames per seconds = 10 seconds of video | |
output_prefix="/path/to/output/dir/frame_", # path where to write the png. images will be prefixed with "frame_" | |
output_format=".png" # you probably want to leave png here | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
importScripts('../vendor/d3/d3.layout.redux.js') | |
@onmessage = (msg) -> | |
tree = msg.data | |
# the layout has a weird effect | |
if tree.children.length is 1 | |
for n in tree.children[0].children | |
tree.children.push ghost: yes, children: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env coffee | |
########### | |
# old way # | |
########### | |
# functions | |
a = (x) -> (g) -> g x * x | |
b = (x) -> (g) -> g x + x | |
c = (x) -> (g) -> g x * 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wait / don't wait | |
wait = (t=0) -> (f) -> setTimeout f, t | |
async = (f) -> setTimeout f, 0 | |
# simple shortcut | |
log = console.log | |
class Main | |
compute: (a,b) -> a*b + a*b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# with common-node | |
httpclient = require "httpclient" | |
exports.app = -> | |
status: 200 | |
headers: {} | |
body: new httpclient.HttpClient(url: "http://google.com").finish().body | |
# without | |
http = require "http" | |
http.createServer((req, res) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install https://github.com/shtylman/libxmljs/tarball/master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch (obj) { | |
case 'y' : tween = new TWEEN.Tween(camera.position).to({x:camera.position.x-to}, 2000).delay(0).easing(TWEEN.Easing.Circular.EaseOut).onUpdate( function() {}).start(); break; | |
case 'x' : tween = new TWEEN.Tween(camera.position).to({z:camera.position.z-to}, 2000).delay(0).easing(TWEEN.Easing.Circular.EaseOut).onUpdate( function() {}).start(); break; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/***************************************************************************** | |
# * * | |
# * PushScript * | |
# * Copyright (C) 2008-2010 Jonathan Klein * | |
# * * | |
# * This program is free software; you can redistribute it and/or modify * | |
# * it under the terms of the GNU General Public License as published by * | |
# * the Free Software Foundation; either version 2 of the License, or * | |
# * (at your option) any later version. * | |
# * * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<<<<<<< HEAD | |
<<<<<<< HEAD | |
>>>>>>> 75e9c553ff4894231f0b5df4b25b489e43556583 | |
======= | |
>>>>>>> 75e9c553ff4894231f0b5df4b25b489e43556583 | |
======= | |
>>>>>>> 75e9c553ff4894231f0b5df4b25b489e43556583 |