Skip to content

Instantly share code, notes, and snippets.

Always Be Shipping

Martin H. Normark martinnormark

Always Be Shipping
Block or report user

Report or block martinnormark

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
martinnormark / .gitignore
Created Aug 13, 2017 — forked from FullStackForger/.gitignore
.gitignore for Unity3d project
View .gitignore
# Unity folders and files
martinnormark / The Technical Interview Cheat
Created Jul 11, 2016 — forked from TSiege/The Technical Interview Cheat
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View The Technical Interview Cheat

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
martinnormark / D3 step after
Last active Apr 28, 2016 — forked from mbostock/.block
Line Chart
View D3 step after
license: gpl-3.0
martinnormark / hapijs-routes.js
Created Mar 26, 2016
Load routes from separate files with hapi.js
View hapijs-routes.js
module.exports = [
{ method: 'GET', path: '/users', handler: function () {} },
{ method: 'GET', path: '/users/{id}', handler: function () {} }
var cart = require('./cart');
var user = require('./user');
martinnormark / d3-mouse-over-line.js
Created Mar 22, 2016
Adding a vertical line to a D3 chart, that follows the mouse pointer.
View d3-mouse-over-line.js
var vertical =".chart")
.attr("class", "remove")
.style("position", "absolute")
.style("z-index", "19")
.style("width", "1px")
.style("height", "380px")
.style("top", "10px")
.style("bottom", "30px")
.style("left", "0px")
View PersistentRouterOutlet.ts
"use strict";
import * as hookMod from 'angular2/src/router/lifecycle/lifecycle_annotations';
import * as routerMod from 'angular2/src/router/router';
import {isBlank, isPresent} from 'angular2/src/facade/lang';
import {StringMapWrapper} from 'angular2/src/facade/collection';
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
import {BaseException} from 'angular2/src/facade/exceptions';
import {
ElementRef, DynamicComponentLoader, Directive, Injector, provide, ComponentRef, Attribute
martinnormark /
Last active Aug 29, 2015 — forked from omegahm/
Create Gtihub labels from Bash
#!/usr/bin/env bash
# Colours picked from
# Label definitions
declare -A LABELS
# Platform
martinnormark / fav-hashtag-tweets.js
Last active Jun 20, 2018
Twitter follow script
View fav-hashtag-tweets.js
__cnt__ = 0;
jQuery('.stream .js-actionFavorite').each(function(i, ele) { ele = jQuery(ele); if (ele.css('display') != 'inline-block') { return; } setTimeout(function() {; }, __cnt__++ * 500);
martinnormark / GrabGithubIssues.js
Created Apr 23, 2015
Grab list of Github issues currently selected
View GrabGithubIssues.js
var issues = [];
$("input[type=checkbox].js-issues-list-check:checked").each(function() {
var $check = $(this),
$title = $check.parents("li.js-issue-row").find("a.issue-title-link");
issues.push($title.text().replace(/(\r\n|\n|\r)/gm,"").replace(/ /g, "") + " #" + $check.val())
window.prompt("Copy to clipboard: Ctrl+C, Enter", issues.join("\r\n"));
You can’t perform that action at this time.