Skip to content

Instantly share code, notes, and snippets.

View itsthatguy's full-sized avatar
✌️
Love.

Kevin Altman itsthatguy

✌️
Love.
View GitHub Profile
@itsthatguy
itsthatguy / .bash_rc
Created March 8, 2012 02:58
Bootslap
BSTITLE="\033[0;33m"
BSCODE="\033[1;33m"
BSCLEAN="\033[0m"
BOOTSLAP=''
function decorate {
local base=$1
local feature=$2
local undecorated="${base}_without_${feature}"
@itsthatguy
itsthatguy / index.html
Created April 16, 2012 15:00
fluid div with horizontal scrolling list inside
<div class="fluid">
<div class="wrapper">
<ul>
<li>one</li>
<li>two</li>
<li>three</li>
<li>four</li>
<li>five</li>
</ul>
</div>
@itsthatguy
itsthatguy / gap.sh
Created April 18, 2012 20:41
commit add push / commit add push heroku
function gap() {
if [ $# -eq 0 ]; then
echo Error: Please add a commit message
else
git add .
git commit -am "$*"
git push
fi
}

Basics

Tags

Anything with a % denotes an html tag

%div text here

becomes:

#!/bin/bash
function last_working_day {
if [[ "1" == "$(date +%u)" ]]; then
echo "last friday"
else
echo "yesterday"
fi
}
%a.button(href="http://www.amazon.com/Son-of-Sedonia-ebook/dp/B00AO5ID9Q" data-type='mixpanel' data-name="Overview: Buy on Amazon")
Buy on Amazon
%p
hello this is a really <span class='adjective'></span> doctor.
@itsthatguy
itsthatguy / del.sh
Last active December 30, 2015 10:39
The `rm` command is destructive. Here's a command to move files to the trash, with a prompt, instead of deleting permanently.
# Add this to your .bash_profile, .bashrc, .zshrc or wherever you keep your bash functions and aliases.
del() {
RED="\e[31m"
YELLOW="\e[33m"
WHITE="\e[97m"
if [[ $# -eq 0 ]] ; then
echo -e "Sorry dude, I can't do anything with that. Nothing specified."
else
// for a dark theme use:
"theme": "itg.flat.dark.sublime-theme"
// for a light theme use:
"theme": "itg.flat.light.sublime-theme"
// additional (dark) color options
"theme": "itg.flat.dark.aqua.sublime-theme"
"theme": "itg.flat.dark.blue.sublime-theme"
"theme": "itg.flat.dark.green.sublime-theme"
packetId = 7 # uint8
payloadLength = 24 # sVLQ
assetDigest = "d41d8cd98f00b204e9800998ecf8427e" # uint8[] this is a sha1 of the mods folder, containing only the "mods_go_here" file
claim = 1 # variant
uuidFlag = 0 # uint8[]
playerName = "zombie" # string
species = "glitch" # string
account = "bambam" # string