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
| //MyCell.h | |
| @protocol MyCellDelegate <NSObject> | |
| -(void)cellCheckBoxWasChanged:(MyCell *)cell; | |
| @end | |
| @interface MyCell : NSObject |
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
| //http://everybody.is-a-cyb.org/project/21 | |
| //PROCESSING WRITES TO ARDUINO | |
| import processing.serial.*; | |
| // The serial port: | |
| Serial myPort; | |
| int value = 0; |
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
| //http://everybody.is-a-cyb.org/project/21 | |
| //PROCESSING WRITES TO ARDUINO | |
| import processing.serial.*; | |
| // The serial port: | |
| Serial myPort; | |
| int value = 0; |
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
| // since iOS 4, extension C lang | |
| //AKA, lambdas, anonimous functions, clousures | |
| //function that can be stored as a variable (referred to as a "first-class function") | |
| //clousure scope incorporates parent scope "close" | |
| //encapsulate chunks of code and pass them around like any other object | |
| //As well as containing executable code, a block also has the ability to capture state from its enclosing scope. |
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
| <?php | |
| // Provide the Host Information. | |
| $tHost = 'gateway.sandbox.push.apple.com'; | |
| $tPort = 2195; | |
| // Provide the Certificate and Key Data. | |
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
| ///// | |
| # MyMuch.h | |
| @protocol MyMuchDelegate; | |
| @interface MyMuch : MyMuchViewController | |
| { | |
| //id<MyMuchDelegate> _delegate; //new style not needed | |
| } |
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
| #pragma mark - Table view data source | |
| - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{ | |
| // Return the number of sections. | |
| return 1; | |
| } | |
| - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ | |
| return objectArray.count; | |
| } |
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
| #server | |
| # TCP Server Code | |
| #host="127.0.0.1" # Set the server address to variable host | |
| host="127.168.2.75" # Set the server address to variable host | |
| port=4446 # Sets the variable port to 4444 | |
| from socket import * # Imports socket module | |
| s=socket(AF_INET, SOCK_STREAM) | |
| s.bind((host,port)) # Binds the socket. Note that the input to |
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
| JSONObject json; | |
| Object intervention; | |
| JSONArray interventionJsonArray; | |
| JSONObject interventionObject; | |
| json = RestManager.getJSONfromURL(myuri); // retrieve the entire json stream | |
| Object intervention = json.get("intervention"); | |
| if (intervention instanceof JSONArray) { | |
| // It's an array | |
| interventionJsonArray = (JSONArray)intervention; |
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
| textField | |
| . iOS : UITextField | |
| . android: EditText |