Skip to content

Instantly share code, notes, and snippets.

View schollz's full-sized avatar
🎺

Zack schollz

🎺
View GitHub Profile
@schollz
schollz / LICENSE.txt
Last active August 29, 2015 14:07 — forked from podefr/LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Olivier Scherrer
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
name: cookie dough
operation: mix
time: 5 min
ingrediants:
-
name: whisked eggs
time: 5 min (this inherits everythign from whisked eggs, but changes the time from 2 min to 5 min)
-
name: cream
ingrediants:
@schollz
schollz / Papers.md
Last active September 2, 2015 20:16
@schollz
schollz / thermo.md
Last active October 12, 2015 18:49
  • Reversible: TdS = dQ or sigma_cv = 0

  • Isentropic: dS = 0, or s2-s1 = 0

  • Adiabatic: dQ = 0

    A reversible and adiabatic process is isentropic.

  • Steady state

    Conservation of mass means 0 = Q - W + m_1(h_1 + V^2/2+gz) - m_2(h_2 + V^2/2+gz)

Setup USB drive

First find the disk using

sudo fdisk -l

Its probably named /sda1 or similar. Then make ext4 using

sudo mkfs.ext4 /dev/sda1
@schollz
schollz / bobp-python.md
Created November 8, 2015 04:14 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
PURE CSS
getskeleton.com

To get started with NGINX, first install:

sudo apt-get install nginx

Now you just need to setup a reverse proxy. Say you have a name for your server, example.com but your actual address is ifj.ckd.acj.djx:1239. To make people see that your website is example.com first you need to go to your name service (Namecheap or other) and make sure you have the A field set to ifj.ckd.acj.djx. Do not include the port number here.

Now, on your server, make a new NGINX block

@schollz
schollz / pisphinx.md
Last active November 14, 2018 16:57

This closely follows this but also includes the Pi dependencies:

sudo apt-get install swig oss-compat pulseaudio libpulse-dev automake autoconf libtool bison python-dev

Can't use 8-bit...

My benchmarks

@schollz
schollz / poem3.js
Last active January 19, 2016 19:49
var msg = new SpeechSynthesisUtterance();
var voices = window.speechSynthesis.getVoices();
msg.voice = voices[2]; // Note: some voices don't support altering params
msg.voiceURI = 'native';
msg.volume = 1; // 0 to 1
msg.rate = 0.75; // 0.1 to 10
msg.pitch = 0; //0 to 2
msg.lang = 'en-US';