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
var SquareShape = (function(height){ | |
var that = { | |
area : function () { | |
return height * height; | |
} | |
}; | |
return that; | |
}); | |
var RectShape = (function(width, height){ | |
var that = { |
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 sys | |
import time | |
import random | |
import fileinput | |
import multiprocessing | |
def parse_file(f): | |
for line in f: | |
# мы прочитали строку с файла и создали message | |
yield {'line': line} |
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
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; | |
} |
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
# 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 |
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/evn python | |
from __future__ import print_function | |
import os | |
import exifread | |
import pprint | |
import magic | |
import hashlib | |
import datetime |