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 | |
/* | |
* FizzBuzz Example | |
* Author: Karl Monson | |
* URL: https://github.com/karlmonson | |
*/ | |
for($i = 0; $i <= 100; $i++) { | |
if($i % 3 == 0 && $i % 5 == 0) { | |
echo 'FizzBuzz'; |
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 | |
/* | |
* Fibonacci Example | |
* Author: Karl Monson | |
* URL: https://github.com/karlmonson | |
*/ | |
function fibonacci($num) { | |
if($num == 0) return 0; | |
if($num == 1) return 1; | |
return fibonacci($num - 1) + fibonacci($num - 2); |
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 | |
/* | |
* Locker Problem | |
* Author: Karl Monson | |
* URL: https://github.com/karlmonson | |
* Resource: http://mathforum.org/library/drmath/view/54242.html | |
*/ | |
$lockers = array(); | |
for($i = 0; $i <= 1000; $i++){ |
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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: cyan; icon-glyph: magic; | |
// ---------------------------------------------------------- | |
// The Giddget - A Giddy Price Widget for iOS | |
// Giddy Tip Jar: 0x7E217ed7c2b03ec4bb163341875fd7cA5e4c726e | |
// ---------------------------------------------------------- | |
// Theme Options - 'light' or 'dark' | |
const theme = 'light' |