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
select | |
co.Code '_id', | |
co.Code 'code', | |
co.name 'name', | |
co.Continent 'continent', | |
co.region 'region', | |
co.SurfaceArea 'surface_area', | |
co.IndepYear 'year_of_independence', | |
co.Population 'population', | |
co.LifeExpectancy 'life_expectancy', |
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
INSERT INTO app_user(username, first_name, last_name, password) | |
VALUES('user1', 'First 1', 'Last 1', '12345-1'); | |
INSERT INTO app_user(username, first_name, last_name, password) | |
VALUES('user2', 'First 2', 'Last 2', '12345-2'); | |
INSERT INTO app_user(username, first_name, last_name, password) | |
VALUES('user3', 'First 3', 'Last 3', '12345-3'); | |
INSERT INTO app_user(username, first_name, last_name, password) |
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 java.io.IOException; | |
import java.nio.charset.Charset; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.util.*; | |
import java.util.concurrent.*; | |
public class ExecutorServiceSample { |
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
public class Parser { | |
private Parser successor; | |
public void parse(String fileName){ | |
if ( getSuccessor() != null ){ | |
getSuccessor().parse(fileName); | |
} | |
else{ | |
System.out.println("Unable to find the correct parser for the file: "+fileName); |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
import java.io.FileReader; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.net.URL; |
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
{ | |
"aliases":{}, | |
"warmers":{}, | |
"mappings": { | |
"world": { | |
"properties": { | |
"capital": { | |
"properties": { | |
"district": { | |
"type": "string" |
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
select | |
co.Code 'code', | |
co.name 'name', | |
co.Continent 'continent', | |
co.region 'region', | |
co.SurfaceArea 'surface_area', | |
co.IndepYear 'year_of_independence', | |
co.Population 'population', | |
co.LifeExpectancy 'life_expectancy', | |
co.GovernmentForm 'government_form', |
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 java.io.Closeable; | |
import java.io.IOException; | |
/** | |
* Created by IntelliJ IDEA. | |
* User: mohamed | |
* Date: 2/5/12 | |
* Time: 9:24 PM | |
* To change this template use File | Settings | File Templates. | |
*/ |
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
{ | |
"type" : "jdbc", | |
"jdbc" : { | |
"password" : "******", | |
"user" : "root", | |
"url" : "jdbc:mysql://localhost:3306/world", | |
"sql" : [ { | |
"statement" : "world.sql" | |
} ], |
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 | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
bin=${DIR}/../bin | |
lib=${DIR}/../lib | |
java \ | |
-cp "${lib}/*" \ | |
-Dlog4j.configurationFile=${bin}/log4j2.xml \ | |
org.xbib.tools.Runner \ |
NewerOlder