- Download the "Start HTTP Server Here.command" file
- In Safari you can do that by ⌥ (option) clicking the "raw" link next to that script.
- Add the executable flag
so that it will run when you double-click it- type
chmod +x "$HOME/Downloads/Start HTTP Server Here.command"
- type
- Move the
command
file into the root folder of your website - Double-click it to start your webserver.
Your browser will load it up automatically
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
git clone git://pure-data.git.sourceforge.net/gitroot/pure-data/pure-data | |
cd pure-data | |
./autogen.sh | |
CFLAGS="-mmacosx-version-min=10.5" ./configure --enable-universal=i386 | |
make -j3 | |
cd src | |
./pd -nogui |
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
git clone git://github.com/joyent/node.git | |
cd node | |
git checkout v0.6.12 | |
CFLAGS="-mmacosx-version-min=10.5" ./configure | |
make |
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
mkdir dev2 | |
mkdir dev2/local | |
cd dev2 | |
git clone git://github.com/joyent/node.git | |
cd node/ | |
git checkout v0.8.11 # or whatever version you like | |
./configure --prefix=~/dev2/local | |
make -s -j 3 # cores + 1 | |
make install | |
export PATH=$PATH:~/dev2/local/bin |
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
{ | |
"service": { | |
"dsp": true, | |
"planet": "//localhost:8004" | |
}, | |
"data": { | |
"pd": ["sequencer", "synth", "effect"], | |
"state": [{ | |
"bpm": 125, | |
"sequence": [0, 3, 1, -2, 7, 4, 1], |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<meta name=viewport content="width=device-width, initial-scale=1.0"> | |
<title>Mocha Tests</title> | |
<link rel=stylesheet href="mocha.css"> | |
<div id=mocha></div> | |
<script src="mocha.js"></script> | |
<script>mocha.setup('bdd');</script> | |
<script src="expect.js"></script> |
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
git clone git://pure-data.git.sourceforge.net/gitroot/pure-data/pure-data | |
cd pure-data | |
./autogen.sh | |
CFLAGS="-mmacosx-version-min=10.5" ./configure --enable-universal=i386 | |
make -j3 | |
cd src | |
./pd -nogui |
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
#!/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 |
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
open 10 | |
close - should have no error | |
close2 - should have error | |
{ [Error: EBADF: bad file descriptor, close] errno: -9, code: 'EBADF', syscall: 'close' } |
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
import * as Lib from 'lib'; | |
console.log('APP'); | |
console.log(Lib); | |
console.log(Lib.capitalize('hello world')); |
OlderNewer