- commandとouputの指定を組み合わせるとクォートがおかしくなる
whenever --update-crontab --set key1=value1&key2=value2
記法が正しくCLIでパースされないのでもう使えなくなっている。--set key1=value1 --set key2=value2
は正常に使える
echo '{"a":1,"b":2}' | ./jr 'puts json.select{|k,v|v == 2}.keys.last'
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
class QuickSort | |
class << self | |
def sort_by_division_with_pivot(array) | |
return array unless array.length > 0 | |
pivot = array[0] | |
left = [] | |
right = [] | |
i = 1 | |
while i < array.length do |
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
#include <stdio.h> | |
void swap(int v[], int k){ | |
int temp; | |
temp = v[k]; | |
v[k] = v[k+1]; | |
v[k+1] = temp; | |
} | |
void sort(int v[], int n){ |
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
{ | |
"name": "DeleteNiconicoNewsBar", | |
"version": "0.0.1", | |
"manifest_version": 2, | |
"description": "The exntension which deletes a niconicoo news bar.", | |
"content_scripts": [ | |
{ | |
"matches": ["http://www.nicovideo.jp/watch/*"], | |
"js": ["script.js"], | |
"run_at": "document_idle" |
F, [2017-07-14T02:27:00.455957 #27196] FATAL -- : execution expired (Faraday::TimeoutError)
/home/deploy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:611:in `initialize'
/home/deploy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:611:in `new'
/home/deploy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:611:in `create_socket'
/home/deploy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:755:in `block in connect'
/home/deploy/.rbenv/versions/2.3.1/lib/ruby/2.3.0/timeout.rb:101:in `timeout'
/home/deploy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:748:in `connect'
/home/deploy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:511:in `query'
/home/deploy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:177:in `query'