Stopping a Jekyll server with ctrl-z can cause issues as the process is not stopped fully. To kill it:
$ lsof -wni tcp:4000
$ kill -9 <PID of process>
And next time, use crtl-c to stop.
| $ python -m SimpleHTTPServer 8000 |
| var app = new App('arg'); | |
| App = function(arg) { | |
| this.APP_CONSTANT = 0; | |
| this.appVar = arg; | |
| this._init(); | |
| } |
Stopping a Jekyll server with ctrl-z can cause issues as the process is not stopped fully. To kill it:
$ lsof -wni tcp:4000
$ kill -9 <PID of process>
And next time, use crtl-c to stop.
| # ---------------------------------------------- | |
| # Quick method: | |
| # ---------------------------------------------- | |
| Options +MultiViews | |
| # With Apache MultiViews, the server will look for files that match the requested resource (eg. a request for "site.com/page" will serve "site.com/page.php") | |
| # ---------------------------------------------- | |
| # Long method: |
| detectFlash: -> | |
| if navigator.plugins["Shockwave Flash"] | |
| return true | |
| return false | |
| # usage: | |
| # if detectFlash() | |
| # console.log "Flash supported" | |
| # else |
| .overflowing-text { | |
| display: block; | |
| overflow: hidden; | |
| white-space: nowrap; | |
| text-overflow: ellipsis; | |
| } |
| $obj = (object) array('prop' => value, 'prop' => $var); |
| setTimeout => | |
| @_delayedFunc() | |
| ,1000 |
| distanceKM = 100 | |
| distanceMiles = distanceKM / 0.6 # => 166.66667 | |
| distanceMilesRounded = parseFloat(distanceMiles, 10).toFixed 1 # => 166.7 |
| // 1. Add definition to foot of module.js (the required file) | |
| // AMD Define | |
| define(function(){ | |
| return baron; | |
| }); | |
| // 2. Add the path to main.js (requireJS config) as normal | |
| require.config({ | |
| baseUrl: "/sites/all/themes/base/js/", |