This file contains 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 | |
function writeLog($msg) { | |
$fout = fopen('log.txt', 'w'); | |
fwrite($fout, $msg); | |
fclose($fout); | |
} | |
$headers = getallheaders(); | |
if (array_key_exists('X-Github-Event', $headers)) { |
This file contains 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 BaseClass = require('baseclassjs'); | |
return BaseClass({ | |
speak: BaseClass.Abstract | |
}); | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
var Pet = requre('./pet.js'), | |
Carnivor = require('./carnivor.js'), | |
Friendly = require('./friendly.js'); | |
return Pet().extend({ | |
speak: function () { |
This file contains 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 BaseClass(child) { | |
var key; | |
child = child || {}; | |
this.base = {}; | |
for (key in this) { | |
this.base[key] = this[key]; | |
} | |
for (key in child) { | |
this[key] = child[key]; | |
} |