Skip to content

Instantly share code, notes, and snippets.

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

Jordan Shaw jshaw

🤖
👨‍🎨 👨‍💻
View GitHub Profile
@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

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 / photon_subscribe_example.ino
Created November 23, 2015 19:31
photon_subscribe_example
int ledPin = D2;
int ledPin7 = D7;
int newLike = 0;
int locationChange = 0;
int i = 0;
unsigned long previousTime;
int interval = 5000;
@jshaw
jshaw / particle_iceland_bike_example
Created November 20, 2015 20:23
particle iceland bike example
// http://apis.is/cyclecounter
// particle webhook GET ice_bikes "http://apis.is/cyclecounter"
// Jordans-MacBook-Pro:~ jshaw$ particle webhook GET ice_bikes "http://apis.is/cyclecounter"
// Sending webhook request { uri: 'https://api.particle.io/v1/webhooks',
// method: 'POST',
// json:
// { event: 'ice_bikes',
// url: 'http://apis.is/cyclecounter',
// deviceid: undefined,
@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.
-->
@jshaw
jshaw / glossary.json
Created November 14, 2012 21:30
JSON Glossary Structure
var terms = {
"terms" : {
Lorem : {
"term": "Lorem",
"definition" : "Lorem: Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
},
ullamco : {
"term": "ullamco",
"definition" : "ullamco: Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
},
@jshaw
jshaw / index.html
Created November 14, 2012 18:14 — forked from anonymous/index.html
A CodePen by trickeedickee. CSS3 AT-AT - A pure CSS3 experiment I created. I could do with reducing the number of divs used to create the body parts. I also need to streamline the animations.
<div id="main">
<div id="head-neck-body">
<div id="head-neck">
<div id="head">
<div class="shape02"></div>
<div class="shape0"></div>
<div class="shape01"></div>