Skip to content

Instantly share code, notes, and snippets.

View zackkitzmiller's full-sized avatar
🏗️
Working from home

Zack Kitzmiller zackkitzmiller

🏗️
Working from home
View GitHub Profile
javascript:jQuery('#gregbox-overlay, #gregbox-wrap').hide();
![Alt Text](http://urltohost.com/image.jpg)
/*!
* Fuck Yeah Sticky Scroll v.1
*
* Loosely based on
* Contained Sticky Scroll v1.1
* By Matt Ward
* http://blog.echoenduring.com/2010/11/15/freebie-contained-sticky-scroll-jquery-plugin/
*
*
*
@zackkitzmiller
zackkitzmiller / pianobar.rb
Created April 11, 2011 18:33
ruby script for growl notify with pianobar
#!/usr/bin/ruby
trigger = ARGV.shift
if trigger == 'songstart'
songinfo = {}
STDIN.each_line { |line| songinfo.store(*line.chomp.split('=', 2))}
`growlnotify -t "Now Playing" -m "#{songinfo['title']}\nby #{songinfo['artist']}" -n 'pianobar' -a 'iTunes'`
end
$(document).ready(function(){
var placeholder_text = 'Email Address';
$('#input_field').focus(function(){
if ($(this).val() == placeholder_text) {
$(this).val('');
}
$expanded = 0;
$('.video img').click(function(){
if($expanded == 0) {
$(this).animate({
width: '720px'
}, 500, function(){
$query = $this->db->get('table_name');
$query->row(5);
$page = 'page_7'
if ($page != 'page_5' || $page != 'page_6') {
// do page 1-4 logic
} elseif ($page == 'page_5') {
// do page 5 logic
} else {
// all other page logic
}
We couldn’t find that file to show.
<?php
foreach ($somethings as $thing) {
$count = 1;
if ($count == 4) {
echo "<div class='thing'>";
?>
LOTS OF HTML CONTENT HERE
</div> <!-- close div -->
<?