PID=$(ps aux | grep -e 'vagrant' | grep -v grep | awk '{print $2}') && kill -s 9 $PID 2> /dev/null
// | |
// Created by Adam Kirk on 6/22/15. | |
// | |
import UIKit | |
extension UIScrollView { | |
var contentOffsetX: CGFloat { | |
get { |
// | |
// Created by Adam Kirk on 6/22/15. | |
// | |
import UIKit | |
extension UIView { | |
var x: CGFloat { | |
get { |
// PassInError.swift | |
// Created by Adam Kirk on 6/6/15. | |
import Foundation | |
typealias PassInErrorBlock = (error: NSError) -> Void | |
class PassInError: NSObject { | |
dynamic var ref: NSError? |
/* A simple server in the internet domain using TCP | |
The port number is passed as an argument */ | |
#include <stdio.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <stdlib.h> |
// compares two objects deeply ignoring array ordering. | |
isEqual = function(a, b) { | |
objectMap = function(obj) { | |
var map = []; | |
var queue = [{ key: '', value: obj }]; | |
while (queue.length > 0) { | |
var current = queue.shift(); | |
var key = current.key; |
echo "Checking host URL…" | |
e=$(egrep -r '^\s+?host:.*?localhost:3000.*?$' . 2>/dev/null) | |
if [ -n "$e" ]; then | |
echo "You need to change host to heroku." | |
exit 1 | |
fi |
I hereby claim:
- I am atomkirk on github.
- I am atomkirk (https://keybase.io/atomkirk) on keybase.
- I have a public key whose fingerprint is 1C0B BAC4 856C 3A57 29B0 6A25 659B F134 DCD3 F86E
To claim this, I am signing this object:
In 2010, Rob Foster and I released our first app, Calvetica, to the app store. It was one of the first two or three, if not the first, third-party calendar apps to use the new Event Kit that was released with iOS 4. The first day we sold around 20 copies, which wasn't bad I guess, but we're pie-in-the-sky dreamers, so we were a little disappointed. The next day, I woke to see we had sold 700 copies, and it got better and stayed that way for a while. It was the most excitement I'd felt since Christmas as a kid, watching our app climb the app store rankings. We made a lot of money.
Then, to our confusion and great disappointment, the rankings started to slip. Then, John Gruber linked to it on Daring Fireball and we sold about 2000 a day for a while and go to the #2 spot in productively and the #50 spot in the whole App Store. Thank you John! But, that was also just a spike. We began to watch our app sink again and wondered if and when it would stop. I bet if any app developers are reading this, they are shakin