Skip to content

Instantly share code, notes, and snippets.

View bugspencer's full-sized avatar

Christian Bieber bugspencer

View GitHub Profile
@bugspencer
bugspencer / ngrxintro.md
Created July 4, 2018 10:20 — 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

@bugspencer
bugspencer / module.prototype.js
Last active August 29, 2015 14:11
qp-module - prototype
angular.qp.connect('module.name', function(connect){
}, 'module.dependency');
@bugspencer
bugspencer / px-model-prototype-compact.js
Last active August 29, 2015 14:08
px-model (compact)
var config = {
name : 'Name',
simple : true,
storages : {
AdapterHttpApi : {
resource : '/',
doubt : PERSISTENT
}
}
};
@bugspencer
bugspencer / ng-controller-prototype-compact.js
Last active August 29, 2015 14:08
ng-controller (compact)
px('moduleName', function(){
this.controller('###Name###Controller', ###Name###ControllerFactory);
###Name###ControllerFactory.$inject = ['$scope'];
function ###Name###ControllerFactory($scope){
var vm = this;
};
@bugspencer
bugspencer / ng-directive-prototype-compact.js
Last active August 29, 2015 14:08
ng-directive (compact)
px('moduleName', function(){
/**
* directive definition of `###directiveName###`
*
*/
this.directive('###directiveName###', ###directiveName###Factory);
###directiveName###Factory.$inject = [];
@bugspencer
bugspencer / ng-directive-prototype.js
Last active August 29, 2015 14:00
ng-directive
connect.directive('<directiveName>', DirectiveNameFactory);
DirectiveNameFactory.$inject = [];
function DirectiveNameFactory(){
// === InjectingFunction === //
// Logic is executed 0 or 1 times per app (depending on if directive is used).
// Useful for bootstrap and global configuration
var directiveDefinitionObject = {
@bugspencer
bugspencer / dotbash_profile
Last active April 6, 2019 18:36
BASH: .bash_profile
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="---- (\u @ \h) ------------------------------ \d \T ----\n| \w \[\033[32m\]\$(parse_git_branch)\[\033[00m\] \n| > "
alias cp='cp -iv'
alias mv='mv -iv'
alias mkdir='mkdir -pv'
alias ll='ls -FGlAhp'