This file contains hidden or 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
| # https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf | |
| # set-option -g status-style bg=black,fg=cyan# bg=base02, fg=yellow | |
| set -g @plugin 'tmux-plugins/tpm' | |
| set -g @plugin 'tmux-plugins/tmux-sensible' | |
| set -g @plugin 'tmux-plugins/tmux-resurrect' | |
| set -g @plugin 'tmux-plugins/tmux-jontinuum' | |
| set -g @plugin 'tmux-plugins/tmux-open' | |
| set -g @plugin 'tmux-plugins/tmux-pain-control' |
This file contains hidden or 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
| 123 |
This file contains hidden or 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
| class HelloWorld: | |
| def __init__(self, name): | |
| self.name = name.capitalize() | |
| def sayHi(self): | |
| print "Hello " + self.name + "!" | |
| hello = HelloWorld("world") | |
| hello.sayHi() |
This file contains hidden or 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
| content XYZ |
This file contains hidden or 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
| content XYZ |
This file contains hidden or 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
| class ImportDateStatsFromSparkExportBackfill < ImportDateStatsFromSparkExport | |
| FROM_DATE = Date.new(2016, 6, 1) | |
| TO_DATE = Date.new(2017, 1, 18) | |
| private | |
| def process_location(location) | |
| (FROM_DATE..TO_DATE).each do |date| | |
| $backfill_date = date | |
| Rails.logger.info "===> Importing for #{$backfill_date}" |
This file contains hidden or 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 'csv' | |
| infile = ARGV[0] | |
| slice = ARGV[1] || 100 | |
| origin = CSV.open infile | |
| all_lines = origin.readlines | |
| header = all_lines.first | |
| all_lines.delete_at(0) |
This file contains hidden or 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 'active_support/core_ext/hash/deep_dup' | |
| h = {a: {b: :c}, d: {e: {f: :g}}} | |
| p "Base h: #{h.object_id}" | |
| p "Base h[:a]: #{h[:a].object_id}" | |
| p "Base h[:d][:e][:f] #{h[:d][:e][:f].object_id}" | |
| puts "--------------------------------------------------------------" | |
| _dup = h.dup | |
| p "Dup h: #{_dup.object_id}" | |
| p "Dup h[:a]: #{_dup[:a].object_id}" | |
| p "Dup h[:d][:e][:f] #{_dup[:d][:e][:f].object_id}" |
This file contains hidden or 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
| " Improve move speed | |
| let g:boostmove=0 | |
| set updatetime=500 | |
| au CursorMoved * call BoostMoveON() | |
| au CursorMovedI * call BoostMoveON() | |
| au CursorHold * call BoostMoveOFF() | |
| au CursorHoldI * call BoostMoveOFF() | |
| function BoostMoveON() | |
| if (winline() != line('$')) && (line('.') != 1) | |
| if (winline() == winheight('.')) || (winline() == 1) |
This file contains hidden or 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
| ➜ projects git clone git://github.com/stevo/poc_constantize.git | |
| Cloning into 'poc_constantize'... | |
| remote: Counting objects: 66, done. | |
| remote: Compressing objects: 100% (48/48), done. | |
| remote: Total 66 (delta 2), reused 66 (delta 2) | |
| Receiving objects: 100% (66/66), 26.54 KiB, done. | |
| Resolving deltas: 100% (2/2), done. | |
| ➜ projects cd poc_constantize | |
| ➜ poc_constantize git:(master) rvm use 1.9.3@poc --create | |
| Using /Users/bard/.rvm/gems/ruby-1.9.3-p385 with gemset poc |
NewerOlder