Every request should contain the following headers:
Quoth-Client: an user-agent type string, eg.Quoth-iOS 3.2Quoth-Authentication: a json object, like this:
| require 'kenji' | |
| module Kenji | |
| class Controller | |
| class << self | |
| def routes_deprecated!(enabled = true) | |
| if enabled | |
| puts "Enabling deprecation for the following methods in #{self.name}:" | |
| else |
| ; note: this iteration doesn't work properly. | |
| ; looks like i don't understand exactly how react.js works for settings dom element properties | |
| (set! exports {}) | |
| ; react macros... | |
| (defmacro hash-map-pairs | |
| "make a hash map from its arguments. each argument is a tuple (key value)" |
| // | |
| // CBJSONCollectionDescriptions.m | |
| // Chartboost | |
| // | |
| // Created by Kenneth Ballenegger on 3/12/14. | |
| // | |
| // | |
| #import "CBJSONCollectionDescriptions.h" | |
| #import <objc/runtime.h> |
| Process: Xcode [7919] | |
| Path: /Applications/Xcode.app/Contents/MacOS/Xcode | |
| Identifier: com.apple.dt.Xcode | |
| Version: 5.0.1 (3335.6) | |
| Build Info: IDEApplication-3335006000000000~3 | |
| Code Type: X86-64 (Native) | |
| Parent Process: launchd [247] | |
| Responsible: Xcode [7919] | |
| User ID: 501 |
| char *const kCBLocationAtStartupString = "startup"; | |
| // etc ... | |
| typedef enum CBLocation { | |
| CBLocationAtStartup = (char *const)"startup", | |
| // etc. | |
| } CBLocation; | |
| void showInterstitial(CBLocation location) { | |
| char *locationString = (char *)location; |
| NSString *const kCBLocationAtStartupString = @"startup"; | |
| // etc ... | |
| typedef NS_ENUM(NSString *, CBLocation) { | |
| CBLocationAtStartup = kCBLocationAtStartupString, | |
| // etc. | |
| }; | |
| - (void)showInterstitial:(CBLocation)location { | |
| NSString *locationString = (NSString *)location |
I hereby claim:
To claim this, I am signing this object:
| // | |
| // File.c | |
| // | |
| // | |
| // Created by Kenneth Ballenegger on 1/13/14. | |
| // | |
| // | |
| #include <stdlib.h> | |
| #include <stdio.h> |
| require 'date' | |
| require 'json' | |
| # assume standard 4-year vesting | |
| # ignores cliff | |
| # ignores vesting periods, assumes daily. (watch out for this) | |
| unless price = ARGV[1] | |
| puts "Must pass in price as second arg..." | |
| exit 1 |