To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion
To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.
| #!/bin/bash | |
| # | |
| # Checks staged files for linter exceptions | |
| # Add to PROJECT_ROOT/.git/hooks/, and make executable (i.e. chmod +x .git/hooks/pre-commit) | |
| LINTERS_STATUS=0 | |
| function linter { | |
| local name=${1} | |
| local pattern=${2} |
| package com.patrickmclaren.examples.asyncfragments; | |
| import android.app.Activity; | |
| import android.app.FragmentManager; | |
| import android.app.FragmentTransaction; | |
| import android.content.res.Configuration; | |
| import android.os.Bundle; | |
| public class FragmentActivity extends Activity { |
| apply plugin: 'com.android.application' | |
| android { | |
| ... | |
| } | |
| repositories { | |
| mavenCentral() | |
| } |
| ############################################################################## | |
| # System Libraries | |
| ############################################################################## | |
| from collections import defaultdict | |
| from sage.all import * | |
| import itertools | |
| ############################################################################## | |
| # Debugging |
| #!/usr/bin/python | |
| import os | |
| import sys | |
| import subprocess | |
| from stat import * | |
| ############################################################################## | |
| # Routine Functions |
| #!/usr/bin/python | |
| import subprocess | |
| import os | |
| import sys | |
| import argparse | |
| from argparse import RawTextHelpFormatter | |
| FNULL = open(os.devnull, 'w') |
| #!/usr/bin/env python | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |