Skip to content

Instantly share code, notes, and snippets.

View kingsleyh's full-sized avatar
😍
Coding

Kingsley Hendrickse kingsleyh

😍
Coding
View GitHub Profile
@kingsleyh
kingsleyh / ad
Created August 15, 2017 15:59
ad
AJmQ4KpEVnUyDrpAtKLaXrgYjyHdjdJcMJ

Keybase proof

I hereby claim:

  • I am kingsleyh on github.
  • I am kingsleyh (https://keybase.io/kingsleyh) on keybase.
  • I have a public key ASBNYT0q1ULj1q-s-WCj9wHYGBaOVUv7hpYW5slDuV9zDwo

To claim this, I am signing this object:

@kingsleyh
kingsleyh / SweetAlert.js
Created July 17, 2017 21:05
Halogen wrapping
"use strict";
exports.alert_ = function(callback) {
return function(config) {
return function() {
var title = config.title;
var text = config.text;
var confirmButton = config.confirmButton;
var cancelButton = config.cancelButton;
@kingsleyh
kingsleyh / router.purs
Last active June 21, 2017 17:03
signup
module Router where
--http://www.parsonsmatt.org/2015/10/22/purescript_router.html
--https://github.com/parsonsmatt/purescript-routing-example/blob/master/src/Router.purs
--https://github.com/slamdata/slamdata/blob/13a6e619248386a5fd868326a1cf517c0ef124c4/src/SlamData/Prelude.purs#L116
--https://github.com/slamdata/slamdata/blob/13a6e619248386a5fd868326a1cf517c0ef124c4/src/SlamData/Workspace/Component/ChildSlot.purs
import BigPrelude
import Routing (matchesAff)
module Router where
--http://www.parsonsmatt.org/2015/10/22/purescript_router.html
--https://github.com/parsonsmatt/purescript-routing-example/blob/master/src/Router.purs
--https://github.com/slamdata/slamdata/blob/13a6e619248386a5fd868326a1cf517c0ef124c4/src/SlamData/Prelude.purs#L116
--https://github.com/slamdata/slamdata/blob/13a6e619248386a5fd868326a1cf517c0ef124c4/src/SlamData/Workspace/Component/ChildSlot.purs
import BigPrelude
import Routing (matchesAff)
import std.algorithm;
import std.array;
import std.conv;
import std.exception;
import std.file;
import std.process;
import std.string;
import std.encoding : sanitize;
import std.stdio;
@kingsleyh
kingsleyh / Watch.d
Created March 28, 2017 13:28
watcher
import std.algorithm;
import std.array;
import std.conv;
import std.exception;
import std.file;
import std.process;
import std.string;
import std.encoding : sanitize;
import std.stdio;
@kingsleyh
kingsleyh / Model.elm
Created March 23, 2017 18:30
Elm stuff
type alias CurrentBoardModel =
{board : CurrentBoard
,newListState : NewListState
,newListTitle : String
, newCardTitle : String
, newCardState : Dict String NewCardStateHolder
, currentCard : Maybe Card
, problem : Maybe String
, editingListId : String
, editListTitle : String
module Boards.Messages exposing (..)
type Msg
= NoOp
 mv mytest.dylib mytest.bundle
 kings  ⋯  projects  druby  playing  irb -r ./mytest.bundle
/Users/kings/development/projects/druby/playing/mytest.bundle: [BUG] Segmentation fault at 0x00000000000418
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports