Skip to content

Instantly share code, notes, and snippets.

View ta-phonetic.mim
;; ta-phonetic.mim -- Tamil input method for phonetic layout
;; Copyright (c) 2004-2006 Red Hat, Inc. All rights reserved.
;; This file is part of the m17n contrib; a sub-part of the m17n
;; library.
;; The m17n library is free software; you can redistribute it and/or
;; modify it under the terms of the GNU Lesser General Public License
;; as published by the Free Software Foundation; either version 2.1 of
;; the License, or (at your option) any later version.
@srikanthlogic
srikanthlogic / OSMWikidataIndicNames.py
Created Apr 8, 2015
Get names of places in Indic languages given a bbox region through wikidata.
View OSMWikidataIndicNames.py
__author__ = "Srikanth L"
__copyright__ = "Copyright 2015"
__credits__ = ["Aruna S"]
__license__ = "GPL"
__version__ = "0.0.1"
from osmapi import OsmApi
import overpy
import urllib
import simplejson
@srikanthlogic
srikanthlogic / GetTrack.py
Created Jul 31, 2011
Use YQL to return track data upon receiving a tweet with #Nowplaying #openhackindia
View GetTrack.py
import cgi
import datetime
import wsgiref.handlers
import urllib2
from BeautifulSoup import BeautifulSoup
from google.appengine.ext import webapp
class MainPage(webapp.RequestHandler):
def post(self):
tweet = self.request.get('tweet')
@srikanthlogic
srikanthlogic / interwiki.py
Created Aug 11, 2011
AppEngine Handler code to perform Interwiki based URL Redirection
View interwiki.py
#!/usr/bin/env python
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@srikanthlogic
srikanthlogic / txtweb-main.py
Created Dec 29, 2011
Txtweb Plugin for DYKAPI
View txtweb-main.py
# Txtweb plugin code in dykapi main.py --> https://github.com/tecoholic/dykapi/blob/master/main.py
# Copyright Srikanth L
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@srikanthlogic
srikanthlogic / cmudict.py
Created Feb 20, 2012
Files for Tamil-English Reverse Transliterator https://github.com/santhoshtr/silpa
View cmudict.py
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Any Indian Language to any other Indian language transliterator
# Copyright 2008-2010 Santhosh Thottingal <santhosh.thottingal@gmail.com>
# http://www.smc.org.in
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
View ListZWNJ.py
# -*- coding: utf-8 -*-
# Script to parse ZWNJ/ZWJ/ZWSP from http://dumps.wikimedia.org/tawiki/20120526/tawiki-20120526-all-titles-in-ns0.gz
# Srikanth Logic
import sys
def main():
srcPath = sys.argv[1]
destPath = sys.argv[2]
sourceFile = open(srcPath,'r')
outputFile = open(destPath,'a')
outputFile.write("ZWNJ =====================\n")
@srikanthlogic
srikanthlogic / FilterSquid.sh
Created Jul 20, 2012
Script to Downlaod Wikimedia squid logs and parse ta logs alone for a month.
View FilterSquid.sh
#!/bin/bash
# Script to Downlaod Wikimedia squid logs and parse ta logs alone for a month.
# TODO : Get pageview stats on article space alone.
# (C) Srikanth Logic - srik.lak@gmail.com - GPLv2 or more
SERVER="http://dumps.wikimedia.org/other/pagecounts-raw/2012/2012-06/"
for day in `seq -f'%02g' 1 30`
do
for i in `seq -f'%02g' 0 23`
do
@srikanthlogic
srikanthlogic / adblock-detectors.txt
Created Jun 30, 2016
IND uBlock adblock detection urls
View adblock-detectors.txt
||http://timesofindia.indiatimes.com/detector/ *
http://js.etimg.com/detector.cms
http://www.hindustantimes.com/_js/browser-detect.min.js,BlockerScript.js
@srikanthlogic
srikanthlogic / overpass.geojson
Created Sep 22, 2016 — forked from anonymous/overpass.geojson
data exported by overpass turbo
View overpass.geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.