Skip to content

Instantly share code, notes, and snippets.

View CloCkWeRX's full-sized avatar

Daniel O'Connor CloCkWeRX

View GitHub Profile
@CloCkWeRX
CloCkWeRX / actual
Created December 3, 2011 00:39
Request #19097 HTML_QuickForm2 does not generate valid html - expects vs actual
<div class="quickform"><form method="post" id="form_name"
action="-"><div><input type="hidden"
name="_qf__form_name" id="_qf__form_name-0" />
<div class="row"><label for="test-0" class="element"></label>
<div class="element"><input type="checkbox" name="test"
id="test-0" value="1" /></div></div></div></form></div></div>
</div>
<h2>Comments</h2>
</div>
@CloCkWeRX
CloCkWeRX / trunk.diff
Created January 4, 2012 22:23
Tree - 0_3_0 vs trunk
Index: Tree/Error.php
===================================================================
--- Tree/Error.php (.../branches/Tree_0_3_0) (revision 321102)
+++ Tree/Error.php (.../trunk) (revision 321102)
@@ -1,86 +0,0 @@
-<?php
-/* vim: set expandtab tabstop=4 shiftwidth=4: */
-// +----------------------------------------------------------------------+
-// | PHP Version 4 |
-// +----------------------------------------------------------------------+
@CloCkWeRX
CloCkWeRX / wsdl
Created February 8, 2012 05:33
Reproduce steps...
<?php
$wsdl = ...;
$soapOptions = array(
'login' => '...',
'password' => '...',
'trace' => 1,
'exceptions' => true,
);
@CloCkWeRX
CloCkWeRX / gist:1813953
Created February 13, 2012 05:34
Nearmaps example
<!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Valuation Exchange</title>
<script src="http://www.nearmap.com/api0.1/api.js" type="text/javascript"></script>
<script type="text/javascript">
* {
background-color: yellow !important;
color: green;
}
*:after { content: "RUH ROH" }
<?php
if (!function_exists('mb_convert_encoding')) {
die("Please enable the mbstring extension - http://www.php.net/manual/en/mbstring.installation.php");
}
$in = 'John';
$first_letter = substr($in, 0, 1);
print $first_letter . "\n";
$hex = dechex(ord($first_letter));
$suffix = dechex(57344); // e000;
require "rubygems"
require "json"
# Search is just prefetched content:
# https://www.google.com/search?sclient=psy-ab&hl=en&tbs=p_ord:p%2Cnew%3A1&tbm=shop&q=SPB10257&oq=SPB10257&aq=f&aqi=&aql=&gs_l=serp.12...0.0.3.692793.0.0.0.0.0.0.0.0..0.0...0.0.zZ7l8fwoGN0&pbx=1&bav=on.2,or.r_gc.r_pw.,cf.osb&fp=3ab34f38ee0d68eb&biw=1600&bih=494&tch=1&ech=1&psi=FkvOT-_DJ_HP4QTS47SzDA.1338922397378.11
file = File.open("search", "rb")
contents = file.read
data = contents.split('/*""*/')[7];
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="http://www.lokka.com/daniel/" />
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head><title>SPARQL httpd test query</title></head>
<body><h1>SPARQL httpd server v1.1.4 test query</h1>
<h2>KB reference_store</h2>
<form action="http://127.0.0.1:8000/sparql/" method="post">
<textarea name="query" cols="80" rows="18">
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT * WHERE {
deploy@kyle:~/fe/current$ rvm debug pkg install openssl
Fetching openssl-1.0.1c.tar.gz to /home/deploy/.rvm/archives
Extracting openssl-1.0.1c.tar.gz to /home/deploy/.rvm/src
Configuring openssl in /home/deploy/.rvm/src/openssl-1.0.1c.
Compiling openssl in /home/deploy/.rvm/src/openssl-1.0.1c.
Installing openssl to /home/deploy/.rvm/usr
Please note that it's required to reinstall all rubies:
rvm reinstall all --force