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
EnvGet, userProfile, USERPROFILE | |
SetNumLockState, AlwaysOn | |
SetCapsLockState, AlwaysOff | |
SetWorkingDir, c:\ | |
ToggleWinHideRun(WindowTitle, RunCommand, MaximizeOnRun) | |
{ | |
SetTitleMatchMode,2 |
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
# .git/hooks/pre-commit | |
git stash -q --keep-index | |
.git/hooks/syntax.rb | |
RESULT=$? | |
git stash pop -q | |
[ $RESULT -ne 0 ] && exit 1 | |
exit 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 'ruble' | |
command 'Generate Entity Getter/Setters' do |cmd| | |
cmd.key_binding = 'M1+M2+G' | |
cmd.scope = 'source.php' | |
cmd.output = :replace_document | |
cmd.input = :document | |
cmd.invoke do |context| | |
file = context.TM_SELECTED_FILES.match(/([a-zA-Z0-9]+)\.php/)[1] | |
line = STDIN.read | |
columns = line.scan(/@Column\(name="([^"]+)", type="([^"]+)"/) |
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
default_run_options[:pty] = true # Must be set for the password prompt from git to work | |
set :application, "my-awesome-app" | |
set :repository, "[email protected]:username/projectname.git" | |
set :scm, "git" | |
ssh_options[:forward_agent] = true | |
set :branch, "master" | |
set :deploy_via, :remote_cache |
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
/** | |
* Attaches a handler to an event the fires after a given time interval. | |
* | |
* Usage: | |
* $('input[type="text"]').timedBind('keyup', function (e) { | |
* var $el = $(e.target); | |
* alert($el.val()); | |
* }); | |
*/ | |
(function($) { |