Skip to content

Instantly share code, notes, and snippets.

View austintaylor's full-sized avatar

Austin Taylor austintaylor

View GitHub Profile
- (CGFloat)cellWidthForStyle:(UITableViewStyle)style accessoryType:(UITableViewCellAccessoryType)accessoryType {
CGFloat width = self.view.frame.size.width;
CGFloat accessoryWidth;
CGFloat margin;
if (IOS7) {
if (accessoryType == UITableViewCellAccessoryDisclosureIndicator) {
accessoryWidth = 33;
}
} else {
if (accessoryType == UITableViewCellAccessoryDisclosureIndicator) {
; Given a list of permutations, only keep the highest scoring option
; for each unique key as returned by the key function and the score
; function.
(defn prune [s key-f score-f]
(map (fn [[k v]] (apply max-key score-f v)) (group-by key-f s)))
; Iterate over the provided starting value until the condition is met.
(defn iterate-until [f until-f start]
(first (drop-while (complement until-f) (iterate f start))))
@austintaylor
austintaylor / userscript.css
Last active February 17, 2016 22:58 — forked from banderson623/userscript.js
My customizations for Slack in Fluid.app
.bot_message {
background: #F2F2F2 !important;
border-top: 8px solid #F2F2F2;
color: #666;
margin: 0 !important;
}
.message {
margin: 4px 0;
}
@austintaylor
austintaylor / notes.txt
Created December 15, 2016 16:47
Notes apps I have tried
Notes apps I have tried
- Evernote
- way too busy
- tags
- skitch garbage
- no nested folders
- limited features unless you pay a subscription
- OneNote
- not really a text editor (weird text box stuff)
- too heavy
<p> G.K. Chesterton, The Thing</p>
<p>CONTENTS</p>
<p>1. INTRODUCTION</p>
<p>2. THE SCEPTIC AS CRITIC</p>
<p>3. Is HUMANISM A RELIGION?</p>