I hereby claim:
- I am cmlenz on github.
- I am cmlenz (https://keybase.io/cmlenz) on keybase.
- I have a public key whose fingerprint is 2ACF 2E80 0650 50DF F199 C923 02F1 A7CD 4CD9 4BEF
To claim this, I am signing this object:
| const test = process.env.NODE_ENV === 'test'; | |
| module.exports = { | |
| plugins: [ | |
| ...(test ? ['babel-plugin-transform-import-meta'] : []) | |
| ] | |
| }; |
I hereby claim:
To claim this, I am signing this object:
| - (BOOL)isValidEmailAddress:(NSString *)text | |
| { | |
| NSError *error = NULL; | |
| NSRange textRange = {0, [text length]}; | |
| NSDataDetector *detector = [NSDataDetector dataDetectorWithTypes:NSTextCheckingTypeLink error:&error]; | |
| if (!detector) { | |
| NSLog(@"Could not instantiate link detector for email validation: %@", error); | |
| return NO; | |
| } |
| describe('IndexedDB', function() { | |
| var provider; | |
| beforeEach(function(done) { | |
| module('cmlenz.indexedDB', function(indexedDBProvider) { | |
| provider = indexedDBProvider; | |
| provider.connect("angular-indexeddb-tests", 1, function(evt, db) { | |
| db.createObjectStore('test', {keyPath: 'key'}); | |
| }); | |
| }); |
| angular.module('myModule', []); | |
| describe('Async', function() { | |
| beforeEach(function(done) { | |
| console.log("beforeEach", done); | |
| module('myModule', function() { // <- hangs here | |
| console.log("got module"); | |
| setTimeout(function() { | |
| done(); |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| ''' | |
| This script can update the localizable strings files for an Interface Builder | |
| file such as a XIB or a storyboard that uses base localization (a feature added | |
| in iOS 6 and OS X 10.8). | |
| You invoke it by passing the path to the IB file, which should sit in a | |
| Base.lproj directory: |
| -- PostgreSql | |
| SELECT | |
| pg_database.datname AS "Database Name", | |
| pg_database_size(pg_database.datname) / 1024.0 / 1024.0 AS "Database Size (MB)" | |
| FROM pg_database; | |
| -- MySql | |
| SELECT | |
| table_schema "Database Name", | |
| sum( data_length + index_length ) / 1024 / 1024 "Database Size (MB)" |
| var http = require("http"), | |
| sys = require("sys"); | |
| var server = http.createServer(function(request, response) { | |
| response.sendHeader(200, {"Content-Length": "42"}); | |
| response.finish(); | |
| sys.puts("Server finished response"); | |
| }).listen(8000); | |
| var client = http.createClient(8000, "localhost"); |