Skip to content

Instantly share code, notes, and snippets.

View epmatsw's full-sized avatar
🏠
Working from home

Will Stamper epmatsw

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

(function() {
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
define(['react'], function(React) {
var Test;
Test = (function(superClass) {
extend(Test, superClass);
function Test() {
@epmatsw
epmatsw / Atomsetup
Created September 28, 2015 22:17
Script to install atom addons
apm install minimap minimap-highlight-selected minimap-selection
apm install pigments
apm install vim-mode ex-mode
apm install linter linter-coffeelint linter-csslint linter-jsonlint linter-scss-lint linter-jsxhint
apm install term2
apm install atom-beautify
apm install wakatime
apm install autocomplete-paths
apm install highlight-selected
apm install language-cjsx
@epmatsw
epmatsw / Vagrantfile
Last active August 27, 2015 00:36 — forked from am/Vagrantfile
Vagrant box to compile stasis projects (gems: stasis, haml, coffee-script, sass, rhc).
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network :forwarded_port, guest: 4000, host: 4000
config.vm.hostname = 'tnw-box'
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests"
@epmatsw
epmatsw / gist:60b9306b38dbea4454bc
Created June 5, 2015 21:49
zlib-ng buffer overflow
=================================================================
==2893==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6310000007ff at pc 0x41fd88 bp 0x7ffeb0001900 sp 0x7ffeb00018f0
READ of size 1 at 0x6310000007ff thread T0
#0 0x41fd87 in fizzle_matches /home/will/zlib-ng/deflate_medium.c:114
#1 0x41fd87 in deflate_medium /home/will/zlib-ng/deflate_medium.c:259
#2 0x426a02 in deflate /home/will/zlib-ng/deflate.c:885
#3 0x406642 in gzwrite /home/will/zlib-ng/test/minigzip.c:165
#4 0x406642 in gz_compress /home/will/zlib-ng/test/minigzip.c:290
#5 0x408127 in file_compress /home/will/zlib-ng/test/minigzip.c:382
#6 0x402ce4 in main /home/will/zlib-ng/test/minigzip.c:525
@epmatsw
epmatsw / Week 7 Data
Created October 15, 2013 04:06
Week 7
[
{
"ID": "51",
"Wins": 5,
"Ranking": 1,
"TotalMargin": 227,
"WMargin": 35.62532,
"Name": "Baylor",
"Games": [
{
@epmatsw
epmatsw / PDF Crash
Created August 25, 2013 15:04
The crash log from trying to open http://www.pjreddie.com/static/Redmon%20Resume.pdf in Firefox.
Process: firefox [93415]
Path: /Applications/FirefoxUX.app/Contents/MacOS/firefox
Identifier: org.mozilla.ux
Version: 26.0a1 (2613.8.24)
Code Type: X86-64 (Native)
Parent Process: launchd [158]
Responsible: firefox [93415]
User ID: 501
Date/Time: 2013-08-25 10:02:18.638 -0500
content = @elements.oContent
nowAtTop = (content.scrollTop() is 0)
nowAtBottom = (content.scrollTop() >= content.children('ul').height() - content.height())
if nowAtTop is @atTop and nowAtBottom is @atBottom
return
@atTop = nowAtTop
@atBottom = nowAtBottom
shadowSize = '30px'
shadowColor = '#000'