Skip to content

Instantly share code, notes, and snippets.

View Neurogami's full-sized avatar

Neurogami Neurogami

View GitHub Profile
FALAFEL
1 large sweet potato, cooked, flesh scooped out and mashed (about 1 cup, or 245 g)
1½ cups (250 g) cooked chickpeas, or 1 (15-oz, or 425-g) can, drained and rinsed
1 clove garlic, chopped
½ cup (15 g) loosely packed fresh parsley
¼ cup (30 g) chickpea flour
1 teaspoon ground flaxseed
1 teaspoon ground cumin
½ teaspoon smoked paprika
½ teaspoon salt
@Neurogami
Neurogami / wapo_siginin_page.html
Created September 24, 2019 19:54
WaPo Sign-in page
<!DOCTYPE html><html lang="en"><head>
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Sign in to The Washington Post</title>
<link rel="preload" as="script" href="https://www.washingtonpost.com/subscribe/signin/client.js?v=1.2.83">
<style>
html {
position: relative;
min-height: 100%;
@Neurogami
Neurogami / one-tweet.xml
Created January 17, 2019 17:17
Markup for a single tweet
<div>
<div class="rn-1oszu61 rn-my5ep6 rn-qklmqi rn-1efd50x rn-14skgim rn-rull8r rn-mm0ijv rn-13yce4e rn-fnigne rn-gxnn5r rn-deolkf rn-1adg3ll rn-eqz5dr rn-1mnahxq rn-61z16t rn-p1pxzi rn-11wrixw rn-ifefl9 rn-bcqeeo rn-wk8lta rn-9aemit rn-1mdbw0j rn-gy4na3 rn-bnwqim rn-1lgpqti">
<div class="rn-1oszu61 rn-1efd50x rn-14skgim rn-rull8r rn-mm0ijv rn-13yce4e rn-fnigne rn-ndvcnb rn-gxnn5r rn-deolkf rn-1loqt21 rn-6koalj rn-1qe8dj5 rn-1mlwlqe rn-eqz5dr rn-1mnahxq rn-61z16t rn-p1pxzi rn-11wrixw rn-ifefl9 rn-bcqeeo rn-wk8lta rn-9aemit rn-1mdbw0j rn-gy4na3 rn-bnwqim rn-o7ynqc rn-1j63xyz rn-1lgpqti">
<div><article role="article" data-focusable="true" tabindex="0" class="rn-1oszu61 rn-1efd50x rn-14skgim rn-rull8r rn-mm0ijv rn-13yce4e rn-fnigne rn-ndvcnb rn-gxnn5r rn-deolkf rn-6koalj rn-1qe8dj5 rn-1mlwlqe rn-eqz5dr rn-1mnahxq rn-61z16t rn-p1pxzi rn-11wrixw rn-ifefl9 rn-bcqeeo rn-1k3wbuw rn-1qfoi16 rn-l4ido4 rn-1hfyk0a rn-bnwqim rn-1lgpqti">
<div class="rn-1oszu61 rn-1efd50x rn-14skgim rn-rull8r rn-mm0ij
@Neurogami
Neurogami / email.txt
Last active November 16, 2018 04:54
Body of email that had almost zero readable content. All this to send me an image of text.
--cdf82e78-582d-4a55-9037-dacf81ae37d3
Content-Type: text/plain; charset = "utf-8"
Content-Transfer-Encoding: quoted-printable
[1]=0A[2][3]=0A[4]=0A[5][6][7][8]=0A=0AReferences=0A=0A1. http://www.akaipr=
o.com/=0A2. http://www.akaipro.com/pages/mpc-2.3-desktop-software-and-firmw=
are-update=0A3. http://www.akaipro.com/products/software/mpc-software=0A4. =
http://www.akaipro.com/pages/mpc-2.3-desktop-software-and-firmware-update=
=0A5. https://www.facebook.com/AkaiPro/=0A6. https://twitter.com/Akai_Pro=
=0A7. https://www.instagram.com/akai_pro/=0A8. https://www.youtube.com/user=
@Neurogami
Neurogami / plantext.txt
Created April 1, 2018 23:10
Bookmarklet version of javascript to get plaintext of Amazon Cloud Reader
Original code is from https://gist.github.com/aaronshaf/1346968
The instructions were to open a dev console and paste in the script.
A nicer way is to make it a bookmarklet.
1. Create a new bookmark in our browser. You should be able to edit the name and URL
2. Give it a decent name (e.g. "amz cloud plaintext")
3. Paste the following as the URL (make it all one line):
@Neurogami
Neurogami / pattern_looping_osc_handlers.lua
Last active August 22, 2017 05:22
Examples of custom OSC handlers for use in GlobalOscActions.lua (Renoise)
-- Assumes messages are sent from TouchOSC buttons and include extraneous values
-- The values are parsed by Renise but ignore by the handler code
local global_current_set_pattern = 1
local function set_pattern_loop(pattern_num)
renoise.song().transport:set_scheduled_sequence(pattern_num)
renoise.song().transport.loop_pattern = true
end
add_global_action {
@Neurogami
Neurogami / Convert audio to video with ffmpeg - examples.md
Created July 2, 2017 23:17 — forked from CannonballSkippy/Convert audio to video with ffmpeg - examples.md
A list of examples on how you can use filters to make visual representations of audio using ffmpeg

Convert audio to video with ffmpeg - examples

ffmpeg -i input.mp3 -filter_complex "[0:a]avectorscope=s=1920x1080,format=yuv420p[v]" -map "[v]" -map 0:a avectorscope.mp4
ffmpeg -i input.mp3 -filter_complex "[0:a]showcqt=s=1920x1080,format=yuv420p[v]" -map "[v]" -map 0:a showcqt.mp4
ffmpeg -i input.mp3 -filter_complex "[0:a]ahistogram=s=1920x1080,format=yuv420p[v]" -map "[v]" -map 0:a ahistogram.mp4
@Neurogami
Neurogami / what-version-is-this-xrns.rb
Last active March 30, 2017 16:01
Ruby script to extract Renoise version info from xrns file
#!/usr/bin/env ruby
require 'fileutils'
=begin
An xrns file is just a zip file with a special file extension.
That archive holds a number of files. One of these is Song.xml.
This XML has a root element with an attribute named 'doc_version'
@Neurogami
Neurogami / simple-demo.xml
Created November 25, 2016 21:31
TWO project file
<?xml version="1.0" encoding="UTF-8"?>
<Mediator-Model Version="1" User="" TWO_Version="0.9.2">
<Model V="5" ID="TWO">
<Composite V="1" ID="Locations">
<OSC_Location V="2" ID="demo_location_0" Description="Demo sketch 0" Root_OSC_Address=""
Outgoing_IP="127.0.0.1" Outgoing_Port="7000" Incoming_Port="1000"/>
<OSC_Location V="2" ID="demo_location_1" Description="Location of the secnd demo sketch"
Root_OSC_Address="" Outgoing_IP="127.0.0.1" Outgoing_Port="7001"
Incoming_Port="1001"/>
# This is based on code copied from https://bugs.ruby-lang.org/issues/12323
# to replace non-working example given in the rdocs for the OptionParser class
require 'optparse'
require 'optparse/time'
require 'ostruct'
require 'pp'
class OptparseExample
Version = '1.0.1'