Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
/* | |
* Transcribed to JSON from http://en.wikipedia.org/wiki/Point_(typography)#Traditional_point-size_names | |
* This document is free and open-source software licensed simultaneously under the MIT License, the GPL v2, | |
* and the two-clause BSD License. | |
* | |
* nb. Where conflicts in naming existed (Double Small Pica and Double Pica), the British unit took | |
* precedence. In all other cases, both US and British units are described. | |
*/ | |
{ | |
"LetterpressSizes": { |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
When I list my npm packages with npm ls -g
(or without the -g
option for a local node_modules
directory) I see all installed packages and their dependencies. Like so:
$ npm ls -g
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
Handlebars.registerHelper("foreach",function(arr,options) { | |
if(options.inverse && !arr.length) | |
return options.inverse(this); | |
return arr.map(function(item,index) { | |
item.$index = index; | |
item.$first = index === 0; | |
item.$last = index === arr.length-1; | |
return options.fn(item); | |
}).join(''); |
// Inspired by this post from CSS-Tricks. | |
// http://css-tricks.com/snippets/css/less-mixin-for-rem-font-sizing/ | |
// | |
// Plays nice with compass/typography/vertical_rhythm | |
// http://compass-style.org/reference/compass/typography/vertical_rhythm/ | |
// | |
// Calculates font size in `rem` (root em). | |
// | |
// Relative values depends on $base-font-size. Pixle value for font-size depends | |
// on $legacy-support-for-ie6 or $legacy-support-for-ie7 or $legacy-support-for-ie8 |
require.config({ | |
baseUrl: '/backbone-tests/', | |
paths: { | |
'jquery' : '/app/libs/jquery', | |
'underscore' : '/app/libs/underscore', | |
'backbone' : '/app/libs/backbone', | |
'mocha' : 'libs/mocha', | |
'chai' : 'libs/chai', | |
'chai-jquery' : 'libs/chai-jquery', | |
'models' : '/app/models' |
> cat ~/proxies_off | |
#!/bin/sh | |
echo "Proxies OFF" | |
unset HTTP_PROXY | |
unset ALL_PROXY | |
unset http_proxy | |
unset HTTPS_PROXY | |
unset https_proxy |
This gist assumes:
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.
For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.