Skip to content

Instantly share code, notes, and snippets.

View f1u77y's full-sized avatar
💭
🤡 🤡 🤡 🤡 🤡

Bogdan Sinitsyn f1u77y

💭
🤡 🤡 🤡 🤡 🤡
View GitHub Profile
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Layout.IfMax
-- Copyright : (c) 2013 Ilya Portnov
-- License : BSD3-style (see LICENSE)
--
-- Maintainer : Ilya Portnov <portnov84@rambler.ru>
-- Stability : unstable
-- Portability : unportable
--
@f1u77y
f1u77y / export-from-stylish.py
Created May 23, 2017 07:33
Export styles from Stylish for Firefox
#! /usr/bin/env python3
import os.path
import glob
import sqlite3
import json
def main():
styles_glob = os.path.expanduser('~/.mozilla/firefox/*.default/stylish.sqlite')
styles_path = glob.glob(styles_glob)[0]
@f1u77y
f1u77y / game.hs
Created March 2, 2018 11:41
Just a game
import System.Exit
import Graphics.UI.GLUT
import Control.Monad
import Control.Applicative
import Control.Arrow
import Control.Concurrent
import Graphics.Rendering.OpenGL
import Data.IORef
import Data.List
import Data.Maybe
@f1u77y
f1u77y / nc.py
Created November 3, 2018 18:26
nc
import socket
import re
from typing import Union, Optional, Callable, List, ByteString
from typing.re import Pattern
class Colors(object):
BLUE = '\033[94m'
GREEN = '\033[92m'
ENDC = '\033[0m'