- Galderak ezabatu ahal izatea.
Ariketa hau egiteko, Reviewing Quizes atalean, galdera bat editatzeko aukeratzean, botoi bat agertzen da, galdera hori ezabatzeko.
Behar izandako denbora: 15 minutu.
| import time | |
| # Assuming sector size is 512 bytes | |
| SECTOR_SIZE = 512 | |
| def get_disk_stats(): | |
| with open('/sys/block/sda/stat', 'r', encoding='ascii') as f: | |
| stats = f.readline().split() |
| Remove-Alias gcm -Force -ErrorAction SilentlyContinue | |
| Remove-Alias gp -Force -ErrorAction SilentlyContinue | |
| function Git-gs { git status -sb $args } | |
| Set-Alias gs Git-gs | |
| function Git-g { git status -sb $args } | |
| Set-Alias g Git-g | |
| function Git-ga { git add $args } | |
| Set-Alias ga Git-ga | |
| function Git-gaa { git add . $args } |
| function contieneUnMes_(str) { | |
| const meses = ["enero", "febrero", "marzo", "abril", | |
| "mayo", "junio", "julio", "agosto", | |
| "septiembre", "octubre", "noviembre", "diciembre"]; | |
| return meses.indexOf(str.split(" ")[0]) > -1; | |
| } | |
| function createMonthArray_() { | |
| var result = []; | |
| for (var a = 0; a<31; a++) result.push(0); |
| #!/usr/bin/env bash | |
| VERSION="0.0.2" | |
| SCRIPT_URL='https://gist.github.com/cubedtear/54434fc66439fc4e04e28bd658189701/raw' | |
| SCRIPT_DESCRIPTION="" | |
| SCRIPT_LOCATION="${BASH_SOURCE[@]}" | |
| rm -f updater.sh | |
| function update() | |
| { |
| from time import sleep # Bot for https://tbot.xyz/lumber | |
| from mss import mss | |
| from pyautogui import press | |
| actions = ['left'] | |
| sleep(2) | |
| with mss() as sct: | |
| while True: | |
| color = sct.grab({'top': 440, 'width': 4, 'left': 517, 'height': 150}).rgb | |
| actions.append('left' if any(map(lambda x: color[x] > max(color[x+1:x+2]), range(0, len(color), 3))) else 'right') | |
| action = actions.pop(0) |
| grammar FleetLang; | |
| program | |
| : tlds+=topLevelDecl* EOF | |
| ; | |
| topLevelDecl | |
| : function | |
| | typeDecl | |
| | declaration stmtEnd |
| void myprint(*i8 str, int length) { | |
| syscall3(1, 1, (int)str, length); | |
| } | |
| void exit(int code) { | |
| syscall1(60, code); | |
| } | |
| import requests | |
| from lxml import html, etree | |
| item_prices = [] | |
| for page in range(1, 10): | |
| r = requests.get('https://www.chollometro.com/nuevos', {'page': str(page), 'ajax': 'true'}) | |
| res = html.fromstring(r.text) | |
| items = res.xpath('//div[contains(@class, "threadCardLayout--card")]') |
| // Group members: | |
| // | |
| // - Iñigo Arnedo | |
| // - Elena Hernandez | |
| // - Aritz Lopez | |
| // - Ane Odriozola | |
| #include <stdio.h> | |
| #include <unistd.h> | |
| #include <termios.h> |