Skip to content

Instantly share code, notes, and snippets.

@baiwfg2
baiwfg2 / it-ebooks.md
Last active October 17, 2025 16:47
Download ebooks as you want
@publicJorn
publicJorn / jquery-plugin-template-es6.js
Last active June 4, 2023 21:43
jQuery plugin template ES6
/**
* jQuery plugin template by https://github.com/publicJorn
* Features:
* - ES6 (So, it requires a build step to transpile to ES5 for most environments)
* - Dynamic plugin name (only supply once) so it's easy to change later
* - Plugin factory to make it work in the browser, or with AMD / COMMONJS modules
* - Plugin instance is saved on the selector element
* - Default options are saved to the instance in case you need to figure out a difference between passed options
*/
(function(global, factory) {
@danharper
danharper / gulpfile.js
Last active September 25, 2024 09:04
New ES6 project with Babel, Browserify & Gulp
var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var browserify = require('browserify');
var watchify = require('watchify');
var babel = require('babelify');
function compile(watch) {
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel));
@ChrisMcKee
ChrisMcKee / ignorerules.txt
Created March 6, 2012 10:39
Tortoise SVN Visual Studio Ignore Rules
Applied on svn properties (recursively) using svn:ignore .
build.txt
*.resharper
**.ReSharper**
*.suo
*.user
*.pdb