Skip to content

Instantly share code, notes, and snippets.

View tvorogme's full-sized avatar

Andrey Tvorozhkov tvorogme

View GitHub Profile
#!/bin/bash
if screen -ls | grep vkusvill_$BRANCH
then
screen -X -S vkusvill_$BRANCH quit
else
echo "Session doesn't exist, going on..."
fi
screen -dmS vkusvill_$BRANCH
#! /bin/bash
SLEEP_TIME=5 # Default time between checks.
SAFE_PERCENT=30 # Still safe at this level.
DANGER_PERCENT=20 # Warn when battery at this level.
CRITICAL_PERCENT=5 # Hibernate when battery at this level.
NAGBAR_PID=0
export DISPLAY=:0.0

Keybase proof

I hereby claim:

  • I am tvorogme on github.
  • I am tvorogme (https://keybase.io/tvorogme) on keybase.
  • I have a public key ASBkOqZ5ohB8aGtHATIfJUEpxo9pA4nXQlEmZfh5i6Dg3go

To claim this, I am signing this object:

LLVM

Low Level Virtual Machine

^ но виртуалки там нет

Язык LLVM IR

LLVM - фреймворк для создания компилятора.

Keybase proof

I hereby claim:

  • I am tvorogme on github.
  • I am xenx (https://keybase.io/xenx) on keybase.
  • I have a public key ASAc35QmqTKos_eIMECsi3BhWX7Ow-sQhR2yWZzo9EMqewo

To claim this, I am signing this object:

@tvorogme
tvorogme / a.py
Last active March 16, 2017 15:47
import re
string = input().rstrip().lstrip()
string = string.lower()
string = re.sub("\.{1}\s*", ". ", string)
tmp_string = string
string = string.split(". ")
string = list(filter(lambda x: len(x), string))

Keybase proof

I hereby claim:

  • I am xenx on github.
  • I am xenx (https://keybase.io/xenx) on keybase.
  • I have a public key ASCqfMlpx3HWTotzmAGRQxr6m-d9RNp0xWz6qFt10A9F7wo

To claim this, I am signing this object:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from urllib.request import urlopen
from concurrent import futures
import pickle
site = "http://izvestia.ru/news/"
last_publication = 646946
start = 500000
answer = []
def get_page(n):
from urllib.request import urlopen
from concurrent import futures
import pickle
site = "http://www.nnov.kp.ru/daily/1/"
last_publication = 3625745
start = 3527000
answer = []
def get_page(n):