Skip to content

Instantly share code, notes, and snippets.

View overwine's full-sized avatar

John M. Overwine overwine

View GitHub Profile
@overwine
overwine / scrollzz.js
Created July 19, 2012 20:22
My shitty scroller
$("#work").click(function() {
$('html, body').animate({
scrollTop: $("#vimeo").offset().top-300
}, 500);
});
@overwine
overwine / delete_bunch.php
Created June 21, 2012 14:17
Silly functions.
<?php
$deleteData = trim($_POST['bunch_id']);
$con = mysql_connect("nuts","penis","balls");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("chiquita-momcom", $con);
@overwine
overwine / index.js
Created June 1, 2012 15:24
I'm a damn nub.
$('.checkbox').click(function(e){
if ($('.sprite-checked').length > 3) {
$("#compare-slide").slideUp(400);
return false;
}
if ($(this).hasClass('sprite-unchecked')) {
if ($('.sprite-checked').length > 1) {
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Admin extends Admin_Controller
{
public function index()
{
die(ENVIRONMENT);
//$this->load->model('Cats');
//$data['cats'] = $this->Cats->get_cats();