Skip to content

Instantly share code, notes, and snippets.

View PurpleBooth's full-sized avatar

Billie Thompson PurpleBooth

View GitHub Profile

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:

$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:
@PurpleBooth
PurpleBooth / gist:2a03e16da68df7877c24
Created February 23, 2015 07:08
Composer Require
$ 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:

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:

<?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
@PurpleBooth
PurpleBooth / README-Template.md
Last active April 22, 2024 11:45
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites