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
def parse(string): | |
tokens = [] | |
for char in string: | |
try: | |
if char == '(': | |
tokens.append('(') | |
elif char == '[': | |
tokens.append('[') | |
elif char == ']': | |
if tokens.pop() != '[': |
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
> 1) Write a C (C99) program which reads a standard input and prints each line in reversed order. Assume '\n' as line separator. Do not assume limit of number of character per line. Example: | |
> | |
> $ printf "123\nhello\n" | ./a.out | |
> 321 | |
> olleh | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> |
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
from pylab import * | |
car_price_from_auction = list(range(0, 10001, 500)) | |
dollar_cost = 3.97 | |
euro_cost = 4.39 | |
euro_to_dollar = 1.11 | |
pln_to_usd = 0.25 | |
def total_cost(car_price_from_auction): |
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
Thu Apr 28 13:17:18 CEST 2022 | |
Basic System Information: | |
--------------------------------- | |
Processor : Common KVM processor | |
CPU cores : 2 @ 1999.999 MHz | |
AES-NI : ❌ Disabled | |
VM-x/AMD-V : ❌ Disabled | |
RAM : 1.6 GiB | |
Swap : 2.0 GiB |
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
Basic System Information: | |
--------------------------------- | |
Processor : Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz | |
CPU cores : 1 @ 2294.608 MHz | |
AES-NI : ✔ Enabled | |
VM-x/AMD-V : ✔ Enabled | |
RAM : 989Mi | |
Swap : 0B | |
Disk : 25G |
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
Basic System Information: | |
--------------------------------- | |
Processor : QEMU Virtual CPU version (cpu64-rhel6) | |
CPU cores : 1 @ 3399.998 MHz | |
AES-NI : ❌ Disabled | |
VM-x/AMD-V : ❌ Disabled | |
RAM : 487M | |
Swap : 511M | |
Disk : 9.4G |
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
Sun 17 May 2020 02:21:25 PM EDT [10/9229] | |
Basic System Information: | |
--------------------------------- | |
Processor : AMD Ryzen 7 3700X 8-Core Processor | |
CPU cores : 1 @ 3593.250 MHz | |
AES-NI : ✔ Enabled |
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 curses | |
import pdb | |
import random | |
import time | |
from curses import wrapper | |
GAME_BOARD_SIZE = (20, 20) |
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
""" | |
This module combines input from CSV file with API endpoint data and outputs | |
result to CSV file. | |
Example: | |
Usage: | |
$ wpe_merge input_csv_file output_csv_file | |
To show help use: |
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/python | |
# Prerequisities | |
# pip install pyrogram tgcrypto | |
from datetime import datetime | |
from pyrogram import Client | |
# Configure here |