Skip to content

Instantly share code, notes, and snippets.

@rootical
rootical / SassMeister-input.scss
Created Oct 26, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
@import "breakpoint";
.parent {
.child {
@include breakpoint(50em) {
margin-bottom: 0;
@rootical
rootical / SassMeister-input.scss
Last active Oct 26, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
@import "breakpoint";
.parent {
.child {
@include breakpoint(50em) {
margin-bottom: 0;
@rootical
rootical / browserify_watchify_babelify.js
Last active Sep 23, 2017
Gulp task example of using Browserify, Watchify, Babelify, Browser Sync, ngAnnoatate with ES6 source maps.
View browserify_watchify_babelify.js
var gulp = require('gulp');
var gulpif = require('gulp-if');
var sourcemaps = require('gulp-sourcemaps');
var util = require('util');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var watchify = require('watchify');
var browserify = require('browserify');
var browserSync = require('browser-sync');
var babelify = require('babelify');
@rootical
rootical / browserify_babelify.js
Created Mar 2, 2015
Browserify, babel, source maps, gulp, es6, babelify
View browserify_babelify.js
'use strict';
var gulp = require('gulp');
var browserify = require('browserify');
var babelify = require('babelify');
var source = require('vinyl-source-stream');
gulp.task('browserify', function() {
return browserify({ debug: true })
.transform(babelify)
View randomNumber.coffee
_randomNum: (max,min=0) ->
return Math.floor(Math.random() * (max - min) + min)
# min is set to 0 by default but a different value can be passed to function
_randomise: ->
randomNum = @_randomNum(10)
# returns a random integer between 0 and 10