MySQL CheatSheet
This can be viewed thru mysql help
or if using linux, try man mysql
ego (\G) Send command to mysql server, display result vertically.
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript | |
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |
<template> | |
<div> | |
<div class="the-countdown"> | |
<ul> | |
<li> | |
<div> | |
<span>Days</span> | |
{{ days | two_digits }} | |
</div> | |
</li> |
//note: month is 0 based, just like Dates in js | |
function getWeeksInMonth(month, year){ | |
var weeks=[], | |
firstDate=new Date(year, month, 1), | |
lastDate=new Date(year, month+1, 0), | |
numDays= lastDate.getDate(); | |
var start=1; | |
var end=7-firstDate.getDay(); | |
while(start<=numDays){ |
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
MySQL CheatSheet
This can be viewed thru mysql help
or if using linux, try man mysql
ego (\G) Send command to mysql server, display result vertically.
When you're doing migration from a different server and domain make sure you change the value of the following tables:
ps_configuration
--------------------
PS_SHOP_DOMAIN
PS_SHOP_DOMAIN_SSL
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
This will detect if it's using mobile or not
if (navigator.userAgent.match(/Android/i)
|| navigator.userAgent.match(/webOS/i)
|| navigator.userAgent.match(/iPhone/i)
|| navigator.userAgent.match(/iPad/i)
|| navigator.userAgent.match(/iPod/i)
|| navigator.userAgent.match(/BlackBerry/i)
|| navigator.userAgent.match(/Windows Phone/i)) {
function setUserAgent(window, userAgent) { | |
// Works on Firefox, Chrome, Opera and IE9+ | |
if (navigator.__defineGetter__) { | |
navigator.__defineGetter__('userAgent', function () { | |
return userAgent; | |
}); | |
} else if (Object.defineProperty) { | |
Object.defineProperty(navigator, 'userAgent', { | |
get: function () { | |
return userAgent; |
/Applications/MAMP/Library/bin/mysql -u root -p. Default password is "root"