Want to create a Gist from your editor, the command line, or the Services menu? Here's how.
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
// Simple JSONP support | |
// (c) 2011 [neocotic](http://github.com/neocotic) | |
// Released under the MIT License | |
// http://en.wikipedia.org/wiki/MIT_License | |
(function (root) { | |
var previousJSONP = root.JSONP; | |
root.JSONP = { | |
__callbacks : {}, | |
get : function (url, callback, context) { | |
var |
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/sh | |
CHANGELOG_FILE=CHANGELOG.md | |
FORMAT=" * [%h](../../commit/%h) - %s" | |
if test "$CHANGELOG_FILE" != ""; then | |
rm -rf $CHANGELOG_FILE | |
touch $CHANGELOG_FILE | |
fi |
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
BLACK = {'background-color': 'black'} | |
WHITE = {'background-color': 'white'} | |
GREEN = {'background-color': 'green'} | |
_ = {} | |
colors = [BLACK, WHITE, GREEN, _] | |
pixel_size = 10 | |
grid = [[_, _, _, _, _, BLACK, BLACK, BLACK, BLACK, BLACK, BLACK, _, _, _, _, _], | |
[_, _, _, BLACK, BLACK, BLACK, WHITE, GREEN, GREEN, WHITE, BLACK, BLACK, BLACK, _, _, _], |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using System.Xml; | |
using System.Xml.Linq; | |
namespace GithubWikiDoc | |
{ |
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
package oyyq.test.hash.md5; | |
import static java.lang.String.format; | |
import java.util.Arrays; | |
public class Md5Hash { | |
private static final class Md5TTableGenerator { |
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
-- test.lua | |
-- using the class lib and the introspective base helper method | |
class 'A' | |
function A:test() | |
print "Hi" | |
end | |
class 'B' (A) | |
function B:test() |
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 lastPos = 0; | |
var scrolling = $('#scrolling-item'); | |
scrolling.on('scroll', function () { | |
var height = scrolling.height(); | |
var scrollHeight = scrolling[0].scrollHeight; | |
var scrollTop = scrolling.scrollTop()+1; | |
if (lastPos < scrollTop) { | |
if (scrollTop >= scrollHeight - height) { | |
console.log('Loading..'); | |
} |
OlderNewer