Skip to content

Instantly share code, notes, and snippets.

View user-initials.html
<title>User Initials</title>
/* Relevant Code */
.person {
display: table;
margin: 24px auto;
metasmile / TypedIterableCapabilty.h
Last active Aug 25, 2015
a macro for support ios9's new typed iterable.
View TypedIterableCapabilty.h
#define __typed_iterable(iterablesCls, elementsType) iterablesCls<elementsType> *
#define __typed_iterable(iterablesCls, elementsType) iterablesCls *
#define __ktyped_iterable(iterablesCls, elementsType) iterablesCls<__kindof elementsType> *
#define __ktyped_iterable(iterablesCls, elementsType) iterablesCls *
View tiled_loader.pde
import gifAnimation.*;
GifMaker gifExport;
int frames = 0;
int totalFrames = 120;
public void setup() {
size(360, 360);
View .sbclrc
;;; Better printing for hash tables
(set-pprint-dispatch 'hash-table
(lambda (str ht)
(format str "{~{~{~S => ~S~}~^, ~}}"
(loop for key being the hash-keys of ht
for value being the hash-values of ht
collect (list key value)))))
View gist:c20d57be953e78cadfc3
<?xml version="1.0" encoding="UTF-8"?>
<!-- This stylesheet will generate a tsv file from an EAD container list. It will catch all c0X elements that have a did/container child -->
<xsl:stylesheet xmlns:xsl="" version="1.0">
<!-- We don't want an xml declaration in the output, since this will just be a tab-separated text file-->
<xsl:output omit-xml-declaration="yes"/>
<!-- We don't want extra space floating around -->
View gist:6286073ab5e890886e30
"always_show_minimap_viewport": false,
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
"copy_with_empty_selection": false,
"default_encoding": "UTF-8",
"detect_indentation": false,
"font_size": 10,
"highlight_line": true,
"highlight_modified_tabs": true,
Jamie0 / autoban.rb
Created Aug 25, 2015
autoban:: Simple, efficient Ruby "fail2ban"-like script
View autoban.rb
# A more efficient and documented autoban.rb
# Jamie - Released under MIT.
# This won't work with binary journal logs - the 'systemd/journal' gem doesn't work universally
$ssh_port = 1234
$network = ["", "", ""]
require "shellwords"
jonatasfreitasv /
Last active Aug 25, 2015 — forked from XueshiQiao/
Generate a MP4 Video for your Git project commits using Gource!
# 1.install gource using HomeBrew
$ brew install gource
# 2.install avconv
git clone git://
cd libav
# it will take 3-5 minutes to complie, be patient.
./configure --disable-yasm
make && make install
noobjey / gist:12e050da7c9e1b5793dd
Created Aug 25, 2015
Sass - Lighting Talk Module 2
View gist:12e050da7c9e1b5793dd
# Sass, css for Cool People
### What is Sass
* Precompiler for CSS
* Why use it?
### Sass in Rails
* Setup - just a gem
### 2 Different Flava's
View FAQ.html
<!doctype html>
<html lang="eng">
<meta charset="utf-8">
<!-- JQuery -->
<script src=""></script>
<!-- Latest compiled and minified Bootstrap CSS -->
You can’t perform that action at this time.