Skip to content

Instantly share code, notes, and snippets.

@typesend
typesend / mkramdisk
Created February 13, 2022 19:24
A simple shell script to create a ramdisk under macOS. Tested under Monterey 12.1. Note that it takes two shell arguments, first the name of the ramdisk and secondly the desired size in GB.
#!/bin/sh
diskName=${1:-'RamDisk'}
gigsRequested=${2:-4}
bytes=$(expr 2097152 \* $gigsRequested)
echo "Starting to make $gigsRequested GB ramdisk named $diskName..."
if diskutil erasevolume HFS+ $diskName $(hdiutil attach -nomount ram://$bytes); then
open "/Volumes/${diskName}"
echo "Success!"
@typesend
typesend / overview.md
Last active January 3, 2021 00:37
2017 GI Bill Comparison Tool Rewrite Links

GI Bill Comparison Tool Rewrite

The GI Bill Comparison Tool is a web application that allows veterans to find schools, estimate their GI Bill benefits, and to decide whether it is worthwhile to complete the paperwork to obtain benefits based on their situation, goals, and school choices.

DSVA desired to rewrite this older application so that it would comport with the newer JavaScript- and API-based Vets.gov architecture and tooling.

GIBCT Data Service (Another Rails App)

The purpose of this tool for internal VA stakeholders was to regularly produce a valid GIBCT database from 21 separate data sources, including College Scorecard and human-made spreadsheets. It was kept but was updated and enhanced primarily by Marc Harbatkin.

@typesend
typesend / footnote_inliner.gs
Last active June 12, 2020 00:35
A simple Google Apps Script for copying referenced footnotes into inline footnotes
function footnoteInliner() {
var body = DocumentApp.getActiveDocument().getBody();
var searchResult = null;
var count = 0;
while (searchResult = body.findElement(DocumentApp.ElementType.FOOTNOTE, searchResult)) {
count++;
var el = searchResult.getElement();
@typesend
typesend / molinolo-insights-2005.md
Last active June 8, 2020 19:55
Gabriela Molinolo Named to All-USA Academic First Team

Molinolo Named to All-USA Academic First Team

As an All-USA College Academic Team member, Gabriela Molinolo ’05 has received national recognition in USA Today and a $2,500 cash reward. She was among just 60 two-year college students recognized for their academic excellence.

STUDENT SPOTLIGHT Spring 2005

by Diane Bosser and Elizabeth Homan

To those in the Montgomery College community who know Gabriela Molinolo, it wasn’t surprising that the 24-year-old honors student has been recognized for her academic excellence by being named to the First Team of the 2005 All-USA Community and Junior College Academic Team. Only 20 students a year receive this honor, which includes a cash award of $2,500.

Molinolo’s achievement was announced in Boston, Mass., at the April convention of the American Association of Community Colleges. Sponsored by Phi Theta Kappa, the international honor society for two-year colleges, USA Today, and the American Association of Community Colleges, the annual award recog- nizes a

@typesend
typesend / odi-director.md
Last active September 27, 2019 00:38
Interest form: Director of the California Office of Digital Innovation

Interest form: Director of the California Office of Digital Innovation

California seeks a visionary and dynamic leader to establish our Office of Digital Innovation (ODI). The Office will seek to make government more accessible and intuitive for the people it serves.

ODI will build on what we have learned about digital innovation in California, and bring it to scale. The Office will always start by seeking to understand what users want. It will use design, technology, data, and behavioral insights to iteratively work with departments to deliver better services for Californians. It will also bring its tools to bear on troubled projects to refocus efforts through discovery and rapid prototyping.

The Director of ODI will build a world-class team, create the culture, build the institution, and deliver real results. The Director will also become the de facto community leader and convener of innovators across the state. This is a tremendous opportunity to build a movement, and develop capabilities

@typesend
typesend / autocorrect.txt
Created September 22, 2019 05:01
腹切り
腹切り
@typesend
typesend / _redux.ex
Created January 15, 2018 04:34 — forked from rstacruz/_redux.ex
Redux.ex (elixir)
defmodule Redux do
@moduledoc """
Like redux.js, but more elixir-like
store = create_store fn state, action -> ... end
store |> get_state()
store |> dispatch(%{ type: "publish" })
"""
defstruct reducer: nil, state: nil
@typesend
typesend / _redux.ex
Created January 15, 2018 04:34 — forked from rstacruz/_redux.ex
Redux.ex (elixir)
defmodule Redux do
@moduledoc """
Like redux.js, but more elixir-like
store = create_store fn state, action -> ... end
store |> get_state()
store |> dispatch(%{ type: "publish" })
"""
defstruct reducer: nil, state: nil
defmodule Store do
@initializer_action %{type: "@@INIT"}
# Code your Mom calls
def start_link(reducer, initial_state \\ nil) do
GenServer.start_link(__MODULE__, [reducer, initial_state])
end
def get_state(store) do
@typesend
typesend / scram.py
Created October 7, 2017 08:10
Skeleton for naively pumping messages into and out of MQ using a simple loop.
# pip install redis
# pip install hiredis
# pip install python-dotenv
import os
from os.path import join, dirname
from dotenv import load_dotenv
import redis
import json
import time