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
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"strings" | |
"unicode" | |
"unicode/utf8" | |
) |
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
$(document).ready(function(){ | |
(function( $ ){ | |
$.fn.tabs = function(selector, targetid) { | |
$(selector).each(function(){ | |
if($(this).attr("id")!=targetid){ | |
this.style.display = "none" | |
}else{ | |
$(this).fadeIn(500) | |
} | |
}) |
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 ssl | |
from base64 import encodestring as encode64 | |
from httplib import HTTPConnection, HTTPSConnection | |
from urllib import urlencode | |
from datetime import datetime | |
class poster(object): | |
""" | |
This class takes care of posting data to a url |
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
if(navigator.userAgent.indexOf("MSIE 7.0") > -1){ | |
if (navigator.userAgent.indexOf("Trident") > -1){ | |
document.write('running in compatability view'); | |
} | |
else{ | |
document.write('running IE7'); | |
} | |
} |
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
<?php | |
class ImageUpload_Validator extends Upload_Validator{ | |
public $minwidth; | |
public $minheight; | |
public function setMinDimensions($width,$height){ | |
if(is_numeric($width) && intval($width)>=0) | |
$this->minwidth=intval($width); |