Skip to content

Instantly share code, notes, and snippets.

View savetheclocktower's full-sized avatar

Andrew Dupont savetheclocktower

View GitHub Profile
@igrr
igrr / ota_server.py
Created June 11, 2015 15:31
ESP8266 Arduino OTA test script
#!/usr/bin/python
#
# this script will push an OTA update to the ESP
#
# use it like: python ota_server.py <ESP_IP_address> <sketch.bin>
#
# on the ESP side you need code like this: https://gist.github.com/igrr/43d5c52328e955bb6b09 to handle the update
#
import socket
@igrr
igrr / OTATest.ino
Created June 11, 2015 15:24
ESP8266 Arduino OTA example v1
#include <ESP8266WiFi.h>
#include <WiFiUDP.h>
const char* ssid = "..........";
const char* password = "...........";
WiFiUDP listener;
void setup() {
Serial.begin(115200);
@lrytz
lrytz / z-automator.png
Last active February 4, 2023 21:20
Shortcut for Syntax Highlighting in Keynote
@BrendanEich
BrendanEich / minimalist-classes.js
Created November 1, 2011 22:48 — forked from jashkenas/minimalist-classes.js
less minimalism, richer leather
// A response to jashkenas's fine proposal for minimalist JavaScript classes.
// Harmony always stipulated classes as sugar, so indeed we are keeping current
// JavaScript prototype semantics, and classes would only add a syntactic form
// that can desugar to ES5. This is mostly the same assumption that Jeremy
// chose, but I've stipulated ES5 and used a few accepted ES.next extensions.
// Where I part company is on reusing the object literal. It is not the syntax
// most classy programmers expect, coming from other languages. It has annoying
// and alien overhead, namely colons and commas. For JS community members who
@rwaldron
rwaldron / ideas.js
Created May 8, 2011 16:51
Thinking outloud, exploring ideas that might compete with # or -> as function shorthands. Recreating examples form http://wiki.ecmascript.org/doku.php?id=strawman:arrow_function_syntax
( ( <argument-list> ) <expression> | <block> )
var identity = (( x ) {
x; // with tail calls
});
var f = (( a, b, c ) {
// a, b, c
});
@mislav
mislav / builder.png
Created February 7, 2011 13:05
Reloads a specific Safari extension in development
builder.png
class Fixnum
def seconds
self
end
def minutes
self * 60
end
def hours