Skip to content

Instantly share code, notes, and snippets.

View alex0112's full-sized avatar
💭
Mapping syntactic content to semantic content

Alex Larsen alex0112

💭
Mapping syntactic content to semantic content
View GitHub Profile
#!/usr/bin/env python3
##########################
# Initial Blood Type Set #
##########################
#types = set([ ('O+', 'O+'), ('O-', 'O-'), ('O-', 'O+'), ('O-', 'A+'), ('O-', 'B+'), ('O-', 'AB+'), ('A-', 'A-'), ('A+', 'A+'), ('A-', 'AB+'), ('A+', 'AB+'), ('B-', 'B-'), ('B+', 'B+'), ('B-', 'AB+'), ('AB+', 'AB+'), ('AB-', 'AB-'), ('AB-', 'AB+') ])
types = set([
('O+', 'O+'),
('O+', 'A+'),
#!/bin/bash
## This abomination of a shell script was created by kingsfoil in Oct 2022
## in order to answer this SE question: https://unix.stackexchange.com/a/722000/40507
function slice_loop () { ## grab a slice of a string, and if you go past the end loop back around
local str="$1"
local start=$2
local how_many=$3
local len=${#str};
@alex0112
alex0112 / music.html
Last active September 5, 2022 06:50
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/cjs/vexflow.js"></script>
<script src="https://unpkg.com/[email protected]/dist/cdn.min.js"></script>
!function() {
return function t(e, r, n) {
function i(s, a) {
if (!r[s]) {
if (!e[s]) {
var u = "function" == typeof require && require;
if (!a && u)
return u(s, !0);
if (o)
return o(s, !0);

Keybase proof

I hereby claim:

  • I am alex0112 on github.
  • I am alex0112 (https://keybase.io/alex0112) on keybase.
  • I have a public key ASC2tdVkP-7cPlOrbx6lMM2RkaW_W9pG2uPb3ah0C3OvAAo

To claim this, I am signing this object:

Framework options:

A note on architecture:

A microservice based architecture will better suite our needs considering we have one team working on machine learning and another working on application development. It would be best to have our machine learning, API, and front-end client run as separate services unaffiliated with one another except through their respective interfaces. Regardless of which framework or language we end up deciding to use, loosely coupling our view layer with the remainder of the application will improve our likelihood of a clean codebase that will be more easily maintained in the future. I've created an application here that follows this pattern using a Rails 5 API and a ReactJS client, and I'd like to push for something similar with this application.

Pros & Cons

Pros:

@alex0112
alex0112 / Alphasights_technical_challenge.md
Created February 9, 2017 20:53 — forked from tadast/Alphasights_technical_challenge.md
A technical challenge we give to our Ruby on Rails applicants in order to evaluate their coding proficiency. Job description: http://www.alphasights.com/positions/ruby-developer-london or http://www.alphasights.com/positions/ruby-developer-new-york

Alphasights Technical Challenge

Using Ruby on Rails we would like you to create a simple expert search tool. The application should fulfill the requirements below. The source code must be placed in a public repo on GitHub. The application should be deployable on Heroku.

  • I enter a name and a personal website address and a member is created.
  • When a member is created, all the heading (h1-h3) values are pulled in from the website to that members profile.
  • The website url is shortened (e.g. using http://goo.gl)
  • After the member has been added, I can define their friendships with other existing members. Friendships are bi-directional i.e. If David is a friend of Oliver, Oliver is always a friend of David as well.
  • The interface should list all members with their name, short url and the number of friends e.g. Alan http://goo.gl/3io1P (3)