How to Lie with Data Visualization
7 backbone.js mistakes you must fix today -- a list not only restricted to backbone!
<?php | |
class User { | |
/** | |
* Returns the first address of the consumer, false otherwise. | |
* | |
* @return mixed | |
*/ | |
public function getAddress() |
function probe(cb) { | |
var wsCtor = window['MozWebSocket'] ? MozWebSocket : WebSocket; | |
var socket = new wsCtor(uri, 'blah'); | |
socket.onopen = function () { | |
// Send a probe | |
socket.send(JSON.stringify({ | |
type: 'probe', | |
data: {} | |
})); | |
}; |