Skip to content

Instantly share code, notes, and snippets.

View contolini's full-sized avatar
🐛
call me

Chris Contolini contolini

🐛
call me
View GitHub Profile
@contolini
contolini / beginners-guide.md
Last active August 2, 2021 21:01
Beginner's guide to IoT (Internet of Things) and the ESP8266

Beginner's guide to building IoT devices

The gist

Ever heard of an Arduino? It's a $35 microcontroller that lets you write code that interacts with motors and lights and IRL stuff. Well, there's a $2 version that has all the same features and is the size of a postage stamp. It's call the ESP8266.

The ESP8266

ESP8266 is an inexpensive wifi-enabled SoC made by the company Espressif. It was released in 2014 with very little documentation but its low cost motivated hardware hackers around the world to explore and document the module. Online communities formed to discuss the chip and how to build with it.

@contolini
contolini / opm.json
Last active September 7, 2016 16:53
Historical OPM operating statuses by date
[
{
"year": 1994,
"month": 1,
"day": 2,
"status": "open",
"msg": "Open"
},
{
"year": 1994,
#!/usr/bin/env bash# move to working dir.
cd /tmp
echo "Installing EPEL"
if [ ! -e /usr/local/src/epel-release-6-8.noarch.rpm ]; then
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
mv -n epel-release-6-8.noarch.rpm //usr/local/src
rpm -ivh /usr/local/src/epel-release-6-8.noarch.rpm
if [ $? -ne 0 ]; then
var fs = require('fs');
var stream = fs.createWriteStream('grid.json');
var ymin = 43.59630591596548
var xmin = -124.34326171874999
var ymax = 47.502358951968574
var xmax = -121.04736328125
var ymod = 0.011
var xmod = 0.02
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
( •_•)
( •_•)>⌐■-■
(⌐■_■)
@contolini
contolini / sample.usage.md
Last active May 13, 2016 17:29
usage.md format

Core

CF-Core acts as the backbone for Capital Framework. It's made up of four child components cf-vars, cf-media-queries, cf-utilities, and cf-base.

Vars

Theme variables for setting the color and sizes throughout the project. Overwrite them in your own project by duplicating the variable @key: value.

Ex. to set your base font size, add @base-font-size-px: 17px; to your project.

@contolini
contolini / index.js
Created April 19, 2016 21:23
requirebin sketch
var Rlite = require('rlite-router');
@contolini
contolini / index.js
Created April 19, 2016 21:22
requirebin sketch
var Rlite = require('rlite-router');
var r = Rlite();
r.add('', function (rd) {
console.log(rd);
});
// Hash-based routing
function processHash() {
# Description:
# Add or remove Hubot from Mattermost rooms.
#
# Author:
# contolini
fs = require 'fs';
path = require 'path';
envFile = path.join __dirname, '../', '.env'