Skip to content

Instantly share code, notes, and snippets.

View refriedchicken's full-sized avatar

Mike Benner refriedchicken

View GitHub Profile
@refriedchicken
refriedchicken / stream_test.ex
Created February 22, 2017 19:03
Streaming Size Check
defmodule StreamTest do
use GenServer
def start_link(opts \\ []) do
GenServer.start_link(__MODULE__, :ok, opts)
end
def init(:ok) do
#url = "http://www.thinkbroadband.com/download/"
#url = "http://download.thinkbroadband.com/5MB.zip"
@refriedchicken
refriedchicken / sdl_controllers.txt
Created June 21, 2016 00:14
SDL Controller File for PS4
050000004c050000c405000000010000,PS4 Controller (Bluetooth),a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,platform:Linux,
@refriedchicken
refriedchicken / gist:ff2542225bc2a21eeed7
Created June 23, 2015 16:53
AuthorityLabs Web Insight JSON
{
_id: "55898a0f27ba831a7f000001",
date_created: "2015-06-23",
redirects: [
{
url: "http://authoritylabs.com/",
status_code: "200"
}
],
results: {
int soil=0;
int rEye = 10; //define right eye as pin10 on the Arduino
int lEye = 11; //define left eye as pin11 on the Arduino
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
pinMode(rEye, OUTPUT); //set right eye for output
pinMode(lEye, OUTPUT); //set left eye for output
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int sensorValue = analogRead(A0);
Serial.println(sensorValue);
}

Keybase proof

I hereby claim:

  • I am refriedchicken on github.
  • I am refriedchicken (https://keybase.io/refriedchicken) on keybase.
  • I have a public key whose fingerprint is BDE0 42F6 689F 465E 5390 DE2F 3859 5C0C 5EC2 0D0F

To claim this, I am signing this object:

@refriedchicken
refriedchicken / google_serp.json
Last active March 4, 2016 14:15
Google Serp
{
// Partner API created fields. These are generated by us. Are not releated to the serp, but are relevant to the request, your account and the system in general
"get_count": 1, // your current get count, unrelated to the serp
"_id": "535a94b520b8fd64af000014", // authoritylabs id
"rank_date": "2014-04-25", // date crawl was requested
"requested_at": "2014-04-25T16:57:11+00:00", // timestamp of the request
"s3_key": "", // if using s3 to store a copy this is the key for your bucket
"data_center": "us", // requested data center (this option is no longer available)
//POST specific data. These are the attributes you sent with the post (or the defaults if none are sent in)
@refriedchicken
refriedchicken / winHTTP
Created June 7, 2012 01:20
WinHTTP (VBA Excel)
Option Explicit
Function GetDataFromURL()
Dim lngTimeout
Dim strUserAgentString
Dim intSslErrorIgnoreFlags
Dim blnEnableRedirects
Dim blnEnableHttpsToHttpRedirects
Dim strHostOverride
Dim strLogin
@refriedchicken
refriedchicken / bing-papi-locales.json
Created April 11, 2012 20:52 — forked from authoritylabs/bing-papi-locales.json
AuthorityLabs Supported Bing Partner API Locales
{
"locales": {
"tl-ph": {
"tld": "",
"description": ""
},
"nl-be": {
"tld": "be",
"description": "Belgium - Dutch"
},