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
grammar FleetLang; | |
program | |
: tlds+=topLevelDecl* EOF | |
; | |
topLevelDecl | |
: function | |
| typeDecl | |
| declaration stmtEnd |
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 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) |
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 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() | |
{ |
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
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); |
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
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 } |
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 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() |
OlderNewer