This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| #!/usr/bin/env ruby | |
| # encoding: utf-8 | |
| SILENT = ENV['SL_SILENT'] =~ /false/i ? false : true || true | |
| VERSION = '2.2.23' | |
| # SearchLink by Brett Terpstra 2015 <http://brettterpstra.com/projects/searchlink/> | |
| # MIT License, please maintain attribution | |
| require 'net/https' | |
| require 'uri' |
| <h1>Fancy Form</h1> | |
| <form> | |
| <fieldset> | |
| <legend> Classic Inputs</legend> | |
| <p>First we'll start off with some classic textinput fields for single lines, passwords and multiline-text. These have been around for a long time and form a backbone for most webforms.</p> | |
| <p> | |
| <input type="text" id="textinput" /> | |
| <label for="textinput">Input (text)</label> | |
| </p> | |
| <p> |
| // See http://stackoverflow.com/questions/14518410/a-google-apps-script-to-move-or-restore-google-drives-files-from-the-trash | |
| var addonName = 'Rescue Files'; | |
| var rescueFldrName = 'Rescued Files'; // The name of the folder that rescued files should be placed into | |
| /** | |
| * Adds an addon menu to the active spreadsheet. | |
| */ | |
| function onOpen() { | |
| var ui = SpreadsheetApp.getUi(); |
| /** | |
| * Function to convert a given Google Spreadsheet [Sheet] into a PDF. | |
| * | |
| * @param {string} key This is the Id of the Sheet to be converted bothe the DocsList.getId() and the SpreadsheetApp.getId() versions work | |
| * @param {string} name [Optional] Intended Filename. If omitted, uses the Sheet filename. | |
| * @param {object} options Settings object for the crafting of the PDF. Defaults to A4, no gridline print etc. <pre> | |
| * { | |
| * format:Enum, | |
| * size:Enum, | |
| * headers: Bool, |
| @media all and (max-width: 1024px) {...} | |
| @media all and (min-width: 800px) and (max-width: 1024px) {...} | |
| @media not screen and (color) {...} | |
| @media only screen and (orientation: portrait) {...} | |
| @media all and (max-width: 420px) { | |
| section, aside { | |
| float: none; | |
| width: auto; | |
| } |
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
Other gists & tricks: http://caseywatts.com/gists-and-tricks
To set this up, paste the code below into the "location" of a bookmark. Make sure it starts with "javascript:", some browsers strip this out when you paste.