View gist:4d024eddd9f694daa5a24bfd3573b4b4
hippies $ hugo new site highmaintenancehippies.com
hippies $ cd highmaintenancehippies.com/
highmaintenancehippies.com $ git init
highmaintenancehippies.com $ git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke
highmaintenancehippies.com $ echo 'theme = "ananke"' >> config.toml
highmaintenancehippies.com $ vim config.toml
highmaintenancehippies.com $ hugo new posts/hello-world.md
highmaintenancehippies.com $ vim content/posts/hello-world.md
highmaintenancehippies.com $ 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
--
-- http://warmfuzzyapps.com/2011/07/add-to-reading-list-lax-version/
-- Wiley Wimberly <wiley@warmfuzzyapps.com>
--
-- 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