Skip to content

Instantly share code, notes, and snippets.

Richard Clayton rclayton-the-terrible

Block or report user

Report or block rclayton-the-terrible

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
@rclayton-the-terrible
rclayton-the-terrible / LICENSE.md
Last active Jun 22, 2019
TypeScript WebSequenceDiagram Client
View LICENSE.md

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

View index.html
<html>
<head>
<title>Test Document</title>
<style>
h1 {
font-family: 'Courier New', Courier, monospace;
color: red;
}
</style>
View build_status.html
<html>
<body>
<img src="https://circleci.com/gh/peachjar/peachjar-core.svg?style=svg&circle-token=69bcd0c88a218784f3b58e7a9f2b18b57c4698d2" />
</body>
</html>
@rclayton-the-terrible
rclayton-the-terrible / config_dev.exs
Last active Apr 27, 2016
Elixir+Phoenix and Webpack
View config_dev.exs
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 brunch.io to recompile .js and .css sources.
config :myapp, MyApp.Endpoint,
http: [port: 4000],
View survey_monkey_polling.py
SURVEY_ID = "12345678"
HOST = "https://api.surveymonkey.net"
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
rclayton-the-terrible / UserForm
Created May 15, 2015
Example of locating a cell and populating values from a combo box
View UserForm
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
Do
@rclayton-the-terrible
rclayton-the-terrible / gist:9f604f7c050f67da0089
Last active Aug 29, 2015
Example Output from Metrics Servlet
View gist:9f604f7c050f67da0089
{
"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
rclayton-the-terrible / BugFixesIT.java
Created Aug 2, 2013
Demonstrates that the text will be parsed without timing out (from a previous infinite loop introduced by the 'named-regex' library).
View BugFixesIT.java
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
rclayton-the-terrible / installExhibitor.sh
Created Jul 2, 2013
Install Exhibitor from Maven pom.xml.
View installExhibitor.sh
POM="https://raw.github.com/Netflix/exhibitor/master/exhibitor-standalone/src/main/resources/buildscripts/standalone/maven/pom.xml"
JAR="exhibitor-war-1.0-jar-with-dependencies.jar"
RUN="java -jar target/$JAR"
mkdir exhibitor
cd exhibitor
curl $POM -o pom.xml
mvn assembly:single
java -jar target/$JAR --help && echo $RUN >> run.sh
@rclayton-the-terrible
rclayton-the-terrible / build_and_install_rmq_web_stomp_ssl.sh
Last active Aug 31, 2018
Build and Install RabbitMQ Web Stomp with SSL (from @jshiell's repo).
View build_and_install_rmq_web_stomp_ssl.sh
# Make sure you have Mercurial and Git installed
git clone https://github.com/rabbitmq/rabbitmq-public-umbrella.git
cd rabbitmq-public-umbrella
make co
cd rabbitmq-web-stomp
git clone https://github.com/jshiell/rabbitmq-web-stomp.git
make
cd dist
You can’t perform that action at this time.