Instantly share code, notes, and snippets.

View gist:4d024eddd9f694daa5a24bfd3573b4b4
hippies $ hugo new site
hippies $ cd $ git init $ git submodule add themes/ananke $ echo 'theme = "ananke"' >> config.toml $ vim config.toml $ hugo new posts/ $ vim content/posts/ $ hugo server -D
View BNRLine.h
#import <Foundation/Foundation.h>
@interface BNRLine : NSObject
@property (nonatomic) CGPoint begin;
@property (nonatomic) CGPoint end;
- (CGFloat)angleInRadians;
- (CGFloat)angleInDegrees;
View gist:1171553
NSString *js = @"document.getElementById('output').innerHTML = 'hello from Objective-C';";
NSString *res = [webView stringByEvaluatingJavaScriptFromString:js];
NSLog(@"%@", res);
View add2readinglist.scpt
-- Automator Service - Add to Reading List - lax version
-- Wiley Wimberly <>
-- The default service that adds links to Safari's Reading List is a
-- bit on the strict side when deciding what constitutes a URL and it
-- doesn't work well for adding shortened URLs from apps like twitter.
-- This version is more tolerant and will prepend http:// if the