Skip to content

Instantly share code, notes, and snippets.

View devacto's full-sized avatar

Victor Wibisono devacto

View GitHub Profile
@devacto
devacto / split_delmited_string.sql
Last active December 27, 2015 12:59
Various useful MySQL string functions. (Original source: http://goo.gl/udse6R)
CREATE FUNCTION strSplit(x varchar(255), delim varchar(12), pos int) returns varchar(255)
return replace(substring(substring_index(x, delim, pos), length(substring_index(x, delim, pos - 1)) + 1), delim, '');
@devacto
devacto / app.js
Created May 4, 2013 01:00
Node.js Express Module Dependency
var express = require('express')
, routes = require('./routes')
, user = require('./routes/user')
, http = require('http')
, path = require('path');