Skip to content

Instantly share code, notes, and snippets.

Mariusz Nosiński marioosh

Block or report user

Report or block marioosh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@marioosh
marioosh / Grid.java
Created Feb 24, 2014
Grid class for sudoku solver
View Grid.java
package sudoku;
/**
* Created with IntelliJ IDEA.
* User: marioosh
* Date: 23.02.2014
* Time: 21:34
*/
public class Grid {
@marioosh
marioosh / Sample.scala
Last active Aug 29, 2015
String interpolation example
View Sample.scala
object Sample {
def main(args: Array[String]) {
println(xX"!dlrow olleh")
}
implicit class xXHelper(val sc: StringContext) extends AnyVal {
def xX(args: Any*): String =
sc.raw().reverse
@marioosh
marioosh / pre_push
Created Dec 23, 2014
executing test before push to remote server
View pre_push
#!/bin/bash
CMD="sbt clean cleanFiles test"
echo ""
echo ">> You do not pass if any from tests will fail"
echo ""
$CMD
RESULT=$?
if [$RESULT -ne 0 ]; then
View personal_fish_prompt
# name: MyAgnoster - agnoster based theme, added behind and ahead commits amount
# agnoster's Theme - https://gist.github.com/3712874
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
## Set this options in your config.fish (if you want to :])
# set -g theme_display_user yes
@marioosh
marioosh / Flows.scala
Last active Dec 8, 2015
Akka-stream-slide
View Flows.scala
val source = Source(1 to 10)
val sink = Sink.fold[String, String]("")(_ + _)
val flow = Flow[Int]
.filter(_ % 2 == 0)
.map(_.toString)
val result = source.via(flow).runWith(sink) //Future[String]
@marioosh
marioosh / deleteVertexTest.java
Created Jul 11, 2013
Test for delete verticies in orientDB 1.4.1
View deleteVertexTest.java
import com.orientechnologies.orient.core.sql.OCommandSQL;
import com.tinkerpop.blueprints.Direction;
import com.tinkerpop.blueprints.Vertex;
import com.tinkerpop.blueprints.impls.orient.OrientGraph;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
@marioosh
marioosh / runIdea error
Created May 22, 2016
intellij-elixir gradle error
View runIdea error
Caused by: : /projekty/intellij-elixir/intellij-elixir-gradle/src/main/java/org/elixir_lang/configuration/ElixirCompilerOptionsConfigurable.form: The form is bound to the class org.elixir_lang.configuration.ElixirCompilerOptionsConfigurable.
Another form /projekty/intellij-elixir/intellij-elixir-gradle/src/main/java/org/elixir_lang/configuration/ElixirCompilerOptionsConfigurable.form is also bound to this class.
at com.intellij.ant.Javac2.fireError(Javac2.java:510)
at com.intellij.ant.Javac2.instrumentForms(Javac2.java:297)
at com.intellij.ant.Javac2.compile(Javac2.java:236)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:936)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.gradle.api.internal.project.ant.BasicAntBuilder.nodeCompleted(BasicAntBuilder.java:78)
at org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod(BasicAntBuilder.java:93)
View SudokuSolver.java
package sudoku;
import solver.Solver;
import solver.constraints.IntConstraintFactory;
import solver.search.strategy.IntStrategyFactory;
import solver.variables.IntVar;
import solver.variables.VariableFactory;
import util.tools.ArrayUtils;
/**
@marioosh
marioosh / devise.pl.yml
Created Mar 28, 2011
Devise polish translation, for version 1.2 and up
View devise.pl.yml
# Works with devise 1.2 rails 3 (rails 2 not tested)
pl:
errors:
messages:
not_found: "nie znaleziono"
already_confirmed: "już został aktywowany"
not_locked: "nie był zablokowany"
not_saved:
one: "%{resource} nie został zapisany z powodu jednego błędu:"
View Hunter Heavy
< 6 7 0 > - H: HunterHeavy-1.2.0 A: HunterHeavy-2.1.0 C: HunterHeavy-1.3.0 L: HunterHeavy-2.1.0
< 6 6 1 > - H: HunterHeavy-1.2.0 A: HunterHeavy-2.1.0 C: HunterHeavy-1.2.1 L: HunterHeavy-2.1.0
< 6 6 1 > - H: HunterHeavy-1.1.1 A: HunterHeavy-2.1.0 C: HunterHeavy-1.3.0 L: HunterHeavy-2.1.0
< 6 5 2 > - H: HunterHeavy-1.1.1 A: HunterHeavy-2.1.0 C: HunterHeavy-1.2.1 L: HunterHeavy-2.1.0
< 5 8 0 > - H: HunterHeavy-1.2.0 A: HunterHeavy-2.1.0 C: HunterHeavy-1.3.0 L: HunterHeavy-1.2.0
< 5 8 0 > - H: HunterHeavy-1.2.0 A: HunterHeavy-1.2.0 C: HunterHeavy-1.3.0 L: HunterHeavy-2.1.0
< 5 7 1 > - H: HunterHeavy-1.2.0 A: HunterHeavy-2.1.0 C: HunterHeavy-1.2.1 L: HunterHeavy-1.2.0
< 5 7 1 > - H: HunterHeavy-1.2.0 A: HunterHeavy-1.2.0 C: HunterHeavy-1.2.1 L: HunterHeavy-2.1.0
< 5 7 1 > - H: HunterHeavy-1.1.1 A: HunterHeavy-2.1.0 C: HunterHeavy-1.3.0 L: HunterHeavy-1.2.0
< 5 7 1 > - H: HunterHeavy-1.1.1 A: HunterHeavy-1.2.0 C: HunterHeavy-1.3.0 L: HunterHeavy-2.1.0
You can’t perform that action at this time.