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
s.boot; | |
( | |
SynthDef("click",{ | |
Out.ar(0,ClipNoise.ar(0.02) * EnvGen.ar(Env.perc(0.0,0.05,1,-2), 1, doneAction: 2)); | |
}).store | |
) | |
( |
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
import UIKit | |
import QuartzCore | |
import SceneKit | |
class GameViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
let numSphere = 25 |
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
dc ${WORKSPACE} | |
/usr/bin/expect -c " | |
set timeout 5 | |
spawn ios profiles:download --type <type of profile> \"<your profile name>\" | |
expect (Select a team:*) | |
send \"1\n\" | |
expect .* | |
send \"exit\" | |
" |
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
import SceneKit | |
import QuartzCore | |
class GameViewController: NSViewController { | |
@IBOutlet weak var gameView: GameView! | |
override func awakeFromNib(){ | |
let numSphere = 10 |
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
func urlEncodedStringWithEncoding(encoding: NSStringEncoding) -> String { | |
let charactersToBeEscaped = ":/?&=;+!#$()',*" as CFStringRef | |
let charactersToLeaveUnescaped = "[]." as CFStringRef | |
let result = CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, self.bridgeToObjectiveC(), charactersToLeaveUnescaped, charactersToBeEscaped, CFStringConvertNSStringEncodingToEncoding(encoding)) | |
return NSString(format:result) | |
} |
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
ffmpeg -i flow.mp4 -s 716x594 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > out.gif |
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
/* | |
SpringCamera.js | |
*/ | |
THREE.SpringCamera = function (_width, _height) { | |
/* | |
constructor | |
*/ | |
var VIEW_ANGLE = 45, ASPECT = _width / _height, NEAR = 0.01, FAR = 10000000; | |
this.nextCamPosX = 0; | |
this.nextCamPosY = 0; |
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 python | |
# -*- coding:utf-8 -*- | |
import optparse | |
import httplib | |
from lxml import etree | |
# Yahoo!API config | |
appId = 'APPLICATION ID' | |
session = httplib.HTTPConnection('jlp.yahooapis.jp') |
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
this.car_select = $("#swipe-section").children("img"); | |
$('#carSelect').hammer({ | |
prevent_default: true, | |
drag_vertical: true, | |
release: true | |
}) | |
.on('drag dragend', function (ev) { | |
if (!self.isAnimating) { | |
var gest = ev.gesture; | |
switch (ev.type) { |
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
// import UDP library | |
import hypermedia.net.*; | |
UDP udp; | |
void setup() { | |
udp = new UDP( this, 3054 ); //port from xbee wi-fi | |
udp.listen( true ); | |
} |