View basic_scala_pom.xml
<?xml version="1.0" encoding="UTF-8"?> | |
<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/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.wm</groupId> | |
<artifactId>wmLogger</artifactId> | |
<version>1.0-SNAPSHOT</version> |
View scala_complie_package_pom.xml
<?xml version="1.0" encoding="UTF-8"?> | |
<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/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.wm</groupId> | |
<artifactId>wmLogger</artifactId> | |
<version>1.0-SNAPSHOT</version> |
View generate_wsdl_pom.xml
<build> | |
<plugins> | |
<!--Generate wsdl related classes--> | |
<plugin> | |
<groupId>org.jvnet.jax-ws-commons</groupId> | |
<artifactId>jaxws-maven-plugin</artifactId> | |
<version>2.3</version> | |
<executions> | |
<execution> |
View ActionFactory.java
package com.company.product | |
import com.fasterxml.jackson.databind.JsonNode; | |
import org.apache.log4j.Logger; | |
import java.lang.reflect.Constructor; | |
import java.util.HashMap; | |
import java.util.Map; | |
/** |
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
View PrintLogoToConsole.java
try { | |
// draw logo to console | |
InputStream input = new BufferedInputStream(new FileInputStream("src/main/resources/logo.txt")); | |
byte[] buffer = new byte[8192]; | |
try { | |
for (int length = 0; (length = input.read(buffer)) != -1;) { | |
System.out.write(buffer, 0, length); | |
} | |
} finally { |
View HTTPMessage.java
package com.x.proxy.http; | |
import java.io.Serializable; | |
import java.util.Map; | |
/** | |
* Created by davidraviv on 7/5/14. | |
*/ | |
public class HTTPMessage implements Serializable { | |
public String url; |
View ip.sh
#! /bin/bash | |
ip_lines=`ifconfig | grep "inet "` | |
prefix="*inet " | |
suffix=" net*" | |
while read -r line; do | |
ip=${line##$prefix} | |
ip=${ip%%$suffix} | |
echo "$ip" | |
done <<< "$ip_lines" |
View LocationChanger.plist
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>locationchanger</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/Users/davidraviv/bin/locationchanger</string> |
View .gitconfig
[user] | |
name = David Raviv | |
email = david.raviv@worldmate.com | |
[core] | |
autocrlf = input | |
[credential] | |
helper = osxkeychain | |
[color] | |
ui = auto |
OlderNewer