Skip to content

Instantly share code, notes, and snippets.

View MikeRalphson's full-sized avatar
💭
I may be slow to respond.

Mike Ralphson MikeRalphson

💭
I may be slow to respond.
View GitHub Profile
@MikeRalphson
MikeRalphson / oas-3.1-ga-issues.md
Last active March 26, 2020 17:54
Issues / merged PRs which need probable rework or rewording before OAS 3.1 GA
PR/Issue Owner Summary
#1829 @MikeRalphson Scopes in non-oauth2 securitySchemes. Use of term 'scope', should we allow definition of allowed/expected scopes at the securityScheme level for all types?
#2181 @MikeRalphson $ref siblings. SHOULD or MUST for behaviour, reference to OAS structure not OAS document object instance
{
"id": "automl:v1beta1",
"documentationLink": "https://cloud.google.com/automl",
"revision": "20200315",
"discoveryVersion": "v1",
"version_module": true,
"schemas": {
"StructType": {
"description": "`StructType` defines the DataType-s of a STRUCT type.",
"type": "object",
@MikeRalphson
MikeRalphson / oaslax.json
Last active March 21, 2020 12:56
Slightly lax version of OAS 3.0 JSON Schema
{
"id": "https://spec.openapis.org/oas/3.0/schema/2019-04-02",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "Validation schema for OpenAPI Specification 3.0.X.",
"type": "object",
"required": [
"openapi",
"info",
"paths"
],
@MikeRalphson
MikeRalphson / xmlobject.md
Created March 9, 2020 09:28
XmlObject effects

Given

schemas:
  foo:
    type: object
    xml:
      name: MyFoo
    properties:
 bar:
@MikeRalphson
MikeRalphson / ref-siblings.md
Last active February 20, 2020 17:54
What properties can / should be siblings to $ref?
@MikeRalphson
MikeRalphson / proto-clean.js
Created September 9, 2019 16:58
Clean Array.prototype pollution in Javascript/Node.js
Array.prototype.foo = function() { return 'Still callable'; };
function test() {
let count = 0;
for (const e in []) {
console.log('Found '+e);
count++;
Object.defineProperty(Array.prototype, e, {
value: Array.prototype[e],
enumerable: false
@MikeRalphson
MikeRalphson / golang.md
Created February 24, 2019 11:54
Learn golang in Y minutes

This is Google's cache of https://learnxinyminutes.com/docs/go/. It is a snapshot of the page as it appeared on 21 Feb 2019 18:16:43 GMT. The current page could have changed in the meantime. Learn more. Full versionText-only versionView source Tip: To quickly find your search term on this page, press Ctrl+F or ⌘-F (Mac) and use the find bar. Share this page Select theme: Learn X in Y minutes Where X=Go

Get the code: learngo.go

JavaScript to Rust Cheat Sheet

The goal of this is to have an easily-scannable reference for the most common syntax idioms in JavaScript and Rust so that programmers most comfortable with JavaScript can quickly get through the syntax differences and feel like they could read and write basic Rust programs.

What do you think? Does this meet its goal? If not, why not?

Variables

JavaScript:

  • MongoDB - for MQTT testing. Stoppable/startable with service mongodb
overlay: 1.0.0
info:
version: 1.0.0
title: HTTP Status Codes German translation
contact:
email: [email protected]
url: 'https://mermade.org.uk'
name: Mike Ralphson
x-twitter: PermittedSoc
license: