I hereby claim:
- I am purplebooth on github.
- I am billie (https://keybase.io/billie) on keybase.
- I have a public key whose fingerprint is 5B35 0719 EC0D AE98 C93D 57FA D5D5 0C93 78BF CAB0
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
$total = ($origCount * $origRating) + $rating; | |
$number = $origCount + $count; | |
if ($number > 0) { | |
$origRating = $total / $number; | |
$origCount = $number; | |
return [$origRating, $origCount]; | |
} else { | |
$origRating = 0; | |
$origCount = 0; | |
return [$origRating, $origCount]; |
[PHP] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
$ php composer.phar require vendor/package1:dev-master | |
$ php composer.phar require --dev vendor/package2:~1.1.0 |
### Keybase proof | |
I hereby claim: | |
* I am purplebooth on github. | |
* I am billie (https://keybase.io/billie) on keybase. | |
* I have a public key whose fingerprint is 5B35 0719 EC0D AE98 C93D 57FA D5D5 0C93 78BF CAB0 | |
To claim this, I am signing this object: |
I hereby claim:
To claim this, I am signing this object:
<?php | |
if(count($argv) != 2) { | |
echo "Attempt to recursively convert a directory of XML files to UTF-8 and Fix any unescaped & symbols\n"; | |
echo "Usage {$argv[0]} directory\n"; | |
exit(1); | |
} | |
$path = realpath($argv[1]); |
#!/bin/bash | |
cd /to/a/directory | |
# make comments | |
run -what --you=would type.on -the commandline | |
VARIABLES_ARE_A_THING="youcanuse" | |
# sometimes you want conditionals |
pwgen -sy 100 1 | pbcopy |