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 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){ |
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
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: |
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 Carousel(id) { | |
var properties = { | |
$next: $(".js-next", id), | |
$prev: $(".js-prev", id), | |
$nav: $("ul.js-nav", id), | |
$players: $("a.playVideo", id), | |
$items: $("ul.js-carousel-items", id), | |
$item:$("li.item", id) | |
}; | |
var settings = { |
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( $ ){ | |
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. |
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
#!/usr/bin/ruby -w | |
require 'open-uri' | |
require 'rubygems' | |
require 'nokogiri' | |
require 'RMagick' | |
require 'fileutils' | |
require 'net/http' | |
require 'tagChecker' |