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
/*globals define*/ | |
define(function(require) { | |
'use strict'; | |
// import dependencies | |
var Engine = require('famous/core/Engine'); | |
var Surface = require('famous/core/Surface'); | |
var ScrollView = require('famous/views/ScrollView'); | |
var ImageSurface = require('famous/surfaces/ImageSurface'); | |
var StateModifier = require('famous/modifiers/StateModifier'); | |
var RenderNode = require('famous/core/RenderNode'); |
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
( | |
Pbind( | |
\note, Prand([0,3,5,8],26), | |
\duration, Pseq([0.5,0.234,0.843,0.385], inf), | |
\legato, 0.5 | |
) | |
).play; | |
( | |
Routine { |
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
Select all and delete (actually move to buffer) | |
:%d | |
Select all and copy to buffer | |
:%y | |
Use p to paste the buffer. |
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
/* takes JS date as string */ | |
simplifyDateTime = function(dt) { | |
var _date = new Date(dt); | |
return 'made ' + (_date.getMonth() + 1) + '-' + _date.getUTCDate() + '-' + _date.getUTCFullYear(); | |
} |
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 iterateSelectOption(_select, _value) { | |
if (!_select || !_value) return; | |
for (var i = 0, len = _select.length; i < len; i++) { | |
if (_select.options[i].text === _value) return _select.options[i].selected = true; | |
} | |
} |
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
// | |
// ViewController.m | |
// image to video Apple SDK | |
// | |
// Created by Rex Fatahi on 12/20/14. | |
// Copyright (c) 2014 Rex Fatahi. All rights reserved. | |
// | |
#import "ViewController.h" | |
#import <AssetsLibrary/AssetsLibrary.h> |
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
module.exports = { | |
"accept-charset" : "ISO-8859-1,utf-8;q=0.7,*;q=0.3", | |
"accept-language" : "en-US,en;q=0.8", | |
"accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", | |
"user-agent" : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.13+ (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2", | |
"accept-encoding" : "gzip,deflate" | |
}; |
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
#!/bin/env node | |
var express = require('express'); | |
var fs = require('fs'); | |
var mongodb = require('mongodb'); | |
var App = function(){ | |
// Scope | |
var self = this; |
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 bash | |
# generate git log array in JSON: | |
git log \ | |
--pretty=format:'{%n "commit": "%H",%n "author": "%an <%ae>",%n "date": "%ad",%n "message": "%f"%n},' \ | |
$@ | \ | |
perl -pe 'BEGIN{print "["}; END{print "]\n"}' | \ | |
perl -pe 's/},]/}]/' > logAcc.json |
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
/<(?:.|\n)*?>/gm |