Skip to content

Instantly share code, notes, and snippets.

View markreid's full-sized avatar

Mark markreid

  • Culture Amp
  • Australia
View GitHub Profile
@markreid
markreid / gist:c324c5d62bab0b311c96
Created May 26, 2014 01:35
filter broken extension warnings out of chrome console
// put this as the filter and enable 'regex'
^((?!extensions::).)*$
@markreid
markreid / keybase.md
Created August 11, 2014 07:58
keybase verification

Keybase proof

I hereby claim:

  • I am markreid on github.
  • I am markreid (https://keybase.io/markreid) on keybase.
  • I have a public key whose fingerprint is 3794 7F20 3B8B 926C 1880 14FD 5ACE E933 3D30 988D

To claim this, I am signing this object:

@markreid
markreid / diffcollapse.js
Created October 6, 2014 01:36
github diffs - add a 'hide' button to each file
$('#files .meta .actions').append('<button class="btn-hide minibutton tooltipped tooltipped-n" aria-label="Hide this file">Hide</button>');
$('#files .meta .actions .btn-hide').on('click', function(){
$(this).toggleClass('selected').closest('div.file').find('.data').toggleClass('hidden');
});
@markreid
markreid / jestnew.sh
Created November 5, 2014 02:23
pipe changed/untracked tests into jest
#!/bin/bash
git status -s | grep __tests__ | cut -c4- | xargs jest
@markreid
markreid / agileassigneefilter.js
Last active August 29, 2015 14:09
quick-filter JIRA Agile view by assignee name
// quick filter jira agile view by assignee
(function(){
var constants = {
ISSUE_CLASS: '.ghx-issue'
};
var issuesLookup;
@markreid
markreid / gist:a293b37b5d4ec176d448
Created December 1, 2014 00:51
jasmine 1.3 async
var hasRun = false;
var job;
runs(function(){
addJob(function(returnedJob){
// this is some asynchronous thing
job = returnedJob;
hasRun = true;
})
@markreid
markreid / solarized.vim
Created December 5, 2014 01:49
solarized vim theme
" Name: Solarized vim colorscheme
" Author: Ethan Schoonover <es@ethanschoonover.com>
" URL: http://ethanschoonover.com/solarized
" (see this url for latest release & screenshots)
" License: OSI approved MIT license (see end of this file)
" Created: In the middle of the night
" Modified: 2011 May 05
"
" Usage "{{{
"
#!/usr/bin/perl
# Author: Todd Larason <jtl@molehill.org>
# $XFree86: xc/programs/xterm/vttests/256colors2.pl,v 1.2 2002/03/26 01:46:43 dickey Exp $
# use the resources for colors 0-15 - usually more-or-less a
# reproduction of the standard ANSI colors, but possibly more
# pleasing shades
# colors 16-231 are a 6x6x6 color cube
for ($red = 0; $red < 6; $red++) {
@markreid
markreid / jsquiz.md
Created October 22, 2015 06:31
JS Dev Interviewee quiz

JS Dev quiz.

Most of these questions have several possible answers and no real wrong answer. The aim of the quiz is to gauge your level of experience with software development in general but also your experience working directly in Javascript, so add as much detail as possible, explain how you arrived at your answer, etc.

Some of the questions are quite difficult or confusing, so don't worry too much if you're not sure about the answers; a couple of them are deliberately designed to be hard to solve!

General questions

  1. Describe the stack for a recent project that you found interesting.
@markreid
markreid / showactive.js
Created December 1, 2015 23:22
meteor show active subscriptions
// https://stackoverflow.com/questions/17221573/is-it-possible-to-view-all-active-subscriptions
var subs = Meteor.default_connection._subscriptions; //all the subscriptions that have been subscribed.