This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- Automator Service - Add to Reading List - lax version | |
-- | |
-- http://warmfuzzyapps.com/2011/07/add-to-reading-list-lax-version/ | |
-- Wiley Wimberly <[email protected]> | |
-- | |
-- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *js = @"document.getElementById('output').innerHTML = 'hello from Objective-C';"; | |
NSString *res = [webView stringByEvaluatingJavaScriptFromString:js]; | |
NSLog(@"%@", res); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface BNRLine : NSObject | |
@property (nonatomic) CGPoint begin; | |
@property (nonatomic) CGPoint end; | |
- (CGFloat)angleInRadians; | |
- (CGFloat)angleInDegrees; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |