// jQuery
$(document).ready(function() {
// code
})
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
'use strict'; | |
// simple express server | |
var express = require('express'); | |
var app = express(); | |
var router = express.Router(); | |
app.use(express.static('public')); | |
app.get('/', function(req, res) { | |
res.sendfile('./public/index.html'); |
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
/* place inside function */ | |
jQuery.event.trigger('OverlayBoxonOpen'); | |
/* call custom event */ | |
$(document).bind('OverlayBoxonOpen', function () { alert('test') }); |
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 | |
/* | |
One wp-config for local development to staging to production. | |
*/ | |
// Define Environments | |
$environments = array( |
Update the hosts file in /etc/hosts
to maintain multiple domains/hostnames on a local machine for 127.0.0.1 and setup a VirtualHost container in /Applications/MAMP/conf/apache/extra/httpd-vhost.conf
via /Applications/MAMP/conf/apache/httpd.conf
for a name-based virtual host.
- Related tutorial: http://osxdaily.com/2012/08/07/edit-hosts-file-mac-os-x/
- Documentation: http://httpd.apache.org/docs/2.2/vhosts/
Only suitable for MAMP users under OS X Lion, OS X Mountain Lion, and OS X Mavericks on Apache-Port 80 and MySQL-Port 3306.
OlderNewer