Skip to content

Instantly share code, notes, and snippets.

View is8r's full-sized avatar
🙂

Yu Ishihara is8r

🙂
View GitHub Profile
@is8r
is8r / .zshrc
Last active November 26, 2016 10:44
.zshrcの設定
export PATH="/usr/local/bin:$PATH"
export PATH="/usr/local/heroku/bin:$PATH"
export PATH=/usr/local/share/npm/bin:$PATH
export PATH=$HOME/local/node/bin:$PATH
export PGDATA=/usr/local/var/postgres
export PATH=$HOME/.rbenv/bin:$PATH
export PATH="/Applications/android-sdk/tools:$PATH"
export PATH="$HOME/Library/Android/sdk/platform-tools:$PATH"
#export ADBHOST=192.168.11.14
@taea
taea / rm_pid.md
Last active January 12, 2023 14:22
postgres をちゃんと終了しないと.pidファイルが残っちゃって、Rails が起動しないもんだい

Rails 起動しようとするとこんなエラーでる

PG::ConnectionBad at /
could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
@DWboutin
DWboutin / Merge wp_query
Created February 7, 2014 14:17
Merge 2 WP_Query()
<?php
$query1 = new WP_Query($arg1);
$query2 = new WP_Query($arg2);
$query = new WP_Query();
$query->posts = array_merge( $query1->posts, $query2->posts );
// we also need to set post count correctly so as to enable the looping
@machida
machida / _rgba.css.sass
Created January 28, 2014 08:31
rgbaをIE8に対応させるためのmixin
=rgba($foreground, $backdrop: white, $property: "background-color")
#{$property}: mix(fade-in($foreground, 1), $backdrop, percentage(opacity($foreground)))
// Browsers without color opacity
#{$property}: $foreground
// Decent browsers
@if $property == "background-color"
.lt-ie9 &
// IE8 has background filters; use them instead
#{$property}: transparent
$ie-hex: ie-hex-str($foreground)
@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(){

vi 手習い

コンテンツ

  • はじめに
    • 対象読者
    • ゴール
    • コマンドの表記ルール
  • Level 1
  • Hello!
@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);
@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 / .gitignore
Last active October 12, 2015 12:48
.gitignoreの便利設定メモ
# OS
*~
.DS_Store
Thumbs.db
# Sass
.sass-cache
# Xcode
UserInterfaceState.xcuserstate
@hayajo
hayajo / changelog_en.md
Last active April 1, 2025 14:37
ChangeLog を支える英語

ChangeLog を支える英語

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

ほとんど引用です。

基本形