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
var gist = 'this is a gist dawg!'; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Dead Simple Twitter Search API jQuery Feed</title> | |
<script src="http://code.jquery.com/jquery.js"></script> | |
<script src="jQuery.twitterFeed.js"></script> | |
<script src="jquery.twitter-usage-ex.js"></script> | |
<link href="jQuery.twitterFeed.css" media="screen" rel="stylesheet" type="text/css"> | |
</head> | |
<body> |
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 ($) { | |
var mention = function(str) { | |
return str.replace(/[@]+[A-Za-z0-9-_]+/ig, function(username) { | |
return username.link('http://twitter.com/'+username.replace('@','')); | |
}); | |
}, | |
hashtags = function(str) { | |
return str.replace(/[#]+[A-Za-z0-9-_]+/ig, function(tag) { | |
tag = tag.replace('#','%23'); | |
return tag.link('http://search.twitter.com/search?q='+tag); |
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
/* Just some basic styling we've provided */ | |
#twitter li {margin-bottom: 10px; font-size: 12px; clear: both} | |
#twitter li img {float:left; margin:0px 10px 10px 0px;border:1px solid #c2c2c2; -moz-box-shadow: 0px 0px 4px #c2c2c2; -webkit-box-shadow: 0px 0px 4px #c2c2c2; box-shadow: 0px 0px 4px #c2c2c2;} |
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 ($) { | |
var mention = function(str) { | |
return str.replace(/[@]+[A-Za-z0-9-_]+/ig, function(username) { | |
return username.link('http://twitter.com/'+username.replace('@','')); | |
}); | |
}, | |
hashtags = function(str) { | |
return str.replace(/[#]+[A-Za-z0-9-_]+/ig, function(tag) { | |
tag = tag.replace('#','%23'); | |
return tag.link('http://search.twitter.com/search?q='+tag); |
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
/* | |
* Smart event highlighting | |
* Handles for when events span rows, or don't have a background color | |
*/ | |
$(function() { | |
var highlight_color = "#2EAC6A", | |
event_id = event_class_name = event_color = null; | |
$(".ec-event-bg").each(function(ele) { | |
ele.mouseover(function(evt) { | |
event_id = ele.attr("data-event-id"); |
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
Meteor.route | |
'': 'home' | |
login: | |
template: 'login' | |
events: 'submit form': (e) -> e.preventDefault() | |
'/users/:user_id': | |
template: 'profile' | |
getData: (user_id) -> Meteor.users.findOne user_id |
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
Template.beatles.created = function() { | |
this.i_say = 'Hello'; | |
this.you_say = 'Good Bye' | |
this.who = 'i' | |
} | |
Template.beatles.events({ | |
'change select': function() { this.who = $(e.target).val(); } | |
}); |
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
// want | |
var setPostTitle = function($id, title) { | |
$firebase(base + "/posts/" + $id).$set({ title: title }); | |
} | |
// doing now | |
var setPostTitle = function($id, title) { | |
post = $firebase(base + "/posts/" + $id); | |
post.title = title; | |
post.$save(); |
OlderNewer