Skip to content

Instantly share code, notes, and snippets.

View kimsk's full-sized avatar
💭
We have two lives, and the second begins when we realize we only have one.

Karlkim Suwanmongkol kimsk

💭
We have two lives, and the second begins when we realize we only have one.
View GitHub Profile
@kimsk
kimsk / fsharp.def
Created June 30, 2015 15:56
F# Syntax Highlighting for FishEye
syntaxdef fsharp {
/\s+/m : ;
# inline doc-comment
/\/\/\/(.*)$/m : {
doccomment(${1});
@kimsk
kimsk / test.fs
Created May 24, 2015 07:07
ทดสอบ Gist
let rec prod = function
| [] -> 1
| head::tail -> head * prod tail
@kimsk
kimsk / pre-commit
Created May 8, 2015 00:56
pre-commit hook for greatfriends/ThaiBahtText (copy this file to ./git/hooks)
#!/bin/sh
./Packages/xunit.runner.console.2.0.0/tools/xunit.console GFDN.ThaiBahtTextFacts/bin/Release/GreatFriends.ThaiBahtTextFacts.dll -parallel all -html Result.html -nologo -quiet
@kimsk
kimsk / _.md
Created July 28, 2014 02:23
line chart
@kimsk
kimsk / _.md
Created July 28, 2014 01:58
circle-scale-linear
@kimsk
kimsk / _.md
Created July 28, 2014 01:57
circle-scale-linear
@kimsk
kimsk / _.md
Created July 27, 2014 22:07
reddit base
@kimsk
kimsk / 1-source.cs
Last active August 29, 2015 13:59
foreach or IEnumerator
class Program
{
static void Main(string[] args)
{
var array = new int[1000000];
foreach (var i in array){}
var enumerator = array.GetEnumerator();
while (enumerator.MoveNext()){}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Nancy;
namespace DurandalNancy
{
public class DurandalNancyModule : NancyModule
{
define(['durandal/app'], function (app) {
return {
viewName: 'Thanks for visiting Durandal & Nancy Web App!',
description: 'Durandal is a SPA framework done right and Nancy provides a super-duper-happy-path to all interactions, so we have a super-duper-happy SPA web app done right!',
activate: function () {
$.getJSON("/api/list", function (data) {
app.showMessage(data.Message, data.Title, ['Agree']);
});
}
};