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
<! -- Include jQuery only if not already done. Requires 1.6.1 or greater, always include jQuery first --> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script type="text/javascript" src="http://www.trendy.ie/lib/trendy.js"></script> |
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
<script type="text/javascript"> | |
// Optional functionality - a warning and an error div, can be one the same. | |
var trendyOptions = { | |
status: '#status', | |
warning: '#warning' | |
} | |
// Initialize trendy with a container of ID 'tweetContainer', with our options object | |
$t.init('#tweetContainer', trendyOptions); | |
</script> |
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
<!-- we start a search with $t.search('something'); | |
we're going to attach this functionality to a HTML input --> | |
Search Value: <input type="text" name="query" id='searchQuery'> | |
<input type="submit" value="Submit" onclick="$t.search(document.getElementById('searchQuery').value);"> |
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 fs = require('fs'), | |
fsPath = require('path'), | |
http = require('http'), | |
dust = require('dust'), | |
baseContext = dust.makeBase({}), | |
viewDir = "views"; | |
var mix = function(s, d) { |
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
// attach an event handler to all links with the singlepage class, that is all links we want to not do a full page nav | |
// where possible | |
$('a.singlepage').click(function(e){ | |
e.preventDefault(); | |
var url = $(this).attr('href'), | |
// Continue as normal for cmd clicks etc | |
if ( event.which == 2 || event.metaKey || url==="#" || !url ) { return true; } | |
// Now do a call to our JSON API made by Express. |
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
3.0 kg. Light DME | |
340g. Crystal Malt | |
14g. Chinook (Whole, 13.3 %AA) 60 min. | |
12g. Chinook (Whole, 13.3 %AA) 30 min | |
16g. Columbus (16.1 %AA) boiled 10 min | |
58 g. Columbus (16.1 %AA) boiled 0 min | |
Yeast : SO-05 |
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 neverGonna = ["give you up", "let you down", "run around and desert you", "make you cry", "say goodbye", "tell a lie and hurt you"]; | |
for (var i=0; i<neverGonna.length; i++){ | |
console.log("Never gonna " + neverGonna[i]); | |
} |
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
#! /bin/bash | |
cd cloud | |
echo 'Installing dependencies' | |
npm install -d --force | |
export NODE_PATH=$PWD | |
echo 'Running npm test' | |
npm test | |
cd .. |
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 imageController, | |
util = require("util"), | |
request = require("request"); | |
imageController = { | |
checkForTweetUrlMedia: function (tweet, callback) { | |
var url = (tweet.entities && tweet.entities.urls && tweet.entities.urls.length>0) ? tweet.entities.urls[0].expanded_url : false, | |
rex = false, | |
matchAt = 1; |
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
/* iOS6 hardware acceleration */ | |
* { | |
-webkit-transform: translateZ(0); | |
-webkit-perspective: 1000; | |
-webkit-backface-visibility: hidden; | |
} |
OlderNewer