This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class=searchBox> | |
<img onclick=moduleSearch('<?php catalog();?>'); src=images/026cc599.search_icon.png alt=Search> | |
<input id="filter_keyword" placeholder=Keyword/Item#> | |
</div> | |
<script> | |
<!-- | |
$('#filter_keyword').keydown(function(e) { | |
if (e.keyCode == 13) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Vars | |
greetingLine=$'\n\n#############################################\n\n\n'; | |
mysqlInstalledErr=$'\nYou already have MySQL installed!\n'; | |
osError=$'\nOS X 10.7+ Required. Exiting...\n'; | |
downloadMessage=$'\nDownloading MySQL Installers ... may take a few moments\n'; | |
installMessage=$'\nAttempting to install MySQL. Administrator password Required to continue\n' | |
mountError=$'\nNo Mountable MySQL Volume found\n'; | |
installDir='/Volumes/mysql-5.6.17-osx10.7-x86_64/'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Download git RHEL 6/CentOS 6 | |
wget http://git-core.googlecode.com/files/git-1.8.3.4.tar.gz | |
# Install Manual | |
wget -O git-manpages-1.8.3.4.tar.gz http://code.google.com/p/git-core/downloads/detail?name=git-manpages-1.8.3.4.tar.gz&can=2&q= | |
# Install all required libraries before building GIT: | |
sudo yum install zlib-devel perl-CPAN gettext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Categories(outputElement, outputID) { | |
this.outputElement = outputElement; | |
this.outputID = outputID; | |
} | |
Categories.prototype.getOptionLinks = function() { | |
var catListEl = document.getElementsByClassName(this.outputElement)[0]; | |
var items = catListEl.childNodes[1].children; | |
var html = ''; | |
for (var i = 0; i < items.length; ++i) { | |
var link = items[i].childNodes[0].href; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*================================================== | |
= Bootstrap 3 Media Queries = | |
==================================================*/ | |
/*========== Mobile First Method ==========*/ | |
/* Custom, iPhone Retina */ | |
@media only screen and (min-width : 320px) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
TIMESTAMP=$(date +"%F") | |
BACKUP_DIR="/tmp/$TIMESTAMP/mysqldump" | |
MYSQL_USER="*********" | |
MYSQL=/usr/bin/mysql | |
MYSQL_PASSWORD="*********" | |
MYSQLDUMP=/usr/bin/mysqldump | |
mkdir -p $BACKUP_DIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Snippet: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Usage: color: set-text-color($colorVar); | |
*/ | |
@function set-text-color($color) { | |
@if (lightness($color) > 50) { | |
@return darken($color, 40%); // lighter bg | |
} @else { | |
@return lighten($color, 40%); // darker bg | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
Options -MultiViews | |
RewriteEngine On | |
#RewriteBase /path/to/app | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^ index.php [QSA,L] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// media query event handler | |
if (matchMedia) { | |
var mq = window.matchMedia("(min-width: 500px)"); | |
mq.addListener(WidthChange); | |
WidthChange(mq); | |
} | |
// media query change | |
function WidthChange(mq) { |
OlderNewer