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
source 'http://rubygems.org' | |
gem 'guard' | |
gem 'guard-less' | |
gem 'guard-haml' | |
gem 'guard-coffeescript' | |
gem 'rb-fsevent' | |
gem 'growl' |
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
Schema = mongoose.Schema | |
ObjectId = Schema.ObjectId | |
# スキーマ定義 | |
PostSchema = new Schema | |
title: type: String, unique: true | |
content: String | |
author: type: ObjectId, ref: 'users' | |
comments: [ type: ObjectId, ref: 'comments' ] | |
created: type: Date, default: new Date.now() |
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
upstream proxy { | |
server localhost:3000; | |
} | |
server { | |
listen 80 default_server; | |
server_name _; | |
return 404; | |
} |
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/sh | |
# create PhoneGapTemplate in /path/to/PHONEGAP_PROJECT_ROOT from Xcode.app | |
# cd /path/to/PHONEGAP_PROJECT_ROOT | |
git clone https://github.com/geta6/phoneguard | |
mv phoneguard/G* assets www . | |
yes|rm -r phoneguard | |
cp ~/../Shared/Cordova/Frameworks/Cordova.framework/www/cordova* ./www/js/ |
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/sh | |
export ARCHFLAGS="-arch x86_64" | |
# Get source | |
mkdir -p /usr/local/share | |
cd /usr/local/share | |
git clone https://github.com/albertz/shairport | |
# Dependencies |
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
<html> | |
<head> | |
<link rel='stylesheet' href='style.css'> | |
</head> | |
<body> | |
<div id='target'></div> | |
<input id='button' type='button' value='click'> | |
<script src='script.js'></script> | |
</body> | |
</html> |
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
<html> | |
<head> | |
<link rel='stylesheet' href='style.css'> | |
</head> | |
<body> | |
<div id='parent'> | |
<input id='input' type='text'> | |
</div> | |
</body> | |
</html> |
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 | |
String.prototype.repeat = (n) -> | |
b = '' | |
b += @ for num in [1..n] | |
return b | |
util = | |
jplen: (text) -> |
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
# | |
# blob : Object from MongoDB | |
# | |
# blob.body: Buffer | |
# blob.size: length of buffer, substitute for blob.body.length | |
# blob.type: MIME (Eg. audio/x-wav) | |
# | |
# req : Object from http | |
# res : Object from http | |
# _ : Object from underscore |
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
for(i=0;i++<100;)console.log(i%15?i%5?i%3?i:'Fizz':'Buzz':'FizzBuzz') |