Skip to content

Instantly share code, notes, and snippets.

@MarkArts
MarkArts / drupalkraftwagenvbrowsersync.js
Created July 15, 2015 12:32
A Gulpfile that servers a krafwagen drupal setup with gulp-connect-php
var gulp = require('gulp');
var browserSync = require('browser-sync');
var shell = require('gulp-shell');
var php = require('gulp-connect-php');
gulp.task('serve', function(){
php.server({ base: 'build', port: 4242, keepalive: true});
browserSync({
@MarkArts
MarkArts / multyArray.js
Created June 6, 2015 19:07
Wrapper around a array with multiy filter and sort
var Sort = function()
{
this.data = []; // end point of the data
this._initOrder = []; // Objects in order of initialization for cache optimazation
this._filters = {};
this._sorts = {};
}
<!DOCTYPE html>
<html>
<head>
<title>Polymer Rails Example</title>
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../paper-button/paper-button.html">
</head>
<body>
<paper-button raised>Fancy</paper-button>