Skip to content

Instantly share code, notes, and snippets.

View Torbikini's full-sized avatar
💬
Message on Discord.

Torbjörn Lindholm Torbikini

💬
Message on Discord.
View GitHub Profile
@garryspins
garryspins / cl_melons-rounded-boxes.lua
Created June 28, 2023 19:59
Melon's Rounded Boxes
--[[
[Melon's Rounded Boxes]
Want a rounded box that has a material?
Want it to look nice?
Want also to be able to draw any form of rounded polygons?
WELL YOURE IN LUCK!
Remember to cache your polygons
and to credit me :) (https://github.com/garryspins)
@alexiscoutinho
alexiscoutinho / mcexport.py
Last active December 28, 2022 19:43 — forked from kice/mcexport.py
Convert Minecraft JSON model to Source engine model
import collections
import io
import json
import logging
import logging.handlers
import math
import os
import shutil
import struct
import subprocess
name: ${project.name}
version: ${project.version}
#Might need to change this depending on your package structure, but it's standard not to.
main: ${project.groupId}.${project.artifactId}
@Mo45
Mo45 / discord.msg.send.php
Last active September 2, 2024 14:57
PHP - Send message to Discord via Webhook
<?php
//=======================================================================================================
// Create new webhook in your Discord channel settings and copy&paste URL
//=======================================================================================================
$webhookurl = "YOUR_WEBHOOK_URL";
//=======================================================================================================
// Compose message. You can use Markdown
// Message Formatting -- https://discordapp.com/developers/docs/reference#message-formatting
@bmwalters
bmwalters / multimc_install_optifine.py
Last active November 22, 2017 03:20
Automatically install OptiFine to a MultiMC instance
#!/usr/bin/env python3
import cfscrape # install with `pip install cfscrape`
import re
import os
import json
from packaging.version import Version
def build_multimc_patch_json(mc_version, optifine_version):
patch = {
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>