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
<?php | |
/** | |
* Hooks for Narayam extension | |
* @file | |
* @ingroup Extensions | |
*/ | |
class NarayamHooks { | |
protected static $disabled = false; |
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
<?php | |
/** | |
* NAME | |
* Narayam | |
* | |
* SYNOPSIS | |
* | |
* INSTALL | |
* Put this whole directory under your Mediawiki extensions directory |
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
import codecs | |
import re | |
from datetime import datetime | |
# from http://www.peterbe.com/plog/uniqifiers-benchmark | |
def f5(seq, idfun=None): | |
# order preserving | |
if idfun is None: | |
def idfun(x): return x | |
seen = {} |
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
import wikipedia | |
import codecs | |
site = wikipedia.getSite('ml','wiktionary') | |
input_file = codecs.open("title_list.txt", mode="r", encoding='utf-8') |
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
Index: ext.narayam.core.js | |
--- ext.narayam.core.js Base (BASE) | |
+++ ext.narayam.core.js Locally Modified (Based On LOCAL) | |
@@ -137,6 +137,14 @@ | |
return text; | |
} | |
+ function changeVisual( $element ) { | |
+ if ( enabled ) { | |
+ $element.addClass( 'narayam-input' ); |
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
--- Base (BASE) | |
+++ Locally Modified (Based On LOCAL) | |
@@ -150,7 +150,54 @@ | |
$element.removeClass( 'narayam-input' ); | |
} | |
} | |
+ /** | |
+ * from: http://stackoverflow.com/questions/3274843/get-caret-position-in-textarea-ie | |
+ */ | |
+ function offsetToRangeCharacterMove(el, offset) { |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
A simple thread pool. | |
@author: Junaid P V | |
@license: GPLv3 | |
""" | |
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
#python3 | |
map_ = ( | |
('്', 'ിന്റെ'), | |
('ൾ', 'ളുടെ'), | |
('ൻ', 'ന്റെ'), | |
('ർ', 'റിന്റെ'), | |
('ൺ', 'ണിന്റെ'), | |
('ൽ', 'ലിന്റെ'), | |
('ം', 'ത്തിന്റെ'), |
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
<?php | |
/** | |
* @author Junaid P V (http://junaidpv.in) | |
* @license GPLv3 | |
*/ | |
/** | |
* Class that helps to load resource easily, such as JavaScripts, CSSs | |
* |
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
<?php | |
// Create object | |
$resouceLoader = ResourceLoader(); | |
// Somewhere in code | |
$resourceLoader->add( array ( | |
'jquery' => array( | |
'styles' => 'css/themename/jquery-ui-1.8.16.custom.css', | |
'scripts' => array( 'js/jquery-1.4.4.min.js', 'js/jquery-ui-1.8.16.custom.min.js'), | |
), |