- 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
function genGuidByRandToString() { | |
return Math.random().toString(36).slice(2); | |
} |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
<div class="codehilite"> | |
<pre> | |
<span class="k">[extensions]</span> | |
<span class="na">hgext.bookmarks</span> <span class="o">=</span> | |
<span class="na">hggit</span> <span class="o">=</span> | |
</pre> | |
</div> |
/* Imports a css style from google API and equivalent to css.css */ | |
@import url(http://fonts.googleapis.com/css?family=Droid+Sans|Cabin|Cabin+Sketch:700); | |
/* The previous sentence in a css stylesheet will load the following styles from google API */ | |
@font-face { | |
font-family: 'Droid Sans'; | |
font-style: normal; | |
font-weight: normal; | |
src: local('Droid Sans'), local('DroidSans'), url('http://themes.googleusercontent.com/static/fonts/droidsans/v3/s-BiyweUPV0v-yRb-cjciL3hpw3pgy2gAi-Ip7WPMi0.woff') format('woff'); | |
} |
/* | |
* JavaScript Creole 1.0 Wiki Markup Parser | |
* $Id: creole.js 14 2009-03-21 16:15:08Z ifomichev $ | |
* http://www.ivan.fomichev.name/2008/04/javascript-creole-10-wiki-markup-parser.html | |
* | |
* Copyright (c) 2009 Ivan Fomichev | |
* | |
* Portions Copyright (c) 2007 Chris Purcell | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a |
Create an alias of the command curl with the parameter -O
echo 'alias wget="curl -O"' >> ~/.bash_profile
Reboot the terminal session or open a new one to get the bash_profile loaded witht he new alias. You can also force loading the new basch_profile with the command
To view the progress of a Powerpoint presentation, a progress bar can be displayed at the bottom of the slide show.
Once the slideshow is complete, go to Tools > Macro > Visual Basic Editor.
In the new window, select Insert > Module and copy this text in the blank page:
Sub AddProgressBar()
On Error Resume Next
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications
like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html