Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am chapados on github.
  • I am chapados (https://keybase.io/chapados) on keybase.
  • I have a public key ASBBgzwx1riPz2VqTwAS8ebMsQoBNZSrDzRE11ib9JuJJgo

To claim this, I am signing this object:

@chapados
chapados / workspace.sh
Created July 7, 2017 20:09 — forked from scottsb/casesafe.sh
Create and manage a case-sensitive disk-image on macOS (OS X).
#!/bin/bash
# ---------------------------------------------------------
# Customizable Settings
# ---------------------------------------------------------
MOUNT_POINT="${CASE_SAFE_MOUNT_POINT:-${HOME}/workspace}"
VOLUME_PATH="${CASE_SAFE_VOLUME_PATH:-${HOME}/.workspace.dmg.sparseimage}"
VOLUME_NAME="${CASE_SAFE_VOLUME_NAME:-workspace}"
VOLUME_SIZE="${CASE_SAFE_VOLUME_SIZE:-60g}"
@chapados
chapados / git-log-cpr.py
Last active September 9, 2016 20:18
List commits that are candidates for cherry-picking (in master but not release/candidate)
#!/usr/bin/env python
import argparse
import os
import re
import subprocess
import sys
def parse_args(args):
@chapados
chapados / uncrustify.cfg
Last active August 29, 2015 14:19
uncrustify_anki
#
# Uncrustify Configuration File
# File Created With UncrustifyX 0.4.3 (252)
#
# Alignment
# ---------
## Alignment

Welcome to Drift!

Drift is an always-already versioned, cloud-backed text editor. You can use it to take notes, and save them in the GitHub cloud.

Your gists are always saved locally, and any changes you make will get pushed to GitHub's servers.

To name a gist, touch its name in the toolbar.

You can use the share button at the top-right to copy a link to one of your gists, or view it on the web in Safari.

Welcome to Drift!

Drift is an always-already versioned, cloud-backed text editor. You can use it to take notes, and save them in the GitHub cloud.

Your gists are always saved locally, and any changes you make will get pushed to GitHub's servers.

To name a gist, touch its name in the toolbar.

You can use the share button at the top-right to copy a link to one of your gists, or view it on the web in Safari.

Welcome to Drift!

Drift is an always-already versioned, cloud-backed text editor. You can use it to take notes, and save them in the GitHub cloud.

Your gists are always saved locally, and any changes you make will get pushed to GitHub's servers.

To name a gist, touch its name in the toolbar.

You can use the share button at the top-right to copy a link to one of your gists, or view it on the web in Safari.

@chapados
chapados / yield-self.m
Created June 18, 2011 20:21
yield(self) pattern implemented with objective-C blocks
//
// yield(self) pattern implemented using objective-C blocks
// (not as pretty as Ruby...)
//
// compile:
// llvm-gcc-4.2 -o yield-self -framework Foundation yield-self.m
#import <Foundation/Foundation.h>
@class MyClass;
#!/bin/sh
#
# This script will install the python bindings for protobuf
#
# settings
PROTOBUF_VERSION="2.3.0"
PROTOBUF_DIR="protobuf-${PROTOBUF_VERSION}"
require "shortcut"
require 'hotcocoa'
class Application
include HotCocoa
def start
application :name => "Shortcut" do |app|
app.delegate = self