This file contains hidden or 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 gist |
This file contains hidden or 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 'https://rubygems.org' | |
gem 'berkshelf' | |
gem 'knife-solo', '~> 0.3.0.pre5' |
This file contains hidden or 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
// http://stackoverflow.com/questions/2587345/javascript-date-parse | |
function parseDate(input) { | |
var parts = input.split(/[-:\sTZ\+]/); | |
return new Date(parts[0], parts[1] - 1, parts[2], parts[3] || 0, parts[4] || 0, parts[5] || 0); | |
} | |
/* | |
Example: | |
See http://jsfiddle.net/koseki/CEy3g/ |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>AngularJS - copy template</title> | |
</head> | |
<body data-ng-app="App" data-ng-controller="AppCtrl"> |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>AngularJS - bind HTML</title> | |
</head> | |
<body data-ng-app="SampleApp" data-ng-controller="SampleCtrl"> |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>AngularJS under the subdirectories (app root = /foo/bar/)</title> | |
<!-- last '/' is required. '/foo/bar' does not work. --> | |
<base href="/foo/bar/"> |
This file contains hidden or 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 | |
# | |
# http://wordpress.org/plugins/ | |
# | |
# cd wp-content/plugins | |
# ./wp-plugins wp-multibyte-patch json-api contact-form-7 | |
# | |
if [ x"$1" = x ]; then |
This file contains hidden or 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 | |
# | |
# Download Wordpress translation files. | |
# Execute inside the wp-content/languages directory. | |
# | |
# http://codex.wordpress.org/Installing_WordPress_in_Your_Language | |
# http://ja.wordpress.org/install-ja/ (ja) | |
# | |
VERSION=3.5.x |
This file contains hidden or 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 | |
# ngx_small_light trial for debian | |
# with: | |
# ami-9e1ab19f Debian Squeeze 32bit m1.small | |
# ami-a601aaa7 Debian Squeeze 64bit m1.small | |
# | |
# # cd /root | |
# # curl https://gist.github.com/koseki/5895824/raw/install.sh | sh |
This file contains hidden or 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
// SnakeYAML(based on libyaml) http://code.google.com/p/snakeyaml/ | |
// YAML 1.1 | |
// javac -classpath snakeyaml-1.12.jar:. Test.java | |
// java -classpath snakeyaml-1.12.jar:. Test | |
import org.yaml.snakeyaml.*; | |
import java.io.*; | |
public class Test { | |
public static void main(String[] args) { |