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
#################################### | |
# BASIC REQUIREMENTS | |
# http://graphite.wikidot.com/installation | |
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/ | |
# Last tested & updated 10/13/2011 | |
#################################### | |
cd | |
sudo apt-get update | |
sudo apt-get upgrade |
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
define( | |
["jquery", "backbone", "twig", "q"], | |
function($, Backbone, Twig, Q) { | |
return Backbone.View.extend({ | |
tagName: "div" | |
, ready: function() { | |
return this.templateReady.promise; | |
} |
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
*filter | |
# Accepts all established inbound connections | |
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT | |
# Allows all outbound traffic | |
-A OUTPUT -j ACCEPT | |
# Allows HTTP and HTTPS connections from anywhere | |
-A INPUT -p tcp --dport 443 -j ACCEPT |
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
<div class="userPicture"> | |
<a href="http://twitter.com/{{ user.screen_name }}"><img src="{{ user.profile_image_url }}" alt="" /></a> | |
</div> | |
<div class="content"> | |
<div class="date">{{ created_at|date("M j, Y @ g:i a") }}</div> | |
<div class="user"> | |
<span class="name"><a href="{{ user.url }}">{{ user.name }}</a></span> | |
<span class="handle"><a href="http://twitter.com/{{ user.screen_name }}">{{ user.screen_name }}</a></span> | |
</div> | |
<div class="text">{{ text }}</div> |
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
module.declare( | |
[ | |
{ backbone: 'vendor/backbone' } | |
, { twig: "vendor/twig" } | |
, { tweet: "js/model/tweet" } | |
] | |
, function (require, exports, module) { | |
var Backbone = require("backbone") | |
, twig = require("twig").twig |
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
// NEW underscore.js | |
module.declare([], function (require, exports, module) { | |
// Contents of underscore.js | |
// Backbone expects require("underscore") to be _ | |
// so let's make it so. | |
exports._.extend(exports, exports._); | |
}); | |
// NEW backbone.js |