- Yahoo Performance Rules
- Um dos primeiros sites a divulgar esse tipo de info e provavelmente o mais famoso.
- Google Web Performance Best Practices
- Similar ao Yahoo Perf Rules.
- Sitepoint web site optimization steps
- Similar ao yahoo mas entra em mais detalhes sobre implementação.
- Performance Calendar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DirectoryIndex index.html index.htm index.php | |
ErrorDocument 404 /404 | |
# Block directory listing | |
Options -Indexes | |
# === URL Rewrite === # | |
# Map all URIs except those corresponding to existing files/folders to the handler | |
RewriteEngine on |
- http://lostechies.com/derickbailey/2012/06/04/anders-hejlsberg-is-right-you-cannot-maintain-large-programs-in-javascript/
- http://butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod
- http://en.wikipedia.orgi/wiki/Separation_of_concerns
- Single Responsibility Principle: http://www.objectmentor.com/resources/articles/srp.pdf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Karl Westin | |
* Part of the "refactoring javascript for unit testing" blog post | |
* --- | |
* Quick refactor by Miller Medeiros (http://blog.millermedeiros.com) | |
* Didn't tested the code during/after changes, might contain errors. | |
*/ | |
function Lightbox(parent) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Combine JS and CSS files | |
// --- | |
// | |
// Make sure you install the npm dependencies | |
// > cd YOUR_PROJECT_FOLDER | |
// > npm install | |
// | |
// Than run: | |
// > node build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(function(){ | |
//just so we can check against undefined and set val as undefined | |
var UNDEF; | |
// here you create the "interface", trying to get/set any other property | |
// will throw errors before build (see pragmas on get). | |
var _data = { | |
foo : UNDEF, | |
bar : UNDEF, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var DIST_FOLDER = '../deploy/'; | |
// --- | |
var _minimatch = require('minimatch'), | |
_wrench = require('wrench'), | |
_fs = require('fs'), | |
_path = require('path'); | |
function purgeDeploy(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<meta charset="utf-8"> | |
<title>Using Showdown with and without jQuery: demo</title> | |
<style> | |
textarea, #preview { width: 500px; height: 150px; margin-bottom: 1em; padding: .5em 1em; overflow-y:auto} | |
#preview { border: 1px solid #666; } | |
</style> | |
<link rel="first" href="http://mathiasbynens.be/notes/showdown-javascript-jquery" title="Using Showdown with and without jQuery"> | |
<link rel="prefetch" href="http://mathiasbynens.be/notes/showdown-javascript-jquery" title="Using Showdown with and without jQuery"> | |
<link rel="stylesheet" href="http://yandex.st/highlightjs/6.1/styles/default.min.css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ============================================================================ | |
" File: wordcount.vim | |
" Maintainer: Miller Medeiros <http://blog.millermedeiros.com/> | |
" Description: Fast Word and Char count to be used on the statusline. | |
" based on Greg Sexton script: http://bit.ly/v3RfAv | |
" Last Change: 2011-11-10 | |
" License: This program is free software. It comes without any warranty, | |
" to the extent permitted by applicable law. You can redistribute | |
" it and/or modify it under the terms of the Do What The Fuck You | |
" Want To Public License, Version 2, as published by Sam Hocevar. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
//npm install commander | |
/** | |
* Command line tool to convert TexturePacker JSON-Array data into | |
* optimized SpriteAnim.js JSON data file. | |
* @author Miller Medeiros | |
* @version 0.1.0 (2011/10/18) | |
*/ |