Skip to content

Instantly share code, notes, and snippets.

@andriidemus
andriidemus / applicationLibraries.xml
Created January 12, 2019 09:56
Intellij Global libraries manual fix
<!-- Location: ~/Library/Preferences/IdeaIC2018.2/options/applicationLibraries.xml -->
<!--
To get jars:
coursier fetch org.scala-lang:scala-library:2.11.12
coursier fetch org.scala-lang:scala-library:2.11.12 --sources
coursier fetch org.scala-lang:scala-library:2.11.12 --javadoc
-->
<application>
<component name="libraryTable">
<library name="scala-sdk-2.11.12" type="Scala">
@andriidemus
andriidemus / hamcrest.md
Last active January 6, 2025 10:39
Hamcrest cheatsheet
@andriidemus
andriidemus / gist:6752476
Created September 29, 2013 13:19
create etags file for php code
find dir/with/php/files -name "*.php" -print | etags --regex="/[ \t]*const.*=/" --regex="/[ \t]*p.*function.*(/" --regex="/abstract class.*/" -
<?php
class Repl {
protected $promt = "hi";
protected function readLine() {
print($this->promt . '> ');
if (PHP_OS == 'WINNT') {
$line = stream_get_line(STDIN, 1024, PHP_EOL);
} else {