Skip to content

Instantly share code, notes, and snippets.

View TangChr's full-sized avatar

Christian Tang TangChr

View GitHub Profile
@oyyq99999
oyyq99999 / Md5Hash.java
Last active August 29, 2015 14:06
md5 algo
package oyyq.test.hash.md5;
import static java.lang.String.format;
import java.util.Arrays;
public class Md5Hash {
private static final class Md5TTableGenerator {
@lontivero
lontivero / gist:593fc51f1208555112e0
Last active June 24, 2023 20:05
Generates Markdown from VS XML documentation file
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
{
@thinkpad20
thinkpad20 / mushroom.py
Last active August 29, 2015 14:00
Mario mushroom in pure html/css, generated by python. http://jsfiddle.net/z5c5U/
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, _, _, _],
@irazasyed
irazasyed / git-changelog.sh
Last active July 15, 2017 13:28
Shell: Generate Git-Changelog
#!/bin/sh
CHANGELOG_FILE=CHANGELOG.md
FORMAT=" * [%h](../../commit/%h) - %s"
if test "$CHANGELOG_FILE" != ""; then
rm -rf $CHANGELOG_FILE
touch $CHANGELOG_FILE
fi
@neocotic
neocotic / jsonp.js
Last active January 19, 2021 20:19
Simple JSONP support
// 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
@nimbupani
nimbupani / index.html
Created December 2, 2011 05:00
Showing latest post on home page with Jekyll
---
layout: default
---
<div class="blog-index">
{% assign post = site.posts.first %}
{% assign content = post.content %}
{% include post_detail.html %}
</div>
@defunkt
defunkt / clients.md
Created April 18, 2010 14:09
A list of Gist clients.

Gist Clients

Want to create a Gist from your editor, the command line, or the Services menu? Here's how.

Editor Support