Skip to content

Instantly share code, notes, and snippets.

Neurogami Neurogami

Block or report user

Report or block Neurogami

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Neurogami
Neurogami / plantext.txt
Created Apr 1, 2018
Bookmarklet version of javascript to get plaintext of Amazon Cloud Reader
View plantext.txt
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):
View wapo_siginin_page.html
<!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%;
View opt-parse-complete-example.rb
# 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'
@Neurogami
Neurogami / one-tweet.xml
Created Jan 17, 2019
Markup for a single tweet
View one-tweet.xml
<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
View Configgy.pde
class Configgy {
String[] configTextLines;
JSONObject json;
Configgy(String configFile) {
try {
configTextLines = getDataLines(loadStrings(configFile));
@Neurogami
Neurogami / email.txt
Last active Nov 16, 2018
Body of email that had almost zero readable content. All this to send me an image of text.
View email.txt
--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 / OscEsp8266.ino
Created Sep 29, 2015
Simple OSC lop using ESP8266 and Arduino IDE
View OscEsp8266.ino
#include <OSCMessage.h>
#include <WiFiUdp.h>
WiFiUDP Udp; // A UDP instance to let us send and receive packets over UDP
const IPAddress outIp(192,168,0,99); // remote IP of your computer
const unsigned int outPort = 9900; // remote port to receive OSC
const unsigned int localPort = 9901; // local port to listen for OSC packets (actually not used for sending)
#include <ESP8266WiFi.h>
@Neurogami
Neurogami / pattern_looping_osc_handlers.lua
Last active Aug 22, 2017
Examples of custom OSC handlers for use in GlobalOscActions.lua (Renoise)
View pattern_looping_osc_handlers.lua
-- 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 Jul 2, 2017 — forked from seyoum/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
View Convert audio to video with ffmpeg - examples.md

Convert audio to video with ffmpeg - examples

avectorscope

ffmpeg -i input.mp3 -filter_complex "[0:a]avectorscope=s=1920x1080,format=yuv420p[v]" -map "[v]" -map 0:a avectorscope.mp4

showcqt

ffmpeg -i input.mp3 -filter_complex "[0:a]showcqt=s=1920x1080,format=yuv420p[v]" -map "[v]" -map 0:a showcqt.mp4

ahistogram

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 Mar 30, 2017
Ruby script to extract Renoise version info from xrns file
View what-version-is-this-xrns.rb
#!/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'
You can’t perform that action at this time.