Skip to content

Instantly share code, notes, and snippets.

@paradox460
paradox460 / bookformat.rb
Created August 27, 2016 23:00
Little script for formatting Google Takeout JSON book lists into Goodreads compatible CSVs
#! /usr/bin/env ruby
require 'json'
require 'csv'
files = Dir.glob('**/*.json')
CSV.open('googleplay.csv', 'wb') do |csv|
csv << ['ISBN', 'Date Read', 'Bookshelves']
files.each do |f|
begin
x = JSON.load(IO.read(f).gsub(/\[\]\z/,''), :quirks_mode => true)
@paradox460
paradox460 / screen.css
Created May 2, 2013 21:39
/r/sublimetext
body {
background-color: #1d1f20;
color: #d0d2d2; }
#header {
background-image: url(%%tabset-background%%);
background-repeat: repeat-x;
background-position: bottom left;
background-color: #383838;
border: none; }
@paradox460
paradox460 / gist:4358029
Created December 22, 2012 08:10
The immense amount of butthurt generated when you use a script to respond to IRC trolls
[22:21:28] <CollegiateLion> Im going to take a semen piss on your anus
[22:23:55] <Paradox> ok
[22:24:12] <CollegiateLion> Stfu cum breath
[22:28:37] <Paradox> k
[22:28:46] <CollegiateLion> stfu bitch face
[22:31:58] <Paradox> k
[22:32:11] <CollegiateLion> stfu buttfucking faggot
[22:32:22] <Paradox> k
[22:32:29] <CollegiateLion> fuck you shut the fuck up already
[22:32:32] <CollegiateLion> dick
@paradox460
paradox460 / code.sass
Created October 22, 2012 18:48
TomorrowNight-pygments
$code-background: #1d1f21
$code-current-line: #282a2e
$code-selection: #373b41
$code-foreground: #c5c8c6
$code-comment: #969896
$code-red: #cc6666
$code-orange: #de935f
$code-yellow: #f0c674
$code-green: #b5bd68
$code-aqua: #8abeb7
@paradox460
paradox460 / reddit.rb
Created May 10, 2012 22:54
Cinch reddit bot
require 'cinch'
require 'json'
require 'open-uri'
require 'cgi'
class Reddit
include Cinch::Plugin
RedditBaseUrl = "http://www.reddit.com"
@paradox460
paradox460 / relay.rb
Created May 3, 2012 16:17
Cinch-based IRC relay bot
# ====================================================================
# = Scroll to the bottom for config settings this is all other stuff =
# ====================================================================
require 'cinch'
Bot2Bot1, Bot1Bot2 = Queue.new, Queue.new
class Relay
include Cinch::Plugin
listen_to :connect, method: :relay
@paradox460
paradox460 / drink.md
Created September 6, 2015 03:55
Autumn Leaves drink

Autumn Leaves

Ingredients

  • 1 shot clear rum
  • 1 shot simple syrup
  • 1 dash Angostura bitters
  • 2 sage leaves
  • Ground pepper
  • 1 lemon
effective.
Power
لُلُصّبُلُلصّبُررً ॣ ॣh ॣ ॣ
░░░░░░▄▀▒▒▒▒░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒█░░░░░░░░░░░░░░░░░░░░█▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░▒▒▒▒▀▄░░░░░░
░░░░░█▒▒▒▒░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█░░░░░░░░░░░░░░░░░░█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░▒▒▒▒█░░░░░
░░░░█▒▒▄▀▀▀▀▀▄▄▒▒▒▒▒▒▒▒▒▄▄▀▀▀▀▀▀▄░░░░░░░░░░░░░░▄▀▀▀▀▀▀▄▄▒▒▒▒▒▒▒▒▒▄▄▀▀▀▀▀▄▒▒█░░░░
░░▄▀▒▒▒▄█████▄▒█▒▒▒▒▒▒▒█▒▄█████▄▒█░░░░░░░░░░░░█▒▄█████▄▒█▒▒▒▒▒▒▒█▒▄█████▄▒▒▒▀▄░░
░█▒▒▒▒▐██▄████▌▒█▒▒▒▒▒█▒▐██▄████▌▒█░░░░░░░░░░█▒▌████▄██▐▒█▒▒▒▒▒█▒▌████▄██▐▒▒▒▒█░
▀▒▒▒▒▒▒▀█████▀▒▒█▒░▄▒▄█▒▒▀█████▀▒▒▒█░░░░░░░░█▒▒▒▀█████▀▒▒█▄▒▄░▒█▒▒▀█████▀▒▒▒▒▒▒▀
▒▒▐▒▒▒░░░░▒▒▒▒▒█▒░▒▒▀▒▒█▒▒▒▒▒▒▒▒▒▒▒▒█░░░░░░█▒▒▒▒▒▒▒▒▒▒▒▒█▒▒▀▒▒░▒█▒▒▒▒▒░░░░▒▒▒▐▒▒
▒▌▒▒▒░░░▒▒▒▒▒▄▀▒░▒▄█▄█▄▒▀▄▒▒▒▒▒▒▒▒▒▒▒▌░░░░▌▒▒▒▒▒▒▒▒▒▒▒▄▀▒▄█▄█▄▒░▒▀▄▒▒▒▒▒░░░▒▒▒▌▒
▒▌▒▒▒▒░▒▒▒▒▒▒▀▄▒▒█▌▌▌▌▌█▄▀▒▒▒▒▒▒▒▒▒▒▒▐░░░░▐▒▒▒▒▒▒▒▒▒▒▒▀▄█▌▌▌▌▌█▒▒▄▀▒▒▒▒▒▒░▒▒▒▒▌▒
▒▐▒▒▒▒▒▒▒▒▒▒▒▒▒▌▒▒▀███▀▒▌▒▒▒▒▒▒▒▒▒▒▒▒▌░░░░▌▒▒▒▒▒▒▒▒▒▒▒▒▌▒▀███▀▒▒▌▒▒▒▒▒▒▒▒▒▒▒▒▒▐▒
░░░░░░▄▀▒▒▒▒░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒█
░░░░░█▒▒▒▒░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█
░░░░█▒▒▄▀▀▀▀▀▄▄▒▒▒▒▒▒▒▒▒▄▄▀▀▀▀▀▀▄
░░▄▀▒▒▒▄█████▄▒█▒▒▒▒▒▒▒█▒▄█████▄▒█
░█▒▒▒▒▐██▄████▌▒█▒▒▒▒▒█▒▐██▄████▌▒█
▀▒▒▒▒▒▒▀█████▀▒▒█▒░▄▒▄█▒▒▀█████▀▒▒▒█
▒▒▐▒▒▒░░░░▒▒▒▒▒█▒░▒▒▀▒▒█▒▒▒▒▒▒▒▒▒▒▒▒█
▒▌▒▒▒░░░▒▒▒▒▒▄▀▒░▒▄█▄█▄▒▀▄▒▒▒▒▒▒▒▒▒▒▒▌
▒▌▒▒▒▒░▒▒▒▒▒▒▀▄▒▒█▌▌▌▌▌█▄▀▒▒▒▒▒▒▒▒▒▒▒▐
▒▐▒▒▒▒▒▒▒▒▒▒▒▒▒▌▒▒▀███▀▒▌▒▒▒▒▒▒▒▒▒▒▒▒▌