Skip to content

Instantly share code, notes, and snippets.

@zwily
zwily / sortable_table.js
Last active August 29, 2015 14:03
simple sortable table react component
/** @jsx React.DOM */
var React = require('react'),
types = React.PropTypes,
_ = require('underscore');
module.exports = React.createClass({
propTypes: {
columns: types.arrayOf(
types.shape({

Keybase proof

I hereby claim:

  • I am zwily on github.
  • I am zwily (https://keybase.io/zwily) on keybase.
  • I have a public key whose fingerprint is 4BEE 0C59 A509 E13B 5F1F 253B D41E B637 61AA 492F

To claim this, I am signing this object:

whoizach-laptop-2:~ zach $ whois noticeablyunprofessional.com
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
Domain Name: NOTICEABLYUNPROFESSIONAL.COM
Registrar: GODADDY.COM, LLC
This is a table testing
Oh hi there blah
This is a table | testing
---------------- | --------
Oh hi there | blah
#include <iostream>
using namespace std;
class A {
public:
A(int val) : m_val(val) {}
#!/usr/bin/ruby
module Kernel
def method_missing(sym, *args, &block)
s = sym.to_s
if s.length > 2 && s[0,2] == 'jt'
real_name = s[2..-1]
send(real_name.to_sym, *args, &block)
end
end
[alias]
amend-message = "!bash -c ' \
c=$0; \
if [ $c == \"bash\" ]; then echo \"Usage: git amend-message <commit>\"; exit 1; fi; \
saved_head=$(git rev-parse HEAD); \
commit=$(git rev-parse $c); \
commits=$(git log --reverse --pretty=format:%H $commit..HEAD); \
echo \"Rewinding to $commit...\"; \
git reset --hard $commit; \
git commit --amend; \
#include <stdlib.h>
#include <iostream>
class A {
public:
A() {
std::cout << "A ctor" << std::endl;
}
~A() {
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage: download.sh file ..."
exit 1
fi
for fn in "$@"
do
if [ -r "$fn" ] ; then
printf '\033]1337;File=name='`echo -n "$fn" | base64`";"
wc -c "$fn" | awk '{printf "size=%d",$1}'