Skip to content

Instantly share code, notes, and snippets.

@-moz-document url-prefix("https://twitter.com/") {
div[data-testid="like"] span:last-child {
display: none;
}
div[data-testid="unlike"] span:last-child {
display: none;
}
@nyxtom
nyxtom / resume.md
Last active September 29, 2016 19:16

Thomas Holloway (@nyxtom)

Senior Software Engineer / Web Application Developer / Puzzle Hacker.

To whom it may concern, below is a high-level overview of the skills and work history to which I have so far been involved. As a life-long learner, my skills have adapted to the changing ecosystem of software in an effort to explore more challenging problems to work on. I attribute much of my success to a combination of pragmatism and forethought for fault-tolerant and elegant experiences. Pareto's Law helps illuminate how I approach time management and prioritization for even the most appetizing and challenging problems. My expertise ranges across various domains from design and analysis to implementation and deployment as a full-stack web developer.

~/languages/: JavaScript, Python, Go, Lua, C#, C++, C, Java, CSS, Less, HTML, Bash ~/projects/: babel, angular.js, Asp.NET, material design, Redis, MySQL, Node.js, nginx, docker, d3.js, Postgres, haproxy, ne

@nyxtom
nyxtom / keybase.md
Last active October 15, 2018 17:43

Keybase proof

I hereby claim:

  • I am nyxtom on github.
  • I am nyxtom (https://keybase.io/nyxtom) on keybase.
  • I have a public key ASDETGkW07V2C44_iGvgjTxWbudYDJqfKYxQMS4WmTOHCAo

To claim this, I am signing this object:

@nyxtom
nyxtom / anderson-slack.txt
Created September 8, 2015 19:51
Wes Anderson - Slack Theme
#363432,#42362B,#7BB292,#FFFFFF,#363432,#C5BEBA,#C7A095,#7BB292
{ ArrayBuffer: [Function: ArrayBuffer],
Int8Array: { [Function: Int8Array] BYTES_PER_ELEMENT: 1 },
Uint8Array: { [Function: Uint8Array] BYTES_PER_ELEMENT: 1 },
Uint8ClampedArray: { [Function: Uint8ClampedArray] BYTES_PER_ELEMENT: 1 },
Int16Array: { [Function: Int16Array] BYTES_PER_ELEMENT: 2 },
Uint16Array: { [Function: Uint16Array] BYTES_PER_ELEMENT: 2 },
Int32Array: { [Function: Int32Array] BYTES_PER_ELEMENT: 4 },
Uint32Array: { [Function: Uint32Array] BYTES_PER_ELEMENT: 4 },
Float32Array: { [Function: Float32Array] BYTES_PER_ELEMENT: 4 },
Float64Array: { [Function: Float64Array] BYTES_PER_ELEMENT: 8 },

Keybase proof

I hereby claim:

  • I am nyxtom on github.
  • I am nyxtom (https://keybase.io/nyxtom) on keybase.
  • I have a public key whose fingerprint is 2249 E8D7 E24B 3753 43A9 1A9B 8A6E 6913 49C4 4190

To claim this, I am signing this object:

@nyxtom
nyxtom / parser.cs
Last active December 16, 2015 03:09
Modified System.Text.RegularExpressions.Syntax.Parser to support emoticons
//
// assembly: System
// namespace: System.Text.RegularExpressions
// file: parser.cs
//
// author: Thomas Holloway (nyxtom@gmail.com)
// (c) 2013
// - modified to support commonly seen emoticons such as :\
// author: Dan Lewis (dlewis@gmx.co.uk)
// (c) 2002
@nyxtom
nyxtom / redis-expiry.lua
Created February 27, 2013 22:51
Expiring Redis Keys at the Same Time
redis.call('set', 'bleh1', 'hi')
redis.call('set', 'bleh2', 'hi')
redis.call('set', 'bleh3', 'hi')
local time = 1362009600000
redis.call('pexpireat', 'bleh1', time)
redis.call('pexpireat', 'bleh2', time)
redis.call('pexpireat', 'bleh3', time)
local b1 = redis.call('pttl', 'bleh1')
@nyxtom
nyxtom / mongodb-shell.js
Created February 8, 2013 16:54
Useful Javascript Console vs Complete Crap
> ISODate
function (isoDateStr) {
if (!isoDateStr) {
return new Date;
}
var isoDateRegex = /(\d{4})-?(\d{2})-?(\d{2})([T ](\d{2})(:?(\d{2})(:?(\d{2}(\.\d+)?))?)?(Z|([+-])(\d{2}):?(\d{2})?)?)?/;
var res = isoDateRegex.exec(isoDateStr);
if (!res) {
throw "invalid ISO date";
}
@nyxtom
nyxtom / browser-example.js
Last active April 13, 2017 09:39
Base64 Encoded MD5 Computed Hashes - MongoDB Shell, Javascript and C#
b64_md5("http://twitter.com/nyxtom")