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
Process: idea [16532] | |
Path: /Users/USER/*/IntelliJ IDEA 2016.3 CE EAP.app/Contents/MacOS/idea | |
Identifier: com.jetbrains.intellij.ce-EAP | |
Version: EAP IC-163.SNAPSHOT (IC-163.SNAPSHOT) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: idea [16532] | |
User ID: 501 | |
Date/Time: 2016-09-26 21:09:21.992 +1300 |
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
import Control.Concurrent | |
import Control.Concurrent.Chan | |
import Data.UUID | |
import Data.UUID.V4 | |
import Network.Socket | |
import System.IO | |
data Message = Message UUID String | |
deriving (Show, Eq) |
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
implicit class Piper[A](val a: A) extends AnyVal { | |
def |>[B](fn: (A => B)): B = fn(a) | |
} | |
def add5(a: Int) = a + 5 | |
def times2(a: Int) = a * 2 | |
def pipeit(a: Int) = { | |
(a |> add5 | |
|> times2 |
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
$ /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/jrunscript | |
nashorn> [1,2,3].length | |
3 | |
$ jrunscript | |
js> [1,2,3].length | |
3.0 |
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 | |
if ! git diff-index --quiet HEAD --; then | |
echo "Git is dirty, clean up your mess!" | |
exit 1 | |
fi | |
VERSION=`xml sel -N x="http://maven.apache.org/POM/4.0.0" -t -v "/x:project/x:version" pom.xml` | |
BASEVERSION=${VERSION%-SNAPSHOT} | |
ARTIFACTID=`xml sel -N x="http://maven.apache.org/POM/4.0.0" -t -v "/x:project/x:artifactId" pom.xml` |
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
$ git branch -vv --no-merged | |
feature/JDK8 8e89521 First steps to JDK8 | |
feature/jdk8 da4efaa WIP JDK8 Streams/Lambda Migration | |
$ git checkout feature/JDK8 | |
Switched to branch 'feature/JDK8' | |
$ git checkout feature/jdk8 | |
Switched to branch 'feature/jdk8' |
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
whois microsoft.com Fri 22 Nov 2013 11:39:32 NZDT | |
Whois Server Version 2.0 | |
Domain names in the .com and .net domains can now be registered | |
with many different competing registrars. Go to http://www.internic.net | |
for detailed information. | |
MICROSOFT.COM.ZZZZZZZZZZZZZZZZZZZZZZ.IS.A.GREAT.COMPANY.ITREBAL.COM | |
MICROSOFT.COM.ZZZZZZZZZZZZZZZZZZZ.GET.ONE.MILLION.DOLLARS.AT.WWW.UNIMUNDI.COM |
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 | |
if ! git diff-index --quiet HEAD --; then | |
echo "Git is dirty, clean up your mess!" | |
exit 1 | |
fi | |
VERSION=`xml sel -N x="http://maven.apache.org/POM/4.0.0" -t -v "/x:project/x:version" pom.xml` | |
ARTIFACTID=`xml sel -N x="http://maven.apache.org/POM/4.0.0" -t -v "/x:project/x:artifactId" pom.xml` | |
SHA1=`git rev-parse HEAD` |
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
int 1 | |
int 2 | |
int 3 | |
int 4 | |
int 5 |
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
A low maintenance chili recipe. Requires a big pot. Makes enough for loads of meals! | |
1 kilo of dry red kidney beans. | |
200 grams of dry black beans. | |
3 satchels of El Paso mixes (1 of taco, fajita, and burrito). | |
5 red peppers seeds removed. | |
3 red peppers with the seeds. | |
2 kilo diced beef. | |
3 cans of diced tomato. | |
3 or 4 cloves of garlic. |
NewerOlder