Skip to content

Instantly share code, notes, and snippets.

April 6, 2022

Potts first guess will be CHODE

April 7, 2022

Potts first guess will not be CHODE or TAINT. But maybe TAINT CHAFE F****

April 8, 2022

{
"Working Directory" : "\/Users\/montag",
"Prompt Before Closing 2" : 0,
"Selected Text Color" : {
"Green Component" : 1,
"Red Component" : 1,
"Blue Component" : 1
},
"Rows" : 25,
"Ansi 11 Color" : {
# Extended history
export HISTFILESIZE=90000
export HISTSIZE=90000
export PROMPT_COMMAND='history -a'
# Don't log duplicates, and ignore commands that start with a space
export HISTCONTROL=erasedupes:ignorespace
# Show a timestamp
export HISTTIMEFORMAT='%Y-%m-%d %H:%M '
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
if [ -f ~/.profile ]; then
source ~/.profile
fi
# Bash completion - March 30, 2018
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
@mmontag
mmontag / nes_noise_voice.cpp
Last active March 15, 2020 09:13
NES noise channel
class NoiseVoice {
// Invariant stuff
static const int fs = 44100; // sample rate
static const int ntsc = 3579545; // ntsc clock rate
static const int buffer[32767]; // fill randomly with 0s and 1s
static const int periods[] = { 4068, 2034, 1016, 762, ... }; // from nesdev wiki
int loop = 93; // or 32767 :)
float timestep; // can be a fraction less than 1
#!/usr/bin/env node
var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
 res.end('Hello World\n');

hello there

{
  "foo": <bar>
}
<!DOCTYPE html>
<html lang="en" class="no-css3-filters no-focus-outline">
<head>
<meta charset="utf-8">
<title>Green Albums on Spotify
</title>
<meta name="google" value="notranslate">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-itunes-app" content="app-id=324684580, app-argument=https://open.spotify.com/user/ivionday/playlist/4hPVX91Wwwb80DXhht8kTU, affiliate-data=ct=Open&pt=54907">
<meta property="og:site_name" content="Spotify">
<!DOCTYPE html><html lang="en" class="no-css3-filters no-focus-outline"><head><meta charset="utf-8"><title>Green Albums on Spotify</title><meta name="google" value="notranslate"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><meta name="apple-itunes-app" content="app-id=324684580, app-argument=https://open.spotify.com/user/ivionday/playlist/4hPVX91Wwwb80DXhht8kTU, affiliate-data=ct=Open&pt=54907"><meta property="og:site_name" content="Spotify"><meta property="fb:app_id" content="134519659678"><meta property="description" content="x"><meta property="og:title" content="Green Albums, a playlist by Matt Montag on Spotify"><meta property="og:description" content="x"><meta property="og:url" content="https://open.spotify.com/user/ivionday/playlist/4hPVX91Wwwb80DXhht8kTU"><meta property="og:image" content="http://mosaic.scdn.co/640/79035af1d049e3ff86c9e29151c93c5370542ab317b0de92c9c7a86bc8de3112a5a6d91b4ced03cdbd2e4db75439df5c551d991bedcaf442091289cf7aca2ad7a480daafc9a4beb7cb2d6b
<!DOCTYPE html><html lang="en" class="no-css3-filters no-focus-outline"><head><meta charset="utf-8"><title>Green Albums on Spotify</title><meta name="google" value="notranslate"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><meta name="apple-itunes-app" content="app-id=324684580, app-argument=https://open.spotify.com/user/ivionday/playlist/4hPVX91Wwwb80DXhht8kTU, affiliate-data=ct=Open&pt=54907"><meta property="og:site_name" content="Spotify"><meta property="fb:app_id" content="134519659678"><meta property="description" content="x"><meta property="og:title" content="Green Albums, a playlist by Matt Montag on Spotify"><meta property="og:description" content="x"><meta property="og:url" content="https://open.spotify.com/user/ivionday/playlist/4hPVX91Wwwb80DXhht8kTU"><meta property="og:image" content="http://mosaic.scdn.co/640/79035af1d049e3ff86c9e29151c93c5370542ab317b0de92c9c7a86bc8de3112a5a6d91b4ced03cdbd2e4db75439df5c551d991bedcaf442091289cf7aca2ad7a480daafc9a4beb7cb2d6b