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 | |
//set 3-second timeout | |
$opts = array('http'=>array( | |
"timeout" => 3 | |
)); | |
$context = stream_context_create($opts); | |
$latestRates = file_get_contents("http://somewhere.org/",false,$context); |
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 | |
/** | |
* An attempt to have PHP send shit to Node, so that it can emit to our connected JS clients | |
* | |
*/ | |
class nodeNotifier { | |
public $dataToSend = array(); | |
public $nodeServerPort = 8000; | |
public $broadcastNamespace; |
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
<!--[if IE 7 ]> <html lang="en" class="ie7"> <![endif]--> | |
<!--[if IE 8 ]> <html lang="en" class="ie8"> <![endif]--> | |
<!--[if IE 9 ]> <html lang="en" class="ie9"> <![endif]--> | |
<!--[if (gt IE 9)|!(IE)]><!--><html lang="en"><!--<![endif]--> |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.js"></script> | |
<script src="filtersPerf.js"></script> | |
</head> | |
<body ng-app="filtersPerf"> | |
<input ng-model="name"> {{name | logUppercase}} | |
</body> |
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 | |
/* | |
* a class that writes a basic webpage with a javascript alert, and options | |
* | |
* @param string $destinationURL the webpage to be redirected to | |
* @param string $windowMessage the message presented to the user in the javascript alert | |
* @param string $windowAction what to do: redirect to a new page, close (when called in a popup), or a combination. | |
*/ | |
class popupMessage { | |
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 | |
class Whatever() { | |
/** | |
* The database connection | |
* @var \PDO | |
*/ | |
protected $db; |
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 | |
class Something() { | |
/** | |
* @var \User | |
*/ | |
private $user; | |
} |
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
[xdebug] | |
#PHP 7 extension dir below; use appropriate path | |
zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so | |
xdebug.remote_enable=1 | |
xdebug.remote_autostart=1 | |
xdebug.remote_connect_back=1 | |
xdebug.remote_port=9000 | |
xdebug.profiler_enable=1 | |
xdebug.profiler_output_dir="/tmp" |
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 | |
/** | |
* The Gearman Worker script | |
*/ | |
$worker= new GearmanWorker(); | |
$worker->addServer(); | |
$worker->addFunction("LayoutbooksAssembler", "sendToCasper"); | |
while ($worker->work()); |
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
import DS from 'ember-data'; | |
import ENV from '../config/environment'; | |
export default DS.JSONAPIAdapter.extend({ | |
host: ENV.apiHost | |
}); |
OlderNewer