Skip to content

Instantly share code, notes, and snippets.

navigator.plugins
[
{
"name": "Shockwave Flash",
"filename": "Flash Player.plugin",
"description": "Shockwave Flash 10.2 r159"
},
{
"name": "Silverlight Plug-In",
@kaareal
kaareal / gist:986743
Created May 23, 2011 14:06
promise vs seq
RealtimeSync.prototype._storeDirectMessage = function(message, user, callback) {
var messageDate = new Date(Date.parse(message.created_at)),
b = user.user_id, privateMsg;
if(!user.dm_latest_d) {
user.dm_latest_d = new Date(0);
}
if(messageDate < user.dm_latest_d) {
return;
var index = 0;
results = [],
prevLen;
while(true) {
r.albums[index] && results.push(r.albums[index]);
r.tracks[index] && results.push(r.tracks[index]);
r.artists[index] && results.push(r.artists[index]);
if(prevLen == results.length || results.length >= 9) {
{ favorited: false,
text: 'RT @kimmaicutler: Android platform\'s 1st billion installs took 20 months, 2nd billion took 5 months, 3rd billion took only 2 months. htt ...',
retweet_count: 0,
in_reply_to_screen_name: null,
in_reply_to_status_id_str: null,
place: null,
contributors: null,
retweeted: false,
in_reply_to_user_id: null,
source: '<a href="http://itunes.apple.com/us/app/twitter/id409789998?mt=12" rel="nofollow">Twitter for Mac</a>',
<form id="searchBox" action="/search" method="get" >
<input placeholder="Search spots" id="q" name="q" type="search" autofocus >
</form>
<h3>Search Results for </h3>
<ul id="searchResults">
<% if(@is_search_empty) %>