- BBEdit
- Vim
- Emacs
- TextMate
- SubEthaEdit
// | |
// DUXClientsManager.h | |
// | |
// | |
// Created by Kevin Vitale on 3/25/14. | |
// | |
// | |
@class RACSignal; |
#!/usr/bin/env python | |
# | |
# git-flip-flop: checks out two or more commits in a periodic cycle | |
# | |
# Save on your $PATH as git-flip-flop | |
# | |
# EXAMPLES | |
# | |
# Check out abc1234, then def5678, then abc1234, etc, with | |
# the default 2s between each checkout |
// Curried Functions in Swift | |
// Juan C. Montemayor (@norsemelon) | |
// Excerpt From: Apple Inc. “The Swift Programming Language.” iBooks. https://itun.es/us/jEUH0.l | |
// Syntax: func name (x1: t1)(x2: t2) -> t { ... } | |
// Note: it has a paren pair for every variable, as opposed to `(x1: t1, x2: t2)` | |
func addTwoNumbers(a: Int)(b: Int) -> Int { | |
return a + b | |
} | |
// | |
// LCKIndexedFetchedResultsController.h | |
// Quotebook | |
// | |
// Created by Andrew Harrison on 7/26/14. | |
// Copyright (c) 2014 Lickability. All rights reserved. | |
// | |
@import CoreData; |
/* ===================================== */ | |
/* = Some less.js mixins from Nutshell = */ | |
/* ===================================== */ | |
.rounded-corners (@radius: 5px) { | |
border-radius: @radius; | |
-moz-border-radius: @radius; | |
-webkit-border-radius: @radius; | |
} | |
.drop-shadow (@x:0, @y:1px, @feather:1px, @color:#fff) { |
# need to fix a corrupted repo because I have a local branch I need to recover | |
# first, backup the corrupted git repo | |
# get a fresh clone | |
$ git clone git://mydomain.local/awesomerepo.git; cd awesomerepo | |
$ mv .git/objects/pack/*.pack /tmp/. | |
$ git unpack-objects < /tmp/*.pack # unpack all the git objects. | |
# you need to move the pack file out of the | |
# git repo. See git-unpack-objects's man page: |
#!/usr/bin/env ruby | |
# Walks up and down revisions in a git repo. | |
# Usage: | |
# git walk next | |
# git walk prev | |
case ARGV[0] | |
when "next" | |
rev_list = `git rev-list --children --all` | |
refs = rev_list.scan(/[a-z0-9]{40}(?= )/) | |
refs.unshift(rev_list[/[a-z0-9]{40}/]) |
// Define your table view's sections | |
typedef enum { | |
kTitleSection = 0, | |
kGoalSection, | |
kNumberOfSections | |
} NESTemplateEditTableSections; | |
// Make configuration arrays indexed against table sections. | |
// It's safe to reorder the original enum! | |
static NSString * const kCellIdentifiers[kNumberOfSections] = { |