Skip to content

Instantly share code, notes, and snippets.

View xicond's full-sized avatar

xicond

  • Jakarta, Indonesia (ID)
View GitHub Profile
var sleep = require('sleep');
var Promise = require('promise');
function random (low, high) {
return Math.random() * (high - low) + low;
}
var task1 = new Promise(function (resolve, reject) {
var until = 900;//random(900,1000);
setTimeout(function(){
@xicond
xicond / app.js
Created September 23, 2015 07:20
"use strict";
var app = require('express')(),
swig = require('swig'),
async = require("async"),
sleep = require('sleep'),
people;
// This is where all the magic happens!
app.engine('html', swig.renderFile);
<?php
// original work: https://github.com/fishjerky/phalcon-mssql
// modified by Davide Airaghi (www.airaghi.net) to use with SQL Server 2008 and Microsoft SQL Server PDO driver
// version: 0.1
namespace Twm\Db\Adapter\Pdo;
use Phalcon;
use Phalcon\Db\Column;