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 h_test_bigger; | |
import java.util.HashSet; | |
import java.util.Scanner; | |
import java.util.Set; | |
public class solver { | |
public static void main(String[] args) { | |
System.out.println(solve(new Scanner(System.in))); | |
} |
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 p5_parallel; | |
import java.util.Scanner; | |
public class solver { | |
public static void main(String[] args) { | |
System.out.println(solve(new Scanner(System.in))); | |
} |
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 fsm; | |
public class Model { | |
private boolean x1, x2, x3, x4; | |
private boolean f1, f2, f3; | |
private boolean y1, y2, y3, y4, y5, y6; | |
private State state; | |
public Model() { | |
state = State.S0; |
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
#!/bin/sh | |
# | |
# Automatically adds task ID in square brackets eg [TASK-1234] (if it exists) or branch name to every commit message. | |
# | |
NAME=$(git branch | grep '*' | sed 's/* //') | |
JIRA_TICKET=$(echo "$NAME" | grep -o '[A-Z]\{3,5\}-[0-9]\{3,7\}' ) | |
TEXT=$(cat "$1") | |
TEXT_HAS_PREFIX=$(echo "$TEXT" | egrep -o '^\[') | |
if [ -z "$TEXT_HAS_PREFIX" ] |
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
func camelCaseToSnakeCaseUppercased(_ input: String) -> String { | |
enum State { | |
case outside | |
case nextLetter | |
case subsequentUpperLetters | |
case subsequentLowerLetters | |
case digits | |
} |
OlderNewer