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?
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
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 |
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
<?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 |
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
=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) |
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
// 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(){ |
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
//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); |
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
@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}{ |
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
# OS | |
*~ | |
.DS_Store | |
Thumbs.db | |
# Sass | |
.sass-cache | |
# Xcode | |
UserInterfaceState.xcuserstate |