Skip to content

Instantly share code, notes, and snippets.

View snodgrass23's full-sized avatar

Jim Snodgrass snodgrass23

  • North Carolina
View GitHub Profile
@snodgrass23
snodgrass23 / diff.txt
Created April 22, 2020 18:22
Talon F7 v2 diff
# version
# Betaflight / STM32F7X2 (S7X2) 4.1.5 Mar 16 2020 / 05:21:46 (d4e74e39c) MSP API: 1.42
# manufacturer_id: CLRA board_name: CLRACINGF7 custom defaults: YES
# start the command batch
batch start
board_name CLRACINGF7
manufacturer_id CLRA
@snodgrass23
snodgrass23 / script.md
Last active February 20, 2018 00:33
SouthEastFPV Sprint Ultralight Frame Video

INTRODUCTION

CAMERA SHOWING ROOM AND JIM SPEAKING DIRECTLY TO CAMERA WITH BUILT FRAME

JIM: Today, we're going to be looking at the SouthEastFPV Sprint Ultralight frame. As the name says, this is an extremely lightweight frame meant for racing with a focus on durability and overall frame stiffness.

shot switches to frame kit in bag

OVERHEAD SHOT OF FRAME KIT CONTENTS ONE AT A TIME ON TABLE

  • bottom plate
@snodgrass23
snodgrass23 / recurly_js_config.js
Created June 14, 2016 17:16
example for setting cvv required in RecurlyJS
recurly.configure({
publicKey: 'PUBLIC_KEY',
required: ['cvv']
});
{
"AB": {
"region": "AB",
"taxName": "ALBERTA PST",
"taxTypes": [
"GST"
],
"rates": {
"combined": "0.05",
"country": "0.05",
@snodgrass23
snodgrass23 / gist:11044849
Created April 18, 2014 13:42
newton notes
  • docs don't mention the html needs (example needs canvas element)
  • order matters for some methods, but beginning of docs doesn't make it clear until looking at a full demo
  • first example doesn't work with viewport method which I added earlier by following the docs in order (looks like none of examples use viewport after first mentioning it).
  • explain linear force/gravity example better. maybe define vars first with names explaining what those numbers mean or just use inline comment like in many other examples
  • better code docs for inline autocompletion?
  • spring example doesn't work (SpringConstraint not defined)
  • many numbers used (x,y, etc) don't work with one another well when working through the docs in order
@snodgrass23
snodgrass23 / app.js
Created February 20, 2014 18:30
stream server
http.createServer(function (req, res) {
var buffer = '';
req
.on('data', function(buf) {
buffer += buf.toString();
})
.on('end', function() {
if (!buffer) return res.end('Jimbot with roles');
var data = JSON.parse(qs.parse(buffer).data);
console.log("\n............ turn : ", data.state.turnsElapsed + 1, '...............\n');
@snodgrass23
snodgrass23 / gameTurns
Created January 31, 2014 05:05
gameTurns
[
{
"grid": "................................................................................................................................................................................................................................................................................................................................................................................................................",
"p2": {
"spawn": 378,
"energy": 1
},
"p1": {
"spawn": 21,
"energy": 1
@snodgrass23
snodgrass23 / gist:7270490
Created November 1, 2013 19:19
bash profile
PROMPT_COMMAND='DIR=`pwd|sed -e "s!$HOME!~!"`; if [ ${#DIR} -gt 30 ]; then CurDir=${DIR:0:12}...${DIR:${#DIR}-15}; else CurDir=$DIR; fi'
PS1="[\$CurDir] \$ "
alias c="mate ~/.bash_profile"
alias r=". ~/.bash_profile"
alias l="ls -la"
alias push="git push origin master"
alias pull="git pull origin master"
alias commit="git add .; git commit -m"
@snodgrass23
snodgrass23 / gist:5360536
Created April 11, 2013 03:34
Example of Heroku email hooks adding escapes to all backslashes (in this case nullifying new line characters).
{{user}} deployed2 {{head}} to {{url}}\\\\\\\\r\\\\\\\\n\\\\\\\\r\\\\\\\\n{{git_log}}
@snodgrass23
snodgrass23 / node_speed_test.js
Last active December 15, 2015 00:29
speed test comparisons for Node and Ruby
function getRands(i) {
var r = [];
while (i--) {
r[i] = Math.floor(Math.random() * 5);
}
return r;
}
function findMatchScore(profileDimensions, verseDimensions) {
var i = profileDimensions.length;