Skip to content

Instantly share code, notes, and snippets.

View bradjohansen's full-sized avatar

Brad Johansen bradjohansen

View GitHub Profile
@bradjohansen
bradjohansen / lse.md
Last active March 17, 2023 18:06
The Diff: LSE

There's a spectrum of liquidity from the instantly-tradable (a small position in a liquid equity) to the basically-impossible-to-get-rid-of (a controlling stake in a complicated asset). And there are many companies whose economics are basically tied to how many deals they can effectively do. The exchange business is tied to the liquid end of that spectrum, with its economics tied to how frequently people want to trade, and what data they'll pay for to trade more efficiently.[1] At the other end of the spectrum, there are service businesses that profit from chunkier transactions, either by getting a fee for M&A deals or by conducting such deals themselves.

In that model, London Stock Exchange Group is a barbell of a business. A few years ago, they were mostly focused on the eponymous exchange, but over time they’ve diversified, especially through their 20

for z in healthPlans.keys():
healthPlanKeys = []
healthPlanKeys.append(z)
print(healthPlanKeys)
i = 0
plans = {}
while i < healthPlans.__len__():
print(healthPlanKeys.__getitem__(i))
plans.__setitem__(healthPlans[healthPlanKeys.__getitem__(i)]['name'], cost)
@bradjohansen
bradjohansen / Palindrome.java
Created August 8, 2010 01:58
A Palindrome Tester in Java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* Created by IntelliJ IDEA.
* User: Brad
* Date: Aug 7, 2010
@bradjohansen
bradjohansen / cs50.c
Created July 23, 2010 16:51
cs50 GetString()
// [...]
/*
* string
* GetString()
*
* Reads a line of text from standard input and returns it as a string,
* sans trailing newline character. (Ergo, if user inputs only "\n",
* returns "" not NULL.) Leading and trailing whitespace is not ignored.
* Returns NULL upon error or no input whatsoever (i.e., just EOF).
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
char *palindrome(char *input);
char *reverse(char *str);
int main()
{
printf("Enter a word: ");
/*
Script: BA-Awareness Hospital Map
Purpose: Use Google Maps to pinpoint hospitals from US News.
*/
//Events---------------
window.onload = onLoad;
//Events---------------
function onLoad()
@bradjohansen
bradjohansen / TODO.txt
Created May 7, 2010 02:28
A Palindrome Tester in HTML/JS
HTML:
TODO: Finish form with input, label, and submit button
Javascript
TODO: Write a function that reverses a string
TODO: Write a function that takes a string, reverses it using a reverse function and tests to see if it matches original
TODO: Write a Regex that matches punctuation and whitespace and replaces with Empty Strings
TODO: Write a function that gets the input submitted to the form
@bradjohansen
bradjohansen / palindrome.cs
Created April 30, 2010 01:23
A simple Palindrome Tester written in C#
using System;
using System.Text.RegularExpressions;
namespace Palindrome
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Let's test for palindromes!\n");
class Palindrome
{
/// <summary>
/// Gets an input from user and checks to see if it is a palindrome.
/// </summary>
public static string Tester(string input)
{
if (input == StringHelper.ReverseString(input))
# TODO: Work on Initializing Constants, and finding appropriate assemblies.
require 'PresentationFramework'
require 'PresentationCore'
require 'WindowsBase'
# Initialize Constants
Window = System::Windows::Window
Application = System::Windows::Application
StackPanel = System::Windows::Controls::StackPanel