Skip to content

Instantly share code, notes, and snippets.

Always Be Shipping

Martin H. Normark martinnormark

Always Be Shipping
View GitHub Profile
martinnormark /
Last active May 16, 2020
Create Azure Container Instance with SSH support.

Creating the container

environemnt vars to set:
NAME = Martin
SSHUSER = martin
SSHPWD = pwdnitram

command to run: [ "/bin/bash", "-c", "echo hello $NAME; tail -f /dev/null" ]

Configure SSH

Add a user

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);