Skip to content

Instantly share code, notes, and snippets.

Prakash Kailasa prakashk

Block or report user

Report or block prakashk

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 default.py
# Einthusan.com plugin written by humla.
import os
import re
import urllib, urllib2
import xbmcplugin
import xbmcgui
import xbmcaddon
from datetime import date
@prakashk
prakashk / Florida-early-voting-schedule-2018.txt
Last active Oct 16, 2018
Florida Counties -- early voting schedule 2018
View Florida-early-voting-schedule-2018.txt
This is early voting schedule for 2018 General Election in all 67 of Florida counties.
Visit the page listed in the last column for information about voting locations.
|--------------+------------+-----------+------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------|
| County | Start Date | End Date | Times | For more information (voting locations etc), visit: |
|--------------+------------+-----------+------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------|
| Alachua | Oct 22 | Nov 3 | 9 AM - 6 PM | https://www.votealachua.com/Voters/Early-Voting
@prakashk
prakashk / emacs-eshell-display-remote-image-inline.el
Last active Sep 25, 2017
Display remote images in emacs eshell buffer
View emacs-eshell-display-remote-image-inline.el
;; The stackoverflow answer https://emacs.stackexchange.com/a/9737
;; extends eshell/cat function to display images inline in *eshell*
;; buffer, so that
;;
;; eshell:~> cat my-image.png
;;
;; works just fine.
;;
;; However, this doesn't work if the eshell buffer's default-directory
;; is remote, and the image file is located on the remote host. cat just
View parsec-test-3.hs
import System.Environment (getArgs)
import Text.Parsec
import Text.Parsec.Prim
import Text.Parsec.Language
import qualified Text.Parsec.Token as T
import Control.Applicative ((<$>), (*>), (<*>), pure, liftA2)
import Data.List (intercalate)
type Parser = Parsec String ()
type Location = String
View parsec-loc-test-2.hs
import System.Environment (getArgs)
import Text.Parsec
import Text.Parsec.Prim
import Text.Parsec.Language
import qualified Text.Parsec.Token as T
import Control.Applicative ((<$>), (*>), (<*>), pure, liftA2)
type Parser = Parsec String ()
type Location = String
type LocNode a = (Location, a)
View parsec-loc-test.hs
import System.Environment (getArgs)
import Text.Parsec
import Text.Parsec.Prim
import Text.Parsec.Language
import qualified Text.Parsec.Token as T
import Control.Applicative ((<$>), (*>), (<*>), pure)
type Parser = Parsec String ()
-- AST
View parsec-test.hs
import System.Environment (getArgs)
import Text.Parsec
import Text.Parsec.Prim
import Text.Parsec.Language
import qualified Text.Parsec.Token as T
import Control.Applicative ((<$>), (*>))
type Parser = Parsec String ()
-- AST
@prakashk
prakashk / gist:e464478b2697c5ef2eaa
Last active Aug 29, 2015
Implementation of few haskell builtins
View gist:e464478b2697c5ef2eaa
-- https://questhub.io/realm/haskell/quest/537bb4e2bbd0bed61d00007d
head :: [a] -> a
head [] = error "head: empty list"
head (x:xs) = x
tail :: [a] -> [a]
tail [] = error "tail: empty list"
tail (x:xs) = xs
View rename-lost-files-3.hs
-- rename Project Euler files in git lost-found directory
-- get the file type and the problem number from the initial comments
-- in each file
import System.Environment
import System.Directory
import Text.Regex.Posix
import Control.Monad (forM_)
@prakashk
prakashk / rename-lost-files-2.hs
Created Apr 17, 2014
rename files in git lost-found directory - v2
View rename-lost-files-2.hs
-- rename Project Euler files in git lost-found directory
-- get the file type and the problem number from the initial comments
-- in each file
import System.Directory
import Text.Regex.Posix
import Control.Monad (forM_)
lostFilesDir = ".git/lost-found/other"
You can’t perform that action at this time.