- 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
#!/bin/sh | |
echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
read inputline | |
name="$inputline" | |
echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
read inputline | |
url="$inputline" |
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
var net = require('net'); | |
// http://nodejs.org/docs/v0.5.2/api/net.html | |
var server = net.createServer(function(socket){ | |
socket.end('goodbye\n'); | |
}); | |
// http://nodejs.org/docs/v0.5.2/api/streams.html#readable_Stream |
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" ]; then cat <<EOF | |
appify v3.0.0 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
/* | |
--- | |
... | |
*/ | |
String.implement({ | |
substitute: function(object, regexp){ | |
return this.replace(regexp || (/\\?\{([^{}]+)\}/g), function(match, name){ |
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
// https://github.com/mozilla/chromeless/blob/master/modules/lib/net.js | |
var net = require('net'), | |
server = net.Server(); | |
server.listen(8111, 'localhost', function(){ | |
console.log('listen'); | |
}); | |
server.on('connection', function(stream){ |
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
#!/usr/bin/env python | |
import sys | |
from PySide.QtCore import * | |
from PySide.QtGui import * | |
from PySide.QtWebKit import * | |
app = QApplication(sys.argv) | |
view = QWebView( |
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
/* | |
--- | |
source: http://gist.github.com/133677 | |
provides: document.write | |
description: MooTools based document.write replacement | |
requires: MooTools | |
author: Thomas Aylott -- SubtleGradient.com | |
thanks: Daniel Steigerwald -- daniel.steigerwald.cz |
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 | |
/** | |
* emailObfuscate output modifier for MODx | |
* Version: 1.0.0 | |
* | |
* based on ObfuscateEmail plugin 0.9.1 (Apr 15, 2007) by Aloysius Lim. | |
* released under Public Domain. | |
* http://modxcms.com/extras/package/?package=322 | |
* | |
* This modifier searches for all email addresses and "mailto:" strings in the |
NewerOlder