Skip to content

Instantly share code, notes, and snippets.

Jason Hodges jasonhodges

  • Charter Communications
  • Denver, CO
Block or report user

Report or block jasonhodges

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
View commitlint.config.js
module.exports = {
extends: ['./commitlint.mobile.js'],
parserPreset: './parser-preset'
};
@jasonhodges
jasonhodges / ngrxintro.md
Created Apr 12, 2018 — forked from btroncone/ngrxintro.md
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

@jasonhodges
jasonhodges / SCSS.md
Created Dec 22, 2017 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do
View SCSS.md

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@jasonhodges
jasonhodges / example.component.ts
Created Oct 23, 2017 — forked from ckimrie/example.component.ts
Example on how to achieve RxJS observable caching and storage in Angular 2+. Ideal for storing Http requests client side for offline usage.
View example.component.ts
import { Component, OnInit, OnDestroy } from '@angular/core';
import {Http} from "@angular/http";
import { LocalCacheService } from "./local-cache.service";
@Component({
selector: 'app-example',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class ExampleComponent implements OnInit, OnDestroy {
@jasonhodges
jasonhodges / index.html
Last active Aug 3, 2017 — forked from denisemauldin/index.html
Sankey Diagram with v4
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>SANKEY Experiment</title>
<style>
.node rect {
cursor: move;
fill-opacity: .9;
shape-rendering: crispEdges;
}
@jasonhodges
jasonhodges / material.module.ts
Created Jul 30, 2017
Angular module for holding all Material modules
View material.module.ts
import { NgModule } from '@angular/core';
import {
MdButtonModule,
MdCardModule,
MdListModule,
MdMenuModule,
MdPaginatorModule,
MdProgressBarModule,
MdSidenavModule,
MdSnackBarModule,
@jasonhodges
jasonhodges / .block
Last active Jul 20, 2017 — forked from micahstubbs/.block
Sankey Particles | d3v4 & es2015+
View .block
border: no
license: Apache-2.0
@jasonhodges
jasonhodges / .block
Last active Jun 16, 2017
Sankey Diagram
View .block
license: mit
View .block
license: mit
@jasonhodges
jasonhodges / deepcopy.ts
Created Apr 19, 2017
demo TypeScript deepcopy function
View deepcopy.ts
// https://egghead.io/lessons/typescript-deep-copy-aka-clone-objects-using-typescript
function deepcopy<T>(o: T): T {
return JSON.parse(JSON.stringify(o));
}
const foo = {
x: {
y: {
z: 123
}
You can’t perform that action at this time.