Skip to content

Instantly share code, notes, and snippets.

View karthilxg's full-sized avatar

Karthi karthilxg

  • Apple Inc
  • San Jose, California
View GitHub Profile
@karthilxg
karthilxg / ngrxintro.md
Created September 10, 2018 19:50 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

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

@karthilxg
karthilxg / GitCommitEmoji.md
Created June 29, 2018 04:45 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@karthilxg
karthilxg / SCSS.md
Created March 23, 2018 19:16 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ 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

@karthilxg
karthilxg / SassMeister-input.scss
Last active October 27, 2017 18:40 — forked from KittyGiraudel/SassMeister-input.scss
Z-index - stacking context
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
// A clean way to deal with z-index layers in Sass
// Based on http://css-tricks.com/handling-z-index/
// ---
// A map of z layers
@karthilxg
karthilxg / mac-apps.md
Created September 21, 2017 22:04 — forked from erikreagan/mac-apps.md
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

@karthilxg
karthilxg / git-tag-delete-local-and-remote.sh
Created September 13, 2017 21:28 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@karthilxg
karthilxg / bling.js
Created July 24, 2017 22:28 — forked from paulirish/bling.js
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;
@karthilxg
karthilxg / readme.md
Created May 4, 2017 20:04 — forked from gund/readme.md
Webpack 2 beta circular dependencies trouble

So consider we have Logger class. And also we have a LoggerInContext class which extends Logger. And Logger has factory method to create new LoggerInContext instances.

// logger.ts

import { LoggerInContext } from './logger-in-context';

export class Logger {