This file contains hidden or 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
var DatePicker=Class.create({ | |
_monthNames:['January','February','March','April','May','June','July','August','September','October','November','December'], | |
initialize:function() { | |
this._date=new Date(); | |
this._userCallback=false; | |
this._monthRow=new Element('tr'); | |
this._monthRow.insert(new Element('td',{style:'cursor:pointer;'})); | |
this._monthRow.insert(new Element('td',{colspan:5,style:'text-align:center;'})); | |
this._monthRow.insert(new Element('td',{style:'text-align:right; cursor:pointer;'})); |
This file contains hidden or 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
var datePicker=new DatePicker(); | |
datePicker.beInserted(element); |
This file contains hidden or 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
\b(?:(?:ht|f)tp(?:s?)\:\/\/|~\/|\/)?(?:\w+:\w+@)?(?:(?:[-\w]+\.)+(?:com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum|travel|[a-z]{2}))(?::[\d]{1,5})?(?:(?:(?:\/(?:[-\w~!$+|.,=]|%[a-f\d]{2})+)+|\/)+|\?|#)?(?:(?:\?(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=?(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)(?:&(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=?(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)*)*(?:#(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)?\b |
This file contains hidden or 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 anchorify(text) { | |
var URIregex=/\b(?:(?:ht|f)tp(?:s?)\:\/\/|~\/|\/)?(?:\w+:\w+@)?(?:(?:[-\w]+\.)+(?:com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum|travel|[a-z]{2}))(?::[\d]{1,5})?(?:(?:(?:\/(?:[-\w~!$+|.,=]|%[a-f\d]{2})+)+|\/)+|\?|#)?(?:(?:\?(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=?(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)(?:&(?:[-\w~!$+|.,*:]|%[a-f\d{2}])+=?(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)*)*(?:#(?:[-\w~!$+|.,*:=]|%[a-f\d]{2})*)?\b/g; | |
var returnArray=[]; | |
while (true) { | |
var previousLastIndex=URIregex.lastIndex; | |
var URImatch=URIregex.exec(text); | |
if (URImatch == null) { | |
returnArray.push(text.substr(previousLastIndex,text.length-previousLastIndex)); | |
return returnArray; | |
} |
This file contains hidden or 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
diff -ruN public_html_2009-12-18/useful.inc public_html/useful.inc | |
--- public_html_2009-12-18/useful.inc 2009-12-04 14:37:13.623578000 +0000 | |
+++ public_html/useful.inc 2009-12-18 02:55:40.794710530 +0000 | |
@@ -19,6 +19,29 @@ | |
} | |
return self::$mysqli; | |
} | |
+ | |
+ static function bind_param($s, &$params) { | |
+ // Build types |
This file contains hidden or 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
# Sequel Pro dump | |
# Version 1630 | |
# http://code.google.com/p/sequel-pro | |
# | |
# Host: ruatvak.osbg.co.uk (MySQL 5.1.41-3~bpo50+1) | |
# Database: cebgreen_cebpnz_gurfgber | |
# Generation Time: 2010-01-14 14:44:57 +0000 | |
# ************************************************************ | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
This file contains hidden or 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
configure_flags << ["--with-somelib=#{Formula.factory('somelib').prefix}"] if Formula.factory('somelib').installed? | |
system "./configure", *configure_flags |
This file contains hidden or 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
class SubversionDownloadStrategy <AbstractDownloadStrategy | |
def initialize url, name, version, specs | |
@name = name | |
super url, name, version, specs | |
end | |
def fetch | |
ohai "Exporting #{@url}" | |
@export = HOMEBREW_CACHE+@unique_token | |
if @spec == :revision |
This file contains hidden or 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
worker_processes 1; | |
error_log /dev/null crit; | |
pid /tmp/nginxbugtest.pid; | |
events { | |
worker_connections 1024; | |
} |
This file contains hidden or 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
javascript:(function() { | |
document.write(' | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Soduko solver</title> | |
<style type="text/css"> | |
table { | |
cell-spacing: collapse; | |
} |
OlderNewer