Skip to content

Instantly share code, notes, and snippets.

:shipit:
Always Be Shipping

Martin H. Normark martinnormark

:shipit:
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
martinnormark / .gitignore
Created Aug 13, 2017 — forked from FullStackForger/.gitignore
.gitignore for Unity3d project
View .gitignore
###
# Unity folders and files
###
[Aa]ssets/AssetStoreTools*
[Bb]uild/
[Ll]ibrary/
[Ll]ocal[Cc]ache/
[Oo]bj/
[Tt]emp/
[Uu]nityGenerated/
@martinnormark
martinnormark / The Technical Interview Cheat Sheet.md
Created Jul 11, 2016 — forked from TSiege/The Technical Interview Cheat Sheet.md
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 Sheet.md

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
martinnormark / D3 step after
Last active Apr 28, 2016 — forked from mbostock/.block
Line Chart
View D3 step after
license: gpl-3.0
@martinnormark
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
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 = d3.select(".chart")
.append("div")
.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
martinnormark / create_labels.sh
Last active Aug 29, 2015 — forked from omegahm/create_labels.sh
Create Gtihub labels from Bash
View create_labels.sh
#!/usr/bin/env bash
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/
###
# Label definitions
###
declare -A LABELS
# Platform
@martinnormark
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() { ele.click(); }, __cnt__++ * 500);
});
@martinnormark
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.