Skip to content

Instantly share code, notes, and snippets.

View kingsleyh's full-sized avatar
😍
Coding

Kingsley Hendrickse kingsleyh

😍
Coding
View GitHub Profile
require 'opal'
require 'jquery'
require 'opal-jquery'
def go(selector)
`$('#cool');`
end
p go
@kingsleyh
kingsleyh / settings.xml
Created February 25, 2014 21:58
settings.xml for jenkins maven release
<settings>
<servers>
<server>
<id>sonatype-nexus-releases</id>
<username>username</username>
<password>password</password>
</server>
<server>
<id>sonatype-nexus-snapshots</id>
<username>username</username>
@kingsleyh
kingsleyh / app.js
Created April 29, 2015 22:16
angular ui router app.js
'use strict';
// Coillapse the nav bar on click
$(document).on('click', '.navbar-collapse.in', function (e) {
if ($(e.target).is('a') && $(e.target).attr('class') != 'dropdown-toggle') {
$(this).collapse('hide');
}
});
var tzatzikiApp = angular.module('tzatzikiApp', ['ngResource', 'ngRoute', 'angularFileUpload', 'ui.router','permission']);
$$$$$$$
| ~¿~ |
( - )
/ \
$$$$$$$
| ~¿~ |
( o )
/ \
/*global module, require */
module.exports = function( grunt ) {
'use strict';
// Livereload and connect variables
var LIVERELOAD_PORT = 35729;
var lrSnippet = require('connect-livereload')({
port: LIVERELOAD_PORT
});
var mountFolder = function( connect, dir ) {
@kingsleyh
kingsleyh / pirate_treasure.d
Created September 30, 2015 18:21
pirate treasure
import std.stdio;
import std.conv;
import std.exception;
// rdmd -unittest --main pirate_treasure.d
class FairTreasureSplitNotPossible : Exception {
this (string msg) {
super(msg);
}
@kingsleyh
kingsleyh / error
Last active November 4, 2015 23:50
total 0
drwxr-xr-x 3 kings staff 102 4 Nov 23:43 osx
phobos/generated/osx:
total 0
drwxr-xr-x 3 kings staff 102 4 Nov 23:43 release
phobos/generated/osx/release:
total 0
drwxr-xr-x 4 kings staff 136 4 Nov 23:43 64
 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
module Boards.Messages exposing (..)
type Msg
= NoOp
@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