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
with_defaults :scope => 'source.php source.php.embedded.block.html' do | |
snippet 'Core_Debug::dumps ...' do |s| | |
s.trigger = 'dar' | |
s.expansion = '\Core_Debug::dumps($1);' | |
s.scope = 'source.php' | |
end | |
snippet 'Core_Debug::dumps ... exit' do |s| | |
s.trigger = 'edar' |
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
require 'ruble' | |
command 'Debug this line' do |cmd| | |
cmd.key_binding = 'M1+M2+Q' | |
cmd.scope = 'source.php' | |
cmd.output = :insert_as_snippet | |
cmd.input = :selection, :line | |
cmd.invoke do |context| | |
line = STDIN.read | |
space = line.match('^\s*')[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
# Add this to bashrc. | |
__git_ps1 () | |
{ | |
local b="$(git symbolic-ref HEAD 2>/dev/null)"; | |
if [ -n "$b" ]; then | |
printf " (%s)" "${b##refs/heads/}"; | |
fi | |
} | |
PS1="\${debian_chroot:+(\$debian_chroot)}\[\033[01;32m\]\u\[\033[01;34m\] \w\[\033[35m\]\$(__git_ps1) \[\033[01;34m\]\$\[\033[00m\] " |
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
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 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="([^"]+)"/) |