Skip to content

Instantly share code, notes, and snippets.

View anoop-gupt's full-sized avatar
👊
Just caching up with the things happenings around.

Anoop Gupta anoop-gupt

👊
Just caching up with the things happenings around.
View GitHub Profile
@anoop-gupt
anoop-gupt / web-performance.md
Created April 1, 2020 15:47 — forked from stevekinney/web-performance.md
Web Performance Workshop

Web Performance

Requirements

Repositories

Focus Area Tools
Linting HTML Lint
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Autocomplete - Custom data and display</title>
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
<script src="../../jquery-1.6.2.js"></script>
<script src="../../ui/jquery.ui.core.js"></script>
<script src="../../ui/jquery.ui.widget.js"></script>
@anoop-gupt
anoop-gupt / jquery.ba-tinypubsub.js
Created June 14, 2012 06:30 — forked from cowboy/HEY-YOU.md
jQuery Tiny Pub/Sub: A really, really, REALLY tiny pub/sub implementation for jQuery.
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011
* http://benalman.com/
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */
(function($) {
var o = $({});
$.subscribe = function() {
o.on.apply(o, arguments);
@anoop-gupt
anoop-gupt / gist:2834437
Created May 30, 2012 07:54 — forked from flipflop/gist:1251044
JavaScript Module
/*
* Module pattern (public and private members within a namespace)
* Creates chassis.example namespace
* Note: ; before parenthesis is deliberate
*
* Below is an example of a flexible multi-part module that can be loaded
* in any order with loose augmentation.
*
*/
@anoop-gupt
anoop-gupt / gist:2834399
Created May 30, 2012 07:44 — forked from lukemartin/gist:1071281
JavaScript: Loose augmentation pattern
// Global UI object
var UI = UI || {};
UI.Generic = (function($) {
var my = {};
// Public
my.foo = "Something";
my.bar = function() {
return "Something else";