Skip to content

Instantly share code, notes, and snippets.

@n0nick
n0nick / linechart-call.html
Created May 23, 2011 13:53
Raphael Line Charts
<script type="text/javascript">
window.onload = function(){
var w = 840; // you can make this dynamic so it fits as you would like
var paper = Raphael('line-chart', w, 250); // init the raphael obj and give it a width plus height
paper.lineChart({
data_holder: 'd2', // find the table data source by id
width: w, // pass in the same width
show_area: true, // show the area
x_labels_step: 3, // X axis labels step
y_labels_count: 5, // Y axis labels count
@n0nick
n0nick / gist:1006549
Created June 3, 2011 15:38
wget-1.12-subjectAltNames.diff
diff --git a/src/openssl.c b/src/openssl.c
index b55ca8b..b036a3b 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -39,7 +39,7 @@ as that of the covered work. */
#include <string.h>
#include <openssl/ssl.h>
-#include <openssl/x509.h>
+#include <openssl/x509v3.h>
@n0nick
n0nick / gist:1007919
Created June 4, 2011 13:59
Sample paradigm for attaching pronouns to Hebrew verbs
<dictionary>
<alphabet></alphabet>
<sdefs>
<sdef n="vblex"/>
<sdef n="prn"/>
<sdef n="obj"/>
<sdef n="past"/>
<sdef n="p1"/>
<sdef n="p2"/>
<sdef n="f"/>
<pardef n="gd_m_f">
<e r="LR"><p><l><s n="GD"/></l><r><s n="m"/></r></p></e>
<e r="LR"><p><l><s n="GD"/></l><r><s n="f"/></r></p></e>
</pardef>
85 pending_adjectives.txt
25 pending_adverbs.txt
0 pending_conjunctions.txt
16 pending_determiners.txt
966 pending_nouns.txt
19 pending_numerals.txt
2 pending_prepositions.txt
46 pending_pronouns.txt
190 pending_proper_nouns.txt
208 pending_verbs.txt
<pardef n="אחרון__det" c="other">
<e><p><l></l><r><s n="det"/><s n="ind"/><s n="m"/><s n="sg"/></r></p></e>
<e><p><l>ת</l><r><s n="det"/><s n="ind"/><s n="f"/><s n="sg"/></r></p></e>
<e><p><l>ים</l><r><s n="det"/><s n="ind"/><s n="m"/><s n="pl"/></r></p></e>
<e><p><l>ות</l><r><s n="det"/><s n="ind"/><s n="f"/><s n="pl"/></r></p></e>
</pardef>
<rule comment="rule: det nom">
<pattern>
<pattern-item n="nom"/>
<pattern-item n="det"/>
</pattern>
<action>
<out>
<lu>
<clip pos="1" side="tl" part="whole"/>
</lu>
<rule comment="rule: nom det">
<pattern>
<pattern-item n="nom"/>
<pattern-item n="det"/>
</pattern>
<action>
<choose>
<when>
<test>
<pardef n="אחרון__det">
<e><p> <l>ן</l><r>ן<s n="det"/><s n="ord"/><s n="m"/><s n="sg"/></r></p></e>
<e><p> <l>נה</l><r>ן<s n="det"/><s n="ord"/><s n="f"/><s n="sg"/></r></p></e>
<e><p> <l>נים</l><r>ן<s n="det"/><s n="ord"/><s n="m"/><s n="pl"/></r></p></e>
<e><p> <l>נות</l><r>ן<s n="det"/><s n="ord"/><s n="f"/><s n="pl"/></r></p></e>
</pardef>
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.