Skip to content

Instantly share code, notes, and snippets.

View Gargaj's full-sized avatar
🛁
If you hard. Then you hard.

Gargaj

🛁
If you hard. Then you hard.
View GitHub Profile
@Gargaj
Gargaj / FixChests.cs
Last active August 29, 2015 14:08
MC 1.8 chest fix
using System;
using Substrate;
using Substrate.Core;
class Program
{
static void Main (string[] args)
{
if (args.Length < 1)
{
@Gargaj
Gargaj / VolumeTextureConverter.cpp
Last active August 29, 2015 14:06
2D-to-volume texture converter
#include <Windows.h>
#include <stdio.h>
#include <d3d9.h>
#include <d3dx9.h>
#pragma comment(lib,"d3d9.lib")
#pragma comment(lib,"d3dx9.lib")
#define RESWIDTH 320
#define RESHEIGHT 480
@Gargaj
Gargaj / LUTGenerator.pde
Last active August 29, 2015 14:06
Color grading LUT generator
int block = 32;
void setup() {
size( block * block, block );
}
void draw() {
loadPixels();
int scale = 256 / block;
for (int r=0; r<block; r++)
for (int g=0; g<block; g++)
@Gargaj
Gargaj / geoip_on_join.mrc
Last active February 28, 2021 00:29
Webchat-to-GeoIP lookup script for mIRC
; Webchat-to-GeoIP lookup script for mIRC
; by Gargaj
Alias geoip {
var %sn geo_
var %r 1
while (%r <= 10) {
var %sn %sn $+ $rand(a,z)
inc %r 1
}
@Gargaj
Gargaj / stats.py
Last active August 29, 2015 13:57
Block statistics script for MCEdit
# block stats filter for mcedit
# by gargaj
#
# select area, apply filter, receive dialog with exact block stats.
# great for building in creative and then estimating resources for survival
inputs = ()
from albow.dialogs import Dialog
from albow import TableView, TableColumn, Button