sudo apt-get -y install vim git zsh tree ack-grep npm guake tmux
sudo apt-get -y install gufw
sudo apt-get -y install openjdk-8-jdk mongodb
JsonArray contacts = ...; | |
JsonArray femaleNames = | |
contacts.getValuesAs(JsonObject.class).stream() | |
.filter(x->"F".equals(x.getString("gender"))) | |
.map(x->(x.getString("name")) | |
.collect(JsonCollectors.toJsonArray()); |
import javax.ejb.ApplicationException; | |
import javax.ws.rs.WebApplicationException; | |
import javax.ws.rs.core.Response; | |
/** | |
* | |
* @author Dino Lupo | |
*/ | |
@ApplicationException(rollback = true) | |
public class TestWebException extends WebApplicationException { |
# When you’re using Maven in an IDE you often find the need for your IDE to resolve source code and Javadocs for your library dependencies. There’s an easy way to accomplish that goal. | |
mvn dependency:sources | |
mvn dependency:resolve -Dclassifier=javadoc | |
# The first command will attempt to download source code for each of the dependencies in your pom file. | |
# The second command will attempt to download the Javadocs. | |
# Maven is at the mercy of the library packagers here. So some of them won’t have source code packaged and many of them won’t have Javadocs. |
on run {input, parameters} | |
tell application "Finder" | |
set dir_path to quoted form of (POSIX path of (folder of the front window as alias)) | |
end tell | |
CD_to(dir_path) | |
end run | |
on CD_to(theDir) | |
tell application "iTerm" | |
set _term to create window with default profile |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>DVTConsoleDebuggerInputTextColor</key> | |
<string>0.65098 0.698039 0.752941 1</string> | |
<key>DVTConsoleDebuggerInputTextFont</key> | |
<string>Menlo-Bold - 11.0</string> | |
<key>DVTConsoleDebuggerOutputTextColor</key> | |
<string>0.65098 0.698039 0.752941 1</string> |
/* | |
Ultra Low Power Led Flasher | |
with AtTiny85 @ 1Mhz | |
by Luca Soltoggio | |
06/01/2014 | |
http://www.arduinoelettronica.com | |
modified by Dino Lupo |