This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import <Foundation/CPObject.j> | |
| import "DraggableItemView.j" | |
| @implementation AppController : CPObject | |
| { | |
| } | |
| - (void)applicationDidFinishLaunching:(CPNotification)aNotification | |
| { | |
| var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero()styleMask:CPBorderlessBridgeWindowMask]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import <AppKit/CPView.j> | |
| // <script src="http://maps.google.com/maps?file=api&v=2&key=GOOGLE_API_KEY" type="text/javascript"></script> | |
| // <script type="text/javascript" src="http://www.google.com/jsapi?key=GOOGLE_API_KEY"></script> | |
| var GoogleMapsApiKey = "ABQIAAAAf9q-jlyCcenUn-UCanx7ARRbkI1owMIkAJXouQXE6Jt8hWcDOxQBFf2cmFHBXOuqCJRRClFqsVvs9Q", | |
| GoogleMapsLoading = NO; | |
| @implementation GMapView : CPView | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 3> misc:pythag(500). | |
| [{3,4,5}, | |
| {4,3,5}, | |
| {5,12,13}, | |
| {6,8,10}, | |
| {7,24,25}, | |
| {8,6,10}, | |
| {8,15,17}, | |
| {9,12,15}, | |
| {9,40,41}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| menu = ti.Menu.createAppMenu("File"); | |
| RuntimeObject | |
| menu = ti.Menu.createAppMenu("Filez"); | |
| undefined |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (TiAppMenu *)createAppMenu:(NSString*)label | |
| { | |
| //TODO: review with marshall - probably need a getUserMenu | |
| NSMenu *appMenu = [[[NSApp mainMenu] itemWithTitle:label] submenu]; | |
| if (appMenu == nil) | |
| { | |
| //FIXME | |
| } | |
| else | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function objj_process_scripts() | |
| { | |
| var scripts = document.getElementsByTagName("script"); | |
| for (var i = 0; i < scripts.length; i++) | |
| { | |
| if (scripts[i].type == "text/objective-j" && !scripts[i].processed) | |
| { | |
| scripts[i].processed = true; | |
| objj_eval(scripts[i].innerText, objj_process_scripts); | |
| break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ruby <<EOT | |
| puts "hello world" | |
| EOT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sh -c "while true; do \ | |
| objj src/conversionserver.j ; \ | |
| done;" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(function()%20{data='PGh0bWw+CjxoZWFkPgoJPHRpdGxlPkNvbnNvbGU8L3RpdGxlPgoJPHN0eWxlIHR5cGU9InRleHQvY3NzIiBtZWRpYT0ic2NyZWVuIj4KCSAgICAvKiBUaGVtZWFibGUgY29tcG9uZW50cyAqLwoJICAgIGJvZHkgewoJICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiBibGFjazsKCSAgICB9CgkJLmNvbnNvbGUgewoJCSAgICBjb2xvcjogd2hpdGU7CgkJCWZvbnQtc2l6ZTogMTBweDsKCQkJZm9udC1mYW1pbHk6IE1vbmFjbywgQ291cmllciwgbW9ub3NwYWNlOwoJCX0KCQkKCQkjY3Vyc29yIHsKICAgIAkgICAgLypib3JkZXItbGVmdDogMXB4IHNvbGlkIHJnYmEoMjU1LDI1NSwyNTUsMCk7Ki8KCSAgICB9CgkJI2N1cnNvcltzaG93PSJ5ZXMiXSB7CgkJICAgIGJhY2tncm91bmQtY29sb3I6IHJlZDsKCQkgICAgLypib3JkZXItbGVmdDogMXB4IHNvbGlkIHJlZDsqLwoJCX0KCQkvKiBPdGhlciAqLwoJCS5jb25zb2xlIHsKICAgIAkgICAgd2hpdGUtc3BhY2U6IHByZTsKICAgIAkgICAgd2hpdGUtc3BhY2U6IHByZS13cmFwOwogICAgCQltYXJnaW46IDBweDsKICAgIAkJcGFkZGluZzogMHB4OwoJICAgIH0KCQkjYXV0b2NvbXBsZXRlLXJlc3VsdHMgewoJCSAgICBtYXJnaW46IDIwcHg7CgkJCWZvbnQtc2l6ZTogMTBwdDsKCQl9CgkJI2F1dG9jb21wbGV0ZS1saXN0IHsKCQkJZGlzcGxheTogaW5saW5lLWJsb2NrOwoJCQltYXJnaW46IDA7CgkJCXBhZGRpbmc6IDEwcHg7CgkJCWxpc3Qtc3R5bGUtdHlwZTogbm9u |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import <Foundation/CPObject.j> | |
| import <AppKit/CPTableView.j> | |
| CPLogRegister(CPLogConsole); | |
| @implementation AppController : CPObject | |
| { | |
| CPTableView _tableView; | |
| CPArray _data; |