.yml looks like:
purchases_edit
cannot_edit: "Purchase cannot be edited after submission"
We can test in irb:
| dumpURL :: String -> IO () | |
| dumpURL urlString | |
| = do | |
| { urlData <- $objc 'urlString [cstm| { | |
| return [NSString stringWithContentsOfURL: [NSURL urlWithString: urlString] | |
| encoding: NSUTF8StringEncoding | |
| error: NULL]; | |
| } |] | |
| ; putStr urlData | |
| } |
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| const ( | |
| loop = 2 | |
| ) |
| // | |
| // NSObject+KVOWeakPropertyDebug.h | |
| // KVOWeakPropertyDebug | |
| // | |
| // Created by Vladimir Grichina on 12.01.13. | |
| // Copyright (c) 2013 Vladimir Grichina. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |
| static NSString *kcIdentifier = @"MyApp"; | |
| @implementation LTAppDelegate (KeyChain) | |
| - (void)keychainInit | |
| { | |
| self.keychainDict = [NSMutableDictionary dictionaryWithCapacity:7]; | |
| KeychainItemWrapper *item = [[KeychainItemWrapper alloc] initWithIdentifier:kcIdentifier accessGroup:nil]; | |
| [self.keychainDict setObject:@"" forKey:kcEmailAddress]; |
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
| (extend-type js/RegExp | |
| cljs.core/IFn | |
| (-invoke ([this s] (re-matches this s)))) | |
| (#"foo.*" "foobar") ;=> "foobar" | |
| (#"zoo.*" "foobar") ;=> nil | |
| (filter #".*foo.*" ["foobar" "goobar" "foobaz"]) ;=> ("foobar" "foobaz") |
| /* | |
| * Most NSString instances will actually be __NSCFString instances, so here are both NSString and __NSCFString implementations. | |
| * If you know how to create an NSString instance whose class is actually NSString please let me know. | |
| * Other possible concrete subclasses of NSString are: NSConstantString, __NSCFConstantString, NSPathStore2, NSSimpleCString and __NSLocalizedString. | |
| */ | |
| // CoreFoundation.framework 635.19.0 (Mac OS X 10.7.3) | |
| @implementation NSObject | |
| - (BOOL) isNSString__ |
| git ls-files | egrep '\.erl|\.ex[s]$' | xargs cat | sed '/^$/d' | wc -l |
| # Install this recipe with: | |
| # brew install --HEAD https://raw.github.com/gist/1955470/c58bda92f07147afff64a86d0c2d8ef65adb9cd6/elixir.rb | |
| require 'formula' | |
| class Elixir < Formula | |
| homepage 'http://elixir-lang.org/' | |
| head 'https://github.com/elixir-lang/elixir.git' | |
| depends_on 'erlang' |