Skip to content

Instantly share code, notes, and snippets.

View Data-ptr's full-sized avatar

Data*Ptr Data-ptr

View GitHub Profile
@Data-ptr
Data-ptr / WRGB-flashlight.ino
Last active June 10, 2017 02:57
Building a White, Red, Green, Blue Flashlight with NeoPixels and an ATTiny/85
// +---+
// | |
// | |
// |Neo|
// | |
// | |
// +---+
// | |
// | |
// |Pix|
anonymous
anonymous / index.html
Created December 29, 2015 22:24
JS Bin // source http://jsbin.com/qigeveqefa
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.string/3.2.2/underscore.string.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
anonymous
anonymous / index.html
Created December 12, 2015 19:23
Geo Bin // source http://jsbin.com/voqavokabe
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Geo Bin</title>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAlfN-8CfofBQvgWKlI1ISwbL5oxp7bNEs&callback=initGeo" async defer></script>
</head>
<body>
@windytan
windytan / whistle-encode.pl
Last active March 22, 2025 00:30
whistle encoder
#!/usr/bin/perl
# windytan's pea whistle encoder
# http://www.windytan.com/2015/10/pea-whistle-steganography.html
# (c) 2015 Oona Räisänen
# ISC license
use warnings;
use strict;
my $data = $ARGV[0] // "OHAI!";
anonymous
anonymous / protocol
Created June 3, 2013 06:59
Sensor | Address | Data Min | Data Max | Function | Sample
=============================================================================================================================
Accel Enrichment 0x1D 0x01 == 0% 0xFF == 100% y = 100(x/255) %
Coolant Temp 0x07 0x01 == 307deg F 0xFF == -62deg F y = -1.45x + 308 deg F
Engine Speed 0x21 0x01 == 31 0xFF == 7969 y = 31.25x rpm
Fuel Trim High 0x0E 0x01 == 1% 0xFF == 199% y = .78x %
Fuel Trim Low 0x0C 0x01 == 1% 0xFF == 199% y = .78x %
Fuel Trim Middle 0x0D 0x01 == 1% 0xFF == 199% y = .78x %
Injector Pulse Width 0x29 0x01 == .256ms 0xFF == 65.3ms y = .256x ms
Oxygen Feedback Trim 0x0F 0x01 == 1% 0xFF == 199% y = .78x %
@csanz
csanz / encrypt_decrypt.js
Created August 30, 2011 16:06
Simple String Encryption & Decryption with Node.js
function encrypt(text){
var cipher = crypto.createCipher('aes-256-cbc','d6F3Efeq')
var crypted = cipher.update(text,'utf8','hex')
crypted += cipher.final('hex');
return crypted;
}
function decrypt(text){
var decipher = crypto.createDecipher('aes-256-cbc','d6F3Efeq')
var dec = decipher.update(text,'hex','utf8')