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
\documentclass[10pt,a4paper]{moderncv} | |
\usepackage{hyperref} | |
% XeTeX | |
\usepackage[MnSymbol]{mathspec} | |
\usepackage{xecyr} | |
% Локализация | |
\usepackage{polyglossia} |
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
\documentclass[12pt,fleqn,a4paper]{article} | |
\usepackage{mathtools} | |
\usepackage{amssymb} | |
\usepackage{amsthm} | |
\usepackage{float} | |
\usepackage{wrapfig} | |
\usepackage[font=small]{caption} | |
\usepackage{setspace} | |
\usepackage{hyperref} |
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 asyncio | |
import aiohttp | |
import hunter | |
async def fetch(session, url): | |
async with session.get(url) as response: | |
return await response.text() |
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
struct tsc { | |
uint32_t cycles_low, cycles_high; | |
uint64_t cycles; | |
tsc() : cycles(0) {} | |
void begin() { | |
asm volatile ( | |
"CPUID\n\t"/*serialize*/ | |
"RDTSC\n\t"/*read the clock*/ |
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 XMonad | |
import qualified XMonad.StackSet as W | |
import XMonad.Actions.CycleWS | |
import XMonad.Config.Gnome | |
import XMonad.Layout.IM | |
import XMonad.Layout.Fullscreen | |
import XMonad.Layout.NoBorders | |
import XMonad.Hooks.ManageHelpers | |
import XMonad.Hooks.SetWMName | |
import XMonad.Hooks.ICCCMFocus |
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 python | |
# encoding: utf-8 | |
# | |
# Map/Reduce word counter | |
# (c) Mikhail Borisov | |
# Running prereqs: | |
# - files 'lemmas.utf8.xml', 'paradigms.utf8.xml' | |
# in current working directory | |
# - data files in corpus_utf8/ subdirectory |
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
from urllib.request import quote | |
import urllib3 | |
from lxml import etree | |
http = urllib3.PoolManager() | |
def getFriends(uname): | |
r = http.request('GET', 'http://juick.com/%s/friends' % quote(uname)) | |
t = etree.HTML(r.data) | |
friends = t.xpath('/html/body/div[@id="wrapper"]/div[@id="content"]/p/a[@class="p16"]/text()') |
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 qualified Data.Map as M | |
subst = [('a','y'),('b','n'), | |
('c','f'),('d','i'), | |
('e','c'),('f','w'), | |
('g','l'),('h','b'), | |
('i','k'),('j','u'), | |
('k','o'),('l','m'), | |
('m','x'),('n','s'), | |
('o','e'),('p','v'), |
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
-- Coroutine wrappers | |
function expect (token) | |
local this = coroutine.running() | |
return coroutine.yield(token, this) | |
end | |
function start (stream) | |
return coroutine.create(stream) | |
end |
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
#include <algorithm> | |
#include <vector> | |
#include <cstdlib> | |
#include <cstdio> | |
#include <time.h> | |
#include <sys/types.h> | |
using namespace std; |
NewerOlder