I hereby claim:
- I am atog on github.
- I am atog (https://keybase.io/atog) on keybase.
- I have a public key whose fingerprint is 2B3B 8F7A 9009 11F7 3E67 03F5 7B29 9633 E6C5 A1D4
To claim this, I am signing this object:
curl -fsSL https://gist.github.com/FiveYellowMice/c50490693d47577cfe7e6ac9fc3bf6cf.txt | env PKG_CONFIG_PATH=/usr/ | |
lib/openssl-1.0/pkgconfig:/usr/lib/pkgconfig rbenv install --patch 1.9.3-p551 |
require 'json' | |
require 'open-uri' | |
class GhostMigrate | |
attr_accessor :archive, :posts, :tags, :posts_tags, :template, :base_url | |
def run(filename, url) | |
@archive = JSON.parse(File.read(filename)) | |
@posts = archive["db"][0]["data"]["posts"] |
set -g default-command fish | |
# Easy config reload | |
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded." | |
# vi is good | |
setw -g mode-keys vi | |
set-option -g default-terminal screen-256color | |
bind-key : command-prompt |
require 'psych' | |
class MemoryPicker | |
STORAGE_NAME = "picked.yml" | |
def initialize(path) | |
@path = path | |
@storage = read_or_initialize_storage | |
end |
I hereby claim:
To claim this, I am signing this object:
public Calendar getWorldClockCurrentDateTime() { | |
URLConnection connection = new URL("http://worldclockapi.com/api/json/cet/now").openConnection(); | |
BufferedReader bfr = new BufferedReader(new InputStreamReader(connection.getInputStream())); | |
JSONObject dateTimeJson = new JSONObject(bfr.readLine()); | |
Date date = dateParser.parse(dateTimeJson.getString("currentDateTime")); | |
Calendar rvalue = Calendar.getInstance(); | |
rvalue.setTime(date); | |
return rvalue; | |
} |