Skip to content

Instantly share code, notes, and snippets.

View anjensan's full-sized avatar

Andrei Zhlobich anjensan

View GitHub Profile
var SquareShape = (function(height){
var that = {
area : function () {
return height * height;
}
};
return that;
});
var RectShape = (function(width, height){
var that = {
import sys
import time
import random
import fileinput
import multiprocessing
def parse_file(f):
for line in f:
# мы прочитали строку с файла и создали message
yield {'line': line}
const cardTypes = {clubs: '\u2663', diamonds: '\u2666', hearts: '\u2665', spades: '\u2660'};
const cardValues = {6: '6', 7: '7', 8: '8', 9: '9', 10: '10', 11: 'J', 12: 'Q', 13: 'K', 14: 'A'};
class Card
{
constructor(value, type)
{
this.value = value;
this.type = type;
}
# coding: utf-8
from twisted.application import internet, service
from twoost.app import * # noqa
from twoost.log import setup_logging
from demoapp.app import init_demoapp_settings
from demoapp.dao import DBDaoService
from demoapp.storage import StorageService
#!/usr/bin/evn python
from __future__ import print_function
import os
import exifread
import pprint
import magic
import hashlib
import datetime