Skip to content

Instantly share code, notes, and snippets.

View buddhamagnet's full-sized avatar

Dave Goodchild buddhamagnet

  • Buddhamagnet Ltd
  • Reigate Surrey UK
View GitHub Profile
@buddhamagnet
buddhamagnet / CP-1620-rss-1.xml
Created June 8, 2018 09:35
CP-1620-rss-1.xml
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://purl.org/rss/1.0/"
>
<channel rdf:about="http://www.xml.com/xml/news.rss">
<title>XML.com</title>
<link>http://xml.com/pub</link>
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://channel.netscape.com/rdf/simple/0.9/">
<channel>
<title>Mozilla Dot Org</title>
<link>http://www.mozilla.org</link>
<description>the Mozilla Organization
web site</description>
@buddhamagnet
buddhamagnet / CP-1620-rss-0-9-0.xml
Created June 8, 2018 09:27
CP-1620-rss-0-9-0.xml
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://channel.netscape.com/rdf/simple/0.9/">
<channel>
<title>Mozilla Dot Org</title>
<link>http://www.mozilla.org</link>
<description>the Mozilla Organization
web site</description>
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>DECIMATE</title>
<subtitle>proceed to...</subtitle>
<link href="http://github.com/buddhamagnet"/>
<updated>2018-06-07T09:45:02Z</updated>
<author>
<name>Dave Goodchild</name>
<email>[email protected]</email>
</author>
@buddhamagnet
buddhamagnet / CP-1317-mock.json
Created February 19, 2018 14:57
CP-1317-mock
{"id":"/content/6iqeb34sqe6q18279n8nu501nj6iba55","tegID":"6iqeb34sqe6q18279n8nu501nj6iba55","tegType":"issue","type":["PublicationIssue"],"version":"v1","regionsAllowed":[],"isAccessibleForFree":false,"dateCreated":"2017-08-05T00:00:00Z","dateModified":"2017-08-03T15:16:21Z","datePublished":"2017-08-03T14:49:43Z","inLanguage":"en","url":{"canonical":"http://stage.economist.com/printedition/2017-08-05","short":"http://econ.st/2AGV7n0","alias":["http://stage.economist.com/node/21725750"]},"headline":"How to avoid nuclear war with North Korea","description":"","publisher":{
"about": {
"public": [{"ref":"/s3/wikidata/entity/Q474153-v1.esi"}
,
{"ref":"/s3/wikidata/entity/Q1331793-v1.esi"}
,
{"ref":"/s3/wikidata/entity/Q4830453-v1.esi"}
]
},
{
"suppliers":[
{
"supplier":"VOW JIT",
"sku count":"92722",
"revenue":103225.79,
"archived":"0",
"inactive":"9",
"discontinued":"0",
"oos":"0",
@buddhamagnet
buddhamagnet / woes.js
Last active March 3, 2017 08:43
react woes
// So when we click the dashboard links then try and close the top level menu we get errors. Traced to here in the
// expandNode function:
animateCloseNode(currentLevelExpandedNode.element,
() => ((!expand) && updateState(nextExpandedNodes)),
e => { this.props.onHeightChange(e.heightDiff); });
// currentLevelExpandedNode.element is null! This is located earlier up in the function:
const currentLevelExpandedNode = _.find(state.expandedNodes,
(node) => node.subMenuLevel === nodeDef.subMenuLevel);
// So looks like an issue with the entries in the expandedNodes state entry. Digging...
@buddhamagnet
buddhamagnet / GitHub-Forking.md
Created January 17, 2017 09:59 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@buddhamagnet
buddhamagnet / lmq.js
Created October 17, 2016 13:24
lambamequick
var aws = require("aws-sdk");
var event = {
ResourceProperties: {
StackName: "boom-stageboom-r"
}
};
handler = function(event, context) {
var stackName = event.ResourceProperties.StackName;
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cogito>
<doc>
<content>
<text mimetype="text/html" charset="ISO-8859-1">I love Golang. I love programming languages, but I REALLY love Golang, and Rob Pike, who wears great shirts. Google made it, and it compiles quick. I know you think this post is about code, but it's really
about shirts, his great clothes, his wardrobe.</text>
</content>
<knowledge name="CATEGORIZATION">
<types>
<type fullname="/Category" name="Category">