This file contains hidden or 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
catch(Exception e) { | |
System.err.println("An error occured! Searching the most complete archive of programming questions and answers ever compiled."); | |
java.awt.Desktop.getDesktop().browse(java.net.URI.create("https://stackoverflow.com/search?q=" + e.getStackTrace())); | |
} |
This file contains hidden or 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 | |
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' wget|grep "install ok installed") | |
echo Checking for wget: $PKG_OK | |
if [ "" == "$PKG_OK" ]; then | |
echo "wget not found. Setting up wget." | |
sudo apt-get --force-yes --yes install wget | |
fi | |
sudo wget -O /usr/bin/cls https://git.io/v7u2q | |
sudo wget -O /usr/share/man/man1/cls.1.gz https://git.io/v7u2c |
This file contains hidden or 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 flask import Flask | |
from flask import request | |
import json | |
import requests | |
import hashlib as hasher | |
import datetime as date | |
node = Flask(__name__) | |
# Define what a Snakecoin block is | |
class Block: |
This file contains hidden or 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
// I know this is pretty self explanatory, but these are the enchantment options | |
// The names grouped together (ie not seperated by `enchant = Enchantment.NAME`) refer to the same enchantment | |
// The vanilla (default) name is in each cluster, usually near the end | |
// If somehow you are still confused open an issue at https://github.com/sam-irl/Enchanted | |
// Code snippet taken from switch() block in Overenchant.java#onCommand() (line 38 as of 3b1c83a) | |
case "arrowdamage": | |
case "power": | |
enchant = Enchantment.ARROW_DAMAGE; | |
case "arrowfire": | |
case "firearrow": |