Skip to content

Instantly share code, notes, and snippets.

View gist:d06a2f1ddafaa5e46c86
fatal: remote staging already exists.
Joining application hound-staging... failed
! Application does not exist or does not belong to an org that you have access to.
fatal: remote production already exists.
Joining application hound-production... failed
! Application does not exist or does not belong to an org that you have access to.
View gist:c91b1f7114eeaf677690
An error occurred while installing pg (0.17.0), and Bundler cannot continue.
Make sure that `gem install pg -v '0.17.0'` succeeds before bundling.
Could not find pg-0.17.0 in any of the sources
View gist:3b219a73cf2d11f08ca7
An error occurred while installing capybara-webkit (1.1.1), and Bundler cannot
continue.
Make sure that `gem install capybara-webkit -v '1.1.1'` succeeds before
bundling.
Could not find capybara-webkit-1.1.1 in any of the sources
Run `bundle install` to install missing gems.
View gist:9a36b29023bf7aa23b64
[xxxxxxxx@yyyyyyyy zzzzz]$bash <(curl -Ls http://git.io/eUx7rg)
Downloading MySQL Installers ... may take a few moments
######################################################################## 100.0%
...
...
Installing MySQL, administrator password required ...
Password:
installer: Package name is MySQL 5.6.17-community for Mac OS X
installer: Installing at base path /
installer: The install was successful.
View gist:ba2554e1af0bc0b5ea92
[xxxxxxxx@yyyyyyyy zzzzz]$rake environment -v -t RAILS_ENV=development db:schema:dump
Could not find gem 'mysql2 (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
[xxxxxxxx@yyyyyyyy zzzzz]$bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (10.3.1)
Using i18n (0.6.9)
Using minitest (4.7.5)
@rmswimkktt
rmswimkktt / DateFormat.java
Created Nov 16, 2013
CalendarからDateに変換して文字列整形
View DateFormat.java
calendar = Calendar.getInstance();
calendar.set(2013, 1 - 1, 1, 0, 0, 0);
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/M/d H:mm:ss");
String date = dateFormat.format(calendar.getTime());
View MultiAccess.java
PoolingClientConnectionManager cm = new PoolingClientConnectionManager();
cm.setMaxTotal(100);
DefaultHttpClient client = new DefaultHttpClient(cm);
HttpPost post = new HttpPost(url);
HttpResponse response = client.execute(post);
@rmswimkktt
rmswimkktt / gist:5532567
Created May 7, 2013
メソッドに複数の引数を渡す方法で、知らない書き方(multiArgument1)があった…。
View gist:5532567
public class MultiArgument {
public static void main(String[] args) {
MultiArgument.multiArgument1("Apple", "Orage", "Grape");
String[] strings = {"Apple", "Orage", "Grape"};
MultiArgument.multiArgument2(strings);
}
public static void multiArgument1(String... strings){
You can’t perform that action at this time.