Skip to content

Instantly share code, notes, and snippets.

View csstriggersarr.json
[
{
"name": "align-content",
"initial": {
"blink": {
"layout": true,
"paint": true,
"composition": true
},
"gecko": {
View csstriggers.json
{
"align-content": {
"initial": {
"blink": {
"layout": true,
"paint": true,
"composition": true
},
"gecko": {
"layout": false,
@pixelgrid
pixelgrid / uniformer.js
Created Nov 2, 2015
Small js function to transform all greek lowercase letters without intonation
View uniformer.js
function uniformletters(text){
var map = {
'ά': 'α',
'έ': 'ε',
'ί': 'ι',
'ό': 'ο',
'ύ': 'υ',
'ϋ': 'υ',
'ϊ': 'ι',
'ή': 'η',
@pixelgrid
pixelgrid / gulp_nodemon_webpack_livereload.js
Created Oct 20, 2015
Gulp task for a express, nodemon, livereload, angularjs application
View gulp_nodemon_webpack_livereload.js
// watches all js and css files
// if a file is in the public folder
// runs a task based on the file extension and the file path
gulp.task("nodemon", function(){
// start livereload
livereload.listen();
nodemon({
@pixelgrid
pixelgrid / typeConverter.js
Last active Aug 29, 2015
Small converter utility for converting between provided values. Its parameters must be the type names and the type values association
View typeConverter.js
function Converter(types, values) {
var associations = {},
values = values,
types = types;
return function(baseValue){
types.forEach(function(type){
associations[type] = {
to : types.reduce(function(current, previous){
View Dynamically Loading Services in AngularJS
app = angular.module('myApp',[]);
app.controller('myController',function($scope,$injector){
var loadProvider = function(name){
try{
var parts = name.split('.');
var returnValue = $injector.get(parts.shift());
parts.forEach(function(prop){returnValue = returnValue[prop];});
}
return returnValue;
}catch(e){