- 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
/** | |
* Implementação do algorítimo SoundEx em Javascript. | |
* @author João Batista Neto | |
* | |
* SoundEX é um algorítimo fonético para indexação de nomes pelo som segundo | |
* sua pronúncia. O algorítimo foi desenvolvido por Robert C. Russell e | |
* Margaret K. Odell e patenteado em 1918 e 1922. | |
* {@link http://en.wikipedia.org/wiki/Soundex} | |
* | |
* @return {String} |
<?php | |
echo slug('João Batista Neto'); //joao-batista-neto |
I'm having trouble understanding the benefit of require.js. Can you help me out? I imagine other developers have a similar interest.
From Require.js - Why AMD:
The AMD format comes from wanting a module format that was better than today's "write a bunch of script tags with implicit dependencies that you have to manually order"
I don't quite understand why this methodology is so bad. The difficult part is that you have to manually order dependencies. But the benefit is that you don't have an additional layer of abstraction.
Some investigation and tests on how to upgrade Mint machine.
Tests performed on Mint Cinnamon 14/15/16, on physical machine 14->15 and VirtualBox VMs for 14->15->16 and 14->16.
As usual you could break your machine, so please do backups before and cross fingers.
var ws = require('websocket-stream') | |
var stream = ws('ws://localhost:8343') | |
stream.on('data', function(o) { | |
console.log("DATA", o) | |
}) | |
stream.write(new Buffer('hello')) |
/***************************** COPYRIGHT NOTICES *********************** | |
Some of this code is based on metaphone.c file, which can be found here: | |
http://www2.varzeapaulista.sp.gov.br/metaphone/ | |
The metaphone port is authored by Carlos Costa Jordao <carlosjordao@gmail.com> | |
and is covered under this copyright: | |
Copyright 2014, Carlos Costa Jordao <carlosjordao@gmail.com>. | |
All rights reserved. |
// This script will boot app.js with the number of workers | |
// specified in WORKER_COUNT. | |
// | |
// The master will respond to SIGHUP, which will trigger | |
// restarting all the workers and reloading the app. | |
var cluster = require('cluster'); | |
var workerCount = process.env.WORKER_COUNT || 2; | |
// Defines what each worker needs to run |
"use strict"; | |
var passport = require('./passport'); | |
var config = { | |
redirectBack: redirectBack | |
} | |
function redirectBack(req, res) { | |
res.redirect(req.param('__back') && decodeURIComponent(req.param('__back')) || '/'); | |
} |
var React = require('react'); | |
var events = require('add-event-listener'); | |
var isVisible = require('../isVisible'); | |
var LazyLoad = React.createClass({ | |
displayName: 'LazyLoad', | |
propTypes: { | |
distance: React.PropTypes.number, | |
component: React.PropTypes.node.isRequired, | |
children: React.PropTypes.node.isRequired |