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 random | |
PROBABILITY = 40 | |
def print10(): | |
symbols_per_line = 150 | |
symbol_num = 0 | |
while True: | |
if symbol_num == symbols_per_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
/* Created with info from here: | |
* https://learnxinyminutes.com/docs/scala/ | |
*/ | |
object SandBox { | |
def main(args: Array[String]): Unit = { | |
val str: String = "hello world C" | |
println("------------------------------------------") | |
println(">string methods") |
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 python3 | |
import sys | |
import random | |
import threading | |
from time import perf_counter | |
def gen_lists(n): | |
v1 = [i + random.randint(1, 9) for i in range(n)] |
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 python3 | |
""" | |
Author: Arsen Losenko (github: arsenlosenko) | |
Short description: Script that uploads files in entered directory as an archive to transfer.sh, for easy downloading. | |
""" | |
import os | |
import sys | |
import zipfile |
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 python3 | |
""" | |
Checked xvfbwrapper execution on three tests: positive, negative, and failed | |
""" | |
import unittest | |
import time | |
from selenium import webdriver | |
from xvfbwrapper import Xvfb |
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 python3 | |
""" | |
Example of PyAutoGUI framework for work automation outside of the browser | |
""" | |
import pyautogui | |
# get width and height of the display | |
width, height = pyautogui.size() |
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 python3 | |
import unittest | |
""" | |
Example test for running similar test | |
with parameters in a loop | |
""" | |
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 python3 | |
def gcd(): | |
m = int(input("Please enter first number:\n")) | |
n = int(input("Please enter second number:\n")) | |
if m > n: | |
num_list = range(m) | |
else: | |
num_list = range(n) |
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 subprocess | |
import json | |
import sys | |
#from imp import reload | |
#reload(sys) | |
#sys.setdefaultencoding('utf-8') | |
with open('country_codes.json', encoding='utf-8', ) as data_file: | |
data = json.load(data_file) |
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 mainArr = [ // основний массив | |
[5, 4, 1, 4], | |
[2, 6, 1, 6], | |
[3, 8, 2, 3] | |
]; | |
var needs = [10, 6, 8]; //масив потреб | |
var stocks = [2, 4, 6, 7]; // масив запасів |
NewerOlder