Skip to content

Instantly share code, notes, and snippets.

Avatar

Mike Benner refriedchicken

View GitHub Profile
View stream_test.ex
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 Jun 21, 2016
SDL Controller File for PS4
View sdl_controllers.txt
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 Jun 23, 2015
AuthorityLabs Web Insight JSON
View gist:ff2542225bc2a21eeed7
{
_id: "55898a0f27ba831a7f000001",
date_created: "2015-06-23",
redirects: [
{
url: "http://authoritylabs.com/",
status_code: "200"
}
],
results: {
View soil-moisture
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
View pressure-sensor
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);
}
View chip-eye-blink
View keybase.md

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:

View google_serp.json
{
// 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 Jun 7, 2012
WinHTTP (VBA Excel)
View winHTTP
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 Apr 11, 2012 — forked from authoritylabs/bing-papi-locales.json
AuthorityLabs Supported Bing Partner API Locales
View bing-papi-locales.json
{
"locales": {
"tl-ph": {
"tld": "",
"description": ""
},
"nl-be": {
"tld": "be",
"description": "Belgium - Dutch"
},