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 | |
| ipfw -q -f flush | |
| ipfw add pipe 1 in | |
| ipfw add pipe 2 out | |
| ipfw pipe 1 config bw 512Kbit/s queue 30 delay 150ms | |
| ipfw pipe 2 config bw 2Mbit/s queue 10 delay 150ms | |
| ipfw -q add allow all from any to any |
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
| // This example adapted from Matt Gallagher's "Minimalist Cocoa Programming" | |
| // blog article: | |
| // http://cocoawithlove.com/2010/09/minimalist-cocoa-programming.html | |
| var $ = require('NodObjC') | |
| $.import('Cocoa') | |
| var pool = $.NSAutoreleasePool('alloc')('init') | |
| , app = $.NSApplication('sharedApplication') |
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
| var safariDebug = ( navigator.platform.indexOf("iPhone") < 0 && navigator.platform.indexOf("iPod") < 0 && navigator.platform.indexOf("iPad") < 0 ); | |
| if(safariDebug) | |
| { | |
| PhoneGap.run_command = function() | |
| { | |
| if (!PhoneGap.available || !PhoneGap.queue.ready) | |
| return; |
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
| /* Based on YUI 3 CSS Grids: http://developer.yahoo.com/yui/3/cssgrids/ */ | |
| .layout { | |
| letter-spacing: -0.31em; /* webkit: collapse white-space between units */ | |
| *letter-spacing: normal; /* reset IE < 8 */ | |
| word-spacing: -0.43em; /* IE < 8 && gecko: collapse white-space between units */ | |
| } | |
| .layout > *, | |
| .layout .unit { | |
| display: inline-block; | |
| zoom: 1; *display: inline; /* IE < 8: fake inline-block */ |
NewerOlder