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
$(document).ready(function(){ | |
$("a[href^=mailto]").emailSwitcher(); | |
}); | |
// Switches emails in the form <a href="mailto:">bill at ben dot com</a> | |
// to <a href="mailto:[email protected]">[email protected]</a>. | |
$.fn.emailSwitcher = function () { | |
var regex = /^([^\s]+)\s+at\s+([^\s]+)\s+dot\s+([^\s]+)$/gi; | |
this.each(function () { | |
var $this = $(this), |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/> | |
<title>Lighthouse Keeper Template</title> | |
<style type="text/css" charset="UTF-8"> | |
body { | |
font: 16px/1 'Helvetica Neue', 'Helvetica-Neue'; | |
padding: 0; |
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
/* @group JS-Kit Override */ | |
.js-singleCommentBodyT { | |
display: block; | |
padding-top: 17px !important; | |
} | |
.js-singleCommentHeader { | |
padding: 0 8px !important; |
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 split_array($array, $key_values) { | |
$sorted_array = array(); | |
foreach($array as $key => $value) { | |
if(in_array($key, $key_values)) { | |
$sorted_array[$key] = $value; | |
} | |
} | |
return $sorted_array; | |
} |
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 to clear placeholder text in an input element. | |
* | |
* Clears the input on focus unless the user has already | |
* entered data, if the input is blank on blur the placeholder | |
* will be reinserted. | |
* | |
* Uses the value supplied in the _placeholder_ attribute on | |
* the input element. If this is not present it will default | |
* to the _value_ attribute. |
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
# Adds an array of folders to the global path array. | |
['lib', '../vendor'].each { |path| $:.unshift File.expand_path(path) } |
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 ($) { | |
$.emberBadge = function (selector, username, options) { | |
var $badge = $(selector); | |
options = $.extend(options || {}, $.emberBadge.defaults); | |
// Source: http://javascript.crockford.com/remedial.html | |
function renderTemplate(values) { | |
return options.template.replace(/{([^{}]*)}/g, function (a, b) { | |
var r = values[b]; |
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
diff --git a/riot.js b/riot.js | |
index 27e5162..fa0d017 100644 | |
--- a/riot.js | |
+++ b/riot.js | |
@@ -491,7 +491,7 @@ | |
} | |
} | |
} | |
- for (var key in a) { | |
+ for (var key in b) { |
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
Index: classes/model/auth/user/token.php | |
=================================================================== | |
--- classes/model/auth/user/token.php (revision 41) | |
+++ classes/model/auth/user/token.php (working copy) | |
@@ -23,14 +23,17 @@ | |
)), | |
'expires' => new Field_Timestamp, | |
)); | |
- | |
+ } |
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
/* A lightweight templating system. | |
* | |
* Based on Tim (http://github.com/premasagar/tim) and Mustache | |
* (http://github.com/janl/mustache.js). | |
* | |
* Template supports simple value replacement as well as block | |
* functions, iterators and conditionals | |
* | |
* Template strings can contain either plain tokens `{{token}}` | |
* which are replaced with their equivilent value in the data |
OlderNewer