Skip to content

Instantly share code, notes, and snippets.

View download13's full-sized avatar
🏠
Working from home

Erin Dachtler download13

🏠
Working from home
View GitHub Profile
@download13
download13 / User.settings.json
Created December 21, 2018 18:56
Strapi sample files
{
"connection": "default",
"info": {
"name": "user",
"description": ""
},
"attributes": {
"username": {
"type": "string",
"minLength": 3,
@download13
download13 / index.html
Created May 27, 2018 23:46
hyperapp router test case
<!DOCTYPE html>
<body>
<script src="index.jsx"></script>
</body>

Keybase proof

I hereby claim:

  • I am download13 on github.
  • I am download13 (https://keybase.io/download13) on keybase.
  • I have a public key ASC2prsbB75bU-y2-GUK-ldXfigfpjetwftKyaHcIh8W1Qo

To claim this, I am signing this object:

#include "easypush.h"
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#define WIFI_SSID ""
#define WIFI_KEY ""
#define HOST "easypush.erindachtler.me"
#define PATH "/notify/GI0eafKjLYh3NzuY"
#define LEFT_ENABLE D5
#define L_POS D1
#define L_NEG D2
#define RIGHT_ENABLE D6
#define R_POS D4
#define R_NEG D3
#include <ESP8266WiFiMulti.h>
#include <ESP8266WebServer.h>
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#define WIFI_SSID "yourssid"
#define WIFI_KEY "yourkey"
#define NOTIFY_URL "http://maker.ifttt.com/trigger/<eventname>/with/key/<yourkey>"
#define SECOND 1000
#define QUARTER_SECOND 250
import element from 'virtual-element'; // Using deku
// import React from 'react'; // Switch to this if you are using React
import pathToRegexp from 'path-to-regexp';
export function renderRoutes(path, routes) {
return Object.keys(routes).map(routePath => {
let paramsInfo = [];
let re = pathToRegexp(routePath, paramsInfo);
let paramNames = paramsInfo.map(p => p.name);
package main
import (
"net/http"
"io/ioutil"
"strings"
"strconv"
"math"
"fmt"
)