前回 https://gist.github.com/ryohey/b31fb1cd69ddaed5f36f
- CEO
touch -cm ${SRCROOT}/../Resources/src | |
touch -cm ${SRCROOT}/../Resources/res |
// | |
// ___FILENAME___ | |
// ___PROJECTNAME___ | |
// | |
// Created by ___FULLUSERNAME___ on ___DATE___. | |
//___COPYRIGHT___ | |
// | |
#include "___FILEBASENAME___.h" |
express = require "express" | |
multiparty = require "multiparty" | |
app = express() | |
app.get "/", (req, res) -> | |
res.send """ | |
<form action="/" enctype="multipart/form-data" method="post"> | |
<input type="file" name="uploadFile"> | |
<input type="submit"> |
next = (value) -> "🐱"+value | |
back = (value) -> value.slice("🐱".length, value.length) | |
zero = "🐶" | |
# next = (value) -> [value] | |
# back = (value) -> value.pop() | |
# next = (value) -> -> value | |
# back = (value) -> value() |
Twit = require "twit" | |
twit = new Twit | |
consumer_key: "TWITTER_CONSUMER_KEY" | |
consumer_secret: "TWITTER_CONSUMER_SECRET" | |
access_token: "ACCESS_TOKEN" | |
access_token_secret: "ACCESS_TOKEN_SECRET" | |
twit.get "account/verify_credentials", (err, data, res) -> | |
twitterId = data.id |
remote = global.require "remote" | |
child_process = remote.require "child_process" | |
class Foo | |
start: -> | |
@child = child_process.spawn "fooProgram", [barArgument] | |
doFooBar: (arg1, callback) -> | |
@child.stdin.write arg1 |
json2html = (obj) -> | |
if obj instanceof Array | |
list = json2html o for o in obj | |
<ul>{list}</ul> | |
else if obj instanceof Object | |
list = ([ | |
<dt>{key}</dt> | |
<dd>{json2html value}</dd> | |
] for key, value of obj) | |
<dl>{list}</dl> |
// | |
// main.cpp | |
// FaceTracker | |
// | |
// Created by ryohey on 2015/12/11. | |
// | |
#include <iostream> | |
#include <cv.h> | |
#include <highgui.h> |
#!/bin/bash | |
for in_file in $(ls -1 *.wav) | |
do | |
out_file="fade/${in_file}.wav" | |
echo "Processing: \"$in_file\". Saving as \"$out_file\" ..." | |
sox "$in_file" "$out_file" fade t 0 0 2 | |
done |