Skip to content

Instantly share code, notes, and snippets.

View AustinEast's full-sized avatar
🍞

Austin East AustinEast

🍞
View GitHub Profile
@jefvel
jefvel / Main.hx
Last active January 6, 2021 00:45
HashLink + Heaps game launcher with auto updating using bintray
package;
import hxd.Event;
import sys.io.Process;
import haxe.io.BytesInput;
import format.zip.Reader;
import haxe.Http;
import haxe.Json;
import sys.FileSystem;
import sys.io.File;
package effects;
import openfl.display.BitmapData;
import flixel.util.FlxColor;
import flixel.system.FlxAssets.FlxShader;
/**
* https://gamedevelopment.tutsplus.com/tutorials/how-to-use-a-shader-to-dynamically-swap-a-sprites-colors--cms-25129
* https://github.com/HaxeFlixel/flixel-demos/blob/master/Effects/BlendModeShaders/source/openfl8/effects/ColorSwapEffect.hx
* https://community.openfl.org/t/passing-an-array-as-parameter-to-shader/9932/9
@2DArray
2DArray / AutoCopyToGPU.cs
Last active October 12, 2020 13:56
[CopyToGPU] Attribute for structs and consts
// AutoCopyToGPU, written by Eli Piilonen in 2020, MIT license
// Whenever your C# scripts compile, structs/consts/enums that you
// mark with [CopyToGPU] will be copied to a shader-include file.
// DO NOT put this file in an Editor folder! It will break.
///// C# Usage:
//
// [CopyToGPU]
@Eiyeron
Eiyeron / eb_shader.glsl
Last active November 10, 2021 13:25
Earthbound-ish background shader
/*
Copyright © 2019, Florian Dormont
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
The Software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders X be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the
// Basic jump properties
/** Jump height when button in held */
inline static var MAX_HEIGHT = 110;
/** Jump height when button in tapped */
inline static var MIN_HEIGHT = 30;
/** Seconds it takes to reach the apex of the max jump */
inline static var TIME_TO_MAX = 0.35;
/** Horizontal distance traveled if at max speed */
inline static var JUMP_WIDTH = 170;
@Yanrishatum
Yanrishatum / S2DPlane.hx
Created October 16, 2018 10:38
s2d -> s3d plane renderer.
package h3d.scene;
import hxd.FloatBuffer;
import h3d.col.Bounds;
import h3d.prim.Primitive;
import h3d.Buffer;
import h3d.scene.RenderContext;
import h3d.mat.Material;
import h3d.mat.Data;
import h3d.scene.Mesh;
@sherjilozair
sherjilozair / sdl-sokol-sprite.c
Created June 9, 2018 14:05
Minimal sprite rendering example with SDL2 for windowing, sokol_gfx for graphics API using OpenGL 3.3 on MacOS
#include <OpenGL/gl3.h>
#include <SDL2/SDL.h>
#define SOKOL_IMPL
#define SOKOL_GLCORE33
#include <sokol_gfx.h>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#define CODE(...) #__VA_ARGS__
@thejustinwalsh
thejustinwalsh / Hashlink AppCenter
Last active April 4, 2024 17:45
Build script for building a heaps based project on iOS
@Shourai
Shourai / namecheap SSL.md
Created October 21, 2017 12:49
Letsencrypt SSL certificate with namecheap hosting

source: https://savedlog.com/uncategorized/letsencrypt-ssl-certificate-namecheap-hosting/

The “Positive SSL” certificate I bought along with my domain is invalid with any of my subdomains and cannot be used with wildcards. One annoying thing is that namecheap doesn’t offer auto installation of free let’s encrypt certificates, even though, they are saying “Namecheap is dedicated to data security and privacy for all internet users. We believe the movement to encrypt nearly all web traffic is a positive direction. As more sites embrace HTTPS and use of security products, providers of free SSL are beginning to come online.”

Let me show you what it needs to be done in order to “encrypt nearly all web traffic”.

First, not required but it’s helpful to enable ssh access, it is not enabled by default on the base hosting plans, just go an start a live chat and request ssh access.