This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$a1 = array('a' => 'apple', 'b' => 'bannana'); | |
$a2 = array('b' => 'berry', 'c' => 'cherry'); | |
var_dump($a1 += $a2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bitwise": true, | |
"camelcase": true, | |
"curly": true, | |
"eqeqeq": true, | |
"es3": false, | |
"forin": true, | |
"freeze": true, | |
"immed": true, | |
"indent": 4, |