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.sql.CallableStatement; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import org.apache.ibatis.type.BaseTypeHandler; | |
import org.apache.ibatis.type.JdbcType; | |
import org.apache.ibatis.type.MappedJdbcTypes; | |
import org.apache.ibatis.type.MappedTypes; |
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
@BeforeClass | |
public static void setUpClass() throws Exception { | |
try { | |
System.setProperty(Context.INITIAL_CONTEXT_FACTORY, | |
"org.apache.naming.java.javaURLContextFactory"); | |
System.setProperty(Context.URL_PKG_PREFIXES, "org.apache.naming"); | |
InitialContext ic = new InitialContext(); | |
ic.createSubcontext("jdbc"); | |
// Construct DataSource | |
OracleConnectionPoolDataSource ds = new OracleConnectionPoolDataSource(); |
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
@echo off | |
SET CC_VOB_DIR= | |
SET CC_VIEW_TAG= | |
SET CC_COMPONENT_NAME= | |
SET CC_VOB_NAME= | |
SET TMP_SVN_EXPORT_DIR= | |
SET SVN_URL= | |
@echo deleting directory %TMP_SVN_EXPORT_DIR% |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>RabbitMq Json Definitions Generator</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(function(){ | |
$('#generateBtn').on('click',function(){ | |
var generatedQueues = '' |
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
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(function(){ | |
var items = ['javascript','java','html','css','python','perl','c','c++']; | |
$.each(items,function(i,item){ | |
$('#items').append($('<li>').text(item)); |
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
$(window).on('orientationchange', function(event) { | |
if (event.orientation) { | |
if (event.orientation == 'portrait') { | |
//do something | |
} else if (event.orientation == 'landscape') { | |
navigator.camera.getPicture(onSuccess, onFail, {quality: 20}); | |
} | |
} | |
); |
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
navigator.contacts.find(['*'], function(contacts) { | |
alert("number of contacts: " + contacts.length); | |
$.each(contacts, function(i, contact) { | |
alert('contact object: ' + JSON.stringify(contact)); | |
}); | |
}, function(contactError) { | |
alert(contactError); | |
}, {"multiple": true}); |
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
>cleartool chtype compressed_file jquery-ui. min.js | |
Change version manager and reconstruct all versions for "jquery-ui.min.js"? [no] yes | |
Changed type of element "jquery-ui.min.js" to "compressed_file". |
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
server { | |
listen 80; | |
server_name localhost; | |
root D:/Development/public; | |
sub_filter_once off; | |
location / { | |
if ($uri ~* /(\w+)\.html$) { | |
set $filename "$1"; |
OlderNewer