Skip to content

Instantly share code, notes, and snippets.

--- Actions ---
$Copy <C-C> <C-Ins>
$Cut <C-X> <S-Del>
$Delete <Del>
$LRU
$Paste <C-V> <S-Ins>
$Redo <C-S-Z> <A-S-BS>
$SearchWeb
$SelectAll <C-A>
$Undo <C-Z> <A-BS>
[
{
"name": "align-content",
"initial": {
"blink": {
"layout": true,
"paint": true,
"composition": true
},
"gecko": {
{
"align-content": {
"initial": {
"blink": {
"layout": true,
"paint": true,
"composition": true
},
"gecko": {
"layout": false,
@pixelgrid
pixelgrid / uniformer.js
Created November 2, 2015 11:23
Small js function to transform all greek lowercase letters without intonation
function uniformletters(text){
var map = {
'ά': 'α',
'έ': 'ε',
'ί': 'ι',
'ό': 'ο',
'ύ': 'υ',
'ϋ': 'υ',
'ϊ': 'ι',
'ή': 'η',
@pixelgrid
pixelgrid / gulp_nodemon_webpack_livereload.js
Created October 20, 2015 09:21
Gulp task for a express, nodemon, livereload, angularjs application
// 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 August 29, 2015 14:27
Small converter utility for converting between provided values. Its parameters must be the type names and the type values association
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){
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){