Skip to content

Instantly share code, notes, and snippets.

@GaryCXJk
GaryCXJk / max-int-with-bytes.js
Created October 14, 2018 21:56
Calculates the max integer of a given amount of bytes. This could possibly be optimized more to run faster.
+function() {
var getMaxInt = function(bytes) {
if(bytes < 1) {
return '0';
}
var itt = bytes * 8 - 1;
var str = '1';
var retStr = '1';
for(var idx = 0; idx < itt; idx++) {
var revStr = str.split('').reverse().join('');
@GaryCXJk
GaryCXJk / CXJ_Free_Movement_WIP1.rb
Created December 30, 2012 01:45
A WIP script for RPG Maker VX Ace, which allows for free movement, as in, movement off the grid. It *might* not be compatible with other scripts, but I don't know.
module CXJ
module FREE_MOVEMENT
ENABLE_DIAGONAL = true # Enables diagonal movement.
DEFAULT_COLLISION = [8, 12, 16, 20]
DEFAULT_INTERACTION = {
2 => [4, 0, 24, 24],
4 => [16, 10, 24, 24],
6 => [-8, 10, 24, 24],
@GaryCXJk
GaryCXJk / gist:2927263
Created June 14, 2012 00:14
All-Chemical Element Tester - Test 8
===========================
All-Chemical Element Tester
===========================
This application will test if all elements are accessible.
Starting elements: fire, water, earth, air
===============================
Generating all possible recipes
===============================
@GaryCXJk
GaryCXJk / gist:2913584
Created June 12, 2012 00:19
All-Chemical Element Tester - Test 7
===========================
All-Chemical Element Tester
===========================
This application will test if all elements are accessible.
Starting elements: fire, water, earth, air
===============================
Generating all possible recipes
@GaryCXJk
GaryCXJk / gist:2910927
Created June 11, 2012 16:11
All-Chemical Element Tester - Test 7
===========================
All-Chemical Element Tester
===========================
This application will test if all elements are accessible.
Starting elements: fire, water, earth, air
===============================
Generating all possible recipes
===============================
@GaryCXJk
GaryCXJk / gist:2907452
Created June 10, 2012 21:47
All-Chemical Element Tester - Test 6
===========================
All-Chemical Element Tester
===========================
This application will test if all elements are accessible.
Starting elements: fire, water, earth, air
===============================
Generating all possible recipes
===============================
@GaryCXJk
GaryCXJk / retardedcraft.txt
Created April 29, 2012 16:12
RetardedCraft
[11:14.26] <+Satharis> computers are retarded
[11:14.32] <+Satharis> in the most literal sense of the word
[11:14.59] <Aerobit> :C
[11:15.00] <+Satharis> yet they follow instructions perfectly unless something breaks
[11:15.02] <Aerobit> True
[11:15.35] <GaryCXJk> I'm pretty sure I will be pelted for liking Maroon 5.
[11:15.41] <GaryCXJk> But fuck that shit.
[11:16.00] <+ShaRose> +http://www.minecraftforum.net/topic/622334-survadv-survival-lava-islands,
[11:16.05] <+Satharis> to put it in GaryCXJk sort of terms: You have to teach your computer exactly how to take a shit, but when you do, it will take the most glorious and perfect shit that mankind has ever known.
[11:16.09] <+ShaRose> how is this supposed to be hard