Skip to content

Instantly share code, notes, and snippets.

View whalec's full-sized avatar

Cameron Barrie whalec

View GitHub Profile
@whalec
whalec / nigel-hope-welcome.json
Last active November 29, 2021 03:34 — forked from NigelAtOptimised/nigel-hope-welcome.json
Hope GIST ex Website to App
{
"imageURL" : "https://www.totalwellbeingdiet.com/media/xyz/123.jpg",
"avatarURL" : "https://www.totalwellbeingdiet.com/media/xyz/456.jpg",
"targetWeight" : 55.5,
"stretchWeight" : 52,
"targetLoss" : 5.5,
"stretchLoss" : 8,
"weightMeasure" : "kilograms",
"pages" :
[
{
"objects": [
{
"type": "bus",
"coordinates": {
"lat":-35.34500,
"lng":149.101500
},
"alert": null
}
{
"site" : {
"coordinates": {
"lat":-35.345911,
"lng":149.101182
}
},
"stops" : [
{
"label": "A",
zoffix@VirtualBox:~/CPANPRC/doc$ perl6 --ll-exception p2op --threads=1 -v --source-path=./doc --exclude=404.pod6,/.git,/precompiled > html/perl6.xhtml
["poop", "./doc/HomePage.pod6".IO(:SPEC(IO::Spec::Unix),:CWD("/home/zoffix/CPANPRC/doc")), "under"]
[CompUnit::PrecompilationRepository::Default.new(store => CompUnit::PrecompilationStore::File.new(prefix => "/tmp/PodToBigfile-precomp".IO(:SPEC(IO::Spec::Unix),:CWD("/home/zoffix/CPANPRC/doc"))))]
processed ./doc/HomePage.pod6 (cached)
["fuck", "./doc/Language/5to6-nutshell.pod6".IO(:SPEC(IO::Spec::Unix),:CWD("/home/zoffix/CPANPRC/doc")), "under"]
[CompUnit::PrecompilationRepository::Default.new(store => CompUnit::PrecompilationStore::File.new(prefix => "/tmp/PodToBigfile-precomp".IO(:SPEC(IO::Spec::Unix),:CWD("/home/zoffix/CPANPRC/doc"))))]
processed ./doc/Language/5to6-nutshell.pod6 (cached)
["fuck", "./doc/Language/5to6-perlfunc.pod6".IO(:SPEC(IO::Spec::Unix),:CWD("/home/zoffix/CPANPRC/doc")), "under"]
[CompUnit::PrecompilationRepository::Default.new(store =>
@whalec
whalec / features.json
Last active January 13, 2020 10:31
Features of a business
{
features: [
{
key: "contracts",
uri: "http://agridigital.io/api/v1/business/68349987-ee7f-4e95-b979-a7e9cd5476e2/contracts"
},
{
key: "prices",
uri: "http://agridigital.io/api/v1/business/68349987-ee7f-4e95-b979-a7e9cd5476e2/prices"
},
@whalec
whalec / gist:5094913
Created March 5, 2013 22:26
Stream a file in line by line.
# This will stream the file in line by line,
# rather than DOM parsing the whole file into memory.
require 'csv'
CSV.foreach("foo.csv") do |line|
csv_line = CSV.parse(line)
# Do active record insertion with it
SomeARClass.new(csv_line).save!
end
@whalec
whalec / gist:2468087
Created April 23, 2012 01:28
receiptData
ewoJInNpZ25hdHVyZSIgPSAiQWxJcTAvKzQzL0FUMlhQYldYQklZWlRXR1BLRWpM
T28vT1k4QUdRbEdDVG9GSGo1UU9SdlpLdUp6a1k4NnJqbE1VQzFVbmMrSTdvTStE
cEJzNWxRUHdmYnRPZ281aE80bkRRSndJVXFDTE1ITFg3eDV3SFRzWktaSmlqeGNa
WTB1L0VVdTBHT21oc004UXRIeGRlelVuOXRuZ20vaTdGTFM3b1hSTFhzVzg1WUFB
QURWekNDQTFNd2dnSTdvQU1DQVFJQ0NHVVVrVTNaV0FTMU1BMEdDU3FHU0liM0RR
RUJCUVVBTUg4eEN6QUpCZ05WQkFZVEFsVlRNUk13RVFZRFZRUUtEQXBCY0hCc1pT
QkpibU11TVNZd0pBWURWUVFMREIxQmNIQnNaU0JEWlhKMGFXWnBZMkYwYVc5dUlF
RjFkR2h2Y21sMGVURXpNREVHQTFVRUF3d3FRWEJ3YkdVZ2FWUjFibVZ6SUZOMGIz
SmxJRU5sY25ScFptbGpZWFJwYjI0Z1FYVjBhRzl5YVhSNU1CNFhEVEE1TURZeE5U
SXlNRFUxTmxvWERURTBNRFl4TkRJeU1EVTFObG93WkRFak1DRUdBMVVFQXd3YVVI
@whalec
whalec / 500.html
Created November 2, 2011 00:30
Stack trace of error
<html>
<head>
<title>The INSERT statement conflicted with the CHECK constraint &quot;CK_CandidateList_name&quot;. The conflict occurred in database &quot;LinkMe&quot;, table &quot;dbo.CandidateList&quot;.<br>The statement has been terminated.</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
@whalec
whalec / Error page
Created November 1, 2011 22:26
Error page we're getting back from .NET service request
<html>
<head>
<title>Runtime Error</title>
<style>
body {font-family:\"Verdana\";font-weight:normal;font-size: .7em;color:black;}
p {font-family:\"Verdana\";font-weight:normal;color:black;margin-top: -5px}
b {font-family:\"Verdana\";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:\"Verdana\";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:\"Verdana\";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:\"Lucida Console\";font-size: .9em}
<html>
<head>
<stylesheets in here>
</head>
<body>
<div class="tabs-container full-resume-container" id="FullResume-details"> <div class="resume-header-bg"></div> <div class="resume-bg"> <div class="tabs-inner-container"><div class="resume-photo_holder" id="resume-photo"> <img src="/content/11.4.3.4/images/employers/view-resume/photo-bg.png" height="125px" width="100px" class="resume-photo_frame"> <img class="resume-photo" src="/content/11.4.3.4/images/universal/photo-default.png"> </div><div class="self-summary_section resume_section" id="self-summary"> <div class="resume-heading">Self-summary</div> <div class="resume-content"> I am a <span class="highlighted-word">Java</span> Programmer Analyst, at the <span class="highlighted-word">Java</span> Web and JavaEE platforms. With 7 year working with informatics, have been specializing myself for the last 3 years in <span class="highlighted-word">Java</span> technology.<br><br>Certified <span class="highlighted-word">Java</span> Programmer: SCJP 6.0.<br><br>My