---------- Forwarded message ----------
From: Mark S. Miller <erights@google.com>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: javascript-standard@google.com
| #!/usr/bin/env bash | |
| # vim:set ft=bash ts=4 sw=4 et : | |
| # shellcheck shell=bash | |
| # shellcheck disable=SC2317 | |
| ## Usage: | |
| ## docker-etc-hosts-install | |
| ## Installs docker container names and IP addresses in /etc/hosts | |
| ## This script is idempotent | |
| ## Note: Requires root privileges to write to /etc/hosts |
| /* Copyright (c) 2016 Tobias Buschor https://goo.gl/gl0mbf | MIT License https://goo.gl/HgajeK */ | |
| /* focusin/out event polyfill (firefox) */ | |
| !function(){ | |
| var w = window, | |
| d = w.document; | |
| if (w.onfocusin === undefined) { | |
| d.addEventListener('focus' ,addPolyfill ,true); | |
| d.addEventListener('blur' ,addPolyfill ,true); | |
| d.addEventListener('focusin' ,removePolyfill ,true); |
| ALTER TABLE xxxxxx | |
| ADD created_at TIMESTAMP DEFAULT '0000-00-00 00:00:00', | |
| ADD updated_at TIMESTAMP DEFAULT '0000-00-00 00:00:00'; | |
| CREATE TRIGGER xxxxxx_create BEFORE INSERT ON `xxxxxx` | |
| FOR EACH ROW SET NEW.created_at = NOW(), NEW.updated_at = NOW(); | |
| CREATE TRIGGER xxxxxx_update BEFORE UPDATE ON `xxxxxx` | |
| FOR EACH ROW SET NEW.updated_at = NOW(), NEW.created_at = OLD.created_at; |
---------- Forwarded message ----------
From: Mark S. Miller <erights@google.com>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: javascript-standard@google.com
| <?php | |
| // Quick bug fix for Issue #24837 (http://www.magentocommerce.com/bug-tracking/issue/?issue=10453) | |
| $rootBlock = Mage::app()->getLayout()->getBlock('root'); | |
| if ( false !== $rootBlock ) { | |
| foreach ( Mage::getModel('page/config')->getPageLayouts() as $pageLayout ) { | |