Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| // from https://gist.github.com/mathewbyrne/1280286 | |
| function slugify(text) { | |
| return text.toString().toLowerCase() | |
| .replace(/\s+/g, '-') // Replace spaces with - | |
| .replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
| .replace(/\-\-+/g, '-') // Replace multiple - with single - | |
| .replace(/^-+/, '') // Trim - from start of text | |
| .replace(/-+$/, ''); // Trim - from end of text | |
| } |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Recursos del Curso Desarrollo Frontend con Developer Tools en Escuela IT
With Ruby 1.8 (default version on MacOS) :
sudo gem install json
curl -s https://api.github.com/orgs/[ORGANIZATION]/repos | ruby -rubygems -e 'require “json”; JSON.load(STDIN.read).each {|repo| %x[git clone #{repo["ssh_url"]} ]}'
With Ruby 1.9+, the json library is by default thus you just use :
| { | |
| "auto_complete_commit_on_tab": true, | |
| "binary_file_patterns": | |
| [ | |
| "*.jpg", | |
| "*.jpeg", | |
| "*.png", | |
| "*.gif", | |
| "*.ttf", | |
| "*.tga", |
| # http://sass-guidelin.es/es/ | |
| # For SCSS-Lint v0.32.0 | |
| linters: | |
| BangFormat: | |
| enabled: true | |
| space_before_bang: true | |
| space_after_bang: false |
| var image = document.querySelector('img'); | |
| console.log( 'Computed width: ' + getComputedStyle(image).getPropertyValue('width') ); | |
| console.log( 'image.width: ' + image.width ); | |
| console.log( 'image.naturalWidth: ' + image.naturalWidth ); | |
| console.log( 'getAttribute(width): ' + image.getAttribute('width') ); | |
| console.log( 'image.getBoundingClientRect().width: ' + image.getBoundingClientRect().width ); |
| git for-each-ref --sort='-authordate:iso8601' --format=' %(authordate:iso8601)%09%(refname)' refs/heads |
| // ---- | |
| // libsass (v3.1.0) | |
| // ---- | |
| $fontSizeBase: 14; // var in _variables.scss | |
| @mixin font-size( $fontSice ){ | |
| font-size: ($fontSice / $fontSizeBase) * 1rem; | |
| } |