Skip to content

Instantly share code, notes, and snippets.

@BaseCase
BaseCase / dc_2017_biblio.md
Last active January 23, 2020 05:13
List of resources recommended or mentioned by the speakers at Deconstruct 2017

Deconstruct 2017 Bibliography

Here are all of the resources mentioned by Deconstruct 2017 speakers, along with who recommended what. Please post a comment if I missed something or have an error!

DC 2017 Speakers' Choice Gold Medalist

  • Seeing Like a State by James Scott

Books

  • Public Opinion by Walter Lippmann (Evan Czaplicki)
  • A Pattern Language by Christopher Alexander (Brian Marick)
  • Domain Driven Design by Eric Evans (Brian Marick)
@athaeryn
athaeryn / _mosh.md
Last active June 15, 2017 17:04
moshmoshmosh

install aviglitch gem

gem install aviglitch

run mo.sh

./mo.sh input.gif

<audio id="alarm" src="alarm.ogg" controls></audio>
<script>
const alarmElement = document.getElementById('alarm');
const alarmTimes = [
new Date('2015-11-13 07:00 -0500'),
new Date('2015-11-13 08:00 -0500'),
new Date('2015-11-13 08:30 -0500'),
];
function playAlarm() {
@MoonScript
MoonScript / tabMessenger.example.js
Created August 27, 2015 00:08
Cross-tab communication on the same origin.
tabMessenger.on('minimize', function(data) {
// data.id
});
tabMessenger.send('minimize', {
id: 123
});
@athaeryn
athaeryn / fizzbuzz.js
Last active June 17, 2016 16:46
fizzbuzzjustbecuzz.js
console.log(
(Array(100) + "")
.split(",")
.map(function(s, i) {
return !!(++i % 3) || (s += "Fizz"),
!!( i % 5) || (s += "Buzz"),
s || i;
})
.join("\n")
);
@danielkhan
danielkhan / saml.js
Last active September 4, 2019 16:10
This is a hacked together version of passport-samls saml parser that supports shibboleth
var zlib = require('zlib');
var xml2js = require('xml2js');
var xmlCrypto = require('xml-crypto');
var crypto = require('crypto');
var xmldom = require('xmldom');
var querystring = require('querystring');
var moment = require('moment');
var xmlenc = require('xml-encryption');
var xpath = require('xpath');
// Make it Nasty
function increment (i) {
i ^= (i & ~-~i) | (~i & -~i)
return i
}
@practicingruby
practicingruby / 1_rcat_tests.rb
Last active September 27, 2015 15:47
Implementing a clone of UNIX cat in Ruby
# Task: Implement the rcat utility and get these tests to pass on a system
# which has the UNIX cat command present
# To see Gregory Brown's solution, see http://github.com/elm-city-craftworks/rcat
# Feel free to publicly share your own solutions
rrequire "open3"
working_dir = File.dirname(__FILE__)
gettysburg_file = "#{working_dir}/data/gettysburg.txt"