This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
NewerOlder