Skip to content

Instantly share code, notes, and snippets.

@x86ed
x86ed / renderer.rb
Created March 30, 2012 06:06
Dynamic video renderer
#!/usr/bin/ruby -w
require 'open-uri'
require 'rubygems'
require 'nokogiri'
require 'RMagick'
require 'fileutils'
require 'net/http'
require 'tagChecker'
@x86ed
x86ed / parallax.js
Created March 30, 2012 05:24
a parallax navigation jQuery plugin
(function( $ ){
var constants = {//static vars don't change this unless you're rewriting the plugin.
defaultMethod: 'init',
version: '0.0.5',
name: 'parallax.js',
author: 'Adam Siegel'
};
var settings = {//default settigns overidden by arguments given during instantiation.
@x86ed
x86ed / carousel.js
Created March 30, 2012 05:07
A carousel from a recent site I worked on
@x86ed
x86ed / blag_model.py
Created March 30, 2012 03:57
Django blog model
import urllib2
import mimetypes
from django.conf import settings
from django.db import models
from django.contrib.auth.models import User
class Category(models.Model):
name = models.CharField(max_length=32)
class Meta:
@x86ed
x86ed / debug message.js
Created March 29, 2012 18:20
debug msg
function Debug(){// prevents console.logs from ending up in the code when debugging, YAY!
var typeLog = typeof(typeLog) != 'undefined' ? typeLog : "log";
//allows for an optional hrd coded caller argument
var caller = typeof(caller) != 'undefined' ? caller : this.caller;
this.debugMode = false;
function enable(value){
this.debugMode = value;
return this.debugMode;
};
function alertThis(massage,typeLog,caller){