Skip to content

Instantly share code, notes, and snippets.

View ilumin's full-sized avatar
🏠
Working from home

O Teerasak Vichadee ilumin

🏠
Working from home
  • Bangkok, Thailand
View GitHub Profile
module.exports = function( grunt ) {
'use strict';
//
// Grunt configuration:
//
// https://github.com/cowboy/grunt/blob/master/docs/getting_started.md
//
grunt.initConfig({
// Project configuration
// Generated on 2014-02-11 using generator-webapp 0.4.7
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
@ilumin
ilumin / main.html
Created August 24, 2014 06:19
d3js scroll to animate arc path
<button class="inc">+</button>
<button class="dec">-</button>
<input type="text" class="manual" placeholder="set angle">
<?php
// My new order statuses.
function register_my_new_order_statuses() {
register_post_status( 'wc-status-name', array(
'label' => _x( 'Status Name', 'Order status', 'textdomain' ),
'public' => true,
'exclude_from_search' => false,
'show_in_admin_all_list' => true,
'show_in_admin_status_list' => true,
/**
* Works everywere ( IE7+, FF, Chrome, Safari, Opera )
* Example: http://jsbin.com/afAQAWA/2/
*/
.rotated-text {
display: inline-block;
overflow: hidden;
width: 1.5em;
}
.rotated-text__inner {
@ilumin
ilumin / kafka.md
Last active August 29, 2015 14:19 — forked from ashrithr/kafka.md

Introduction to Kafka

Kafka acts as a kind of write-ahead log (WAL) that records messages to a persistent store (disk) and allows subscribers to read and apply these changes to their own stores in a system appropriate time-frame.

Terminology:

  • Producers send messages to brokers
  • Consumers read messages from brokers
  • Messages are sent to a topic
@ilumin
ilumin / gist:2d5d4323566f5cde07f1
Last active August 29, 2015 14:24
Set Golang environment

set gopath (where your go library and tools are locate)

$ export GOPATH=~/.go
$ export PATH=$GOPATH/bin:$PATH

set GOROOT (where your go execute file locate)

$ export GOROOT=/usr/local/go
$ export PATH=$GOOROOT/bin:$PATH
@ilumin
ilumin / utilities-checkurl.js
Created March 11, 2012 19:13
Javascript: check url
function UrlExists(url) {
var http = new XMLHttpRequest();
http.open('HEAD', url, false);
http.send();
return http.status!=404;
}
@ilumin
ilumin / plugins.txt
Last active November 9, 2015 05:34
Jenkins plugin list for simple deploy
promoted-builds:2.21
credentials:1.22
mailer:1.15
token-macro:1.10
matrix-project:1.4
ssh-credentials:1.11
subversion:1.38
mapdb-api:1.0.1.0
rebuild:1.22
token-macro:1.10