#Stay Standalone
A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.
| <!DOCTYPE html> | |
| <head> | |
| <title>Stay Standalone</title> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | |
| <script src="stay_standalone.js" type="text/javascript"></script> | |
| </head> | |
| <body> | |
| <ul> | |
| <li><a href="http://google.com/">Remote Link (Google)</a></li> |
#Stay Standalone
A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.
| # It'd be great to get this running via AppleScript and sans Alfred if anyone with more knowledge than me knows how :) | |
| ### STEP 1 | |
| #!/bin/sh | |
| # Save this file as /bin/rvm_ruby, and do chmod 755 /bin/rvm_ruby | |
| # to give it the proper permissions | |
| # From http://www.aeonscope.net/2011/05/29/connecting-alfred-to-bitly-via-ruby/ | |
| if [[ -s ~/.rvm/scripts/rvm ]]; then |
| <?php | |
| /** | |
| * Change the brightness of the passed in color | |
| * | |
| * $diff should be negative to go darker, positive to go lighter and | |
| * is subtracted from the decimal (0-255) value of the color | |
| * | |
| * @param string $hex color to be modified | |
| * @param string $diff amount to change the color |
| // swap the keybindings for paste and paste_and_indent | |
| { "keys": ["super+v"], "command": "paste_and_indent" }, | |
| { "keys": ["super+shift+v"], "command": "paste" } |
| // The Grid | |
| #grid { | |
| .core (@gridColumnWidth: @gridColumnWidth , @gridGutterWidth: @gridGutterWidth) { | |
| .span (@columns) { | |
| width: (@gridColumnWidth * @columns) + (@gridGutterWidth * (@columns - 1)); | |
| } |
| <?php | |
| class kirbytextExtended extends kirbytext { | |
| function __construct($text=false, $markdown=true, $smartypants=true { | |
| parent::__construct($text, $markdown, $smartypants); | |
| // define custom tags | |
| $this->addTags('figure'); |
| # YouTube playlist audio retreiver and iTunes-compliant podcast XML generation tool. | |
| # This script will download each video file from the specified YouTube playlist, losslessly extract | |
| # the audio, delete the video, and ultimately produce an iTunes-compliant podcast XML with the | |
| # appropriate metadata, including chapter markers (if provided in the description). If you run the | |
| # script again, only videos that haven't already been converted will be downloaded, allowing you to | |
| # schedule the script to run as often as needed without stressing your internet connection or | |
| # hard drive space. After generating the files and xml, you can easily host them on a local server | |
| # in order to use them with iTunes or your favorite podcast aggregator -- but that's beyond this | |
| # script's jurisdiction. |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteCond %{HTTP_ACCEPT} image/webp | |
| RewriteCond %{DOCUMENT_ROOT}/$1.webp -f | |
| RewriteRule ^(wp-content/uploads.+)\.(jpe?g|png)$ $1.webp [T=image/webp,E=accept:1] | |
| </IfModule> | |
| <IfModule mod_headers.c> | |
| Header append Vary Accept env=REDIRECT_accept | |
| </IfModule> |
| <?php | |
| class kirbytextExtended extends kirbytext { | |
| function __construct($text, $markdown=true) { | |
| parent::__construct($text, $markdown); | |
| $this->addTags('video'); | |