howler.js – Modern Web Audio Javascript Library

var sound = new Howl({ urls: [‘sounds.mp3’, ‘sounds.ogg’], sprite: { blast: [0, 2000], laser: [3000, 700], winner: [5000, 9000] } }); // shoot the laser! sound.play(‘laser’); howler.js defaults to Web Audio API and uses HTML5 Audio as the fallback. The library greatly simplifies the API and handles all of the tricky bits automatically howler.js → …

Sandboxed iframes

<iframe sandbox="allow-same-origin allow-scripts allow-popups allow-forms" src="https://platform.twitter.com/widgets/tweet_button.html" style="border: 0; width:130px; height:20px;"></iframe> The sandbox attribute of the iframe element allows us to tighten the restrictions on framed content. We can instruct the browser to load a specific frame’s content in a low-privilege environment, allowing only the subset of capabilities necessary to do whatever work needs doing. Play …

OAuth & Changing Passwords

Valid point by Brent Simmons: When Twitter was recently hacked, I was among those who got an email saying I was affected. So I changed my password. But here’s what I’ve noticed: changing my password does not cause any of the Twitter clients on my iPhone to ask me again for authentication. They just keep …

pytesla — Python bindings to the Tesla Model S REST API

pytesla is a python binding to the Tesla Model S REST API so that you can monitor your car or programmatically interact with it. It makes it easy to schedule charging times, trigger heating/cooling according to weather or just gather stats. A car with an API, how cool is that? Can’t wait for the day …