Skip to content

Instantly share code, notes, and snippets.

View vladikoff's full-sized avatar
🚀
🧇

Vlad Filippov vladikoff

🚀
🧇
View GitHub Profile
@vladikoff
vladikoff / Gruntfile.js
Last active January 4, 2016 12:39
Grunt Issue or Question Template :: __Fork this Gist and your details__
/**
* Paste your Gruntfile (or important parts of it) here
*/
module.exports = function (grunt) {
grunt.initConfig({
log: {
foo: [1, 2, 3],
bar: 'hello world',
baz: false
}
});
// watch config
watch: {
options: {
spawn: false // <--- important
},
js: {
files: '*.js',
tasks: []
}
}
/**
* Uncompressed source can be found at https://login.persona.org/include.orig.js
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
(function() {
var undefined;
// local embedded copy of jschannel: http://github.com/mozilla/jschannel
@vladikoff
vladikoff / default_sublime_themes.md
Created July 11, 2013 21:33
List of Default Sublime Themes

List of Default Sublime Themes

All Hallow's Eve.tmTheme initial commit 2 years ago

Amy.tmTheme initial commit 2 years ago

Blackboard.tmTheme initial commit 2 years ago

Cobalt.tmTheme initial commit 2 years ago

grunt.registerTask('taskname', 'My awesome task', function () {
var done = this.async();
// Epic hacks
var grunt = require('grunt');
grunt.task.init = function() {};
grunt.initConfig({
compress: {
target: {
options: {
archive: '../app.zip'
npm http 200 http://127.0.0.1:30126/validator/-/validator-0.4.9.tgz
npm http 200 http://127.0.0.1:30126/connect-fonts/-/connect-fonts-0.0.9-alpha8.tgz
npm ERR! browserid@1.0.0-b2 preinstall: `node ./scripts/lockdown`
npm ERR! `sh "-c" "node ./scripts/lockdown"` failed with 1
npm ERR!
npm ERR! Failed at the browserid@1.0.0-b2 preinstall script.
npm ERR! This is most likely a problem with the browserid package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./scripts/lockdown
var csv = require('csv');
var csvFile = 'some.csv';
var records = [];
csv()
.from(csvFile)
.on('record', function (row, index) {
records.push(row);
})
watch: {
scripts: {
files: ['**/*.js'],
tasks: ['compile-all-things'],
}
}
grunt.registerTask('mywatch', ['compile-all-things', 'watch']);