Skip to content

Instantly share code, notes, and snippets.


Nitin Jadhav nitinja

View GitHub Profile
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();
nitinja / Package.json & Basic Config files for jshint + Other tools
Last active Dec 6, 2015
Package.json & Basic Config files for jshint + Other tools. Will be improved over time.
View Package.json & Basic Config files for jshint + Other tools
// JSHint Default Configuration File (as on JSHint website)
// See 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
nitinja /
Created Feb 19, 2017
script to bundle & deploy Javascript apps to remote server using npm
#Get app version
APP_VERSION=$(node -pe "require('./package.json').version")
#create a name for your bundle
#create an archive
tar -czvf $ARCHIVE_NAME -C ./dist .
nitinja / stylish-checkboxes-radios.html
Created May 25, 2017
CSS only styles for checkboxes and radios
View stylish-checkboxes-radios.html
<!DOCTYPE html>
<html lang="en" >
<head >
<meta charset="UTF-8" >
<link href="" rel="stylesheet"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous" >
<link href="" rel="stylesheet" >
<style >
You can’t perform that action at this time.