Getting started:
Related tutorials:
Getting started:
Related tutorials:
###Overview
As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
| # =============== # | |
| # Unity generated # | |
| # =============== # | |
| [Tt]emp/ | |
| [Oo]bj/ | |
| [Bb]uild | |
| /[Bb]uilds/ | |
| /[Ll]ibrary/ | |
| sysinfo.txt | |
| *.stackdump |
First of all you need to be able to run MAMP in port 80. This is a "heat check" if you don't have any process jamming http ports. You can check it like this:
sudo lsof | grep LISTEN
If you do happen to have any process with something like this *:http (LISTEN), you are in trouble. Before with adventure check if it isn't MAMP itself (yeah, you should close that beforehand)
ps <pid of that process>
If you don't see MAMP, you are in good hands, I have just the thing for you:
| <?php | |
| function slugify($string, $replace = array(), $delimiter = '-') { | |
| // https://github.com/phalcon/incubator/blob/master/Library/Phalcon/Utils/Slug.php | |
| if (!extension_loaded('iconv')) { | |
| throw new Exception('iconv module not loaded'); | |
| } | |
| // Save the old locale and set the new locale to UTF-8 | |
| $oldLocale = setlocale(LC_ALL, '0'); | |
| setlocale(LC_ALL, 'en_US.UTF-8'); | |
| $clean = iconv('UTF-8', 'ASCII//TRANSLIT', $string); |
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="de.mobilej.overlay" | |
| android:versionCode="1" | |
| android:versionName="1.0" > | |
| <uses-sdk android:minSdkVersion="14" /> | |
| <application android:label="SystemOverlay" > | |
| <activity |
Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.
Prerequisites (for Homebrew at a minimum, lots of other tools need these too):
xcode-select --install will prompt up a dialog)Install Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Use case: Database entries are represented in a table. By grabbing and moving a row up or down the table, you can change the entries' order/position. The changes are submitted automatically via ajax.
| // Special Apps Script function to process HTTP POST request | |
| function doPost(e){ | |
| return handleResponse(e); | |
| } | |
| function handleResponse(e) { | |
| // Parse JSON webhook payload | |
| var jsonString = e.postData.getDataAsString(); | |
| var payload = JSON.parse(jsonString); | |
| // Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
| // Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
| var FORMAT_ONELINE = 'One-line'; | |
| var FORMAT_MULTILINE = 'Multi-line'; | |
| var FORMAT_PRETTY = 'Pretty'; | |
| var LANGUAGE_JS = 'JavaScript'; | |
| var LANGUAGE_PYTHON = 'Python'; |