Skip to content

Instantly share code, notes, and snippets.

View fxck's full-sized avatar

Aleš fxck

View GitHub Profile
@fxck
fxck / gist:7028338
Last active December 25, 2015 19:29
ui-bootstraps modal's backdrop windowClass
index 898b8a7..a2dd010 100644 (file)
--- a/www/public/js/lib/ui/ui-bootstrap.js
+++ b/www/public/js/lib/ui/ui-bootstrap.js
@@ -147,6 +147,8 @@ angular.module('ui.bootstrap.modal', [])
replace: true,\r
templateUrl: 'template/modal/backdrop.html',\r
link: function (scope, element, attrs) {\r
+ scope.windowClass = attrs.windowClass || '';\r
+\r
//trigger CSS transitions\r
@fxck
fxck / gist:7355187
Created November 7, 2013 14:15
ui bootstrap modal with windowClass applying to backdrop and setWindowClass() method
angular.module('ui.bootstrap.modal', [])
/**
* A helper, internal data structure that acts as a map but also allows getting / removing
* elements in the LIFO order
*/
.factory('$$stackedMap', function () {
return {
createNew: function () {
// jo
if (a == b) {
if (c == d) {
}
if (e == f) {
}
@fxck
fxck / gist:7804798
Last active December 30, 2015 08:49
costlocker's donuts
/*
atrs:
size, lineWidth, bg, bc, val
*/
app.directive('clDonut', function() {
return {
restrict: 'E',
template: '<canvas></canvas>',
replace: true,
link: function(scope, el, attrs) {
'use strict';
var fs = require('fs');
var path = require('path');
var gulp = require('gulp');
var assign = require('object-assign');
function isString(str) {
return 'string' === typeof str;
}
import {
Component,
OnInit,
OnDestroy
} from 'angular2/core';
import { Observable } from 'rxjs/Observable';
import { Subject } from 'rxjs/Subject';
import { Subscription } from 'rxjs/Subscription';
import { Store } from '@ngrx/store';
import {
Component,
OnInit,
OnDestroy
} from 'angular2/core';
import { Observable } from 'rxjs/Observable';
import { Store } from '@ngrx/store';
// action creators
@fxck
fxck / config.js
Created May 3, 2016 12:20 — forked from johnlindquist/config.js
angular2 rc.0
/**
* PLUNKER VERSION (based on systemjs.config.js in angular.io)
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
* Override at the last minute with global.filterSystemConfig (as plunkers do)
*/
(function(global) {
var ngVer = '@2.0.0-rc.0'; // lock in the angular package version; do not let it float to current!
@fxck
fxck / config.js
Last active May 3, 2016 12:23
angular2 rc.0
/**
* PLUNKER VERSION (based on systemjs.config.js in angular.io)
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
* Override at the last minute with global.filterSystemConfig (as plunkers do)
*/
(function(global) {
var ngVer = '@2.0.0-rc.0'; // lock in the angular package version; do not let it float to current!
@fxck
fxck / config.js
Last active May 10, 2016 16:06
ng2-permission vs. @ngrx/router
/**
* PLUNKER VERSION (based on systemjs.config.js in angular.io)
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
* Override at the last minute with global.filterSystemConfig (as plunkers do)
*/
(function(global) {
var ngVer = '@2.0.0-rc.0'; // lock in the angular package version; do not let it float to current!