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
"""Small little fizz buzz program.""" | |
def fizz_buzz(): | |
i = 1 | |
while i != 1001: | |
output = "" | |
if i % 3 == 0: | |
output = output + "Fizz" | |
if i % 5 == 0: | |
output = output + "Buzz" |
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 java.util.Scanner; | |
public class Calculator { | |
public static void main(String[] args) { | |
Scanner in = new Scanner(System.in); | |
System.out.print("Welcome to the calculator! There are 4 functions: \n" + " - add \n" + " - subtract \n" | |
+ " - multply \n" + " - divide \n" + " \n " + "Input the operation you wish to perform, or type 'quit' to quit: "); | |
String input = in.nextLine(); |
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
startup(){ | |
if [ $1 = "prisbot" ]; | |
then | |
cd /Users/prismarine/Desktop/projects/ProjectPrismarine | |
source .venv/bin/activate | |
if [ $# -eq 2 ]; | |
then | |
git checkout $2 | |
else |
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/zsh | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. |
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
edit(){ | |
if [ $1 = "prisbot" ]; | |
then | |
cd /Users/prismarine/Desktop/projects/ProjectPrismarine | |
echo "edit: Fetching latest changes..." | |
git pull --all >/dev/null 2&>1 | |
if [ $? = 1 ]; | |
then | |
echo -e "edit: \e[38;5;196mERROR\e[0m - \e[38;5;196mRepository fetch failed\e[0m, your current repository version of $(zsh_git_link) may be out of date." |
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
# Core Language Imports | |
from PIL import Image | |
from pprint import pprint | |
# Third-Party Imports | |
import pg8000 as pg | |
asset_db = pg.connect(user='prismarine-core', database='assets') |
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
$ make debug | |
RUSTFLAGS=" -C opt-level=0 " cargo +nightly rustc --target "x86_64-unknown-linux-gnu" --verbose | |
Compiling rvterm v0.1.0 (/Users/prismarine/Projects/rvterm) | |
Running `rustc --edition=2018 --crate-name rvterm src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=3ece1e63ddec6500 -C extra-filename=-3ece1e63ddec6500 --out-dir /Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/Users/prismarine/Projects/rvterm/target/debug/deps -C opt-level=0` | |
error: linking with `cc` failed: exit code: 1 | |
| | |
= note: "cc" "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/Users/prismarine/.rustup/toolchains/nightly-x86_64-apple-darwin |
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
RUSTFLAGS=" -C opt-level=0 " cargo +nightly build --target "x86_64-unknown-linux-gnu" --verbose | |
Compiling rvterm v0.1.0 (/Users/prismarine/Projects/rvterm) | |
Running `rustc --edition=2018 --crate-name rvterm src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=3ece1e63ddec6500 -C extra-filename=-3ece1e63ddec6500 --out-dir /Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/Users/prismarine/Projects/rvterm/target/debug/deps -C opt-level=0` | |
error: linking with `cc` failed: exit code: 1 | |
| | |
= note: "cc" "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/Users/prismarine/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_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
RUSTFLAGS=" -C opt-level=0 -C link-arg=-fuse-ld=/usr/local/opt/llvm/bin/ld.lld" cargo +nightly build --target "x86_64-unknown-linux-gnu" --verbose | |
Compiling rvterm v0.1.0 (/Users/prismarine/Projects/rvterm) | |
Running `rustc --edition=2018 --crate-name rvterm src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=3ece1e63ddec6500 -C extra-filename=-3ece1e63ddec6500 --out-dir /Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/Users/prismarine/Projects/rvterm/target/debug/deps -C opt-level=0 -C link-arg=-fuse-ld=/usr/local/opt/llvm/bin/ld.lld` | |
error: linking with `cc` failed: exit code: 1 | |
| | |
= note: "cc" "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/Users/pri |
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
RUSTFLAGS=" -C opt-level=0 -C link-arg=-fuse-ld=/usr/bin/gcc" cargo +nightly build --target "x86_64-unknown-linux-gnu" --verbose | |
Compiling rvterm v0.1.0 (/Users/prismarine/Projects/rvterm) | |
Running `rustc --edition=2018 --crate-name rvterm src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=3ece1e63ddec6500 -C extra-filename=-3ece1e63ddec6500 --out-dir /Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/Users/prismarine/Projects/rvterm/target/debug/deps -C opt-level=0 -C link-arg=-fuse-ld=/usr/bin/gcc` | |
error: linking with `cc` failed: exit code: 1 | |
| | |
= note: "cc" "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/Users/prismarine/.rustup/toolchains/nightly-x |
OlderNewer