Skip to content

Instantly share code, notes, and snippets.

Keybase proof

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:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@okdewit
okdewit / slack.css
Last active December 9, 2017 00:13
Just a quick dark slack theme, work in progress
/*
Sidebar Theme:
#140E1D,#140E1D,#65375B,#FFABED,#65375B,#F9B98C,#FFABED,#FFABED
*/
* {
box-shadow: unset !important;
}
.client_main_container,
@okdewit
okdewit / colorscheme.sass
Created April 22, 2017 13:49
HCL Colorscheme
// 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
module Handler.Mainhandler where
import Import
import Service.Theme
import Service.Mixin
getMainR :: Handler Html
getMainR = do
defaultLayout $ do
setTitle "Main page"
'use strict';
function *fibonacci(a=0,b=1) {
while (true) {
yield a; [a,b] = [b,a+b]
}
}
function *odd(f) {
while (true) {
@okdewit
okdewit / 7.md
Last active December 10, 2015 20:16

Null coalescing operator

// Used to create fallbacks/defaults, without the need for isset/array_key_exists
$string = $array['value'] ?? $maybethisworks ?? "in case of emergency, use this";

Bundling use statements

@okdewit
okdewit / gist:0b46319000e78c58cfe2
Created February 6, 2015 16:17
Experimental CodeMirror + Merge Addon Directive for AngularJS.
/**
* Experimental directive for CodeMirror + Merge Addon.
*/
angular.module('ui.codemirror', [])
.constant('uiCodemirrorConfig', {})
.directive('uiCodemirror', uiCodemirrorDirective);
function uiCodemirrorDirective($timeout, uiCodemirrorConfig) {
'use strict';
return {