Skip to content

Instantly share code, notes, and snippets.

View benyarb's full-sized avatar

Ben Yarbrough benyarb

View GitHub Profile
@benyarb
benyarb / BallerzAPI.md
Last active February 10, 2023 23:39
Unofficial Ballerz API Docs

Unofficial Ballerz API

Basic URL: https://ballerz.cloud/images/ballerz/7562/public

URL with params: https://ballerz.cloud/images/ballerz/7562/background=red,rotate=180,sharpen=2,trim=50;60;100;90

@benyarb
benyarb / api-resource-search.js
Created February 25, 2018 03:29
API Resource Search
Vue.component('resource-search', {
props: {
selected: [],
selectedData: [],
resourceName: '',
searchTarget: '', // which property on the resource to search
haystackLimit: [],
},
data() {
@benyarb
benyarb / facebotCommands.textile
Last active August 29, 2015 13:56
Facebot Commands

Facebot Commands

Get

[spotify link] returns info about the link (track, artist, etc.)
[dribbble URL] brings up image from the URL
face google me [query] Googles [query] & returns 1st result’s URL
face wiki me [query] Searches for [query] on Wikipedia.
face youtube me [query] Searches YouTube for the query and returns the video embed link.
face map me [query] Returns a map view of the area returned by `query`.
@benyarb
benyarb / zshProjectAliasConventions.zsh
Last active August 29, 2015 13:56
ZSH Project Alias Convention
#-----------------
# Projects
#-----------------
## convention:
# cmd: [c|g|w|u|r*] [proj]
# c: cd
# 'cd [proj]'
# g: git
# 'cd [proj], git pull, git status'
@benyarb
benyarb / vimium_colemak
Last active November 18, 2023 04:37
Vimium Colemak Keybindings
# Custom key mappings
map n scrollDown
map N previousTab
map e scrollUp
map E nextTab
map i scrollRight
map I goForward
@benyarb
benyarb / .bashrc
Created May 15, 2012 21:55
My .bashrc File (Mac)
# ~/.bashrc
#----------------
# Aliases
#----------------
# Prompt overwrites
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
@benyarb
benyarb / .bash_profile
Created May 15, 2012 21:20
Import .bashrc into .bash_profile
# ~/.bash_profile
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
@benyarb
benyarb / .bashrc
Created May 15, 2012 20:13
A .bashrc function for creating and entering a directory.
# ~/.bashrc
function mkcd {
if [ ! -n "$1" ]; then
echo "Enter a directory name"
elif [ -d $1 ]; then
echo "\`$1' already exists"
else
mkdir $1 && cd $1
fi
}
@benyarb
benyarb / gist:2154800
Last active October 2, 2015 02:48 — forked from axelav/gist:1839777
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt