This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: | |
image: hitalos/laravel:latest | |
ports: | |
- 80:80 | |
volumes: | |
- ./:/var/www | |
links: | |
- db | |
environment: | |
DB_HOST: db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.11; | |
// @calvin_claus' contract | |
// @neuling2k didn't do anything | |
contract CryptoLambo { | |
address public dev1; | |
address public dev2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foobar { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |