DI containers are sorted alphabetically.
This file contains hidden or 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 bash | |
| # script: watch | |
| # author: Mike Smullin <mike@smullindesign.com> | |
| # license: GPLv3 | |
| # description: | |
| # watches the given path for changes | |
| # and executes a given command when changes occur | |
| # usage: | |
| # watch <path> <cmd...> | |
| # |
This file contains hidden or 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
| ; Output links compatible with the PHPStorm Remote Call plugin running on the host. | |
| ; source: https://github.com/computerminds/parrot/pull/20/files | |
| xdebug.file_link_format="javascript:var rq = new XMLHttpRequest(); rq.open(\"GET\", \"http://localhost:8091?message=%f:%l\", true); rq.send(null);" | |
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 8000This describes my basic Arch Linux installation on my Chromebook Pixel.
Note: I'm a coward, so I installed Arch to an SD card instead of wiping out the existing SSD.
- SD card. A very minimal Arch installation with XFCE will need about 2GB, so I think 4GB is the minimum you can get by with.
- Arch installer on a USB drive. The 2013.05.01 is broken with the recent netctl change. So either get an older or newer one.
- Some Arch Linux familiarity.
- Time, patience, and good eyesight.
This file contains hidden or 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
| package counter | |
| import "io" | |
| type Counter struct { | |
| w io.Writer | |
| c int | |
| } | |
| func New(w io.Writer) (h *Counter) { |
This file contains hidden or 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" == "" ]; then | |
| echo Usage: $0 pngfile | |
| exit 0; | |
| fi | |
| FILE=`basename $1 .png` | |
| if [ ! -e $FILE.png ]; then |
This file contains hidden or 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 die('This file is not really here!'); | |
| /** | |
| * ------------- DO NOT UPLOAD THIS FILE TO LIVE SERVER --------------------- | |
| * | |
| * Implements code completion for CodeIgniter in phpStorm | |
| * phpStorm indexes all class constructs, so if this file is in the project it will be loaded. | |
| * ------------------------------------------------------------------- | |
| * Drop the following file into a CI project in phpStorm | |
| * You can put it in the project root and phpStorm will load it. |