Skip to content

Instantly share code, notes, and snippets.

<!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>
<!--[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]-->
@NoiseEee
NoiseEee / gist:5050272
Last active December 14, 2015 07:19
PHP talks to Node
<?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;
<?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);