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
func camelCaseToSnakeCaseUppercased(_ input: String) -> String { | |
enum State { | |
case outside | |
case nextLetter | |
case subsequentUpperLetters | |
case subsequentLowerLetters | |
case digits | |
} |
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
#!/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 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 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 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 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 p4_students; | |
import java.util.Comparator; | |
import java.util.PriorityQueue; | |
import java.util.Scanner; | |
public class solver { | |
public static void main(String[] args) { | |
System.out.println(solve(new Scanner(System.in))); | |
} |
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 p5_parallel; | |
import org.junit.Test; | |
import java.util.Scanner; | |
import static org.hamcrest.Matchers.equalTo; | |
import static org.junit.Assert.assertThat; | |
public class Tests { |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.teamyeah</groupId> | |
<artifactId>cheapaviasales</artifactId> | |
<version>0.1-SNAPSHOT</version> | |
<packaging>jar</packaging> |
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
grammar GameScript; | |
/* | |
* Parser Rules | |
*/ | |
// | |
// Top level items | |
program |
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
extern crate parser_combinators; | |
use parser_combinators::*; | |
#[derive(Debug)] | |
struct IncludeDecl { pub file: String } | |
#[derive(Debug)] | |
struct ClassDecl { pub name: String } |
NewerOlder