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
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:util="http://www.springframework.org/schema/util" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd | |
http://www.springframework.org/schema/tx | |
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd | |
http://www.springframework.org/schema/aop | |
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd | |
http://www.springframework.org/schema/util |
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
package my.project.hibernate; | |
import javax.transaction.UserTransaction; | |
import org.hibernate.transaction.JTATransactionFactory; | |
/** | |
* A Hibernate {@link JTATransactionFactory} implementation that avoids using JNDI for lookups. You must set the | |
* {@link UserTransaction} on this bean with #setUserTransaction(UserTransaction)} before using it. | |
*/ |
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 | |
curl -s "http://mywiki.me/wiki/DataFlow" > dataflow_page.html | |
awk '/# BEGIN/,/# END/{if(!/pattern/)print}' dataflow_page.html | \ | |
awk '{gsub(">", ">", $0);print}' | \ | |
awk '{gsub(""", "\"", $0);print}' | \ | |
awk '{gsub("<", "<", $0);print}' > dataflow.dot | |
EPOCH=`date +"%s"` | |
dot -Tpng dataflow.dot -o dataflow-${EPOCH}.png | |
gimp dataflow-${EPOCH}.png |
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
[user] | |
name = Elliot West | |
email = [email protected] | |
[color] | |
ui = true | |
[alias] | |
glog = log --graph --pretty=oneline --abbrev-commit --decorate --stat | |
st = status | |
ci = commit | |
br = branch |
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/bash | |
if [ $# -ne 1 ] | |
then | |
echo "Usage: `basename $0` {dot file}" | |
exit -1 | |
fi | |
FILE=$1 | |
NAME=${FILE%.dot} |
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/bash | |
delim=$1 | |
for file in *.tsv | |
do | |
name=${file%.tsv} | |
columns=`head -n1 $file` | |
echo -n "CREATE TABLE $name (" | |
arr=$(echo $columns | tr $delim "\n") | |
first=1 |
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
package com.hotels.plunger; | |
import static org.hamcrest.CoreMatchers.is; | |
import static org.junit.Assert.assertThat; | |
import java.io.File; | |
import java.io.IOException; | |
import org.apache.commons.io.FileUtils; | |
import org.junit.Rule; |
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
intentionally-blank |
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
Step | BW | FW | FU | BWT | FWT | FUT | |
---|---|---|---|---|---|---|---|
Step 1 - Add default to existing field | ⬇️ | ✅ | ✅ | ⬇️ | ✅ | ✅ | |
Step 2 - Add new field | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
Step 3 - Remove existing field | ✅ | ✅ | ✅ | ✅ | 🚫 | 🚫 | |
Step 4 - Remove default from new field | ✅ | ⬇️ | ✅ | 🚫 | 🚫 | 🚫 | |
Step 5 - Rename new field | ✅ | ✅ | ✅ | 🚫 | 🚫 | 🚫 |
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
Sybmol | Meaning | |
---|---|---|
⬇️ | Step can be skipped | |
✅ | Compatible change | |
🚫 | Incompatible change | |
BW / FW / FU | BACKWARDS / FORWARDS / FULL compatibility modes | |
BWT / FWT / FUT | BACKWARDS / FORWARDS / FULL TRANSITIVE compatibility modes |
OlderNewer