Skip to content

Instantly share code, notes, and snippets.

🕶
Grok'ing

Lacy Morrow lacymorrow

🕶
Grok'ing
Block or report user

Report or block lacymorrow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View xspf-to-json.js
// uses jquery, but could be rewritten without
$(data).find('track').each(function (i, e) {
// console.log(e);
var tmp;
var loc = (tmp = e.getElementsByTagName('location')[0]) ? tmp.innerHTML : "";
var img = (tmp = e.getElementsByTagName('image')[0]) ? tmp.innerHTML : "";
var inf = (tmp = e.getElementsByTagName('info')[0]) ? tmp.innerHTML : "";
var buy = (tmp = e.getElementsByTagName('buy')[0]) ? tmp.innerHTML : "";
var fav = (tmp = e.getElementsByTagName('favorite')[0]) ? tmp.innerHTML : "";
var tid = (tmp = e.getElementsByTagName('id')[0]) ? tmp.innerHTML : "";
@lacymorrow
lacymorrow / setup.md
Last active Nov 17, 2017 — forked from lazd/Sony Super HAD HS1177 Camera Setup.md
HS1177 Sony Super HAD Camera Setup.md
View setup.md

Cam settings

Before you do anything, perform a factory reset.

##Exposure

Shutter: Auto

Brightness: 55

@lacymorrow
lacymorrow / betaflight-dump
Last active Nov 17, 2017
BetaFlight CLI Commands
View betaflight-dump
set telemetry_inversion=on
set small_angle=180
save
@lacymorrow
lacymorrow / parse-url-params.js
Last active Sep 4, 2018
JS - Parse URL `GET` parameters from and HTTP request
View parse-url-params.js
/* function parseURLParams
* Accepts a http parameter string or grabs the one from the current URL
* Returns a dictionary
* Ex: '?api_key=XYZ&version=2' => { api_key: 'XYZ', version: 2}
*
* query: string | undefined
*/
function parseURLParams (query) {
if(!query)
@lacymorrow
lacymorrow / loop-func.js
Last active Nov 17, 2017
JS - Loop a function call using setTimeout()
View loop-func.js
function doStuff() { return false; }
(function loopFunc() {
doStuff();
//setTimeout(arguments.callee, 100); // callee is deprecated
setTimeout(loopFunc, 100);
})()
@lacymorrow
lacymorrow / util.css
Last active Mar 19, 2019
CSS Code Utilities
View util.css
/* Text smoothing */
body {
font-family: Camphor, Open Sans, Segoe UI, sans-serif;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Nice hover effect
button:hover {
@lacymorrow
lacymorrow / gist:db4f7479db78bc58db8ac2078c38c5dc
Created Dec 14, 2017 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts
View gist:db4f7479db78bc58db8ac2078c38c5dc

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
View .shortcuts
# Determine details about a deleted file
git log -1 -- <file>
@lacymorrow
lacymorrow / inset_input.css
Created Feb 28, 2018 — forked from nrrrdcore/inset_input.css
The Perfect Inset Input CSS
View inset_input.css
input {
height: 34px;
width: 100%;
border-radius: 3px;
border: 1px solid transparent;
border-top: none;
border-bottom: 1px solid #DDD;
box-shadow: inset 0 1px 2px rgba(0,0,0,.39), 0 -1px 1px #FFF, 0 1px 0 #FFF;
}
View Programmer Quotes
“Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration.” — Stan Kelly-Bootle
You can’t perform that action at this time.