browser side rendering of json resume https://github.com/jsonresume
template: https://github.com/jsonresume/jsonresume-theme-boilerplate
based on example from: https://github.com/cultofmetatron/jquery-autobars
browser side rendering of json resume https://github.com/jsonresume
template: https://github.com/jsonresume/jsonresume-theme-boilerplate
based on example from: https://github.com/cultofmetatron/jquery-autobars
| module Types | |
| InvalidTypeError = Class.new(ArgumentError) | |
| def specify(spec, a_method) | |
| args_spec = [] | |
| return_spec = nil | |
| case spec.first | |
| when Hash | |
| args_spec = spec.first.keys.first |
| # ENDPOINT="host.com" ruby app_proxy.rb | |
| # curl -i localhost:4567/capture # => "<TIMEOUT>" or regular response every 2 calls | |
| require 'sinatra' | |
| require 'net/http' | |
| $request_settings = { host: ENV["ENDPOINT"] } | |
| $headers = { "Content-Type" => "application/json" } | |
| $counter = 0 |
I hereby claim:
To claim this, I am signing this object:
| unless File.exist?('Gemfile') | |
| File.write('Gemfile', <<-GEMFILE) | |
| source 'https://rubygems.org' | |
| gem 'activerecord', '4.2.1' | |
| gem 'state_machines' | |
| gem 'state_machines-activerecord' | |
| gem 'sqlite3' | |
| gem 'minitest' | |
| GEMFILE |
| /* | |
| * An AngularJS Service for intelligently geocoding addresses using Google's API. Makes use of | |
| * localStorage (via the ngStorage package) to avoid unnecessary trips to the server. Queries | |
| * Google's API synchronously to avoid `google.maps.GeocoderStatus.OVER_QUERY_LIMIT`. | |
| * | |
| * @author: benmj | |
| * @author: amir.valiani | |
| * | |
| * Original source: https://gist.github.com/benmj/6380466 | |
| */ |
| # Activate the gem you are reporting the issue against. | |
| gem 'activerecord', '4.1.1' | |
| require 'active_record' | |
| require 'minitest/autorun' | |
| require 'logger' | |
| # Ensure backward compatibility with Minitest 4 | |
| Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test) | |
| # This connection will do for database-independent bug reports. |
| find . -name "*.rb" |xargs -n1 -I file sh -c 'echo `git log --oneline file | wc -l`: file'|sort -nr |head |
| #!/bin/bash | |
| # A simple script which will name a tab in iTerm | |
| # usage: | |
| # $ nametab NewTabName | |
| echo "trying to rename the current tab to $@" | |
| echo -ne "\033]0;"$@"\007" | |
| echo "finished" |
To open SQLite Things.app database run this command in Terminal.app:
$ sqlite3 ~/Library/Containers/com.culturedcode.things/Data/Library/Application\ Support/Cultured\ Code/Things/ThingsLibrary.db
In SQLite command-line type this query to get your tasks stats:
sqlite> .mode column
sqlite> .header on
sqlite> select zscheduler, zstatus, ztrashed, count(*) from ZTHING where z_ent = 13 group by zstatus,ztrashed order by Z_pk desc;
ZSCHEDULER ZSTATUS ZTRASHED count(*)