Skip to content

Instantly share code, notes, and snippets.

Andrew Dupont savetheclocktower

Block or report user

Report or block savetheclocktower

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@igrr
igrr / ota_server.py
Created Jun 11, 2015
ESP8266 Arduino OTA test script
View ota_server.py
#!/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 Jun 11, 2015
ESP8266 Arduino OTA example v1
View OTATest.ino
#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 Feb 17, 2020
Shortcut for Syntax Highlighting in Keynote
View z-automator.png
@BrendanEich
BrendanEich / minimalist-classes.js
Created Nov 1, 2011 — forked from jashkenas/minimalist-classes.js
less minimalism, richer leather
View minimalist-classes.js
// 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
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
View ideas.js
( ( <argument-list> ) <expression> | <block> )
var identity = (( x ) {
x; // with tail calls
});
var f = (( a, b, c ) {
// a, b, c
});
@mislav
mislav / builder.png
Created Feb 7, 2011
Reloads a specific Safari extension in development
View 1_open.rb
class Fixnum
def seconds
self
end
def minutes
self * 60
end
def hours
You can’t perform that action at this time.