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
while [ 1 ] | |
do | |
xdotool click 1 | |
sleep 5 | |
done |
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
#!/bin/python3 | |
from PIL import Image | |
import sys | |
image_src = sys.argv[1] | |
with Image.open(image_src) as img: | |
h,w = img.size | |
with open('main.html','w+') as fhand: | |
fhand.write(""" |
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 requests | |
from bs4 import BeautifulSoup as bs | |
from time import sleep | |
from math import ceil | |
username = input("Username:") | |
password = input("Password:") | |
with requests.session() as session: | |
res = session.get("https://courses.aut.ac.ir/login/") |
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
/* | |
Digital product - counts how many steps takes to multiply digits of number and get to 1 digits. | |
123: | |
1*2*3 => 6 | |
=> 1 Step(s) | |
*/ | |
fn multiplie_digits(n: u32) -> u32 |
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
section .text | |
global _start | |
_start: | |
mov byte[0x0], 0x1 |
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
notes = [] | |
with open('Notes.txt', 'r') as f: | |
for i, l in enumerate(f): | |
l = l.strip() | |
print(i, l) | |
notes.append([l[:-4], l[-2] == 'X']) | |
while True: | |
try: |
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
#include <stdio.h> | |
#include <pthread.h> | |
#include <stdbool.h> | |
#include <pthread.h> | |
#define MAX_THREADS 64 | |
#define MAX_PRIMES 1000 | |
struct thread_info | |
{ |
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
MAX_STR_LEN equ 100 | |
org 0x7c00 | |
bits 16 | |
mov ax, 0 | |
mov ds, ax | |
mov es, ax | |
mov ss, ax | |
mov sp, 0x7c00 |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <stdint.h> | |
#include <math.h> | |
#include <string.h> | |
#include <unistd.h> | |
#define WIDTH 64 | |
#define HEIGHT 64 |
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
############################################################################################################ | |
# | |
# General Setting | |
# | |
############################################################################################################ | |
- general: MTK_PLATFORM_CFG | |
info: | |
- config_version: V1.1.6 | |
platform: MT6739 | |
project: dura |