Skip to content

Instantly share code, notes, and snippets.

@shockey
shockey / NewsArticle.swagger.yaml
Last active November 3, 2017 23:43 — forked from JamesMessinger/NewsArticle.yaml
Example of using `allOf`, `anyOf`, `oneOf`, and `not` to describe a schema in an OpenAPI spec. Also includes a nullable schema.
# Invalid! Used for testing 3.0 version-guarding in the UI rendering.
swagger: "2.0"
servers: []
info:
version: 1.0.0
title: minimal
description: News Articles ftw
paths:
/users:
@shockey
shockey / hn_seach.js
Last active August 29, 2015 14:26 — forked from kristopolous/hn_seach.js
hn job query search
function query() {
var
total = 0, shown = 0,
job_list = Array.prototype.slice.call(document.querySelectorAll('.c00,.cdd')),
query_list = Array.prototype.slice.call(arguments);
// turn them all off
job_list.forEach(function(node) {
node.parentNode.parentNode.parentNode.style.display = 'none';
total ++;