https://gist.github.com/S4WA/6276223a3ec9446fc15afba747261c7d/raw/SpotifyUtil.user.js
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<meta name='viewport' content='width=device-width, initial-scale=1'> | |
<title></title> | |
<style type='text/css'> | |
body { | |
margin: 2.5em 0; | |
background-size: 100%; |
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
console.log( response( new Date().getHours() ) ); |
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
// ==UserScript== | |
// @name SteamOpenURL | |
// @namespace https://akiba.cloud/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Drip | |
// @match http*://steamcommunity.com/* | |
// @match http*://steampowered.com/* | |
// @match http*://store.steampowered.com/* | |
// @grant window.close |
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
public static UUID parseUUID(String uuid) { | |
try { | |
return UUID.fromString(uuid); | |
} catch (IllegalArgumentException exception) { | |
return UUID.fromString(uuid.replaceFirst("(\\p{XDigit}{8})(\\p{XDigit}{4})(\\p{XDigit}{4})(\\p{XDigit}{4})(\\p{XDigit}+)", "$1-$2-$3-$4-$5")); | |
} | |
} |
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
@EventHandler | |
private void onVelocity(PlayerVelocityEvent event) { | |
if (event.getPlayer().getLastDamageCause().getCause() != EntityDamageEvent.DamageCause.ENTITY_ATTACK) return; | |
Player damaged = event.getPlayer(); | |
Vector vector = damaged.getVelocity(); | |
vector.normalize(); | |
if (!damaged.isSprinting()) { | |
vector = new Vector(vector.getX() * this.horizontal, 1.0D * this.vertical, vector.getZ() * this.horizontal); | |
} 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
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileWriter; | |
import java.io.InputStreamReader; | |
import java.util.UUID; | |
public class HWUUIDGenerator { | |
private String uuid; | |
public final String onGenerateUUID() { |