Type | Emoji | code |
---|---|---|
feat | ✨ | :sparkles: |
fix | 🐛 | :bug: |
docs | 📚 | :books: |
style | 💎 | :gem: |
refactor | 🔨 | :hammer: |
perf | 🚀 | :rocket: |
test | 🚨 | :rotating_light: |
build | 📦 | :package: |
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/bash | |
while true ─╯ | |
do | |
DATA=$(curl -s https://d6o.portalefrecce.it/PortaleFrecce/infoViaggioActionJson) | |
clear | |
SPEED=$(echo $DATA | jq '.speed') | |
DELAY=$(echo $DATA | jq '.delay2') | |
TRAIN=$(echo $DATA | jq '.tracknum') | |
FROMTO=$(echo $DATA | jq '.tracktitle') | |
echo "Train number: $TRAIN: \n\tfrom $FROMTO \n\ttraveling @ $SPEED Kmh with $DELAY of delay" | sed 's/"//g' |
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 logging | |
from telegram import Update | |
from telegram.ext import filters, MessageHandler, ApplicationBuilder, CommandHandler, ContextTypes | |
import os | |
import shlex | |
from subprocess import Popen, PIPE | |
import time | |
import dbm | |
import uuid |
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/bash | |
# | |
# This is a simple bash script, designed to allow | |
# quick download and installation of the FindVUK | |
# AACS VUK database. | |
# | |
# This allows Blu-Ray disks who's VUK is known | |
# to be played on systems using libaacs. | |
# | |
# It's reccomended to schedule this file to run |
One of the key parts of the save/load process in Factorio is that it must be deterministic. This means that for a given save file (when no external factors change) saving, exiting, and loading the save shouldn't change any observable behavior.
There are a few reasons and benefits for this strict requirement:
- Without it: You couldn't join a running multiplayer game (and by proxy save, exit, and resume one)
- Without it: the replay system wouldn't work if you ever saved, exited, and resumed playing.
- With it: we can easily test that saving and loading produces no observable change letting us know we implemented save/load correctly.
- With it: you won't see things change randomly as a result of "reloading" like you do in so many other games.
See imgur / linked pastebin and github mirror for 1-8 → 1-8 balancers. Creator: raynquist, github mirror linked in Balancers Illustrated: 1 through 8 balancers explained, imgur album linked in Balancer Book Update (Summer 2019)
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
\documentclass{article} | |
\usepackage[dvipsnames]{xcolor} % https://en.wikibooks.org/wiki/LaTeX/Colors | |
\definecolor{LightGray}{rgb}{0.97,0.97,0.97} | |
\usepackage{listings} % syntax highlighting | |
\lstdefinelanguage{SPARQL}{ | |
basicstyle=\small\ttfamily, | |
backgroundcolor=\color{LightGray}, | |
columns=fullflexible, | |
breaklines=false, |
If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:
- We define variables with
let
andconst
statements. For the purposes of the React documentation, you can consider them equivalent tovar
. - We use the
class
keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value ofthis
in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
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
gamma_min_endstop nc # Normally 1.28. Change to nc to prevent conflict, | |
## Z-Probe (BL Touch) | |
# See http://forum.smoothieware.org/forum/t-1760423/bltouch-support#post-2712545 | |
# And http://smoothieware.org/zprobe#bltouch-or-servo-retractable-touch-probe | |
zprobe.enable true # set to true to enable a zprobe | |
zprobe.probe_pin 1.28 # pin probe is attached to if NC remove the ! | |
zprobe.slow_feedrate 5 # mm/sec probe feed rate | |
zprobe.fast_feedrate 100 # move feedrate mm/sec | |
zprobe.probe_height 5 # how much above bed to start probe |
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
#source [find interface/stlink-v2-1.cfg] | |
source [find interface/stlink-v2.cfg] | |
transport select hla_swd | |
source [find target/stm32f1x.cfg] | |
#reset_config srst_only | |
reset_config none separate |
NewerOlder