Skip to content

Instantly share code, notes, and snippets.

View chakrit's full-sized avatar

Chakrit Wichian chakrit

View GitHub Profile
using System;
namespace DummyCSharp
{
class MainClass
{
public static void Main (string[] args)
{
MyDateTime now = DateTime.Now;
enum pjsip_status_code {
PJSIP_SC_TRYING = 100,
PJSIP_SC_RINGING = 180,
PJSIP_SC_CALL_BEING_FORWARDED = 181,
PJSIP_SC_QUEUED = 182,
PJSIP_SC_PROGRESS = 183,
PJSIP_SC_OK = 200,
PJSIP_SC_MULTIPLE_CHOICES = 300,
PJSIP_SC_MOVED_PERMANENTLY = 301,
PJSIP_SC_MOVED_TEMPORARILY = 302,
[{"title":"Bangkok Hospital","slug":"bangkok-hospital","number":1719,"website":"bangkokhospital.com","email":"[email protected]","tags":["hospital","bangkok","emergency","corporate"],"info":{"landline":"0-2310-3000","fax":"0-2318-1546","fax 2":"0-2310-3327","contact center":"0-2310-3344","contact center fax":"0-2755-1310","emergency service":"0-2310-3456","emergency service fax":"0-2310-3132","chest pain center":"0-2310-3456","chest pain center fax":"0-2310-3132"}},{"title":"Bhumibol Adulyadej Hospital","number":"0-2534-7000","website":"www.bhumibolhospital.rtaf.mi.th","email":"[email protected]","slug":"bhumibol-adulyadej-hospital","tags":["hospital","bangkok","emergency","military"],"info":{"fax":"0-2534-7258"}},{"title":"Bangkok Metropolitan Administration General Hospital (Klang Hospital)","number":"0-2220-8000","slug":"klang-hospital","website":"klanghospital.go.th","tags":["hospital","bangkok","emergency","government"],"info":{"lasik center":"0-2220-8000; 11641-2","lasik center fax":"0-
[alias]
a = add
ap = add -p
af = add --force
b = branch
bsus = branch --set-upstream
c = commit
ca = commit -a
caa = commit -a --amend
cam = commit -a -m
> [] + []
''
> [] + {}
'[object Object]'
> {} + []
'[object Object]'
> {} + {}
'[object Object][object Object]'
> Array(16)
[ , , , , , , , , , , , , , , , ]
@chakrit
chakrit / Jakefile
Created June 19, 2012 04:43
Jake tasks
var fs = require('fs')
, semver = require('semver')
, log = console.log;
var pack = JSON.parse(fs.readFileSync('./package.json'));
// JAKE BUMP
desc('Shorthand for bump:build');
info: Welcome to Nodejitsu chakrit
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing your application dependencies in start.js
info: Creating snapshot 0.1.6-2
info: Updating app refactor.io
info: Activating snapshot 0.1.6-2 for refactor.io
info: Stopping app refactor.io
info: App refactor.io is now stopped
info: Starting app refactor.io
var i = 0;
for (; i < 10000000; i++)
process.nextTick(function() { });
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy your application.
error:
error: NPM Install failed
error: NPM failed to install dependencies
error:
error: This type of error is usually a user error.
error: Error output from Haibu:
error:
info: Welcome to Nodejitsu chakrit
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing your application dependencies in start.js
info: Creating snapshot 0.2.0-3
info: Updating app refactor.io
info: Activating snapshot 0.2.0-3 for refactor.io
info: Stopping app refactor.io
info: App refactor.io is now stopped
info: Starting app refactor.io