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
{ | |
"manifest_version": 2, | |
"name": "Chrome Socket API Server", | |
"description": "listen & accept for socket", | |
"version": "0.1", | |
"app": { | |
"background": { | |
"scripts": ["server.js"] | |
} | |
}, |
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
DEBUG = false; | |
TEST = true; | |
noop = function() {}; | |
log = assert = noop; | |
if (DEBUG) { | |
log = console.log.bind(console); | |
} | |
if (TEST) { | |
assert = function(a,b,m) { console.assert(a.toString() === b.toString(), m); }; |
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
DEBUG = TEST = false; | |
function fizzbuzz(n) { | |
if(n % 15 === 0) return "FizzBuzz"; | |
if(n % 3 === 0) return "Fizz"; | |
if(n % 5 === 0) return "Buzz"; | |
return n; | |
} | |
function main() { |
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 | |
/** | |
* Zend Framework | |
* | |
* LICENSE | |
* | |
* This source file is subject to the new BSD license that is bundled | |
* with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://framework.zend.com/license/new-bsd |
NewerOlder