Skip to content

Instantly share code, notes, and snippets.

@srikanthlogic
srikanthlogic / ta-phonetic.mim
Last active August 29, 2015 13:57
m17n-tamil
;; 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 April 8, 2015 02:07
Get names of places in Indic languages given a bbox region through wikidata.
__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 July 31, 2011 02:48
Use YQL to return track data upon receiving a tweet with #Nowplaying #openhackindia
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 August 11, 2011 17:43
AppEngine Handler code to perform Interwiki based URL Redirection
#!/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 December 29, 2011 05:37
Txtweb Plugin for DYKAPI
# 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 February 20, 2012 10:13
Files for Tamil-English Reverse Transliterator https://github.com/santhoshtr/silpa
#! /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.
# -*- 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 July 20, 2012 22:15
Script to Downlaod Wikimedia squid logs and parse ta logs alone for a month.
#!/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 June 30, 2016 12:26
IND uBlock adblock detection urls
||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 September 22, 2016 08:28 — forked from anonymous/overpass.geojson
data exported by overpass turbo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.