Skip to content

Instantly share code, notes, and snippets.

Avatar

John Mercer jfmercer

View GitHub Profile
@Hendrixer
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, .tab.active, .title-actions, .tablist, .tabs-container, .tabs, .composite.title {
background-color: rgba(40, 44, 52, 1) !important;
}
.tab.active, .tab {
border-right: 0px !important;
@hew
hew / _readme.md
Last active Jul 22, 2020
Operator Mono w/ Italics on OSX VIm
View _readme.md

Operator Mono w/ Italics on OSX Vim

@btroncone
btroncone / ngrxintro.md
Last active Jul 29, 2021
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series
View ngrxintro.md

Comprehensive Introduction to @ngrx/store

By: @BTroncone

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

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

Table of Contents

@Bolza
Bolza / ng2_trblshoot.md
Last active Oct 9, 2016
NG2 Upgrade Troubleshoot
View ng2_trblshoot.md

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
mauvm / Jasmine-and-Babel6.md
Created Nov 12, 2015
Jasmine ES6 run script for use with Babel 6
View Jasmine-and-Babel6.md
$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine

.babelrc:

{
  "presets": ["es2015"]
@rorysaur
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
staltz / introrx.md
Last active Jul 30, 2021
The introduction to Reactive Programming you've been missing
View introrx.md
@pascalpoitras
pascalpoitras / myweechat.md
Last active Jul 31, 2021
My always up-to-date WeeChat configuration (weechat-dev)
View myweechat.md

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
jbenet / simple-git-branching-model.md
Last active Jul 26, 2021
a simple git branching model
View simple-git-branching-model.md

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
ryin / tmux_local_install.sh
Last active Jul 13, 2021
bash script for installing tmux without root access
View tmux_local_install.sh
#!/bin/bash
# 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
TMUX_VERSION=1.8