Skip to content

Instantly share code, notes, and snippets.

Avatar

Duncan Bayne duncan-bayne

View GitHub Profile
@duncan-bayne
duncan-bayne / gist:74d6e38c506000982237
Last active Aug 29, 2015
Transcript of IKEA support chat re. C&D
View gist:74d6e38c506000982237
You are being assisted by IKEA Australia
10:46 Hi
10:46 Hi I'm Laura, how can I help?
10:46 Hi Laura
10:47 I'm writing about the Cease & Desist letter you (i.e. IKEA)
sent to IKEAHackers.
@duncan-bayne
duncan-bayne / index.html
Created Jul 16, 2014
Simple charting demo
View index.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>14 days @ 5 minute resolution</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.js"></script>
<style type="text/css">
body { font: 13px sans-serif; }
rect { fill: #fff; }
ul {
@duncan-bayne
duncan-bayne / gist:772d36c63e9e2638ef87
Created Oct 30, 2014
Simultaneous messages from same originator
View gist:772d36c63e9e2638ef87
<messages>
<message>
<datestamp>2014-10-30 15:43:40</datestamp>
<direction>MO</direction>
<originator>61420817082</originator>
<recipient>61419129159</recipient>
<messagetext>A</messagetext>
<campaign></campaign>
<reference></reference>
</message>
View gist:25c1e1721f507ef0136e
S: <wait for connection on TCP port 110>
C: <open connection>
S: +OK POP3 server ready <1896.697170952@dbc.mtview.ca.us>
C: APOP mrose c4c9334bac560ecc979e58001b3e22fb
S: +OK mrose's maildrop has 2 messages (320 octets)
C: STAT
S: +OK 2 320
C: LIST
S: +OK 2 messages (320 octets)
S: 1 120
@duncan-bayne
duncan-bayne / gist:9daa251ab5a507b3099d
Created Apr 21, 2015
Open letter to Spotify re. Accessibility
View gist:9daa251ab5a507b3099d
Hi,
I'm writing to let you know that the Spotify client for OSX (and possibly
other OSs too) is inaccessible to people who are blind and otherwise disabled.
Several people, myself included, have raised this issue in an attempt to
have it fixed but we've been consistently ignored by Spotify staff.
E.g.:
View gist:cfb0bb727111373f69eb
➜ uhoh tree
.
├── foo
│   └── bar
│   └── baz
│   └── qux
└── -rf
3 directories, 2 files
➜ uhoh rm *
@duncan-bayne
duncan-bayne / xlsx-snippet.xml
Created Sep 3, 2015
Rounding issue in XLSX date cells
View xlsx-snippet.xml
<sheetData>
<row r="1" customFormat="false" ht="12.8" hidden="false" customHeight="false" outlineLevel="0" collapsed="false">
<c r="A1" s="1" t="n">
<v>41552</v>
</c>
</row>
<row r="2" customFormat="false" ht="12.8" hidden="false" customHeight="false" outlineLevel="0" collapsed="false">
<c r="A2" s="1" t="n">
<v>41551.9999999998</v>
</c>
@duncan-bayne
duncan-bayne / development.rb
Created Sep 26, 2012
Development configuration
View development.rb
Atlas::Application.configure do
config.cache_classes = false
config.whiny_nils = true
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
config.active_support.deprecation = :log
config.action_dispatch.best_standards_support = :builtin
config.active_record.mass_assignment_sanitizer = :strict
config.active_record.auto_explain_threshold_in_seconds = 0.5
config.assets.compress = false
View No More Giphy™.user.js
// ==UserScript==
// @name No More Giphy™
// @namespace duncan@bayne.id.au
// @description Hides all Slack messages from /giphy
// @include /https:\/\/.*\.slack\.com\/messages\/.*/
// @version 2
// @grant GM_log
// @require http://code.jquery.com/jquery-2.1.4.min.js
// @require http://underscorejs.org/underscore-min.js
// ==/UserScript==