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
{ | |
meta: { | |
frame_rate: <Int, [0,[> | |
}, | |
frames: [ | |
[<Float, [0, 1]>], | |
] | |
} |
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
// | |
// Canvas2ImagePlugin.js | |
// Canvas2ImagePlugin PhoneGap/Cordova plugin | |
// | |
// Created by Tommy-Carlos Williams on 29/03/12. | |
// Copyright (c) 2012 Tommy-Carlos Williams. All rights reserved. | |
// MIT Licensed | |
// | |
(function(root, factory) { |
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
colorscheme koehler | |
filetype on | |
filetype plugin on | |
"" http://mirnazim.org/writings/vim-plugins-i-use/ | |
call pathogen#runtime_append_all_bundles() | |
call pathogen#helptags() | |
autocmd FileType html,htmldjango,jinjahtml,eruby,mako let b:closetag_html_style=1 |
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
var eventForm = form({ | |
title: type.str({required: true}), | |
location: type.str(), | |
description: type.longStr({required: true}), | |
range: type.dateRange({onlyFuture: true, required: true}), | |
author: type.str({required: true}), | |
email: type.str() // email instead? | |
}); | |
index.get = function(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
#!/usr/bin/env ruby | |
# | |
# Convert blogger (blogspot) posts to jekyll posts | |
# | |
# Basic Usage | |
# ----------- | |
# | |
# ./blogger_to_jekyll.rb feed_url | |
# | |
# where `feed_url` can have the following format: |
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
from functools import partial | |
from math import hypot | |
import itertools | |
import bpy | |
# http://blenderpythonscripts.wordpress.com/2011/04/24/cursor-control-0-6-0/ | |
def space(): | |
area = None | |
for area in bpy.data.window_managers[0].windows[0].screen.areas: |
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
var suite = require('suite.js'); | |
var t = require('./ghw').transformers; | |
// regular tests, just kv-pairs | |
suite(matchToHTML(t.bracket_pipe_link), { | |
'[[foo|bar]]': '<a href="bar.html">foo</a>', | |
'[[foo|bar bar]]': '<a href="bar-bar.html">foo</a>', | |
'[[a|b]] [[b|a]]': '<a href="b.html">a</a> <a href="a.html">b</a>', | |
'[[a|http://b]]': '<a href="http://b">a</a>', | |
'[[a|https://b]]': '<a href="https://b">a</a>', |
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
function generator(valueCb) { | |
return function() { | |
var i = 0; | |
return { | |
next: function() { | |
var ret = valueCb(i); | |
i++; | |
return ret; |
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
// Viitenumeron muodostaja JavaScriptillä | |
// (c) Kimmo Surakka <kusti@cs.tut.fi>, 1998 | |
// Koodia saa käyttää vapaasti muuttamattomana, | |
// tätä tekijänoikeusilmoitusta ei saa poistaa. | |
// | |
// Muokattu Kimmo Surakan luvalla, nyt muodostaa sarjan viitenumeroita. | |
// (c) Jori Mäntysalo <jori.mantysalo@uta.fi>, 2004 | |
// | |
function teeViite(memberId, invoiceId) { | |
pohja = '' + (memberId * 1000 + invoiceId); |