I hereby claim:
- I am santhoshtr on github.
- I am sthottingal (https://keybase.io/sthottingal) on keybase.
- I have a public key ASAP_nrhFC103eL1sF9vFA9M4mrxkfvudZ2I-Bd9kiukOgo
To claim this, I am signing this object:
#!/usr/bin/python | |
#-*- coding:utf8 -*- | |
import cairo | |
import pango | |
import pangocairo | |
surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, 600, 100) | |
context = cairo.Context(surface) | |
pc = pangocairo.CairoContext(context) |
import scrapy | |
from scrapy.http import Request | |
class HeadlineCatcher(scrapy.Spider): | |
name = "headlinecatcher" | |
start_urls = ["http://www.prd.kerala.gov.in/pressrelease"] | |
custom_settings = { | |
'FEED_EXPORT_ENCODING': 'utf-8', | |
} |
I hereby claim:
To claim this, I am signing this object:
var winston = require( 'winston' ), | |
fs = require( 'fs' ), | |
logDir = 'log', // Or read from a configuration | |
env = process.env.NODE_ENV || 'development', | |
logger; | |
winston.setLevels( winston.config.npm.levels ); | |
winston.addColors( winston.config.npm.colors ); | |
if ( !fs.existsSync( logDir ) ) { |
youtube-dl -f bestaudio --extract-audio --audio-format mp3 --audio-quality 0 -o "%(title)s.%(ext)s" https://www.youtube.com/playlist?list=abdlshfjskdhfuwhrklk |
from icu import Locale, Collator as ICUCollator | |
import locale | |
collator = ICUCollator.createInstance(Locale("ml_IN")) | |
word1="അവൻ" | |
word2="അവന്\u200d" # "അവന്" | |
collator.setStrength(ICUCollator.PRIMARY); | |
print("[ICU] Are they primary equal? ", collator.compare(word1, word2)) | |
collator.setStrength(ICUCollator.SECONDARY); | |
print("[ICU] Are they secondary equal? ", collator.compare(word1, word2)) |
<div class="container"> | |
<input id="num" type="number" placeholder="Enter a number" /> | |
<div id="result"></div> | |
<div id="analysis"></div> | |
</div> |
#!/usr/bin/python3 | |
import sys | |
import gi | |
gi.require_version('Gtk', '3.0') | |
from gi.repository import Gtk, Gio, GLib, Pango | |
import locale | |
from pyuca import Collator | |
from icu import UnicodeString, Locale, Collator as ICUCollator |
Word = Syllable+ | |
Syllable = s:( Vowel | |
/ Chillu | |
/ ( Conjunct / Consonant ) Signs | |
/ ZWNJ | |
) { | |
if ( Array.isArray( s ) ) { | |
return s.join( '' ) | |
} | |
return s |
Conjunct = Consonant Virama (Conjunct / Consonant ) | |
Consonant = [കഖഗഘങചഛജഝഞടഠഡഢണതഥദധനപഫബഭമയരലവശഷസഹളഴറ] | |
Virama = [്] |