Skip to content

Instantly share code, notes, and snippets.

Owen Platt ojhp

  • Sheffield, UK
Block or report user

Report or block ojhp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View oc.html
<!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>
View id_rsa.pub
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 Nov 1, 2016
Auto Hotkey script for esperanto letters
View esperanto.ahk
; 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 Ĥ
View AuthenticationSuccessMarkerMiddleware.cs
namespace SampleApi.Middleware
{
using System;
using System.Threading.Tasks;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Http;
using Microsoft.Extensions.Logging;
public class AuthenticationSuccessMarkerMiddleware
{
View AuthenticationExceptionHandlerMiddleware.cs
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
View keybase.md

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 Apr 17, 2012
Simple thread spawner
View spawn.clj
(defmacro spawn [& body]
`(doto (Thread. (fn [] ~@body)) (.start)))
@ojhp
ojhp / hello.rb
Created Jan 18, 2012
Hello World
View hello.rb
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)
View gist:376606
<!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}"/>
You can’t perform that action at this time.