Skip to content

Instantly share code, notes, and snippets.

View jshaw's full-sized avatar
🤖
👨‍🎨 👨‍💻

Jordan Shaw jshaw

🤖
👨‍🎨 👨‍💻
View GitHub Profile
@jshaw
jshaw / .bashrc
Last active October 22, 2017 23:51
Aliases used in my .bashrc file / tmux.conf tmux.conf references from http://robots.thoughtbot.com/post/2641409235/a-tmux-crash-course
# GIT
alias gs='git status'
alias gpl='git pull'
alias gc='git commit'
alias gp='git push'
alias ga='git add'
# GRUNT
alias gw='grunt watch --force'
alias gb='grunt build --force'

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@jshaw
jshaw / vim-reference
Created April 3, 2013 22:51
Reference for VIM key commands
http://stackoverflow.com/questions/4556184/vim-move-window-left-right
http://www.worldtimzone.com/res/vi.html
@jshaw
jshaw / django-url-in-transblock
Created April 3, 2013 17:33
Django, having a url tag inside of a trans tag or transblock tag....
{%url 'nominations-form' as nomination_form %}
{% blocktrans %}
<p>Be the first to <a href="{{ nomination_form }}">nominate your community.</a></p>
{% endblocktrans %}
@jshaw
jshaw / byobuCommands
Last active May 26, 2024 17:26
Byobu Commands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window

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
@jshaw
jshaw / CSS Setup
Created March 8, 2013 19:37
Optimized image swapping. jQuery required
.button {
color: blue;
text-decoration: underline;
cursor: pointer;
}
#img1,
#img2 {
float: left;
margin: 5px;
}
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<title>Deferred</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
</head>
@jshaw
jshaw / fb-app-request-custom-filter.js
Created November 30, 2012 17:21
FB App request with custom filter for ID
https://apps.facebook.com/fbrelll/fb.ui/apprequests
document.getElementById('send-to-many').onclick = function() {
FB.ui({
method: 'apprequests',
filters: [{name: 'Coffee Lovers', user_ids: [UID,UID,UID,UID]}],
message: 'You should learn more about the Platform.'
}, Log.info.bind('send-to-many callback'));
}
@jshaw
jshaw / amigo-radio.html
Created November 16, 2012 19:29
Radio styles for a form
<!--
HTML UPDATES
Where there are input values for the amigo animal type remove the JS that styleizes the radio buttons so we just have straight labels and inputs.
Make the output of the radio buttons resemble what is below. A wrapper and than label, input for that animal.
Add some new classes. I added the class amigo-type and to the wrapper div, animal-label class to the label elements inside and animal-input class to the input radio buttons.
-->