This file contains hidden or 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
# Hiragana to full-width Katakana mapping | |
# See SOLR-814 and SOLR-822 | |
# Based on code from 814, refactored into conf / mapping file 822 syntax | |
# | |
# A(kana) small | |
"\u3041" => "\u30a1" | |
# A(kana) | |
"\u3042" => "\u30a2" | |
# I(kana) small | |
"\u3043" => "\u30a3" |
This file contains hidden or 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
# Half-width Katakana => Full-width Katakana | |
"ア" => "ア" | |
"イ" => "イ" | |
"ウ" => "ウ" | |
"エ" => "エ" | |
"オ" => "オ" | |
"カ" => "カ" | |
"キ" => "キ" | |
"ク" => "ク" | |
"ケ" => "ケ" |
This file contains hidden or 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
Regex for matching ALL Japanese common & uncommon Kanji (4e00 – 9fcf) ~ The Big Kahuna! | |
([一-龯]) | |
Regex for matching Hirgana or Katakana | |
([ぁ-んァ-ン]) | |
Regex for matching Non-Hirgana or Non-Katakana | |
([^ぁ-んァ-ン]) | |
Regex for matching Hirgana or Katakana or basic punctuation (、。’) |
This file contains hidden or 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 a.table_name, a.column_name, uc.table_name, uc.column_name | |
FROM all_cons_columns a | |
JOIN all_constraints c ON a.owner = c.owner | |
AND a.constraint_name = c.constraint_name | |
JOIN all_constraints c_pk ON c.r_owner = c_pk.owner | |
AND c.r_constraint_name = c_pk.constraint_name | |
join USER_CONS_COLUMNS uc on uc.constraint_name = c.r_constraint_name | |
WHERE C.R_OWNER = 'CLIP_DEV' |
This file contains hidden or 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
http://www.smartjava.org/?q=node/11 |
This file contains hidden or 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 | |
MYID | |
, ora_hash(MYID, 100) | |
from mytable | |
where | |
ora_hash(MYID, 100) = 90; -- find everything that goes into bucket 90... | |
-- ora_hash(MYID, 100) => [BUCKET TO ASSIGNED] |
This file contains hidden or 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 shard | |
FROM (select 0 shard from dual) shards | |
MODEL | |
DIMENSION BY (shard) | |
MEASURES (shard v) | |
RULES UPSERT | |
(v[for shard from 0 to 100 increment 1] = 1) | |
order by 1; |
This file contains hidden or 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
<xforms:submission id="orbeonCustomer-submission" | |
class="fr-service" | |
ref="instance('fr-service-request-instance')" | |
action="http://......./orbeonFormsManager/outstanding.action?userId={xxforms:instance('user-instance')/userId}&accountNumber={xxforms:instance('user-instance')/accountNumber}" | |
method="get" | |
separator="&" | |
serialization="application/xml" | |
mediatype="application/xml" | |
replace="instance" | |
xforms:url-type="resource" |
This file contains hidden or 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
<%@ page import="org.orbeon.oxf.util.WriterOutputStream" %> | |
<%@ page import="java.io.IOException" %> | |
<%@ page import="java.util.Map" %> | |
<%@ page import="java.util.StringTokenizer" %> | |
<%@ page import="java.util.HashMap" %> | |
<%-- Example which will handle processing a seperate request and include the content back --%> | |
<% | |
out.flush(); | |
final JspWriter myout = out; | |
// Example 1: This gets the current servlet context |
This file contains hidden or 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
/** | |
* Author - Shutupandcode - Terrance A. Snyder (http://www.shutupandcode.net & http://www.terranceasnyder.com) | |
* w/ http://stackoverflow.com/users/36174/actual | |
* | |
* HyperLogLog implementation ripped from: | |
* http://stackoverflow.com/questions/5990713/loglog-algorithm-for-counting-of-large-cardinalities | |
* | |
* However modifications made to allow for intersect, union, etc | |
* to allow for comparing two instances together. | |
* |