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
<p>hackspree gist demo</p> |
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 'octokit' | |
# API 呼び出し回数 | |
ratelimit = Octokit.ratelimit | |
ratelimit_remaining = Octokit.ratelimit_remaining | |
puts "Rate Limit Remaining: #{ratelimit_remaining} / #{ratelimit}" | |
puts | |
# インスタンス化 | |
# ==== 認証無しの場合 |
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
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout somewhen, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference |
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
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout somewhen, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference |
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
-- |
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
describe "this code" do | |
it "takes x, y, & z then produces their product" do | |
# assertive testing code here | |
end | |
it "takes logs its activites" do | |
# assertive testing code here | |
end | |
end |
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
▲ ~/Work cat ~/.Xmodmap | |
! output taken from: | |
! xmodmap -pke | egrep '(Control|Super|Alt|Menu)' | |
! Use to set keycodes correctly below. List reordered to match | |
! keys from left to right. | |
! keycode 66 = CapsLock | |
! keycode 37 = Control_L NoSymbol Control_L | |
! keycode 133 = Super_L NoSymbol Super_L | |
! keycode 64 = Alt_L Meta_L Alt_L Meta_L |
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
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
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
#!/usr/bin/env ruby | |
# A simply utility to show character counts for each line of input and | |
# highlight lines longer than 80 characters. | |
# | |
# Written as an example for http://jstorimer.com/2011/12/12/writing-ruby-scripts-that-respect-pipelines.html | |
# | |
# Examples: | |
# | |
# $ hilong Gemfile |
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
#Assertion Examples | |
must_be list.size.must_be :==, 0 | |
must_be_close_to subject.size.must_be_close_to 1,1 | |
must_be_empty list.must_be_empty | |
must_be_instance_of list.must_be_instance_of Array | |
must_be_kind_of list.must_be_kind_of Enumerable | |
must_be_nil list.first.must_be_nil | |
must_be_same_as subject.must_be_same_as subject | |
must_be_silent proc { "no stdout or stderr" }.must_be_silent |
NewerOlder