- 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
- Muitos artigos interessantes e variados.
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 sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
<div class="profile"> | |
<div | |
class="profile-image" | |
style="background: url('/images/<%= person.imgSrc %>') top center no-repeat; background-size: cover;" | |
></div> | |
<div class="profile-details"> | |
<h1 class="profile-name"> | |
<%- person.firstname %> <%- person.lastname %> | |
</h1> |
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
import Assets from 'assets-manager'; | |
Assets.addQueue('general', appData.assets.general) | |
Assets.addQueue('intro', appData.assets.intro) | |
Assets.addQueue('projects', appData.assets.projects) | |
// No layout.js, chamamos: | |
Assets.start('general'); | |
// No intro.js, chamamos: |
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
{ | |
'general': [ | |
'path/to/file.jpg', | |
'path/to/file2.jpg' | |
'path/to/file3.jpg' | |
], | |
'intro': [ | |
'path/to/file.jpg', | |
'path/to/file2.jpg' | |
'path/to/file3.jpg' |
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
// Function to disable "pull-to-refresh" effect present in some webviews. | |
// Especially Crosswalk 12 and above (Chromium 41+) runtimes. | |
window.addEventListener('load', function() { | |
var lastTouchY = 0 ; | |
var maybePreventPullToRefresh = false ; | |
// Pull-to-refresh will only trigger if the scroll begins when the | |
// document's Y offset is zero. |
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
git symbolic-ref HEAD refs/heads/empty | |
touch .gitignore | |
git add .gitignore | |
git commit -m 'Initial headless branch commit' |
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
--- | |
layout: none | |
permalink: .htaccess | |
--- | |
# Apache configuration file | |
# httpd.apache.org/docs/2.2/mod/quickreference.html | |
# Note .htaccess files are an overhead, this logic should be in your Apache config if possible | |
# httpd.apache.org/docs/2.2/howto/htaccess.html |
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
function namespace(name) | |
{ | |
var namespaces = name.split("."); | |
var name = ""; | |
function getName(parent) | |
{ | |
if(namespaces.length > 0) | |
{ | |
name = namespaces.shift(); |
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
(function($) | |
{ | |
/* | |
* Author: Giulian Drimba | |
* | |
*/ | |
$.fn.loadImages = function(callback, scope) | |
{ | |
var images = $(this).find("img"); |
NewerOlder