This file contains 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
from typing import Tuple, List | |
t = "teen" | |
y = "ty" | |
NUMBERS = ["zero", "one", "two", "three", "four", | |
"five", "six", "seven", "eight", "nine", | |
"ten", "eleven", "twelve", "thir" + t, | |
"four" + t, "fif" + t, "six" + t, "seven" + t, | |
"eigh" + t, "nine" + t, "twenty"] | |
TENS = ["thir" + y, "four" + y, "fif" + y, "six" + | |
y, "seven" + y, "eight" + y, "nine" + y] |
This file contains 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 com.perfectial.assessment.tennis; | |
import com.perfectial.assessment.tennis.exception.MalformedGameException; | |
public class Game { | |
private Player player1; | |
private Player player2; | |
private GameState gameState; | |
private boolean inProgress; | |
private Player wonBy; |
This file contains 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 zens; | |
import com.lmax.disruptor.EventHandler; | |
import com.lmax.disruptor.dsl.Disruptor; | |
import com.lmax.disruptor.RingBuffer; | |
import java.nio.ByteBuffer; | |
import java.util.concurrent.Executor; | |
import java.util.concurrent.Executors; | |
import com.facebook.collections.specialized.ColtLongHashSet; | |
import java.util.AbstractSet; |
This file contains 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
SIZE = 500 | |
function love.load() | |
reset() | |
end | |
function reset() | |
previousPositions = {} | |
lastMove = love.timer.getTime() | |
loc = {0, 0} |
This file contains 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
import re, collections | |
p = re.compile(r"(<em>.+</em>|[^\s]+)") | |
EXAMPLE = "Experienced Software Developer Specialties: Software Engineering :Design,Development,Test Programming :Java/J2EE,C#,C++,Erlang,SQL Development: Servlet, JSP, JSF, RESTful web services,JSON, Spring , Hibernate, Jackrabbit, Java SE ( AWT, Swing, Thread, JDBC ,RMI), J2EE (EJB, JSP, Webservice), ASP.NET Test :TDD,Junit,Mokito,Jmeter Software development methodology : Agile(XP, Scrum) DBMS :SQL Server, MySQL, Oracle <em>Distributed Systems</em> Big Data Processing :Hadoop MapReduce" | |
MAX_LEN = 50 | |
EM_INVISIBLE_CHARS = 9 |
This file contains 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
[7:59:55 PM] Magnus Nord: ibland avinstallerar jag FirstClass och låtsas att jag aldrig mer behöver använda det | |
[7:59:59 PM] Magnus Nord: sen måste jag installera det igen dagen efter :( | |
[8:00:03 PM] William: hahhaha | |
[8:00:05 PM] William: hahaha | |
[8:00:07 PM] William: bäst | |
[8:00:34 PM] Magnus Nord: ;( |
I hereby claim:
- I am williamhogman on github.
- I am whn (https://keybase.io/whn) on keybase.
- I have a public key whose fingerprint is 012A EB95 5EA3 582E D6F4 4D5C 1973 F3A8 A48D 0AF2
To claim this, I am signing this object:
This file contains 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
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Map; | |
public class Template { | |
private List<String> tokens; | |
private String simple; | |
public Template(String template) { |
NewerOlder