This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Einthusan.com plugin written by humla. | |
import os | |
import re | |
import urllib, urllib2 | |
import xbmcplugin | |
import xbmcgui | |
import xbmcaddon | |
from datetime import date |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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_) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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" |
NewerOlder