Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <?php | |
| namespace LM\Bundle\CoreBundle\Controller; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Symfony\Component\HttpFoundation\Response; | |
| use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
| class AppController extends Controller | |
| { |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
| #!python | |
| """See main.__doc__""" | |
| import os | |
| import logging | |
| import glob | |
| import unittest | |
| import sys |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| EAS 001 George Eastman Hall | |
| RIA 002 Frank Ritter Arena | |
| CLK 003 George H. Clark Gymnasium | |
| SAU 004 Student Alumni Union | |
| WAL 005 Wallace Library | |
| LBR 006 Liberal Arts Hall | |
| UNI/VIG 007A University Gallery/Vignelli Center for Design Studies | |
| GAN 007B Frank E. Gannett Hall | |
| GOS 008 Thomas Gosnell Hall | |
| GLE 009 James E. Gleason Hall |
| #!/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 |