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| #!/bin/bash | |
| ##################################################### | |
| # Name: Bash CheatSheet for Mac OSX | |
| # | |
| # A little overlook of the Bash basics | |
| # | |
| # Usage: | |
| # | |
| # Author: J. Le Coupanec | |
| # Date: 2014/11/04 |
| function convertSheet2Json(sheet) { | |
| // first line(title) | |
| var firstRange = sheet.getRange(1, 1, 1, sheet.getLastColumn()); | |
| var firstRowValues = firstRange.getValues(); | |
| var titleColumns = firstRowValues[0]; | |
| // after the second line(data) | |
| var lastRow = sheet.getLastRow(); | |
| var rowValues = []; | |
| for(var rowIndex=2; rowIndex<=lastRow; rowIndex++) { |
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| -- AppleScript -- | |
| -- This example is meant as a simple starting point to show how to get the information in the simplest available way. | |
| -- Keep in mind that when asking for a `return` after another, only the first one will be output. | |
| -- This method is as good as its JXA counterpart. | |
| -- Webkit variants include "Safari", "Webkit", "Orion". | |
| -- Specific editions are valid, including "Safari Technology Preview". | |
| -- "Safari" Example: | |
| tell application "Safari" to return name of front document |
| # File adapted from: https://github.com/h5bp/html5-boilerplate/blob/master/dist/.htaccess | |
| # ------------------------------------------------------------------------------ | |
| # | File Types | | |
| # ------------------------------------------------------------------------------ | |
| # Allow access from all domains for web fonts | |
| <IfModule mod_headers.c> | |
| <FilesMatch "\.(eot|font.css|otf|ttc|ttf|woff)$"> |