Skip to content

Instantly share code, notes, and snippets.

View junaidpv's full-sized avatar

Junaid P V junaidpv

View GitHub Profile
#include<stdio.h>
int main()
{
printf("Hello, World!");
return 0;
}
/** Change Special:Search to use a drop-down menu *******************************************************
*
* Description: Change Special:Search to use a drop-down menu, with the default being
* the internal MediaWiki engine
* Created and maintained by: [[w:User:Gracenotes]]
* local maintainer [[User:Tux the penguin]]
*/
if (wgPageName == "പ്രത്യേകം:Search") {
var searchEngines = [];
@junaidpv
junaidpv / cat-remover.py
Created November 13, 2010 15:21
ഒരു വർഗ്ഗത്തിൽ ഉൾപ്പെട്ട താളുകളിൽ നിന്ന് മറ്റൊരു വർഗ്ഗം നീക്കം ചെയ്യാനുള്ള പൈവിക്കി സ്ക്രിപ്റ്റ്
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
ഒരു പ്രതേക വർഗ്ഗത്തിൽ ഉൾപ്പെട്ട താളുകളിൽ നിന്ന് മറ്റൊരു വർഗ്ഗം നീക്കം ചെയ്യാനുള്ള പൈവിക്കി ബോട്ട് പ്രോഗ്രാം.
Author: Junaid P V ([[user:Junaidpv]])
Date: 2010-11-13
No warranty
"""
@junaidpv
junaidpv / Vector.php
Created November 29, 2010 14:24
Default Mediawiki 1.16 Vector.php changed to load jQuery automatically
<?php
/**
* Vector - Branch of MonoBook which has many usability improvements and
* somewhat cleaner code.
*
* @todo document
* @file
* @ingroup Skins
*/
@junaidpv
junaidpv / Monobook.php
Created November 29, 2010 14:28
Default Mediawiki 1.16 Monobook.php file changed to load jQuery automatically
<?php
/**
* MonoBook nouveau
*
* Translated from gwicke's previous TAL template version to remove
* dependency on PHPTAL.
*
* @todo document
* @file
* @ingroup Skins
#!/usr/bin/python
# -*- coding: utf-8 -*-
import math
maximum_num = 65536 # Unicode basic multilingual plate
base = 2 # Base of number system
width = (int) (math.ceil(math.log(maximum_num, base)))
@junaidpv
junaidpv / short_pages.py
Created December 26, 2010 06:16
To get list of short pages
import wikipedia
import codecs
NEWLINE = '\r\n'
siteFamily = 'wikipedia'
siteLangCode = 'hi'
wikiSite = wikipedia.Site(code=siteLangCode, fam=siteFamily)
@junaidpv
junaidpv / oneliners.py
Created January 6, 2011 09:00
Pywikipedia bot script to get list of all oneliners
"""
Bot script to get list all one liners
Author: Junaid P V (http://ml.wikipedia.org/wiki/user:Junaidpv)
"""
import wikipedia
import catlib
import codecs
NEWLINE = '\r\n'
#!/usr/bin/python
# -*- coding: utf-8 -*-
from urllib.request import *
from html.parser import *
import re
class MyParser(HTMLParser):
hyperlinks = []
def handle_starttag(self, tag, attributes):
@junaidpv
junaidpv / Malayalam-Mozhi.kms
Last active March 29, 2018 18:20
Mozhi Malayalam rules for Keymagic
/*
@NAME = "Malayalam Mozhi"
@DESCRIPTION = "Wikipedia a Mozhi"
@TRACK_CAPSLOCK = "TRUE"
@EAT_ALL_UNUSED_KEYS = "FALSE"
@US_LAYOUT_BASED = "TRUE"
*/
// author: Junaid (http://junaid.site)
// version: 1.1
// License: GPLv3, CC-SA-BY 3.0