Skip to content

Instantly share code, notes, and snippets.

-- discipline + punish
--
-- four outputs (subjects) process input 1 through randomized transfer functions (disciplines)
-- a trigger in input 2 selects a subject based on a fifth, secret discipline,
-- and punishes it, altering its transfer function
function rand10vpp()
return math.random() * 10 - 5
end
@synthetiv
synthetiv / wp-hook-command.php
Last active August 26, 2016 20:59 — forked from danielbachhuber/wp-hook-command.php
WP-CLI command to list callbacks registered to a given action or filter
<?php
if ( class_exists( 'WP_CLI' ) ) :
/**
* List callbacks registered to a given action or filter.
*
* <hook>
* : The key for the action or filter.
*
* [--format=<format>]
@synthetiv
synthetiv / yuckybind.rb
Created August 10, 2015 21:40
Rakefile - take a source PDF of pages and spit out a printer-ready version for binding as a 8.5x5.5" book
require 'colored'
def x(message)
puts 'x '.red << message
abort
end
def √(message)
puts '√ '.green << message
end