Skip to content

Instantly share code, notes, and snippets.

View ojhp's full-sized avatar

Owen Platt ojhp

View GitHub Profile
@ojhp
ojhp / oc.html
Last active August 11, 2019 13:51
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDnwquURoSwTgd6ikRpFuHt91Q0G6al9VDFJIECWWhJ8F79pwEGsiFS+dZ9wRBQBKv5aCeSkZXdOXQX2z3GezuZFWJb+lGw5w64F/4ka/4/QC64wxO4wIEje7njVq/YkjzmvrpRzj3nlY9QPCoDBZQTULlK3HiivL+u8g79ZO4SVVnY9mW2LC7LPIA2VXwppBzoRVmU8Xl6T5kdrUri0o/ZEwJYq+J/NsCcEVA5w+HQFDci6Fr3jP1IXx964XqfRGBkqB/hQ66AJwZ0waM1GDwYobu6lqX8zUYS7JsAGuYmebde0TxMPtHYuLUwEvWbeidVVp+ZZ3ZgpGYtpEDsmH+l o.platt@xlntelecom.co.uk
@ojhp
ojhp / esperanto.ahk
Last active August 9, 2022 19:57
Auto Hotkey script for esperanto letters
; Auto Hot Key Script for Esperanto Typing
; by Owen Platt (http://owenplatt.com) 2016
; Hotkeys for typing with Alt-Gr, hold Alt-Gr/right Alt while
; typing a letter to add the breve/grave.
<^>!+c::SendInput Ĉ
<^>!c::SendInput ĉ
<^>!+g::SendInput Ĝ
<^>!g::SendInput ĝ
<^>!+h::SendInput Ĥ
namespace SampleApi.Middleware
{
using System;
using System.Threading.Tasks;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Http;
using Microsoft.Extensions.Logging;
public class AuthenticationSuccessMarkerMiddleware
{
namespace SampleApi.Middleware
{
using System;
using System.Net;
using System.Threading.Tasks;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Http;
using Microsoft.Extensions.Logging;
public class AuthenticationExceptionHandlerMiddleware

Keybase proof

I hereby claim:

  • I am ojhp on github.
  • I am ojhp (https://keybase.io/ojhp) on keybase.
  • I have a public key whose fingerprint is 9A68 00B5 B36B C286 0350 0A5D 727B F79B BE27 FB26

To claim this, I am signing this object:

@ojhp
ojhp / spawn.clj
Created April 17, 2012 20:57
Simple thread spawner
(defmacro spawn [& body]
`(doto (Thread. (fn [] ~@body)) (.start)))
@ojhp
ojhp / hello.rb
Created January 18, 2012 18:52
Hello World
puts(((q=((p=((o=((n=((m=((l=((k=((j=((i=(((h=(g=(f=(e=(d=(c=(b=(a=a).to_s.length.to_s.length)+b)+b)+b)+d)+b)+c)*f)+c).chr).ord+(f*e)+b).chr).ord+f).chr).ord+d).chr).ord-(f*(h+b))-c).chr).ord+(d*d*d*c)+b).chr).ord+h+h+f).chr).ord-h-e).chr).ord-(g*g)-d).chr)+p+k+o+l+n+m+l+k+k+j+i).reverse)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{Title}</title>
<link rel="shortcut icon" href="{Favicon}"/>
<link rel="alternate" type="application/rss+xml" href="{RSS}"/>
{block:Description}
<meta name="description" value="{MetaDescription}"/>