Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am millenomi on github.
  • I am millenomi (https://keybase.io/millenomi) on keybase.
  • I have a public key whose fingerprint is 0A45 25A7 49B7 3EE5 EE93 96A4 3AF5 F368 7D7E 07A4

To claim this, I am signing this object:

@millenomi
millenomi / gist:3048341
Created July 4, 2012 17:02
Mover 3.5.2 Update message from the cloud.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>MvrIdentifier</key>
<string>ABB1FDC2-9FBF-4DFE-88C5-7067A560CEC3</string>
<key>MvrMiniTitle</key>
<dict>
<key>en</key>
<string>Mover 3.5.2!</string>
typedef int (^AdderBlock)(int a);
AdderBlock MakeAdderBlockThatAdds(int a) {
return [[^(int b) { return a + b; } copy] autorelease];
}
...
AdderBlock addTwo = MakeAdderBlockThatAdds(2);
NSLog(@"%d", addTwo(3)); // logs 5
...

[If you put this idea of mine in Mover, can we split revenue]

No.

I can't update Mover anymore anyway.

But even before I sold my soul out for the American Dream, there was a policy in place against this kind of deal. Ideas are a dime a dozen; executing them is where the value really is. Odds are I probably had the same idea, evaluated it and discarded it.

I'm not dismissing your idea. I'm sure that in the right context it's both feasible and great — regardless of what it was. But Mover was a very constrained context and an exercise in balancing usefulness and intuitiveness and, believe me, a veritable ton of ideas ended up on the cutting floor; odds are yours is there too in some form. That even includes ideas that could've been made into entire products of their own, and would've, if my new corporate masters hadn't paid staggering amounts of money to move me to Silicon Valley. Given this surplus of ideas, I simply don't see why I should pay others for theirs, especially when I'm going to have to do m

Welcome to Drift!

Drift is an always-already versioned, cloud-backed text editor. You can use it to take notes, and save them in the GitHub cloud.

Your gists are always saved locally, and any changes you make will get pushed to GitHub's servers.

To name a gist, touch its name in the toolbar.

You can use the share button at the top-right to copy a link to one of your gists, or view it on the web in Safari.

@millenomi
millenomi / gist:1159072
Created August 20, 2011 12:56
SwapKit 2 code doodles
// ----- simplest: -----
- (void) application:(id) app didFinishLaunchingWithOptions:(NSDictionary*) opts;
{
...
services = [ILServicesController new];
services.showsServicesActionInMenu = YES;
// with this, all menus will show a Services… command at the end.
// you can easily tap into this by implementing a UIResponder action in your view or view controller subclass, and let SwapKit's default impl manage everything for you. Just show the menu as you would for cut/copy/paste.
//
// ILDeleteGesture.h
// Gestures
//
// Created by ∞ on 02/08/11.
// Copyright 2011 Emanuele Vulcano. All rights reserved.
//
// Use this under the provisions of the MIT license: <http://www.opensource.org/licenses/mit-license.php>
#import <Foundation/Foundation.h>
#import "unzip.h"
@interface ILZIPExtractor : NSObject {
unzFile zip;
}
- (id) initWithZIPAtPath:(NSString*) path;
@property(readonly) NSArray* files;
//
// ILService.h
// DependencyInjection
//
// Created by ∞ on 26/02/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
@millenomi
millenomi / gourl.sh
Created January 14, 2011 16:23
This is a wrapper around the 'curl' command-line tool that adds a few useful features.
#!/bin/bash
if [ "$#" == "0" ]; then
echo "usage: $0 [CURL FLAGS|--json FILE|--https|--dry-run]* URL" >&2
echo "You can set the BASE_URL environment variable; if you do, all relative URLs will be have the BASE_URL appended in front of them. (Note that this appends blindly the two strings together, doing no resolution work.)" >&2
exit 1
fi
args=("$@")
verbatim_args=()