This file contains 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
# |
This file contains 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 http = require('http') | |
, url = require("url") | |
, path = require("path") | |
, fs = require('fs') | |
, mime = require('mime') | |
; | |
var server = http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname |
This file contains 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 app = {} | |
!function (app) { | |
// container to push booleans | |
// for each event to indicate whether | |
// the `app` is ready | |
var isReady = []; | |
// the ready stack to house | |
// all of the callbacks pushed |
This file contains 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 | |
/** | |
* Cleans up a phone number and outputs it in a consistent format | |
* @param string $number phone number to be formatted | |
* @return string formatted phone number | |
*/ | |
public function phone_number($number) { | |
// remove some characters | |
$stripped_number = preg_replace('/([\(\):\s\.-]+)/', '', $number); |