Instantly share code, notes, and snippets.

View stylish-checkboxes-radios.html
<!DOCTYPE html>
<html lang="en" >
<head >
<meta charset="UTF-8" >
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous" >
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" >
<style >
View deploy.sh
#!/bin/bash
#Get app version
APP_VERSION=$(node -pe "require('./package.json').version")
#create a name for your bundle
ARCHIVE_NAME='app-name-'$APP_VERSION'.tar.gz'
#create an archive
tar -czvf $ARCHIVE_NAME -C ./dist .
View Package.json & Basic Config files for jshint + Other tools
{
// JSHint Default Configuration File (as on JSHint website)
// See http://jshint.com/docs/ for more details
"maxerr" : 50, // {int} Maximum error before stopping
// Enforcing
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"camelcase" : false, // true: Identifiers must be in camelCase
"curly" : true, // true: Require {} for every new block or scope
View basic jQuery plugin.js
/**
* Minimum set up for a revealing module pattern jQuery plugin
*
* This is a bare plugin that uses the revealing module pattern to attach
* public and private vars and methods to a jQuery selector.
*
* Example:
*
* $('#menu').collapsible().init();
* $('#menu').collapsible().open();