I hereby claim:
- I am shanahanjrs on github.
- I am johnshanahan (https://keybase.io/johnshanahan) on keybase.
- I have a public key ASCMLMJG_RCN1QPGRWZscz1DLHhBTVRKQNjaBQWbeRxAewo
To claim this, I am signing this object:
class Ccy(object): | |
# Not needed, if you need the name use `Ccy().__class__.__name__` | |
#__class__ = "class Ccy" | |
# dictionary with key, value pairings of a currency and it's respective euro value | |
# This is a class variable, usable by all instances of this class | |
# If any instance mutates this (changes it) then all other instances will also be effected... | |
__toEuro = {"EUR": 1, "GBP": 1.14, "USD": 0.81} | |
I hereby claim:
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | |
<meta name="description" content="<DESCRIPTION>"> | |
<!-- font --> |
function isPrime($n) { | |
if ( $n < 2 ) { return false; } | |
if ( $n == 2 || $n == 3 ) { return true; } | |
if ( $n%2 == 0 || $n%3 == 0 ) { return false; } | |
$sqrtN = sqrt($n) + 1; | |
for ($i=6; $i<=$sqrtN; $i+=6) { | |
if ( $n%($i-1) == 0 || $n($i+1) == 0 ) { return false; } | |
} |
// Takes an input array and compares it to an | |
// array of required keys and makes sure they match. | |
$input = [ 'john' => '20', | |
'matt' => '19', | |
'mark' => '16', | |
'dad'=> '40' ]; | |
$required = [ 'john', 'matt', 'mark', 'dad', 'ryan' ]; | |
$inputkeys = array_keys($input); |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)