// Used to create fallbacks/defaults, without the need for isset/array_key_exists
$string = $array['value'] ?? $maybethisworks ?? "in case of emergency, use this";
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
/** | |
* Experimental directive for CodeMirror + Merge Addon. | |
*/ | |
angular.module('ui.codemirror', []) | |
.constant('uiCodemirrorConfig', {}) | |
.directive('uiCodemirror', uiCodemirrorDirective); | |
function uiCodemirrorDirective($timeout, uiCodemirrorConfig) { | |
'use strict'; | |
return { |
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
'use strict'; | |
function *fibonacci(a=0,b=1) { | |
while (true) { | |
yield a; [a,b] = [b,a+b] | |
} | |
} | |
function *odd(f) { | |
while (true) { |
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
module Handler.Mainhandler where | |
import Import | |
import Service.Theme | |
import Service.Mixin | |
getMainR :: Handler Html | |
getMainR = do | |
defaultLayout $ do | |
setTitle "Main page" |
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
// My HCL Color Scheme | |
// Hue 0-360 in 40 degree angles, Chroma 60, Luminance 80 | |
$blush : #FFACBF | |
$peach : #F9B98C | |
$straw : #D2C970 | |
$apple : #9AD685 | |
$jade : #51DDB5 | |
$aqua : #3ADAE4 | |
$sky : #8ECDFF |
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
/* | |
Sidebar Theme: | |
#140E1D,#140E1D,#65375B,#FFABED,#65375B,#F9B98C,#FFABED,#FFABED | |
*/ | |
* { | |
box-shadow: unset !important; | |
} | |
.client_main_container, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
I hereby claim:
- I am okdewit on github.
- I am okdewit (https://keybase.io/okdewit) on keybase.
- I have a public key ASBxC_8ujh7hI0vAmrOJsq8LpjAW5CGMlRHSZgszn4vekgo
To claim this, I am signing this object: