Skip to content

Instantly share code, notes, and snippets.

Christiaan baes chrissie1

Block or report user

Report or block chrissie1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:4c1e231772c9529c9a07
Imports System
Public Module modmain
Sub Main()
Console.WriteLine ("Hello World using Visual Basic!")
End Sub
End Module
View gist:2100972ece7396d57480
Imports Nest
Imports Dapper
Module Module1
Sub Main()
Dim setting = New ConnectionSettings(New Uri("http://texsrv7:9200")).SetDefaultIndex("cases")
Dim client = New ElasticClient(setting)
Dim stopwatch = New Stopwatch
View gist:e16c794abd503117dd3a
package org.humanizer.jvm.tests
import org.spek.Spek
import org.spek.givenData
import org.humanizer.jvm.humanize
import org.spek.shouldEqual
import org.humanizer.jvm.dehumanize
import org.humanizer.jvm.milliSecondsToTimespan
public class TimeSpanTests(): Spek() {
View gist:8947b36943ca403ffc55
I have an enum
enum class ShowQuantityAs
I use it like this
View pluralizetests.kt
fun String.pluralize() : String{
val rules = listOf(
"$" to "s",
"s$"to "s",
"(ax|test)is$" to "$1es",
"us$" to "i",
"(octop|vir)us$" to "$1i",
"(octop|vir)i$" to "$1i",
"(alias|status)$" to "$1es",
"(bu)s$" to "$1ses",
View gist:11214114
val data = listOf(
-1 to "one second ago",
-10 to "10 seconds ago",
-59 to "59 seconds ago",
-60 to "a minute ago",
1 to "one second from now",
10 to "10 seconds from now",
59 to "59 seconds from now",
60 to "a minute from now"
View gist:11106892
package org.humanizer.jvm.tests
import org.junit.Test as Test
import kotlin.test.assertEquals
import java.util.ArrayList
import java.util.HashMap
import org.spek.*
import org.humanizer.jvm.humanize
import java.util.Calendar
import java.util.Date
View gist:11082976
package org.humanizer.jvm
import org.junit.Test as Test
import kotlin.test.assertEquals
import java.util.Calendar
import java.util.Date
public class DateHumanizerTests() {
fun humanizeDatAssert(difference: Int, expected: String)
View gist:6782568
package be.baes
import org.wasabi.interceptors.parseContentNegotiationHeaders
fun main(args: Array<String>) {
val config = AppConfiguration(4000, "This is me on port 4000", true)
val server = AppServer(config)
chrissie1 / gist:5458274
Created Apr 25, 2013
Hanselman newsletter thing
View gist:5458274
<td align="left" valign="top" class="content_bg3">
<table width="100%" cellspacing="5" cellpadding="5" border="0" bordercolor="#636531" height="250">
<td align="left" valign="top" class="content_bg3">
<font class="content_text"><p>Hi Interfriends,</p>
<p>Thanks again for signing up for this experiment. Here's some interesting things I've come upon this week. If you forwarded this (or if it was forwarded to you) a reminder: You can sign up at <a href=""></a> and the <a href="">archive of all previous Newsletters is here</a>.</p>
<p>Remember, you get the newsletter here first. This one will be posted to the blog as an archive in a few weeks. </p>
You can’t perform that action at this time.