- TMUX Crash Course https://robots.thoughtbot.com/a-tmux-crash-course
- Another TMUX guide https://danielmiessler.com/study/tmux/
- VIM Awesome plugin site https://vimawesome.com/
- Remote Pairing with Vim/Tmux https://www.hamvocke.com/blog/remote-pair-programming-with-tmux/
- TMATE for session sharing https://tmate.io/
- What my VIM setup is based on https://statico.github.io/vim3.html
- Pairing setup slideshow https://www.slideshare.net/scottsbaldwin/pairing-with-tmux-and-vim
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
| defmodule Sample.EventHandler do | |
| alias KaufmannEx.Schemas.Event | |
| def given_event(%Event{name: :"loan.tradeline", payload: payload} = event) do | |
| {state: state} = payload | |
| if Enum.member?(["CO", "CA", "KS", FL"], state) do | |
| {:ok, "loan.tradeline.validation.state", payload.tracking_number} | |
| else |
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
| TOTAL COUNT MATCH SLOWEST AVERAGE NAME PATTERN | |
| 0.032859 286 50 0.000515 0.000115 rubyKeywordAsMethod \(defined?\|exit!\)\@!\<[_[:lower:]][_[:alnum:]]*[?!] | |
| 0.022910 584 390 0.000254 0.000039 rubyKeywordAsMethod \%(\%(\.\@1<!\.\)\|::\)\_s*\%([_[:lower:]][_[:alnum:]]*\|\<\%(BEGIN\|END\)\>\) | |
| 0.021121 360 122 0.000473 0.000059 rubyConstant \%(\%(^\|[^.]\)\.\s*\)\@<!\<\u\%(\w\|[^\x00-\x7F]\)*\>\%(\s*(\)\@! | |
| 0.020811 522 284 0.000232 0.000040 rubySymbol [[:space:],{(]\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*[!?]\=:[[:space:],]\@= | |
| 0.017956 372 134 0.000246 0.000048 rubySymbol []})\"':]\@1<!\<\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*[!?]\=:[[:space:],]\@= | |
| 0.014816 239 0 0.000591 0.000062 rubyCapitalizedMethod \%(\%(^\|[^.]\)\.\s*\)\@<!\<\u\%(\w\|[^\x00-\x7F]\)*\>\%(\s*(\)*\s*(\@= | |
| 0.013742 488 260 0.000189 0.000028 rubyInteger \%(\%(\w\|[]})\"']\s*\)\@< |
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
| run a single minitest. rake test TEST=test/test_foobar.rb TESTOPTS="--name=test_foobar1 -v" | |
fuck all this https://media.giphy.com/media/O1IDb3Wo98iGY/giphy.gif
angry panda https://media.giphy.com/media/1hiVNxD34TpC0/giphy.gif
Failure http://i.imgur.com/cWX4Fjf.gifv
TayTay http://i.giphy.com/Lk9SktDAGzYUU.gif
obama holdup https://media.giphy.com/media/Gubfnt4gJtnOw/giphy.gif
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
| hsh = {a: 1, b: 2} | |
| mrg = hsh.merge(b: 42) | |
| mrg == hsh # false | |
| upd = hsh.update(b: 69) | |
| mrg == upd # true |
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
| # do something cool with input using a case | |
| input = "some fool string" | |
| case input | |
| when /foo/ | |
| # do something | |
| when /bar/ | |
| # do something else | |
| when /(fool)/ | |
| # now do something special using the capture | |
| local_var = $1 # get the capture |
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
| angular.module('register', ['ngResource', 'rails']). | |
| config(function($routeProvider) { | |
| $routeProvider. | |
| when('/', {controller:RegisterCtrl, templateUrl:'/partials/register.html'}). | |
| when('/#profile', {controller:RegisterCtrl, templateUrl:'/partials/profile.html'}). | |
| when('/#preferences', {controller:RegisterCtrl, templateUrl:'/partials/preferences.html'}). | |
| otherwise({redirectTo:'/'}); | |
| }); | |
| angular.module('register').factory('User', ['railsResourceFactory', function (railsResourceFactory) { |
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
| c:\dev>mongo 10.0.20.154:27017 | |
| MongoDB shell version: 2.0.2-rc1 | |
| connecting to: 10.0.20.154:27017/test | |
| > show dbs | |
| local (empty) | |
| > db.copyDatabase('edist_staging','edist_development','qa1-cms-db1:33478'); | |
| { "ok" : 1 } | |
| > show dbs | |
| admin (empty) | |
| edist_development 0.125GB |
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
| rails plugin new daengine --full --dummy-path=spec/dummy -T --skip-bundle |