Skip to content

Instantly share code, notes, and snippets.

#include <util/delay.h>
#include <oled.h>
#include <tri.h>
void setup()
{
//Serial.begin( 115200 );
oled_init();
_delay_ms( 100 ); // Wait for the OLED display to come up.
@scottjenson
scottjenson / candy.ino
Created October 19, 2016 17:08
RFDuino arduino sketch to reply to a web bluetooth request
/*
CandyMachine_rfduino.ino
Arduino sketch that turns the vending machine into an Eddystone-URL beacon
and also interfaces with the attached relay shield in order to dispense candy
*/
#include <SPI.h>
#include <EddystoneBeacon.h> // from BLEPeripheral by Sandeep Mistry
@MightyPork
MightyPork / a.c
Last active January 13, 2017 05:28
mmm
#define GPIO_RGB 5
// this is used in a lot of places because I was lazy to type the long thing.
// may be it's not even needed anymore, idk
#define FLASH_FN ICACHE_FLASH_ATTR
void FLASH_FN ioInit() {
// GPIO5 - RGB output
PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO5_U, FUNC_GPIO5);
@aquaxp
aquaxp / macOS_Airport.md
Last active May 22, 2017 00:47
OS X Airport

macOS Airport

macOS WiFi Wireless Scanner

If you are looking for a basic WiFi scanner for macOS then the command line airport utility may fit your needs. The utility is located at: /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport

Typing the above command path can be avoided by creating a symbolic link to the command in /user/sbin/ by copying and pasting below into a terminal window.

`sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport`

This will allow you to simply type airport in the terminal window to execute the command.

@rickscherer
rickscherer / download-tadpoles-media.js
Last active April 16, 2019 23:48 — forked from yongheng/download-tadpoles-media.js
Download Tadpoles Media
// Step 1: Open https://www.tadpoles.com/parents and log in;
// Step 2: Select the 'all' tab (IMPORTANT STEP);
// Step 3: Select a month;
// Step 4: Open the JavaScript console in your browser (e.g., press
// Command + Alt + i in Google Chrome on a Mac, or press
// Ctrl + Shift + i in Google Chrome in Windows);
// Step 5: Copy this entire code snippet, paste it to the JavaScript console,
// and press Enter to run; all photos and videos will be downloaded
// to your default Downloads folder and they should have proper
// file names.
@yongheng
yongheng / download-tadpoles-media.js
Last active December 16, 2019 22:45
Download Tadpoles Media
// Step 1: Open https://www.tadpoles.com/parents and log in;
// Step 2: Select the 'all' tab (IMPORTANT STEP);
// Step 3: Select a month;
// Step 4: Open the JavaScript console in your browser (e.g., press
// Command + Alt + i in Google Chrome on a Mac, or press
// Ctrl + Shift + i in Google Chrome in Windows);
// Step 5: Copy this entire code snippet, paste it to the JavaScript console,
// and press Enter to run; all photos and videos will be downloaded
// to your default Downloads folder and they should have proper
// file names.
@austinglaser
austinglaser / LICENSE
Last active January 5, 2020 02:35
WS2812 Driver under ChibiOS
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
@darconeous
darconeous / Curve25519-Curve448-Terminology.md
Last active February 9, 2020 00:41
Curve25519/Curve448 Terminology

Curve25519/Curve448 Terminology

Curve25519: A well-known Montgomery curve designed for ECC at a 128-bit security level.

X25519: The name of the scalar-point multiplication function for points on Curve25519 when performing ECDH. It is also commonly used as a shorthand for ECDH-using-Curve25519.

EdDSA:

@jrr
jrr / smallcam.user.js
Last active May 11, 2020 01:00
Nest Cam Enhancements
// ==UserScript==
// @name Nest Cam Smallerizer
// @namespace https://github.com/jrr
// @version 0.2
// @description make camera more usable in small windows
// @author jrr
// @match https://home.nest.com/camera/*
// @match https://home.nest.com/home/*
// @grant none
// ==/UserScript==
# =======================================
# OS X — ONE CLICK — EJECT ALL DISKS
# =======================================
# Open Script Editor on OS X
# Copy and paste this file in
# Pre-High Sierra: Save As > Application
# High Sierra: Export > File Format > Application
# Name it "Eject All Disks"
# Drag created application to Dock
# Now you can eject all external disks with one click from Dock