Skip to content

Instantly share code, notes, and snippets.

View dydx's full-sized avatar
🎯
Focusing

Josh Sandlin dydx

🎯
Focusing
View GitHub Profile
@dydx
dydx / parse_all_links.js
Last active December 11, 2020 00:33
A really terrible reply to a question on /r/node
❯ docker run -it ruby:alpine /bin/sh
/ # apk add build-base
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
(1/15) Installing binutils (2.32-r0)
(2/15) Installing libmagic (5.37-r1)
(3/15) Installing file (5.37-r1)
(4/15) Installing isl (0.18-r0)
(5/15) Installing libgomp (8.3.0-r0)
(6/15) Installing libatomic (8.3.0-r0)
### Keybase proof
I hereby claim:
* I am dydx on github.
* I am jpsandlin (https://keybase.io/jpsandlin) on keybase.
* I have a public key ASDMPl37aLQF-PzznNDYPkNOysDEfohlOvVER1HQi6f3ago
To claim this, I am signing this object:
@dydx
dydx / Dokku.md
Created January 14, 2016 21:25
Dokku Stuff
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Todo;
class TodosController extends Controller
{
kill $(ps aux | grep ruby | awk '{ print $2 }')
@dydx
dydx / styles.css
Created March 16, 2015 23:52
Pricing Tables
/*
Theme Name: Parallax Pro Theme
Theme URI: http://my.studiopress.com/themes/parallax/
Description: A mobile responsive and HTML5 theme built for the Genesis Framework.
Author: StudioPress
Author URI: http://www.studiopress.com/
Version: 1.2.1
Tags: black, white, blue, green, orange, pink, one-column, two-columns, responsive-layout, custom-header, custom-menu, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, premise-landing-page
@dydx
dydx / ping_calibrate.c
Created July 18, 2012 21:24
Calibrate and test a Parallax PING))) Sensor
#include <Ping.h>
Ping ping = Ping(12, 0, 0);
boolean is_calibrated = false;
float calibration_distance = 0.00;
float current_distance = 0.00;
int alarm_pin = 13;
// because my IO shield is fubar
// and has H/L mixed
@dydx
dydx / accel_y_axis_led_swap.pde
Created December 10, 2011 22:54
illuminate left or right led with accelerometer tilt
/**
Two LEDs triggered by tilting of accelerometer
along Y axis.
Arduino Diecimila and Memsic 2125
*/
int ledPins[] = {6,7};
int yPin = 10;
int yRaw;
@dydx
dydx / .vimrc
Last active January 31, 2018 18:23
" LAUNCH CONFIG
execute pathogen#infect()
" EDIT VIMRC
nmap ,ev :tabedit $MYVIMRC<cr>
" Auto Commands
augroup autosourcing
autocmd!
autocmd BufWritePost .vimrc source %