Skip to content

Instantly share code, notes, and snippets.

Avatar
🤓

Leigh Dodds ldodds

🤓
View GitHub Profile
@ldodds
ldodds / endgame.md
Last active Aug 29, 2015
DayZ Endgame Ideas
View endgame.md

I might turn this into a blog post, but if I open up Wordpress rather than a gist editor I'll think too much and end up not posting anything. So...

I'm finding DayZ Standalone to be a really compelling experience. At lot of this I owe to the fact that I'm playing with @Thayer, @bamblesquatch, @tomnatt and @dsfan10 who are fun to play with. But the game itself, even at this early stage, has a lot to get hooked on.

Firstly, its a really beautiful game. I've spent several sessions just roaming the landscape away from all of the towns, cities, zombies and other players. In the dreary, wet winter evenings it's nice to drop-into an "eternal day" server and just roam the countryside.

Secondly, the survival mechanics, whilst still being developed, are nuanced and more complex than I've seen in other FPS's that I've played. The need to regulate hydration, food intake, health, bleeding and shock, makes the simple fact of fi

View gist:9760027
#set environment for mongoid
export RACK_ENV=development
#run data conversion
rake clean convert
#run the data load, using settings from mongoid.yml
bundle exec rake load
#to drop the database, read database name from ENV["ONS_POC_DB"]
View schema.json
{
"fields": [
{
"name": "One",
"constraints": {
"required": true
}
},
{
"name": "Two",
@ldodds
ldodds / agreement.txt
Created Jun 25, 2014
Webscope Data Sharing Agreement
View agreement.txt
YAHOO! WEBSCOPE(TM) DATA TERMS OF USE
1. PARTIES & AGREEMENT TO TERMS
1.1. Yahoo! Inc. (“Yahoo!”) provides you access to and use of the Yahoo! WebscopeTM data made available from the Yahoo! website located at http://webscope.sandbox.yahoo.com (“Data”) subject to the terms and conditions of this Terms of Use (“TOU”).
1.2. This TOU is a binding agreement between Yahoo! and you and, if applicable, the company or other legal entity you represent (collectively, “you” or “your”). If you are entering into this TOU on behalf of a company or other legal entity, you warrant and represent that you have the legal authority to bind the legal entity to this TOU, in which case “you” or “your” means that entity. If you do not have this authority, or if you do not agree with the terms and conditions of this TOU, you may not use the Services or any Services-related materials.
1.3. BY CLICKING THE “I AGREE” BUTTON, DOWNLOADING OR USING THE DATA, YOU AGREE THAT THAT YOU HAVE READ AND UNDERSTAND, AND THAT YOU AGREE TO BE BO
@ldodds
ldodds / Gemfile
Created Aug 20, 2014
Socrata facade
View Gemfile
source "https://rubygems.org"
ruby "2.1.0"
gem 'sinatra'
gem 'json'
gem 'soda-ruby'
gem 'dotenv'
gem 'rest_client'
gem 'linkeddata'
View gist:6a425f610d89ea4afd23
<!DOCTYPE html PUBLIC "-//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>
<title>Bath 1818</title>
<meta http-equiv='imagetoolbar' content='no'/>
<style type="text/css"> v\:* {behavior:url(#default#VML);}
html, body { overflow: hidden; padding: 0; height: 100%; width: 100%; font-family: 'Lucida Grande',Geneva,Arial,Verdana,sans-serif; }
body { margin: 10px; background: #fff; }
h1 { margin: 0; padding: 6px; border:0; font-size: 20pt; }
#header { height: 43px; padding: 0; background-color: #eee; border: 1px solid #888; }
@ldodds
ldodds / fixed-schema.json
Created Jun 2, 2015
Fixed up schema from csvlint bug report
View fixed-schema.json
{
"fields": [
{
"name": "Store Code",
"constraints": {
"required": true,
"type": "http://www.w3.org/TR/xmlschema-2/#string",
"unique": true,
"maxLength": 10
}
View gist:443400
<http://data.gov.uk/dataset/revenue-based_taxes_and_benefits_-_tax_receipts_and_taxpayers_-_table_13_receipts_of_taxes_updated_m> <http://purl.org/dc/terms/description> """Provides monthly and quarterly information on all HMRC taxes, including tax receipts, the number of taxpayers, personal tax credits, child benefit and estimates of the cost of tax expenditures and structural relief.
Source agency: HM Revenue and Customs
Designation: National Statistics
Language: English
Alternative title: Revenue Based Taxes""".
View gist:450684
</processor>
a api:Processor.
<linked-data-api.xml>
a api:Page ;
dct:format ... (etc)
api:wasResultOf [
a api:Formatting ;
api:formatter <...>;
View gist:451993
</processor>
a api:Processor;
api:configuration <...>.
<linked-data-api.xml>
a api:Page ;
dc:format .. (etc);
api:wasResultOf [
a api:Execution