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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Test Chrome Autofill Hack</title> | |
</head> | |
<style media="screen"> | |
.hidden { | |
/*display: none;*/ | |
} |
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 | |
unless !!`which gh | grep 'bin/gh'` | |
abort('Please run brew install github/gh/gh first. exiting now.') | |
end | |
Dir.chdir(ENV['HOME'] + '/dev/clients/thoroughcare') | |
issue_numbers = `gh issue list -s open -L 500 | grep -o '^[[:digit:]]*'`.split("\n") | |
branches = `git branch --sort=committerdate`.split("\n").map(&:strip) | |
branch_issue_numbers = branches.select{|b| b[/\/\d+/]}.map{|i| i[/\d+/]} | |
delete_issue_numbers = branch_issue_numbers.reject{|n| issue_numbers.include? n}.map(&:to_s) | |
unless delete_issue_numbers.any? |
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 | |
# pass log filename as single argument | |
filename = ARGV[0] | |
lines = File.readlines(filename).select{|l| l =~ /call_time/} | |
puts filename | |
puts lines.map{|l| l[/\d+.\d+\b/].to_f}.reduce(&:+) |
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
function injectJquery(){ | |
var script = document.createElement('script'); | |
script.src = 'https://code.jquery.com/jquery-2.2.4.min.js'; | |
script.type = 'text/javascript'; | |
script.integrity = 'sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44' | |
script.crossOrigin="anonymous" | |
document.getElementsByTagName('head')[0].appendChild(script); | |
} | |
//for more info or other versions see https://code.jquery.com/ |
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
# ~/.atom/snippets.cson | |
".source.ruby": | |
"Initialize": | |
prefix: "Benchmark" | |
body: "Benchmark.bm do |x|\n x.report(:a) {\t$1}\n x.report(:b) {\t$2}\nend" |
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 | |
# goto the root of your application before running this script | |
filename = 'node_modules/vue-loader/lib/template-compiler/index.js' | |
text = File.read(filename) | |
new_code = %q(code = prettier.format(code, { semi: false, parser: 'babel' })) | |
old_code = 'code = prettier.format(code, { semi: false })' | |
replace = text.gsub(old_code, new_code) |
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
.blob-code, .blob-code-inner { | |
font-weight: 300; | |
font-family: Hack Nerd Font; /* maybe */ | |
font-family: Ubuntu Mono; | |
font-size: 14px; | |
-webkit-text-stroke-width: 0.4px; | |
-webkit-text-stroke-color: inherit; | |
} | |
.js-details-container:not(.commit-tease) { |
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 | |
branches = `git branch --sort=committerdate | awk '{print $1}'`.split("\n").reject{|l| l == '*'} | |
branches.each_with_index{|b, i| puts "#{i < 10 ? ' ' : ''}""#{i} - #{b}" } | |
puts "\n" | |
print 'type branch number: ' | |
target_num = gets.chomp | |
unless target_num.length == 0 |
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
tell application "System Preferences" | |
reveal anchor "trackpadTab" of pane "com.apple.preference.trackpad" | |
end tell | |
tell application "System Events" to tell process "System Preferences" | |
click checkbox 3 of tab group 1 of window 1 | |
end tell | |
quit application "System Preferences" |
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
[user] | |
name = Your Name | |
email = youremail@example.com | |
[color] | |
ui = auto | |
[alias] | |
st = status -sb -uall | |
lg = log --pretty='%Cred%h%Creset | %C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %C(cyan)[%an]%Creset' --graph | |
ll = log --pretty='%Cred%h%Creset | %C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %C(cyan)[%an]%Creset' |