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
require 'strscan' | |
sample = "{ \"name \" : \"Tarou\" } " | |
scanner = StringScanner.new(sample) | |
state = 'waiting_key' | |
brace_open = false | |
buffer = '' | |
output = [] |
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
# http://archive.ics.uci.edu/ml/datasets/NSF+Research+Award+Abstracts+1990-2003 | |
find . -print | grep -i '.*[.]txt' | xargs cat | sed -ne '/^Abstract\s\{1,\}:$/, $p' | sed -ne '3, $p' > merged.txt |
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'
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" |
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){ |