Skip to content

Instantly share code, notes, and snippets.

View is8r's full-sized avatar
🙂

Yu Ishihara is8r

🙂
View GitHub Profile
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
@nantekkotai
nantekkotai / gist:2841665
Created May 31, 2012 07:27
Objective-Cで非同期通信を行う

Objective-Cで非同期通信を行なってAPIを叩くなどする場合はどうやるのか。

初期化

まず2つ変数を用意する。

@implementation Hogeee {
    NSMutableData *hogeData;
    NSURLConnection connection;
}
@is8r
is8r / .bash_profile
Last active October 6, 2015 08:38
.bash_profileの便利設定メモ
alias g='git'
alias gi='git init && git add . && git commit -m "first commit"'
alias gc='g add -A && git commit -a'
alias r='rails'
alias rs='rails s'
alias rgs='rails g scaffold'
alias bi="bundle install"
alias be="bundle exec rackup"
alias sq="mysql.server"
alias sqrs='mysql.server start && rails s'
@is8r
is8r / .gitconfig
Created June 21, 2012 15:11
.gitconfigの便利設定メモ
[alias]
st = status
co = checkout
di = diff
br = branch
ci = commit -a
cancel = reset --soft HEAD^ #直前のコミットを取り消す
zip = archive --format=zip --prefix=archive/ HEAD^ -o archive.zip #直前のコミットの差分ファイルをzipで抽出
ad = add .
cm = commit -m
@hayajo
hayajo / changelog_en.md
Last active April 1, 2025 14:37
ChangeLog を支える英語

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形

@is8r
is8r / .gitignore
Last active October 12, 2015 12:48
.gitignoreの便利設定メモ
# OS
*~
.DS_Store
Thumbs.db
# Sass
.sass-cache
# Xcode
UserInterfaceState.xcuserstate
@haribote
haribote / _compass-retina-sprites.scss
Created November 14, 2012 13:59 — forked from estahn/_compass-retina-sprites.scss
Using Compass to generate retina sprite maps at once
@mixin all-retina-sprites($map, $dimensions: false){
$base-class: sprite-map-name($map);
.#{$base-class}-retina-sprite{
background: sprite-url($map) no-repeat;
@include background-size(ceil(image-width(sprite-path($map)) / 2) auto);
}
@each $sprite in sprite-names($map){
.#{$base-class}-#{$sprite}{
@is8r
is8r / unity
Last active December 21, 2015 15:49
任意のGameObjectやプログラムを探す
//FindWithTag
GameObject xxx = GameObject.FindWithTag("xxx");//single object, InspectorのTagに表示されている名称
xxx.SendMessage("action");
xxx.BroadcastMessage("action");
//FindGameObjectsWithTag
GameObject[] xxxs = GameObject.FindGameObjectsWithTag("xxx");//any objects, InspectorのTagに表示されている名称
foreach(GameObject xxx in xxxs)
Debug.Log(xxx);

vi 手習い

コンテンツ

  • はじめに
    • 対象読者
    • ゴール
    • コマンドの表記ルール
  • Level 1
  • Hello!
@arcatdmz
arcatdmz / amazon-csv.js
Last active November 25, 2024 06:19 — forked from moroya/aitter.js
Amazonの注文履歴をCSV形式にして出力するスクリプト
// Amazonの注文履歴をCSV形式にして出力するスクリプト
//
// 以下のスクリプトを参考に作成されました。
// http://moroya.hatenablog.jp/entry/2013/06/03/225935
//
// 使い方は以下のURLに書いてあります。
// https://junkato.jp/ja/blog/2014/11/13/amazon-payment-history-as-csv/
//
// CSVに成型しているのは14行目から定義されているformatEntryという関数なので、これを書き換えれば自由な書式で出力できます。
(function(){