Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am shockey on github.
  • I am kyleshockey (https://keybase.io/kyleshockey) on keybase.
  • I have a public key whose fingerprint is 8F2D EEAD 23EA 7355 4E76 2837 DC20 D559 FFBC 0D36

To claim this, I am signing this object:

---
swagger: '2.0'
paths:
"/ping":
get:
operationId: blahBlah
produces:
- text/plain;charset=utf-8
responses:
'200':
openapi: '3.0.1'
info:
title: 'Title'
version: 1.0.0
paths:
/path:
post:
responses:
'201':
description: 'description'
{
"swagger" : "2.0",
"info" : {
"version" : "1.0.100",
"title" : "title<script language=\"javascript\">alert('1')</script>",
"description" : "description with **markdown** format <script language=\"javascript\">alert('script-in-description')</script> <img src=x onerror=alert(\"img-in-description\")>"
},
"tags" : [ {
"name" : "Admin",
"description" : "tag with **markdown**"
{
"post": {
"description": "Book",
"operationId": "buy",
"summary": "Buy a book",
"tags": [
"Book"
],
"consumes": [
"application/json",
openapi: 3.0.0
servers:
- url: /api
info:
title: basejs API
version: 0.0.1
description: Documentation of the RESTful API exposed by basejs
security:
- JWT: []
paths:
swagger: "2.0"
host: httpbin.org
basePath: /
paths:
/basic-auth/{user}/{pass}:
get:
security:
- MyBasicAuth: []
parameters:
- name: user
openapi: 3.0.0
info:
title: math.js web service
version: '1.0'
servers:
- url: http://api.mathjs.org/v1
paths:
/:
get:
summary: Evaluates an expression and returns result as plain text
swagger: "2.0"
info:
version: "1.0"
title: UI Issue #3279
paths:
/:
get:
parameters:
- name: foo
in: query
@shockey
shockey / discogs-wantlist.js
Last active July 26, 2017 03:43
Calculate total value of Discogs wantlist
// Open this page: https://www.discogs.com/mywantlist?page=1&limit=250,
// open your Developer Tools console (right click -> inspect element,
// console tab), then paste the code below into the console.
//
// If you have more than 250 records in your Wantlist, run this
// code on each page of your Wantlist.
console.log("total value is $" +
[].slice.call(document.querySelectorAll("span.price"))
.map(el => parseFloat(el.innerText.slice(1)))