Skip to content

Instantly share code, notes, and snippets.

@libkazz
libkazz / gist:99e1d91a664d490d79ad85a25137094f
Created November 2, 2017 16:17 — forked from liamcurry/gist:2597326
Vanilla JS vs jQuery

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@libkazz
libkazz / 0_reuse_code.js
Created March 29, 2014 07:49
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@libkazz
libkazz / gist:3798193
Created September 28, 2012 06:09 — forked from jugyo/nginx.conf
switch rails page cache by user agent
http {
...
server {
listen 8080;
server_name localhost;
#
# Set User Agent type
#
set $ua_type "pc";