Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #![deny(clippy::unwrap_used)] | |
| fn main() { | |
| Err::<(), _>("foo").or_panic() | |
| } | |
| trait UnwrapPanic<T> { | |
| fn or_panic(self) -> T; | |
| } |
| /* | |
| Copyright (c) 2024 Rendello | |
| Permission to use, copy, modify, and/or distribute this software for any | |
| purpose with or without fee is hereby granted. | |
| THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | |
| REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | |
| AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
| INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
| #!/usr/bin/env bash | |
| if [ "$EUID" -ne 0 ] && groups | grep -qwv 'i2c' && getent group i2c &> /dev/null | |
| then | |
| echo "Insuficient permissions, run as root ou join $USER to i2c group." | |
| exit 1 | |
| fi | |
| case "$1" in |
| -- BASIC EASING FUNCIONS CHEAT CHEET | |
| -- (most of them are based on glide by Jacob Albano https://github.com/jacobalbano/glide) | |
| function ease_linear(t) | |
| return t | |
| end | |
| function ease_cube_in(t) | |
| return t * t * t | |
| end |
| # ----------------------------------------------------------------------------------------------------------------------------- # | |
| # | nibble / half byte | 0 - passable | 0 - disabled | 0 - passable | | |
| # | | 1 - impassable | 1 - enabled | 1 - impassable | | |
| # ----------------------------------------------------------------------------------------------------------------------------- # | |
| # | Terrain Tag (4bits) | Vehicle Pass. (3bits) | Special Flags (4bits) | Passages (5bits) | | |
| # ----------------------------------------------------------------------------------------------------------------------------- # | |
| # | | Airship | Ship | Boat | Damage Floor | Counter | Bush | Ladder | Star | Top | Right | Left | Bottom | | |
| # ------------------------------------------------------------------------------------------------------------------------ |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000