Skip to content

Instantly share code, notes, and snippets.

@joliss
joliss / gist:8012960
Last active December 31, 2015 16:19
#grunt log, with permission

21:21 shama: I also think it's important to understand the history behind "grunt-contrib-" as many of the twitter responses are incorrect. Originally there was grunt and grunt-contrib (a collection of common grunt tasks). As the collection grew, each task was broken out into it's own task, which is why they're named grunt-contrib-*. 21:22 shama: Many people named their tasks grunt-contrib- and users came to us for help with those plugins, confused. So we ask users not to name their plugins grunt-contrib- to prevent confusion.

r = Math.random
for(y = c = ['']; y++ < 40;)
for(c[x = 0] += '\n'; x++ < 60; c[0] += '%c*')
c.push('background:#000;color:#' + (
y < 37 && (x < 30 ? x : 60 - x) + y * .7 - 3 > 30 ?
y < 6 || r() < 0.1 ? 'ffc' : 160 // branches + decoration
:
y > 36 && 27 < x && x < 33 ? // trunk
822
lines = 35
columns = 44
distance = (x1, y1, x2, y2) ->
Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2))
circleX = -1.5
circleY = -0.5
# radius = distance from treetop
circleRadius = distance(circleX, circleY, 0.5, 0) - 0.001
#!/bin/bash
set -e
(
echo -n -e '\xc3\x96'
dd if=/dev/zero bs=1048576 count=100
) > big-file
echo
@joliss
joliss / long.js
Last active January 4, 2016 09:29
// Generated by CoffeeScript 1.6.3
(function() {
var _ref, _ref1, _ref10, _ref100, _ref101, _ref102, _ref103, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref2, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref3, _ref30, _ref31, _ref32, _ref33, _ref34, _ref35, _ref36, _ref37, _ref38, _ref39, _ref4, _ref40, _ref41, _ref42, _ref43, _ref44, _ref45, _ref46, _ref47, _ref48, _ref49, _ref5, _ref50, _ref51, _ref52, _ref53, _ref54, _ref55, _ref56, _ref57, _ref58, _ref59, _ref6, _ref60, _ref61, _ref62, _ref63, _ref64, _ref65, _ref66, _ref67, _ref68, _ref69, _ref7, _ref70, _ref71, _ref72, _ref73, _ref74, _ref75, _ref76, _ref77, _ref78, _ref79, _ref8, _ref80, _ref81, _ref82, _ref83, _ref84, _ref85, _ref86, _ref87, _ref88, _ref89, _ref9, _ref90, _ref91, _ref92, _ref93, _ref94, _ref95, _ref96, _ref97, _ref98, _ref99,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
__indexOf = [].indexOf || function(item) { for (var
This file has been truncated, but you can view the full file.
// Generated by CoffeeScript 1.6.3
(function() {
var _ref, _ref1, _ref10, _ref100, _ref101, _ref102, _ref103, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref2, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref3, _ref30, _ref31, _ref32, _ref33, _ref34, _ref35, _ref36, _ref37, _ref38, _ref39, _ref4, _ref40, _ref41, _ref42, _ref43, _ref44, _ref45, _ref46, _ref47, _ref48, _ref49, _ref5, _ref50, _ref51, _ref52, _ref53, _ref54, _ref55, _ref56, _ref57, _ref58, _ref59, _ref6, _ref60, _ref61, _ref62, _ref63, _ref64, _ref65, _ref66, _ref67, _ref68, _ref69, _ref7, _ref70, _ref71, _ref72, _ref73, _ref74, _ref75, _ref76, _ref77, _ref78, _ref79, _ref8, _ref80, _ref81, _ref82, _ref83, _ref84, _ref85, _ref86, _ref87, _ref88, _ref89, _ref9, _ref90, _ref91, _ref92, _ref93, _ref94, _ref95, _ref96, _ref97, _ref98, _ref99,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
__indexOf = [].indexOf || function(item) { for (var
#!/bin/bash
mkdir tmp.$$
for i in {0..9999}; do
echo ".x$i{color:green;}"
done > tmp.$$/main.scss
rm -rf .sass-cache
echo Sass:
@joliss
joliss / Broccolifile.js
Created February 1, 2014 16:00
Ember core build definition - proof-of-concept for API
module.exports = function (factory, broccoli) {
var UglifyJSFilter = require('broccoli-uglify-js')(broccoli)
var ES6ConcatenatorCompiler = require('broccoli-es6-concatenator')(broccoli)
var StaticCompiler = require('broccoli-static-compiler')(broccoli)
var featuresJSON = JSON.parse(fs.readFileSync('features.json', { encoding: 'ascii' }}))
var devDefeaturifyFilter = new DefeaturifyFilter({
features: featuresJSON.features,
debugStatements: features.debugStatements
})
module.exports = function (factory, broccoli) {
var UglifyJSFilter = require('broccoli-uglify-js')(broccoli)
var ES6ConcatenatorCompiler = require('broccoli-es6-concatenator')(broccoli)
var StaticCompiler = require('broccoli-static-compiler')(broccoli)
// Should we really rely on cwd to read features.json?
var featuresJSON = JSON.parse(fs.readFileSync('features.json', { encoding: 'ascii' }}))
var devDefeaturifyFilter = new DefeaturifyFilter({
features: featuresJSON.features,
debugStatements: features.debugStatements
// `walkSync(baseDir)` is a faster substitute for
// glob.sync('**', {
// cwd: baseDir,
// dot: true,
// mark: true,
// strict: true
// })
//
// `baseDir` must not be ''; pass '.' instead
exports.walkSync = walkSync