Skip to content

Instantly share code, notes, and snippets.


John Mercer jfmercer

View GitHub Profile
Hendrixer / editor.css
Last active Jul 15, 2021
VS code custom CSS for theme
View editor.css
.composite-title, .composite-title, .vs-dark .monaco-workbench>.activitybar>.content {
background-color: rgba(40, 44, 52, 1) !important;
.tabs-container, .tab,, .title-actions, .tablist, .tabs-container, .tabs, .composite.title {
background-color: rgba(40, 44, 52, 1) !important;
}, .tab {
border-right: 0px !important;
hew /
Last active Jul 22, 2020
Operator Mono w/ Italics on OSX VIm

Operator Mono w/ Italics on OSX Vim

btroncone /
Last active Jul 29, 2021
A Comprehensive Introduction to @ngrx/store - Companion to Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

Bolza /
Last active Oct 9, 2016
NG2 Upgrade Troubleshoot

Reflect-metadata error

  • adding import 'zone.js' and 'reflect-metadata'
  • System.config.babelOptions.stage = 1

RXJS missing / errors

  • update NG2 to >=2.0.0-beta.9, doesnt require external rxjs anymore

Transpiler SyntaxError on any Typescript annotation as Unexpected token

  • npm install --save-dev babel-plugin-transform-decorators-legacy babel-plugin-transform-class-properties babel-plugin-transform-flow-strip-types babel-preset-es2015 babel-plugin-angular2-annotations
  • in gulpfile task add plugins: 'angular2-annotations','transform-decorators-legacy','transform-class-properties','transform-flow-strip-types'
mauvm /
Created Nov 12, 2015
Jasmine ES6 run script for use with Babel 6
$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine


  "presets": ["es2015"]
rorysaur / collection.ts
Created Feb 21, 2015
typescript stack
View collection.ts
interface Collection {
push(value: any): void;
pop(): any;
peek(): any;
isEmpty(): boolean;
class Stack implements Collection {
top: any
staltz /
Last active Jul 30, 2021
The introduction to Reactive Programming you've been missing
pascalpoitras /
Last active Jul 31, 2021
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

The squares in the chanmon buffer at the top of weechat in the gif above are there only to hide the nicknames and the messages in the gif to respect users privacies

You need at least WeeChat 3.2-dev

Enable mouse

jbenet /
Last active Jul 26, 2021
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

ryin /
Last active Jul 13, 2021
bash script for installing tmux without root access
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e