Skip to content

Instantly share code, notes, and snippets.

⌨️
Coding

Sam Quinn santiq

⌨️
Coding
Block or report user

Report or block santiq

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@chonz0
chonz0 / emoji-commits.md
Last active Dec 28, 2016
Emoji commits
View emoji-commits.md
Emoji Snippet Context
🎉 :tada: initial commit
:sparkles: new feature
:heavy_plus_sign: add feature
:heavy_minus_sign: remove feature
📦 :package: modify package dependencies
🌐 :globe_with_meridians: internationalization / translations
🔧 :wrench: tooling
🎨 :art: when improving the format/structure of the code
@NaokiStark
NaokiStark / content.js
Created Feb 24, 2016
fixed repeated buttons
View content.js
const serverURL = 'http://glacial-cove-76906.herokuapp.com';
getVotes= function(shoutId,cb){
$.get(serverURL+'/get-votes?shout_id='+shoutId,function(res,status){
return cb(res,status);
});
}
renderButtons = function(){
@noahmiller
noahmiller / gulpfile-error-handling.js
Created May 15, 2014
Example error handling in a gulpfile
View gulpfile-error-handling.js
var gulp = require('gulp');
var gutil = require('gulp-util');
var jshint = require('gulp-jshint');
// Command line option:
// --fatal=[warning|error|off]
var fatalLevel = require('yargs').argv.fatal;
var ERROR_LEVELS = ['error', 'warning'];
@floatdrop
floatdrop / thoughts.md
Last active Aug 31, 2019
Error management in gulp
View thoughts.md

#Error management in gulp

Sucking at something is the first step to becoming sorta good at something

No one can assure you, that plugins will run smooth in any circumstances (except for tests - they could), so neither should you convince anyone, that your plugin will never break. Only thing, that you could possibly do (if something gone wrong) - is gracefully inform your plugin user, that something went wrong and die.

We are will use this plugin from beginning to demonstrate error management. Suppose you have a task in gulpfile.js that contains this code (we modified it a little bit to be closer to real-usage):

var coffee = require('gulp-coffee');
You can’t perform that action at this time.