Skip to content

Instantly share code, notes, and snippets.

@apselon
apselon / bug_game.py
Created May 12, 2016 16:56
bug_game.py
#coding:utf-8
from scene import *
import random
import sound
import time
import sys
class Box(SpriteNode):
def __init__(self,**kwargs):
SpriteNode.__init__(self,'plf:Tile_BoxItem_disabled',size=(45,45) ,**kwargs)
@apselon
apselon / bot.py
Created May 14, 2016 13:40
bot.py
#coding: utf-8
import re
import requests
class Hangman (object):
def __init__(self, word):
self.errors = []
self.lives = 6
self.word = word.lower()
@apselon
apselon / Mmm.py
Created May 21, 2016 14:14
Mmm.py
from collections import Counter
lines = []
result = []
word = input().replace(' ', '').replace('\n', '')
counts = dict(Counter(list(word)))
most = max(counts, key = counts.get)
height = counts[most]
for x in counts.values():
lines.append('#' * int(x))
from __future__ import print_function
I = Identity = lambda x: x # Identitatsfunktion \
K = Constancy = lambda x, y: x # Konstanzfunktion > SKI basis
S = Fusion = lambda x, y, z: x(z)(y(z)) # Verschmelzungfunktion /
IF = lambda boolean, true_case, false_case: boolean(true_case, false_case)(I)
true = K
false = lambda x, y: K(y, x)
IF(false, lambda x: print("This is true"), lambda x: print("This is false"))
#TASK 2
1. a) World have became more connected;
b) People around the world have gained access to a huge amount of information;
2. a) Easy communiaction;
b) Real-time news;
3. a) World transperency and loose of privacy;
b) Distraction, inability to concentrate;
#TASK 2
1. a) World have became more connected;
b) People around the world have gained access to a huge amount of information;
2. a) Easy communiaction;
b) Real-time news;
3. a) World transperency and loose of privacy;
b) Distraction, inability to concentrate;
It is working together to build something bigger than ourselves
University is hard work but lots of fun
We go to the university for education but what we take is the expirience
Expirinece HSE
Discovering who you want to be in the next phase of your life
We see something in you you migh not even seen in yourself
HSE allows you to blossom into the person you want to be
1) Few words about our campaign
N) Few words about our campaign
M) Our targed audience is high-schoolers and their parents;
A) We are going to buy advetisement in groups which final-year students are subscribed to, like Postupashki.
M) Also, We have set up public page with jokes and memes, to dive students into folklore and curltural context of HSE
N) Our slogan
A) We go to the university for education but what we take is the expirience
A) Expirinece HSE
void gen(node_t* root){
char cur_c = 0;
node_t* cur_node = root;
while (scanf("%c", &cur_c) != EOF){
if (cur_c == '('){
scanf("%c", &cur_c);
if (!cur_node->has_left){
cur_node = attach_left_val(cur_node, cur_c);
-2.00000023841857910156250000000000000000000000000000000000000000000000000000000000
c0000001