Skip to content

Instantly share code, notes, and snippets.

View yashprit's full-sized avatar
💭
I may be slow to respond.

Yashprit yashprit

💭
I may be slow to respond.
View GitHub Profile
var gulp = require('gulp');
var clean = require('gulp-clean');
var replace = require('gulp-replace');
var zip = require('gulp-zip');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
'use strict';
//npm install gulp gulp-minify-css gulp-uglify gulp-clean gulp-cleanhtml gulp-jshint gulp-strip-debug gulp-zip --save-dev
var gulp = require('gulp'),
clean = require('gulp-clean'),
cleanhtml = require('gulp-cleanhtml'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
stripdebug = require('gulp-strip-debug'),
@yashprit
yashprit / markdown_cheatsheet
Created June 2, 2014 06:49
List of GitHub Mark Down syntax
#Heading
~~~
# H1
## H2
### H3
#### H4
##### H5
###### H6
or
@yashprit
yashprit / facade.js
Created May 30, 2014 06:49
facade implementation in JavaScript, Taken from Addy Osmani blog on design pattern
var plugin = (function() {
var _implementation = {
id: 5,
get: function () {
return this.id;
},
set: function (_id) {
id = _id;
},
run: function () {
@yashprit
yashprit / jQuery_app_structure.js
Created May 30, 2014 06:31
This is one of way to Structure jQuery Application
(function(ctx, $, undefined){
$(document).ready(function(){
bindEvent();
})
function bindEvent () {
//private scope for application
}