Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>loading</title>
</head>
<body style="width: 100%; height: 100%">
<script>
let h1 = document.createElement("h1");
let text = document.createTextNode("Hello World!");
@indolering
indolering / https-setup.md
Last active March 14, 2023 23:40
Shell script to generate TLS certificates for local development (.test, .example, etc)

Keybase proof

I hereby claim:

  • I am indolering on github.
  • I am indolering (https://keybase.io/indolering) on keybase.
  • I have a public key ASBGxUiOUvVl0hmSyd2G5EUkV8Z5k_YLwcWnNpbmFHvEpgo

To claim this, I am signing this object:

<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../iron-list/iron-list.html">
<!--<link rel="import" href="child-element.html">-->
<dom-module id="seed-element">
<template>
<style>
:host {
display: block;
box-sizing: border-box;
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Test Console</title>
<script src="https://cdn.rawgit.com/indolering/2c007ed9906ff21b071f/raw/335dcbb7e5e0b6ef34af6da652d9d8d7fd341df4/sinon-1.17.3.js"></script>
<script src="https://rawgit.com/appirio-tech/auto-config-fake-server/master/dist/auto-config-fake-server.js"></script>
<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
<script src="https://rawgit.com/swagger-api/swagger-js/master/browser/swagger-client.js"></script>
<script src='https://rawgit.com/indolering/4c6a45a0db3848e6bfb1/raw/d81ef5c8afdb97c2f8ef5e1f4b8d40ce1b10fe0c/easyapi-js.js' type='text/javascript'></script>
if(typeof ISNODE === 'undefined'){
//Enables running core script in browser or Node.js.
//Uglify defines ISNODE and dead code removal cleans everything when compiled.
ISNODE = typeof GLOBAL !== 'undefined';
}
var SwaggerClient;
if(ISNODE){
SwaggerClient = require('swagger-client');
/**
* Sinon.JS 1.17.3, 2016/01/27
*
* @author Christian Johansen (christian@cjohansen.no)
* @author Contributors: https://github.com/cjohansen/Sinon.JS/blob/master/AUTHORS
*
* (The BSD License)
*
* Copyright (c) 2010-2014, Christian Johansen, christian@cjohansen.no
* All rights reserved.
class Thing {
constructor(type) {
this.type = type;
this.conflicts = [];
}
conflict(that){
if(this.type === 'water' && that.type === "fire"){
this.conflicts.push({id: that.id, message: "fire and water don't mix"});
}
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../iron-list/iron-list.html">
<!--<link rel="import" href="child-element.html">-->
<dom-module id="seed-element">
<template>
<style>
:host {
display: block;
box-sizing: border-box;
@indolering
indolering / DNS Syntactic Sugar Spec
Created March 16, 2015 21:32
Example of simplified Namecoin name spec
domains : [
"example.bit" : ["22.231.113.64", "2001:0db8:3c4d:0015::abcd:ef12"],
"sub.example.bit" : ["194.66.82.11", "2001:cdba::3257:9652"],
"www.example.bit" : "example.bit"
],
mail : [ "one.mailserver.bit", "two.mailserver.bit" ],
txt : "Straight JSON version for everything else."