Skip to content

Instantly share code, notes, and snippets.

View AndrewZures's full-sized avatar

Andrew Zures AndrewZures

View GitHub Profile

Keybase proof

I hereby claim:

  • I am andrewzures on github.
  • I am andrewzures (https://keybase.io/andrewzures) on keybase.
  • I have a public key ASCD6ywfogc6BYcbUiBerzvosqx3bUjj3oZbUPxq_-tfAwo

To claim this, I am signing this object:

def person(name)
{
:name => name,
:type => :person
}
end
def birthday_person(name, birthday)
birthday_data ={ :birthday => birthday)
person(name).merge(:birthday => birthday)
@AndrewZures
AndrewZures / simple_tab_alfred_workflow_name_check
Last active August 29, 2015 20:35
checks tab url and tab title when deciding to open or switch to tab, handles empty string
local my_url, my_search
global trigger_data
set my_url to "http://app.hireology.dev:3000/"
set trigger_data to {{_url:"app.hireology.dev", _title:""}}
tell application "Google Chrome"
if it is not running then
open location my_url
else
set result to my find_tab()
@AndrewZures
AndrewZures / simple_tab_alfred_workflow
Created August 29, 2015 19:48
minimize duplicate chrome tabs of same page
local my_url, my_search
global search_terms
set my_url to "http://www.github.com"
set search_terms to {"github.com"}
tell application "Google Chrome"
if it is not running then
open location my_url
else
set result to my find_tab()
@AndrewZures
AndrewZures / nerdtree_tab_movement
Last active August 29, 2015 14:01
Adds next/prev tab movement to Nerdtree
"/bundle/nerdtree/nerdree_plugin/this_file_name.vim
call NERDTreeAddKeyMap({
\ 'key': '<c-k>',
\ 'callback': 'NextTab',
\ 'quickhelpText': 'echo full path of current node',
\ 'scope': 'all'})
call NERDTreeAddKeyMap({
\ 'key': '<c-j>',
@AndrewZures
AndrewZures / _thor.sh
Created April 15, 2014 22:05
thor autocomplete (note .sh should be removed)
#compdef thor
#autoload
compadd `thor list | grep thor | cut -d " " -f 2`
@AndrewZures
AndrewZures / .zsh.completion._hello.sh
Last active August 29, 2015 13:59
basic bash autocompletion for .zshrc file
#compdef hello
_arguments "1: :(World)"\
"2:Countries:(France Germany Italy)"\
"*:Cities:((Paris\:France Berlin:\Germany Rome:\Italy))"