Skip to content

Instantly share code, notes, and snippets.

View calvinclaus's full-sized avatar

Calvin Claus calvinclaus

  • Motion Group
View GitHub Profile
require 'rails_helper'
require_relative '../../lib/human_name_utils/human_name_utils.rb'
RSpec.describe "HumanNameUtils" do
def e(n1, n2)
expect(HumanNameUtils.fuzzy_equal?(n1, n2)).to eq(true), "expected #{n1} === #{n2}"
expect(HumanNameUtils.fuzzy_equal?(n2, n1)).to eq(true), "expected #{n1} === #{n2}"
end
require "httparty"
class HumanNameUtils
CACHE_SETTINGS = {
cache: 60 * 60 * 24 * 60,
valid: 60 * 60 * 24 * 60,
period: 0.1,
timeout: 60,
fail: nil,
}.freeze
TITLES = ["★", "ツ", "☛", "✪", "PHD", "FESC", "LLM", "Dr.-medic", "Lic.", "medic.stom.", "medic", "stom.", "et dent.", "F.E.B.U", "FEBU", "Dent.", "Medizinalrat", "Febs", "FEBVS", "F.E.B.V.S", "MBBCH", "m.b.b.ch", "f.e.b.s.", "Prim.", "Univ", "Priv", "FECSM", "DI Dr.", "Dr.-Ing", "Dipl.-Kfm.", "Prof.Dr.h.c.", "Prof.h.c.", "Lssbb", "Assoc", "CIPD", "LL.M", "CEng", "FRAeS", "Dr.med.", "Dr.h.c", "Prof.", "Dr. Dr.", "hp H-P", "OA", "MR", "HR", "OÄ", "OA Dr.", "DDr.", "Ddr", "DDDr", "Dr.", "Dr", "Doz.", "Dr.med.dent", "dr-phil", "phil", "med.", "Med.", "Med", "med", "Doc", "MD", "PD", "Phd", "phd", "PHD", "PhD", "Ph.D.", "MLE", "M.D.", "EDiR", "DNB", "FRCR", "MMag.", "mag.", "Mag.", "Mag.a", "Univ.", "univ.", "Dipl", "Ing", "Ing DI", "DI", "FH", "EMBA", "MMBA", "MBA", "ESQ", "mpa", "mba", "Mba", "BSc", "BSC", "bsc", "MSc", "MSC", "msc"
web:
image: hitalos/laravel:latest
ports:
- 80:80
volumes:
- ./:/var/www
links:
- db
environment:
DB_HOST: db
pragma solidity ^0.4.11;
// @calvin_claus' contract
// @neuling2k didn't do anything
contract CryptoLambo {
address public dev1;
address public dev2;
class Foobar {
}
package at.ac.tuwien.inso.sepm.ticketline.server.unittest.customer;
import at.ac.tuwien.inso.sepm.ticketline.server.entity.Customer;
import at.ac.tuwien.inso.sepm.ticketline.server.service.CustomerService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;