Skip to content

Instantly share code, notes, and snippets.

View NightSling's full-sized avatar
:electron:
Being fullstack

Sushant Pangeni NightSling

:electron:
Being fullstack
View GitHub Profile
@NightSling
NightSling / Grid-Game-POC.html
Last active September 15, 2024 16:10
Proof-of-concept for a grid word-finding game.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interactive Word Search Puzzle</title>
<style>
body {
font-family: Arial, sans-serif;
@NightSling
NightSling / grid.py
Last active September 15, 2024 14:52
Grid Generation POC for a grid word finding game.
import copy
import random
import string
def create_grid(size):
return [[" " for _ in range(size)] for _ in range(size)]
def print_grid(grid):
@NightSling
NightSling / markhint.js
Last active July 20, 2024 03:33
Add All Question Macro for Markhint
function timeout(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function sleep(fn, ...args) {
await timeout(500);
return await fn(...args);
}
async function runMacroA() {
let all_questions = [...document.querySelectorAll("h3")].filter((a) => a.innerText.startsWith("Question"));
{
"_id": {
"$oid": "5e3705f1b29af385c20f6971"
},
"latest": {
"build": "1.2.3",
"id": 3089,
"url": "https://static.sk1er.club/repo/cc/hyperium/Hyperium/3089/Hyperium-3089.jar",
"size": 30071063,
"target_installer": 3,
package mc.crackpixel.net.generator;
import com.grinderwolf.swm.api.SlimePlugin;
import com.grinderwolf.swm.api.exceptions.CorruptedWorldException;
import com.grinderwolf.swm.api.exceptions.NewerFormatException;
import com.grinderwolf.swm.api.exceptions.UnknownWorldException;
import com.grinderwolf.swm.api.exceptions.WorldInUseException;
import com.grinderwolf.swm.api.world.SlimeWorld;
import com.grinderwolf.swm.api.world.properties.SlimePropertyMap;
import mc.crackpixel.net.Housing;
package net.crackpixel.daysling.generator;
import com.grinderwolf.swm.api.SlimePlugin;
import com.grinderwolf.swm.api.exceptions.*;
import com.grinderwolf.swm.api.loaders.SlimeLoader;
import com.grinderwolf.swm.api.world.SlimeWorld;
import com.grinderwolf.swm.api.world.properties.SlimeProperties;
import com.grinderwolf.swm.api.world.properties.SlimePropertyMap;
import org.bukkit.Bukkit;
import org.bukkit.Location;
package net.crackpixel.daysling;
import net.crackpixel.daysling.generator.Generator;
import org.bukkit.plugin.java.JavaPlugin;
import java.util.logging.Level;
public final class HousingGenerator extends JavaPlugin {
public HousingGenerator instance = this;
1st Killer -
1st Place -
Winner:
- Damage Dealt -
Winning Team -
1st -
Winners:
Winner:
Winning Team:
won the game!
@NightSling
NightSling / untitled3_.idea_compiler.xml
Created May 20, 2020 12:35
An Test Good Plugin Source
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<annotationProcessing>
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="untitled3" />
</profile>