Skip to content

Instantly share code, notes, and snippets.

View hoangthienan's full-sized avatar

An Hoang hoangthienan

  • Ho Chi Minh City
View GitHub Profile

Vagrant Setup

This tutorial guides you through creating your first Vagrant project.

We start with a generic Ubuntu VM, and use the Chef provisioning tool to:

  • install packages for vim, git
  • create user accounts, as specified in included JSON config files
  • install specified user dotfiles (.bashrc, .vimrc, etc) from a git repository

Afterwards, we'll see how easy it is to package our newly provisioned VM

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@hoangthienan
hoangthienan / browserdetect
Created December 8, 2012 12:12
Browser Detect
var BrowserDetect = function(){
var e=this;
var c=function(f){
for(var j=0;j<f.length;j++){
var h=f[j].string;
var g=f[j].prop;
this.versionSearchString=f[j].versionSearch||f[j].identity;
if(h){
if(h.indexOf(f[j].subString)!=-1){
return f[j].identity