start new:
tmux
start new with session name:
tmux new -s myname
| <?php | |
| // rewrite /wp-content/themes/theme-name/css/ to /css/ | |
| // rewrite /wp-content/themes/theme-name/js/ to /js/ | |
| // rewrite /wp-content/themes/theme-name/img/ to /img/ | |
| // rewrite /wp-content/plugins/ to /plugins/ | |
| function roots_flush_rewrites() { | |
| global $wp_rewrite; | |
| $wp_rewrite->flush_rules(); | |
| } |
| var application_root = __dirname, | |
| express = require("express"), | |
| path = require("path"), | |
| mongoose = require('mongoose'); | |
| var app = express.createServer(); | |
| // database | |
| mongoose.connect('mongodb://localhost/ecomm_database'); |
| /* The API controller | |
| Exports 3 methods: | |
| * post - Creates a new thread | |
| * list - Returns a list of threads | |
| * show - Displays a thread and its posts | |
| */ | |
| var Thread = require('../models/thread.js'); | |
| var Post = require('../models/post.js'); |
| /* | |
| * object.watch polyfill | |
| * | |
| * 2012-04-03 | |
| * | |
| * By Eli Grey, http://eligrey.com | |
| * Public Domain. | |
| * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
| */ |