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
#!/usr/bin/env python3 | |
from abc import ABCMeta, abstractmethod | |
class Biop(metaclass=ABCMeta): | |
_set = None | |
@property | |
def set(self): |
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
#!/usr/bin/env python2 | |
import sys | |
import datetime | |
from mustaine.client import HessianProxy | |
SERVICE_URL = 'http://neerc.ifmo.ru:8081/pcms/party' | |
LOGIN = '<login>' | |
PASSWORD = '<password>' |
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
#!/usr/bin/env python3 | |
from itertools import cycle | |
def chksum(val): | |
def tonum(v): | |
if len(v) == 1: | |
if v == '<': | |
return 0 |
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
/*** | |
* Flusher by Kirill Elagin <[email protected]> [http://kirelagin.ru/] | |
* | |
* Use it this way: | |
* ./flusher < testfile | ./myreverse | |
* Exclamation marks in input file will flush the buffer. | |
**/ | |
#include <stdio.h> | |
#include <time.h> |
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
--- letter.txt.orig 2012-04-18 02:21:35.122840949 +0400 | |
+++ letter.txt 2012-04-18 02:29:19.317062201 +0400 | |
@@ -2,9 +2,9 @@ | |
Как-то по так получилось, что по моей неосторожности намечается такой | |
длинный до самого упора пока все не разъедутся семинар и крэш-курс по | |
-теории типов и релейтер штукам. | |
+теории типов и релейтед штукам. | |
У этого мероприятия есть домашняя страница: | |
-http://oxij.org/activity/ttfv/ на которой имеются ссылки на всякие |
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 Data.Functor | |
import Data.Vector (fromList) | |
import qualified Data.Vector as V | |
import Statistics.Sample | |
import System.Random | |
import System.Random.Mersenne.Pure64 | |
import Text.Printf | |
import Statistics.Distribution (quantile) | |
import Statistics.Distribution.Normal |
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 Data.Functor | |
import System.Random | |
import System.Random.Mersenne.Pure64 | |
import Text.Printf | |
import Statistics.Distribution (quantile) | |
import Statistics.Distribution.Normal | |
import Statistics.Distribution.Uniform | |
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
module Main where | |
import Control.Arrow | |
import Control.Monad.State | |
import Data.List | |
import Data.Map (Map) | |
import qualified Data.Map as M | |
import Data.Set (Set) | |
import qualified Data.Set as S | |
import Language.Haskell.Exts (prettyPrint, parseModuleWithMode, ParseResult (..), preludeFixities, ParseMode (..), Extension (..)) |
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
#!/usr/bin/env sh | |
# Display information about internal layout of a FAT32 filesystem. | |
# | |
# Script directly reads data from FAT32 header. This might be useful | |
# for aligning fs structures to speed up flash drive access. | |
# | |
# http://kirelagin.ru/p/gist/3730254 | |
# | |
# -- Kirill Elagin <[email protected]> |
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
> module Huffman where | |
> import Control.Arrow | |
> import Data.List | |
> import qualified Data.Map as M | |
> import Data.Function | |
This typeclass is supposed to make life _a bit_ easier. |
OlderNewer