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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Nancy;
namespace DurandalNancy
{
public class DurandalNancyModule : NancyModule
{
@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()){}
@kimsk
kimsk / _.md
Created July 27, 2014 22:07
reddit base
@kimsk
kimsk / _.md
Created July 28, 2014 01:57
circle-scale-linear
@kimsk
kimsk / _.md
Created July 28, 2014 01:58
circle-scale-linear
@kimsk
kimsk / _.md
Created July 28, 2014 02:23
line chart
@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 / test.fs
Created May 24, 2015 07:07
ทดสอบ Gist
let rec prod = function
| [] -> 1
| head::tail -> head * prod tail
@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 / gulpfile.js
Created October 13, 2015 03:44
gulp for react 0.14, browserify, watchify, babelify, uglify
'use strict';
var del = require('del');
var gulp = require('gulp');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var babelify = require('babelify');
var watchify = require('watchify');
var uglify = require('gulp-uglify');
var buffer = require('vinyl-buffer');