#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.
| function supports3d() { | |
| // borrowed from modernizr | |
| var div = document.createElement('div'), | |
| ret = false, | |
| properties = ['perspectiveProperty', 'WebkitPerspective']; | |
| for (var i = properties.length - 1; i >= 0; i--){ | |
| ret = ret ? ret : div.style[properties[i]] != undefined; | |
| }; | |
| // webkit has 3d transforms disabled for chrome, though |
| <?php | |
| /* | |
| Plugin Name: Disable Wptexturize | |
| Description: Removes most calls to this incredible slow function. | |
| Version: 1.0 | |
| Author: Thomas Scholz | |
| Author URI: http://toscho.de | |
| License: GPL | |
| */ |
| /*! | |
| * isVis - v0.5.5 Aug 2011 - Page Visibility API Polyfill | |
| * Copyright (c) 2011 Addy Osmani | |
| * Dual licensed under the MIT and GPL licenses. | |
| */ | |
| (function () { | |
| window.visibly = { | |
| b: null, | |
| q: document, |
#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.
| // This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.github.io | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
| * Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
| */ |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |