Skip to content

Instantly share code, notes, and snippets.

View DrBluefall's full-sized avatar
💭
Tired...

Alexander Bisono DrBluefall

💭
Tired...
View GitHub Profile
@DrBluefall
DrBluefall / fizz_buzz.py
Created June 23, 2019 02:44
A small little fizzbuzz program.
"""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"
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();
startup(){
if [ $1 = "prisbot" ];
then
cd /Users/prismarine/Desktop/projects/ProjectPrismarine
source .venv/bin/activate
if [ $# -eq 2 ];
then
git checkout $2
else
#!/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.
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."
# 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')
$ 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
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-
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
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