Skip to content

Instantly share code, notes, and snippets.

View suicide's full-sized avatar

suiiii suicide

  • Hamburg, Germany
View GitHub Profile
@suicide
suicide / DeadPixels.java
Created February 3, 2013 18:58
Facebook Hacker Cup 2013 Round 1 DeadPixels Java
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
/**
* @author psy
*
*/
public class DeadPixels {
@suicide
suicide / DeadPixelsReverse.java
Created February 3, 2013 19:02
Facebook Hacker Cup 2013 Round 1 DeadPixels Java faster solution
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
import java.util.Set;
/**
* @author psy
*
*/
@suicide
suicide / CardGame.java
Created February 3, 2013 19:03
Facebook Hacker Cup 2013 Round 1 Card Game... but something is wrong
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
/**
* @author psy
*
@suicide
suicide / Security.java
Created February 3, 2013 19:04
Facebook Hacker Cup 2013 Round 1 Security Backtracking java solution too slow
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
/**
* @author psy
*
*/
@suicide
suicide / BeautifulStrings.java
Created February 3, 2013 19:07
Facebook Hacker Cup 2013 Qualification Round Beautiful Strings Java
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Scanner;
package squaredetector;
/**
* Created by psy on 02.04.14.
*/
public class SquareDetector {
private final int dimension;
private final char[][] field;
@suicide
suicide / artifactory-get.sh
Last active September 10, 2023 14:27
Downloads latest artifact version from artifactory
#!/bin/bash
# downloads latest version of an artifact from artifactory
set -e
usage(){
echo "Usage: $*" >&2
exit 64
}
<!DOCTYPE html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if (IE 9)]><html class="no-js ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html lang="en-US"> <!--<![endif]-->
<head>
<!-- Meta Tags -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
@suicide
suicide / pom.xml
Created January 28, 2015 01:12
TMash pom
<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>TMash</groupId>
<artifactId>TMash</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
@suicide
suicide / Solution.java
Created February 5, 2015 00:20
Game of Life
/**
*
*/
/**
* @author psy
*
*/
public class Solution {