Skip to content

Instantly share code, notes, and snippets.

<?php
# Fill our vars and run on cli
# $ php -f db-connect-test.php
$dbname = 'name';
$dbuser = 'user';
$dbpass = 'pass';
$dbhost = 'host';
$connect = mysql_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'");
.nav-tab {
...
// instead of putting it on
border-right: 1px solid #424242;
&:last-child {
border-right: 0; // and then taking it off
}
// use CSS not() to only apply to the elements you want
&:not(:last-child) {
border-right: 1px solid #424242;
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@giannwilk
giannwilk / wk00_Demo_Me_banner.html
Created December 10, 2013 14:49
JavaScript: Respondsive Banner
<script src="/media/javascript/belk.video.js"></script>
<style type="text/css"></style>
<style>
#mask {
width: 100%;
height: 100%;
z-index: 9999;
background-color: #000;
http://pinterest.com/pin/create/button/?url=http://www.domain.com&description=&media=
ex:
http://pinterest.com/pin/create/button/?url=http://www.youworkforthem.com&media=http://www.youworkforthem.com/img/eps/E1174/E1174_00.jpg&description=Escapism 30 pulls further away from reality by manipulating organic materials into beautiful, hi-res bursting textures. This is art, this is space, this is nature, this is chaos. Use as you wish.
@giannwilk
giannwilk / linkHover.css
Created November 26, 2013 14:56
CSS3: Smooth Link Hover
a {
text-decoration: none;
color: #08C;
transition: all 0.3s ease-out;
position: relative;
padding: .5em;
margin: -.5em;
}
a:hover { color: #0AF; }
@giannwilk
giannwilk / gist:7568843
Created November 20, 2013 18:55
JavaScript: Lock Scroll Bar
// Lock Scroll
$('body').css('overflow','hidden');
$('body').attr('scroll','no');
// Unlock Scroll
$('body').css('overflow','auto');
$('body').attr('scroll','yes');