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
#!/bin/env bash | |
# ~/bin/githelpers | |
pivotal_commit() { | |
git commit -m "$@ [#$GIT_PIVOTAL_NUM]" | |
} | |
pivotal_commit_and_finish() { | |
git commit -m "$@ [Finishes #$GIT_PIVOTAL_NUM]" | |
} |
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
myApp = angular.module('myApp') | |
#Ensures that: | |
# 1) all links contained in the directive's element that are not handled | |
# by angular do a full page reload bypassing html5mode. | |
# 2) all anchor links are prefixed with the current url so that the base | |
# path doesn't interfere | |
myApp.directive 'externalLinks', -> | |
link: (scope, element, attrs, controller) -> |
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 bash | |
[[ $# -gt 0 ]] || { echo "Usage: $(basename $0) remoteport localport"; exit 1; } | |
autossh -M 0 -v -nNT4 -o "TCPKeepAlive no" -o "ServerAliveInterval 60" -o "ServerAliveCountMax 1" -o "ExitOnForwardFailure yes" -R $1:localhost:$2 vps |
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
### Navigating | |
visit('/projects') | |
visit(post_comments_path(post)) | |
### Clicking links and buttons | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click_on('Link Text') # clicks on either links or buttons | |
click_on('Button Value') |
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
#!/bin/bash | |
echo "These ENV variables only exist in the rails app but not in the heroku config" | |
echo | |
envs_in_rails() { | |
git grep "ENV\[" | sed "s/.*ENV\[['\"]\(.*\)['\"]\].*/\1/" | sort | uniq | |
} | |
envs_in_heroku() { |
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
#Alternative to the use of aliasing | |
#This is one more alternative to what can be found here: http://blog.jayfields.com/2006/12/ruby-alias-method-alternative.html | |
module ClockRadioClassExtensions | |
module ClockRadioInstanceExtensions | |
def on! | |
super | |
@display_time = true | |
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
Información del orador: | |
Los interesados en contribuir con conferencias o talleres deben enviar la siguiente información: | |
* Autores: Nombre completo y resumen curricular | |
Evan Henshaw-Plath | |
* Público Objetivo: (Gerentes, Desarrolladores, Administradores de Sistemas) | |
Gerentes & Desarrolladores | |
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
Información del orador: | |
Los interesados en contribuir con conferencias o talleres deben enviar la siguiente información: | |
* Autores: Nombre completo y resumen curricular | |
Evan Henshaw-Plath | |
* Público Objetivo: (Gerentes, Desarrolladores, Administradores de Sistemas) | |
Desarrolladores | |
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
Información del orador: | |
Los interesados en contribuir con conferencias o talleres deben enviar la siguiente información: | |
* Autores: Nombre completo y resumen curricular | |
Evan Henshaw-Plath | |
* Público Objetivo: (Gerentes, Desarrolladores, Administradores de Sistemas) | |
Desarrolladores & Gerentes | |
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
Información del orador: | |
Los interesados en contribuir con conferencias o talleres deben enviar la siguiente información: | |
* Autores: Nombre completo y resumen curricular | |
Evan Henshaw-Plath | |
* Público Objetivo: (Gerentes, Desarrolladores, Administradores de Sistemas) | |
Desarrolladores | |
OlderNewer