Skip to content

Instantly share code, notes, and snippets.

@sdaves
sdaves / pytyper_qpython.py
Last active February 26, 2023 02:18
pytyper_qpython - a simple android qpython script to practice typing
# pytyper_qpython - https://unlicense.org/
#
# a simple android qpython script to practice typing
#
# install qpython apk from below, create this script (use Editor), edit words list below
#
# https://github.com/qpython-android/qpython/releases
from androidhelper import Android
import random
@sdaves
sdaves / 3d_printing_with_kossel.md
Last active March 26, 2021 03:56
Kossel 3D Printer Marlin 2.0 Configuration Files

Kossel 3D Printer

Printer

Configuration

This is my configuration for the folgertech kossel delta 3d printer. I am using Marlin 2.0.7.2 firmware on an atmega2560 and a ramps 1.4 board. To setup download the Marlin firmware from github, copy over my Configuration.h file, then upload using the arduino ide.

Build Guide

@sdaves
sdaves / index.html
Last active May 23, 2021 17:00
Securely generate passwords for every service you use based on a shared master password.
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cryptopass Web</title>
<script>
//https://unpkg.com/pbkdf2-hmac@1.0.2/lib/index.browser.bundle.iife.js
@sdaves
sdaves / keybase.md
Created February 11, 2020 15:52
keybase.md

Keybase proof

I hereby claim:

  • I am sdaves on github.
  • I am sdaves (https://keybase.io/sdaves) on keybase.
  • I have a public key ASA9uGGqUQR_ybWFd9ieTsVasLW1E-zaUExoZwwLFuPShgo

To claim this, I am signing this object:

Fundamentals: why state machines?

States. The final frontier. These are the voyages of an enterprising developer. Her eternal mission: to explore strange new techniques, to seek out better ways to engineer for mental models and new design patterns. To boldly go where a few awesome devs have gone before.

So you’ve found our poignant guide to SCXML and surely you’re wondering “Why should I want to go out of my way to use formal state machines?” or something like that. Hopefully this introduction addresses that kind of question.

An example: Nancy’s RPG

The problem

@sdaves
sdaves / manifest.json
Created June 2, 2017 16:25 — forked from ericelliott/manifest.json
Sample manifest.json
{
"name": "My Progressive Web Application",
"short_name": "Progressive",
"start_url": "/?home=true",
"icons": [
{
"src": "/icons/icon36.png",
"sizes": "36x36",
"type": "image/png"
},
@sdaves
sdaves / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-tooltip/core-tooltip.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>