Skip to content

Instantly share code, notes, and snippets.

<rule comment="rule: prep artic nom">
<pattern>
<pattern-item n="prep"/>
<pattern-item n="artic"/>
<pattern-item n="nom"/>
</pattern>
<action>
<choose>
<when>
<test>
<rule comment="rule: prep artic nom">
<pattern>
<pattern-item n="prep"/>
<pattern-item n="artic"/>
<pattern-item n="nom"/>
</pattern>
<action>
<choose>
<when>
<test>
<rule comment="rule: prep artic numeral">
<pattern>
<pattern-item n="prep"/>
<pattern-item n="artic"/>
<pattern-item n="numeral"/>
</pattern>
<action>
<choose>
<when>
<test>
<e><p><l>ammess<s n="adj"/></l><r>admitted<s n="adj"/></r></p></e>
<e><p><l>trasformat<s n="adj"/></l><r>transformed<s n="adj"/></r></p></e>
<e><p><l>modifikat<s n="adj"/></l><r>modified<s n="adj"/></r></p></e>
<e><p><l>imbuttat<s n="adj"/></l><r>pushed<s n="adj"/></r></p></e>
<e><p><l>presedut<s n="adj"/></l><r>chaired<s n="adj"/></r></p></e>
<e><p><l>rifjutat<s n="adj"/></l><r>refused<s n="adj"/></r></p></e>
<e><p><l>segwit<s n="adj"/></l><r>followed<s n="adj"/></r></p></e> <!-- segwit minn Venere 'followed by Venus' -->
<e><p><l>skopert<s n="adj"/></l><r>discovered<s n="adj"/></r></p></e>
<e><p><l>skurjat<s n="adj"/></l><r>scored<s n="adj"/></r></p></e>
{
"glossary": {
"title": "example glossary",
"GlossDiv": {
"title": "S",
"GlossList": {
"GlossEntry": {
"ID": "SGML",
"SortAs": "SGML",
"GlossTerm": "Standard Generalized Markup Language",
@n0nick
n0nick / gist:1170318
Created August 25, 2011 09:33
mt coverage on wikipedia corpus (split to 4 parts)
/Users/sagiemaoz/Projects/gsoc/apertium-mt-he [git::master *] [sagiemaoz@sagiem-mac] [12:31]
$ cat ../maltese/wikipedia/xaa | sh dev/coverage.sh mt-he.automorf.bin
Number of tokenised words in the corpus: 37016
Number of known words in the corpus: 29006
Coverage: 78.4 %
Top unknown words in the corpus:
41 ^Renju/*Renju$
37 ^Unit/*Unit$
30 ^Kavallieri/*Kavallieri$
23 ^de/*de$
@n0nick
n0nick / jquery.stachecomb.js
Created August 28, 2011 11:35
Quick jQuery plugin to load a Handlebars template into an element
;(function($) {
$.stacheComb = function(el, name, context, options) {
var defaults = {
container: 'body',
path : 'templates/'
};
var plugin = this;
CREATE TABLE external_directory(
id BIGINT NOT NULL,
parent_id BIGINT NOT NULL DEFAULT 0,
name VARCHAR(40) DEFAULT NULL,
iconname VARCHAR(40) DEFAULT NULL,
enabled BOOLEAN DEFAULT true,
keywords VARCHAR(120) DEFAULT NULL
);
CREATE SEQUENCE external_directory_id_seq
function ajax(url, settings) {
var promise;
// actual call
promise = $.ajax(url, settings).promise();
// delay magic
promise = $.when(promise, $('<div/>').appendTo('body').fadeOut(3000)).pipe(function(value){return value[0];});
// here you can set generic handlers for success, fail and always
html{
width:100%;
height: 100%;
}
body{
/*background-color: rgb(69,203,254);*/
font-family: Arial;
display: inline-block;
width:100%;