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
# EditorConfig is awesome: http://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_style = space | |
insert_final_newline = true | |
max_line_length = 120 |
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
# git alias | |
balias g git | |
# NVM | |
set -gx nvm_prefix /usr/local/opt/nvm | |
# GO | |
# set the workspace path | |
set -x GOPATH $HOME/go | |
# add the go bin path to be able to execute our programs |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
var myNavigaionController: UINavigationController? | |
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { |
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 application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { | |
self.window = UIWindow(frame: UIScreen.mainScreen().bounds) | |
self.window?.backgroundColor = UIColor.whiteColor() | |
self.window?.rootViewController = ViewController() | |
self.window?.makeKeyAndVisible() | |
return 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
#!/bin/bash | |
# | |
# @(#) download.sh ver.1.0.1 2014.03.12 | |
# | |
# Usage: | |
# download.sh start end dir | |
# start - 取得するファイルの開始番号. | |
# end - 取得するファイルの終了番号. | |
# dir - 保存先ディレクトリ. | |
# isSleep - 1/スリープあり 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
count = 0 | |
degree = 0 | |
radian = 0 | |
speed = 25 | |
radius = 5 | |
beforeLeft = @targetEnemy.css('left') | |
# centerX = parseInt(@targetEnemy.css('left'), 10) /2 | |
x = (if beforeLeft is 'auto' then 0 else parseInt(beforeLeft, 10)) | |
timer = setInterval(=> | |
if count <= 100 |
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> | |
<meta charset="utf-8"> | |
<title>Twitter + OAuth + JavaScript search api test</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js | |
"></script> | |
<script type="text/javascript" src="oauth.js"></script> | |
<script type="text/javascript" src="sha1.js"></script> | |
<script type="text/javascript"> | |
// Twitterオブジェクトのコンストラクタ・プロトタイプ定義 |
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
<?php | |
echo "test"; | |
echo "fork test.php"; | |
?> |
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
fs = require 'fs' | |
{exec, spawn} = require 'child_process' | |
{parser, uglify} = require 'uglify-js' | |
files = [] | |
# 指定されたパスのファイルを取得する | |
get_file = (path) -> | |
text = '' | |
stat = fs.statSync(path) | |
if stat.isDirectory() |
NewerOlder