Skip to content

Instantly share code, notes, and snippets.

View rclayton-the-terrible's full-sized avatar

Richard Clayton rclayton-the-terrible

View GitHub Profile
rclayton-the-terrible /
Last active November 29, 2021 19:46
TypeScript WebSequenceDiagram Client

Copyright (c) 2019 Richard Clayton

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all

rclayton-the-terrible / index.html
Last active October 15, 2018 01:00
Mindy Code
<title>Test Document</title>
h1 {
font-family: 'Courier New', Courier, monospace;
color: red;
rclayton-the-terrible / build_status.html
Last active September 19, 2018 20:32
Build Status
<img src="" />
rclayton-the-terrible / config_dev.exs
Last active April 27, 2016 03:03
Elixir+Phoenix and Webpack
use Mix.Config
# For development, we disable any cache and enable
# debugging and code reloading.
# The watchers configuration can be used to run external
# watchers to your application. For example, we use it
# with to recompile .js and .css sources.
config :myapp, MyApp.Endpoint,
http: [port: 4000],
SURVEY_ID = "12345678"
HOST = ""
LAST_DATE_CHECKED = "2013-01-01 00:00:00"
# set up the two endpoint urls
respondent_uri = "%s/v2/surveys/get_respondent_list" % HOST
response_uri = "%s/v2/surveys/get_responses" % HOST
# set up the initial post data for respondent and responses
# endpoints
rclayton-the-terrible / UserForm
Created May 15, 2015 00:59
Example of locating a cell and populating values from a combo box
Private Sub btnSubmit_Click()
Dim found As Boolean
found = False
Dim i As Integer
' Start at the second cell
i = 2
' While Combo box value does not match the target cell's value or as long as the cell has a value
rclayton-the-terrible / gist:9f604f7c050f67da0089
Last active August 29, 2015 14:02
Example Output from Metrics Servlet
"jvm": {
"vm": {
"name": "Java HotSpot(TM) 64-Bit Server VM",
"version": "1.7.0_51-b13"
"memory": {
"totalInit": 51436096,
"totalUsed": 76374576,
"totalMax": 556007424,
rclayton-the-terrible /
Created August 2, 2013 00:21
Demonstrates that the text will be parsed without timing out (from a previous infinite loop introduced by the 'named-regex' library).
package com.berico.clavin.resolver.integration;
import org.junit.Before;
import org.junit.Test;
import com.berico.clavin.GeoParser;
import com.berico.clavin.GeoParserFactory;
import com.berico.clavin.resolver.ResolutionContext;
public class BugFixesIT {
rclayton-the-terrible /
Created July 2, 2013 19:27
Install Exhibitor from Maven pom.xml.
RUN="java -jar target/$JAR"
mkdir exhibitor
cd exhibitor
curl $POM -o pom.xml
mvn assembly:single
java -jar target/$JAR --help && echo $RUN >>
rclayton-the-terrible /
Last active August 31, 2018 17:16
Build and Install RabbitMQ Web Stomp with SSL (from @jshiell's repo).
# Make sure you have Mercurial and Git installed
git clone
cd rabbitmq-public-umbrella
make co
cd rabbitmq-web-stomp
git clone
cd dist