Skip to content

Instantly share code, notes, and snippets.

Janith Leanage janithl

Block or report user

Report or block janithl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View FB Insights
"Post ID",
Permalink,
"Post Message",
Type,
Countries,
Languages,
Posted,
"Lifetime Post Total Reach",
"Lifetime Post organic reach",
"Lifetime Post Paid Reach",
@janithl
janithl / sinhala.js
Created Oct 19, 2015
The Sinhala Object for transliterating Latin <-> Sinhala
View sinhala.js
/**
* Sinhala transliterator class
* Based on the UCSC Real Time Unicode Converter
* http://www.ucsc.cmb.ac.lk/ltrl/services/feconverter/t1.html
The MIT License (MIT)
Copyright (c) 2014 Janith Leanage
Permission is hereby granted, free of charge, to any person obtaining a copy
@janithl
janithl / subreddit.css
Created Mar 7, 2015
Old /r/srilanka stylesheet
View subreddit.css
/* New Style Beta Header */
#header{background-image:url(%%disp3%%);height:110px;background-color:#540f12;background-repeat:no-repeat;background-position:right;border-bottom:3px solid #f8c221}
.user a,.separator,.pref-lang,.logout a{color:#fff}
#header-bottom-right{background:none}
#header-bottom-left{position:absolute;bottom:0}
.tabmenu li{display:inherit}
.tabmenu li a{font-size:20px;font-weight:100;color:#fff;background:none;border:none;}
.tabmenu li.selected a{background:none;border:none;}
.formtab li{display:inline; padding-left:0;}
.formtab li a{font-size:100% !important;font-weight:100;color: #369 !important;background:none;border:none;}
@janithl
janithl / Obstang.xml
Created Aug 30, 2012
Gedit theme, a cross between Vim's mustang and Gedit's Oblivion
View Obstang.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2012
Author: Bernhard Posselt <bernhard.posselt@gmx.at>
Henrique C. Alves <hcarvalhoalves@gmail.com>
Janith Leanage
This file is free software; you can redistribute it and/or
@janithl
janithl / timer.c
Created Mar 23, 2012
Silly little C code I wrote to record the time I spent doing past paper questions. Not technically sound or anything, but it works for me. :P
View timer.c
/*
Silly program to lap time and stuff, by Janith Leanage.
Uses signal handling code. :P
*/
#include<stdio.h>
#include<signal.h>
int count[100];
int c = 0;
@janithl
janithl / feed.php
Last active Apr 4, 2019
PHP script for turning your Google+ feeds into valid RSS. You need to edit a couple of places but I'm sure you're smart enough to figure that out... :)
View feed.php
<?php
header('Content-type: text/xml');
$gendate = date('r', time());
$config = array(
'gplusid' => '116783522121096138585',
'gplusname' => 'Janith Leanage',
'hosturl' => 'http://janith.vacau.com/gplus'
You can’t perform that action at this time.