Skip to content

Instantly share code, notes, and snippets.

View danlangford's full-sized avatar

Dan Langford danlangford

  • The Church of Jesus Christ of Latter-day Saints
  • Utah, USA
View GitHub Profile
@danlangford
danlangford / Bride.java
Created September 17, 2022 15:56
some funny wedding java ideas for /u/Playful_Evening_4286
package com.example;
class Bride {
private String name;
public Bride(String name) {
this.name = name;
}
@danlangford
danlangford / BMMockUp.html
Created December 4, 2020 15:18
Idea of how Button Weavers could look with a modern UI component toolkit
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta tags -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<meta name="viewport" content="width=device-width" />
@danlangford
danlangford / JMSNonTransactedRedeliveryTest.java
Created August 29, 2018 05:04
transacted redelivery failing of message had previously expired
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@danlangford
danlangford / readme.md
Last active June 14, 2018 15:33
Bagel Bites house rules
@danlangford
danlangford / raw_layout.json
Created November 7, 2017 17:00
My K-Type Layout
{
"header": {
"Variant": "standard",
"Generator": "NONE",
"Base": "Base",
"Date": "2017-11-06",
"KLL": "0.5c",
"Author": "bagels mac 2017",
"Version": "0.5",
"Name": "KType",
@danlangford
danlangford / raw_layout.json
Created November 6, 2017 23:01
standard, rainbow underlight, white backlight
{
"header": {
"Variant": "standard",
"Generator": "NONE",
"Base": "Base",
"Date": "2017-11-06",
"KLL": "0.5c",
"Author": "danlangford (Dan Langford) 2017",
"Version": "0.1",
"Name": "KType",
@danlangford
danlangford / a) Arch
Last active August 1, 2017 08:05
config and qdstat looking for QDR load balancing issues.
The problem I am seeing is that the routers are not distributing the message load across other brokers on the network. Here is a little diagram:
RouterA-03 ----> ArtemisBrokerA
|
|
|
\/
RouterB-05 ----> ArtemisBrokerB
<?php
/*
Plugin Name: QuickTime Movie Player
Plugin URI: http://davidwelch.co/fixme
Description: Plays .mov files
Version: 0.1 BETA
Author: David Welch
Author URI: http://davidwelch.co
*/
@danlangford
danlangford / JavaApplication1.java
Created February 14, 2013 05:46
an example of a Class (aka Object) with properties (aka variable) and function(ality)
package javaapplication1;
public class JavaApplication1 {
public static void main(String[] args) {
Double danAmt = 1.0, joshAmt = 1000.0;
SlotMachine danSlots = new SlotMachine(),
joshSlots = new SlotMachine();
@danlangford
danlangford / JavaApplication1
Created February 14, 2013 05:41
just some ideas around variables and functions
package javaapplication1;
public class JavaApplication1 {
public static void main(String[] args) {
Integer sodasToday = 3,
sodasYesterday = 5,
totalSodas = sodasToday + sodasYesterday;
System.out.println("i drank "+ totalSodas +" sodas"); // this puts it on the screen