Skip to content

Instantly share code, notes, and snippets.

<?php
// TO DO: ADD VALIDATION ON EMAIL AND ZIP BEFORE REQUEST
$email = $_POST['email'];
$zip = $_POST['zip'];
$url = 'https://api.myngp.com/v2/contacts/findOrCreate';
$post_data = array(
version: '2'
services:
redis:
image: redis
postgres:
image: 'postgres'
environment:
POSTGRES_USER: postgres
@chrisneal
chrisneal / wilson.php
Created June 19, 2018 14:18 — forked from julienbourdeau/wilson.php
[PHP] 5 Star Rating - Lower bound of Wilson score confidence interval for a Bernoulli parameter
<?php
/*
|--------------------------------------------------------------------------
| 5 Star Rating
|--------------------------------------------------------------------------
|
| Lower bound of Wilson score confidence interval for a Bernoulli parameter (0.9604)
|
| See:
/*
A (very) WIP collection of optimized/recommended jQuery plugin patterns
from @addyosmani, @cowboy, @ajpiano and others.
Disclaimer:
-----------------------
Whilst the end-goal of this gist is to provide a list of recommended patterns, this
is still very much a work-in-progress. I am not advocating the use of anything here
until we've had sufficient time to tweak and weed out what the most useful patterns