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 | |
use Phpmig\Migration\Migration; | |
class ContactTemplate extends Migration | |
{ | |
/** | |
* Do the migration | |
*/ | |
public function up() |
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 urlToResolve = 'https://localhost/'; | |
var https = require('https'), | |
url = require('url'); | |
var parsedUrl = url.parse(urlToResolve); | |
var path = parsedUrl.pathname; | |
var options = { | |
host: parsedUrl.hostname, | |
path: path, |
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 urlToResolve = 'https://github.com/kriskowal/tigerblood/'; | |
var https = require('https'), | |
url = require('url'), | |
jsdom = require('jsdom'); | |
var parsedUrl = url.parse(urlToResolve); | |
var path = parsedUrl.pathname; | |
var options = { | |
host: parsedUrl.hostname, |
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
/* | |
* A barrier that counts how often a function is called. | |
*/ | |
module.exports = function(count, callback) { | |
var c = count; | |
// if count is 0 execute callback | |
if(c == 0) | |
callback(); |