.yml looks like:
purchases_edit
cannot_edit: "Purchase cannot be edited after submission"
We can test in irb:
| (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") |
| 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" |
| 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]; |
| // | |
| // NSObject+KVOWeakPropertyDebug.h | |
| // KVOWeakPropertyDebug | |
| // | |
| // Created by Vladimir Grichina on 12.01.13. | |
| // Copyright (c) 2013 Vladimir Grichina. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| const ( | |
| loop = 2 | |
| ) |
| dumpURL :: String -> IO () | |
| dumpURL urlString | |
| = do | |
| { urlData <- $objc 'urlString [cstm| { | |
| return [NSString stringWithContentsOfURL: [NSURL urlWithString: urlString] | |
| encoding: NSUTF8StringEncoding | |
| error: NULL]; | |
| } |] | |
| ; putStr urlData | |
| } |
| // EXAMPLE: a compound iterator with sequencing | |
| // Python style | |
| function cat() { | |
| let is = arguments; | |
| return { | |
| next: { | |
| let length; | |
| while ((length = is.length) > 0) { | |
| try { |
| 13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF | |
| | FUCKIN PUSSIES | |
| 13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS | |
| 13:16 <luite> | hello | |
| 13:16 <ChongLi> | somebody has a mental illness! | |
| 13:16 <merijn> | Wow...I suddenly see the error of my ways and feel | |
| | compelled to write Node.js! | |
| 13:16 <genisage> | hi | |
| 13:16 <luite> | you might be pleased to learn that you can compile | |
| | haskell to javascript now |