Skip to content

Instantly share code, notes, and snippets.

View theocalmes's full-sized avatar

Theodore Calmes theocalmes

View GitHub Profile
@theocalmes
theocalmes / CB.md
Created August 9, 2016 20:31
CB Backend API Draft

API Calls

I would like to propose two main API calls for the new features. The first is a SHALLOW general gemometry based GET for all points of intrest. The second is a DEEP GET for a single point of intrest.

Rectangle Call

GET Paramters:

@theocalmes
theocalmes / NSObject+TCBlocks.h
Last active January 12, 2022 15:29
perform selector with blocks
typedef void(^TCVoidBlock)(void);
@interface NSObject (TCBlocks)
- (void)performBlock:(TCVoidBlock)block afterDelay:(NSTimeInterval)delay;
- (void)performBlockInBackground:(TCVoidBlock)block;
- (void)performBlockOnMainThread:(TCVoidBlock)block waitUntilDone:(BOOL)wait;
@end
import java.awt.Robot;
import java.awt.event.InputEvent;
class Untitled {
public static void main(String[] args) {
try {
Robot robot = new Robot();
for (int i=0; i<10; i++) {