This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <NeoPixelBus.h> | |
#include <NeoPixelAnimator.h> | |
const uint16_t PixelCount = 8; // make sure to set this to the number of pixels in your strip | |
const uint8_t PixelPin = 2; // make sure to set this to the correct pin, ignored for Esp8266 | |
const RgbColor CylonEyeColor(HtmlColor(0x7f0000)); | |
NeoPixelBus<NeoGrbFeature, NeoEsp8266Uart800KbpsMethod> strip(PixelCount, PixelPin); | |
NeoPixelAnimator animations(2); // only ever need 2 animations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Could eventually be added to TSD, or to jsforce package root... | |
*/ | |
declare module "jsforce" { | |
type Partial<T> = { | |
[P in keyof T]?: T[P]; | |
}; | |
class Connection { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fn = 100; | |
LENGTH = 0; | |
WIDTH = 1; | |
HEIGHT = 2; | |
box_outer = [150, 50, 16]; | |
wall_thickness = 2; | |
difference_bug_number = 2; | |
stupid_size = [100, 100, 100]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fn = 100; | |
batt = [23, 72, 35]; | |
standoff_spacing = 34; | |
standoff_diameter = 5.4; | |
standoff_radius = standoff_diameter / 2; | |
gate_thickness = 2.0; | |
gate_height = batt[2] / 2; | |
pole_radius = gate_thickness + standoff_radius; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//#include <Hash.h> | |
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
#include <ESP8266mDNS.h> | |
#include <RCSwitch.h> | |
const char* ssid = "Chris's ESP8266"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run this script with Node.js to see it throw. Works fine in browsers for some reason. Maybe an optimisation bug | |
function loop() { | |
var arr = [0]; | |
var i = 0; | |
//eval('(1)'); // ==== UNCOMMENTING THIS MAKES IT WORK | |
while (i < 4101) { // ==== MAKING THIS SMALLER MAKES IT WORK |
NewerOlder