Skip to content

Instantly share code, notes, and snippets.

View fowlerwill's full-sized avatar
🙂

Will Fowler fowlerwill

🙂
View GitHub Profile
<?php
// Okay, here's something I really like from Kotlin & Swift, they're called Optionals (or Nullable)
// var coolThing: Bool?
// this means that that variable may be one of three values, null, true, or false.
// PHP has had this forever you might say
// $cool_thing = null
// That var could become a string, int, bool, whatever you'd like! But here lies the intersection where
// the typed world can help PHP, I think.
$a1 = array('a' => 'apple', 'b' => 'bannana');
$a2 = array('b' => 'berry', 'c' => 'cherry');
var_dump($a1 += $a2);
/*
What is the correlation between the average daily temperature
and the number of tweets with the tag yycbike. What does this
correlation mean?
*/
SELECT
W.DIM_DATE,
W.CW_MEAN_TEMP,
T.NUM_TWEETS,
CORR(W.CW_MEAN_TEMP, T.NUM_TWEETS) AS TWEET_TEMP_CORR
@fowlerwill
fowlerwill / gist:62d19b73a154320f91f1
Created October 16, 2015 16:53
jshint config for angular styleguide
{
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"es3": false,
"forin": true,
"freeze": true,
"immed": true,
"indent": 4,