After every change you make to the Apache or PHP config files you will need to restart the Apache web server.
By default PHP is disabled on OSX, so we'll need to turn that on.
mate /etc/apache2/httpd.conf
| // Ported from Stefan Gustavson's java implementation | |
| // http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf | |
| // Read Stefan's excellent paper for details on how this code works. | |
| // | |
| // Sean McCullough banksean@gmail.com | |
| /** | |
| * You can pass in a random number generator object if you like. | |
| * It is assumed to have a random() method. | |
| */ |
| /**********************************************/ | |
| /* | |
| /* IR_Black Skin by Ben Truyman - 2011 | |
| /* | |
| /* Based on Todd Werth's IR_Black: | |
| /* http://blog.toddwerth.com/entries/2 | |
| /* | |
| /* Inspired by Darcy Clarke's blog post: | |
| /* http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
| /* |
| Spine = require('spine') | |
| class Contact extends Spine.Model | |
| @configure 'Contact', 'name', 'email', 'mobile', 'lat', 'lng' | |
| @extend Spine.Model.Local | |
| @filter: (query) -> | |
| return @all() unless query | |
| query = query.toLowerCase() |
| #!/bin/bash | |
| if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
| appify v3.0.1 for Mac OS X - http://mths.be/appify | |
| Creates the simplest possible Mac app from a shell script. | |
| Appify takes a shell script as its first argument: | |
| `basename "$0"` my-script.sh |
| #!/bin/sh | |
| PROG=$0 | |
| RSYNC="/usr/bin/rsync" | |
| SRC="/" | |
| DST="/Volumes/Backup/" | |
| # rsync options | |
| # -v increase verbosity | |
| # -a turns on archive mode (recursive copy + retain attributes) |
| #!/usr/bin/env bash | |
| src=$PWD | |
| dirname=$(dirname $(readlink -f $0)) | |
| # need help ? if no args and help flags | |
| if [ "$1" == '-h' ] | |
| then | |
| cat <<EOF |
| PGraphics flatImg; | |
| PImage img; | |
| float rt3 = sqrt(3); | |
| float res = 10; /* resolution */ | |
| float radius = 2.1 * res / rt3; | |
| float zoom = 1.0; | |
| void setup() { | |
| noLoop(); | |
| smooth(); |
| // Here is a proposal for minimalist JavaScript classes, humbly offered. | |
| // There are (at least) two different directions in which classes can be steered. | |
| // If we go for a wholly new semantics and implementation, then fancier classical | |
| // inheritance can be supported with parallel prototype chains for true inheritance | |
| // of properties at both the class and instance level. | |
| // If however, we keep current JavaScript prototype semantics, and add a form that | |
| // can desugar to ES3, things must necessarily stay simpler. This is the direction | |
| // I'm assuming here. |