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
$eleven40-grid-width: 4.85% !default; // The width of a column | |
$eleven40-grid-margin: 3.8% !default; // The amount of margin between columns | |
@mixin eleven40-container { | |
padding-left: 20px; | |
padding-right: 20px; | |
} | |
@mixin eleven40-row { | |
margin: 0 auto; |
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
$.ajax({ | |
url: 'http://api.twitter.com/1/statuses/user_timeline.json?screen_name=someonesplendid', | |
dataType: 'jsonp', | |
success: function(data) { | |
var tweet = data[0].text; | |
tweet = tweet.replace(/(http\:\/\/[A-Za-z0-9\.\/_]+)/g, '<a href="$1">$1</a>'); | |
tweet = tweet.replace(/@([a-zA-Z0-9_]+)/g, '<a href="http://twitter.com/$1">@$1</a>'); | |
$('#tweet').html(tweet); | |
} | |
}); |
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
<!-- Call the template --> | |
<xsl:call-template name="replace-node-set"> | |
<xsl:with-param name="input" select="hints/text()" /> | |
<xsl:with-param name="node" select="//pattern" /> | |
<xsl:with-param name="total" select="count(//pattern)" /> | |
</xsl:call-template> | |
<!-- Recursive template that iterates through the pattern nodes --> | |
<xsl:template name="replace-node-set"> | |
<xsl:param name="node" /> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:exsl="http://exslt.org/common" | |
extension-element-prefixes="exsl"> | |
<xsl:import href="../../utilities/generic/string-replace.xsl" /> | |
<xsl:strip-space elements="* | @*"/> |
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
<!-- Pretend this is a JSX block --> | |
<div> | |
<TouchPreview previewClassName="link--preview"> | |
<a href="/foo"> | |
Hello | |
</a> | |
</TouchPreview> | |
</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
var views = { | |
foo: function($el, el, props) { | |
console.log(props); | |
}, | |
bar: function($el, el, props) { | |
console.log(props); | |
}, | |
fooBar: function($el, el, props) { | |
console.log(props); | |
} |
NewerOlder