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
| [{ | |
| "name": "web", | |
| "image": "988098771143.dkr.ecr.us-east-1.amazonaws.com/ocicb:Latest", | |
| "cpu": 256, | |
| "memory": 512, | |
| "essential": true, | |
| "portMappings": [{ | |
| "containerPort": 8080, | |
| "hostPort": 8080 | |
| }], |
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
| /* #### Mobile Phones Portrait #### */ | |
| @media screen and (max-device-width: 480px) and (orientation: portrait){ | |
| /* some CSS here */ | |
| } | |
| /* #### Mobile Phones Landscape #### */ | |
| @media screen and (max-device-width: 640px) and (orientation: landscape){ | |
| /* some CSS here */ | |
| } |
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
| /* Set container height to 100% */ | |
| body, html { | |
| height: 100%; | |
| } | |
| .container { | |
| height: 100% !important; | |
| } | |
| /* if all fail */ |
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 reqListener () { | |
| // document.write(this.responseText); | |
| document.write(this.response); | |
| }; | |
| var oReq = new XMLHttpRequest(); | |
| oReq.onload = reqListener; | |
| oReq.open("get", "https://www.googleapis.com/books/v1/volumes?q=quilting", true); | |
| oReq.send(); |
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
| CGContextRef context = UIGraphicsGetCurrentContext(); | |
| // ERASE BACKGROUND | |
| CGContextSetRGBStrokeColor(context, 0.0, 0.0, 0.0, 1.0); | |
| CGContextSetRGBFillColor(context, 0.0, 0.0, 0.0, 1.0); | |
| CGContextFillRect(context, rect); | |
| // DRAW TEXT | |
| [[UIColor whiteColor] set]; | |
| UIFont * font = [UIFont fontWithName:@"ArialMT" size:12]; |
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
| #ifdef DEBUG | |
| # define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); | |
| #else | |
| # define DLog(...) | |
| #endif | |
| // ALog always displays output regardless of the DEBUG setting | |
| #define ALog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Upload Files using XMLHttpRequest - Minimal</title> | |
| <script type="text/javascript"> | |
| function fileSelected() { | |
| var file = document.getElementById('fileToUpload').files[0]; | |
| if (file) { | |
| var fileSize = 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
| ioreg -l -p IODeviceTree | grep firmware-abi |
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 | |
| # Find and remove | |
| find . -type f -name *.m | xargs rm | |
| # Combine device and sim libs | |
| lipo -create -output libMyLibrary.a libMyLibrary-Device.a libMyLibrary-Simulator.a |
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
| sudo /Developer/Library/uninstall-devtools --mode=all |
NewerOlder