Getting zsh to work in ubuntu:
sudo apt-get install zsh
nb. on a Vagrant VM, the default user (vagrant) has password vagrant.
$('button#start').click(function() { | |
var results = $('p#results').html("Animating..."), | |
button = $(this).attr('disabled', 'disabled'); | |
// CSS3 Container | |
$('.target-css').animate({left: "+=200px", width:320 }, 1500, function() { | |
results.html('first callback() fired, reversing...'); | |
$(this).animate({left: "-=200px", width:280 }, 1500, function() { | |
results.html("second callback() fired"); | |
button.removeAttr('disabled'); |
/** | |
* Fullscreenr - lightweight full screen background jquery plugin | |
* By Jan Schneiders | |
* www.nanotux.com | |
* | |
* Modifications by Chris Van Patten | |
* http://www.vanpattenmedia.com | |
* Version 1.5 | |
**/ |
if (typeof (AC) === "undefined") { | |
AC = {} | |
} | |
AC.ImageReplacer = Class.create({ | |
_defaultOptions: { | |
listenToSwapView: true, | |
filenameRegex: /(.*)(\.[a-z]{3}($|#.*|\?.*))/i, | |
filenameInsert: "_☃x", | |
ignoreCheck: /(^http:\/\/movies\.apple\.com\/|\/105\/|\/global\/elements\/quicktime\/|_(([2-9]|[1-9][0-9]+)x|nohires)(\.[a-z]{3})($|#.*|\?.*))/i, | |
attribute: "data-hires", |
if (typeof (AC) === "undefined") { | |
AC = {} | |
} | |
AC.Detector = { | |
getAgent: function () { | |
return navigator.userAgent.toLowerCase() | |
}, | |
isMac: function (c) { | |
var d = c || this.getAgent(); | |
return !!d.match(/mac/i) |
if (typeof AC == "undefined") { | |
AC = {} | |
} | |
if (typeof iScroll !== "undefined") { | |
AC.iScroll = window.iScroll; | |
AC.iScroll.prototype = Object.extend(Object.clone(window.iScroll.prototype), { | |
isTouch: function () { | |
return (AC.Detector.isMobile() || AC.Detector.isiPad()) | |
}, | |
touchStart: function (c) { |
[Symphony][1] is great. Let's make it better.
This article is about the process of building your website's frontend, keeping templates DRY, relating Datasources, Events and other Resources to your Pages, code structure and much more. The following haven arisen, in time, from finding myself repeating the same things over and over again.
I assume you know what [master.xsl][2] is and you are using it. If you don't know, check the [default Symphony workspace][3].
server { | |
listen 80; | |
root /var/www/craft.dev/public; | |
index index.php index.html index.htm; | |
server_name craft.dev; | |
location / { | |
try_files $uri $uri/ @rewrites; |
=LOWER(CLEAN(SUBSTITUTE(TRIM(C2)," ","-"))) |
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :