Skip to content

Instantly share code, notes, and snippets.

View davidsturgeon's full-sized avatar
🎯
Focusing

David Sturgeon davidsturgeon

🎯
Focusing
View GitHub Profile
var domains = [
{name: "loopnet.com", class: "loopnet"},
{name: "cityfeet.com", class: "cityfeet"},
{name: "showcase.com", class: "showcase"},
{name: "landandfarm.com", class: "landandfarm"},
{name: "landsofamerica.com", class: "landsofamerica"}
{name: "bizbuysell.com", class: "bizbuysell"}
];
@davidsturgeon
davidsturgeon / SEOResponsive.css
Last active February 22, 2016 21:57
LoopNet Seo Pages Responsive Hack
/* To find overflows */
/* * { border: 1px solid red; } */
.maincontent,
.Footer,
.site-header nav,
.SEOHeader {
max-width: 960px;
width: auto!important;
@davidsturgeon
davidsturgeon / kindleCopy.js
Created September 17, 2015 18:28
copy text of selected node in kindle cloud reader clipboard
//copy text of selected node in kindle cloud reader clipboard
var mystring = ''; for(var i= 0; i<$0.childNodes.length;i++){ mystring += ($0.childNodes[i].innerHTML != undefined ? $0.childNodes[i].innerHTML : ' ');}; copy(mystring);
@davidsturgeon
davidsturgeon / PulseThenOff.js
Created June 24, 2014 22:27
Code Used to Pulse LED then turn off. Currently Not working.
//Supposed to have the led pulse then 5 seconds later turn off
//The LED stops pulsing after 5 seconds but does not turn off.
//Dropbox Video Link https://www.dropbox.com/s/8v0be9t1ajmgbja/IMG_2106.MOV
var five = require('johnny-five')
var board
var red
board = new five.Board()
board.on('ready', function() {
@davidsturgeon
davidsturgeon / PrettifyJson TextExpander
Created April 4, 2014 17:20
Simple Shell Script to Prettify JSON in Text Expander
#!/usr/local/bin/node
console.log(JSON.stringify(%clipboard, null, '\t'));