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
Collection indicators: | |
'? ' : Key indicator. | |
': ' : Value indicator. | |
'- ' : Nested series entry indicator. | |
', ' : Separate in-line branch entries. | |
'[]' : Surround in-line series branch. | |
'{}' : Surround in-line keyed branch. | |
Scalar indicators: | |
'''' : Surround in-line unescaped scalar ('' escaped '). | |
'"' : Surround in-line escaped scalar (see escape codes below). |
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() { console.log('hello'); })(); |
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 cat = {}; | |
/** | |
* cat.NewsBox | |
* Retrieves news from Google | |
*/ | |
cat.NewsBox = (function(){ | |
function NewsBox(searchTerm, injectFn) { | |
this.searchTerm = searchTerm; |
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
--- | |
layout: default | |
--- | |
<div class="blog-index"> | |
{% assign post = site.posts.first %} | |
{% assign content = post.content %} | |
{% include post_detail.html %} | |
</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
<div class="blog-archives"> | |
{% for post in paginator.posts %} | |
{% assign content = post.content %} | |
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} | |
{% unless year == this_year %} | |
{% assign year = this_year %} | |
<h2>{{ year }}</h2> | |
{% endunless %} | |
<article> | |
{% include archive_post.html %} |
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
{ scopeName = 'text.html.basic'; | |
firstLineMatch = '<!DOCTYPE|doctype<(?i:html)|<\?(?i:php)'; | |
fileTypes = ( 'html', 'htm', 'shtml', 'xhtml', 'phtml', 'php', 'inc', 'tmpl', 'tpl', 'ctp' ); | |
foldingStartMarker = '(?x) | |
(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|li|form|dl|section|article|header|footer|nav|aside)\b.*?> | |
|<!--(?!.*--\s*>) | |
|^<!--\ \#tminclude\ (?>.*?-->)$ | |
|<\?(?:php)?.*\b(if|for(each)?|while)\b.+: | |
|\{\{?(if|foreach|capture|literal|foreach|php|section|strip) | |
|\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/))) |
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
#!/usr/bin/env node | |
var request = require("request"); | |
var exec = require("child_process").exec; | |
if (process.argv.length < 3) { | |
console.log("Missing username argument"); | |
} | |
var username = process.argv[2]; |
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
/* | |
Theme Name: org.whatwg.awesome | |
Theme URI: http://www.whatwg.org/ | |
Description: Super awesome WHATWG blog theme. | |
Version: 5.0 | |
Author: Ben (with modifications by Anne, Divya) | |
Author URI: http://projectcerbera.com/ | |
*/ | |
/* |
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 steps = 0 // steps drawn on the current element, so far | |
, info = document.getElementById('next_step') | |
, svgs = [].slice.call(document.getElementsByTagName('svg')) | |
, svg, walker, current; | |
function lexSVGPath(d) { | |
function command(seg) { | |
var cmd = seg.match(/[a-z]/i), arg, cnt; | |
if (cmd) { | |
cmd = cmd[0]; // which subcommand |
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 | |
# | |
# Copyright 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com> | |
# Dual licensed under the MIT and GPL licenses. | |
# | |
# Automatically clone single or multiple repos into a folder, | |
# great for setting up a git projects folder. | |
# | |
# Install: curl http://t.no.de/gist/github.sh | sh | |
# |