Skip to content

Instantly share code, notes, and snippets.

Avatar
💜
Testing statuses

Mikael Brevik mikaelbr

💜
Testing statuses
View GitHub Profile
@mikaelbr
mikaelbr / 0_reuse_code.js
Created Feb 10, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View quiescent-for-js.js
var React = require('react');
var EventEmitter = require('events').EventEmitter;
function component (mixins, render) {
if (typeof mixins === 'function') {
render = mixins;
mixins = [];
}
if (!Array.isArray(mixins)) {
View gulpfile-express.js
var gulp = require('gulp'),
sass = require('gulp-sass'),
browserify = require('gulp-browserify'),
concat = require('gulp-concat'),
embedlr = require('gulp-embedlr'),
refresh = require('gulp-livereload'),
lrserver = require('tiny-lr')(),
express = require('express'),
livereload = require('connect-livereload')
livereloadport = 35729,
View gulpfile-express.js
var gulp = require('gulp'),
sass = require('gulp-sass'),
browserify = require('gulp-browserify'),
concat = require('gulp-concat'),
embedlr = require('gulp-embedlr'),
refresh = require('gulp-livereload'),
lrserver = require('tiny-lr')(),
express = require('express'),
livereload = require('connect-livereload')
livereloadport = 35729,
@mikaelbr
mikaelbr / gulpfile.js
Last active Feb 8, 2021 — forked from Sigmus/gulpfile.js
Gulp + Browserify + Reactify + OS Notification
View gulpfile.js
var source = require('vinyl-source-stream');
var gulp = require('gulp');
var gutil = require('gulp-util');
var browserify = require('browserify');
var reactify = require('reactify');
var watchify = require('watchify');
var notify = require("gulp-notify");
var scriptsDir = './scripts';
var buildDir = './build';