Skip to content

Instantly share code, notes, and snippets.

View jefvel's full-sized avatar
🥚

Aksel jefvel

🥚
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;
@jefvel
jefvel / ScreenFXSample.hx
Created January 2, 2020 17:03
ScreenFX pixelated shader
import h3d.mat.DepthBuffer;
import hxd.Key;
import hxd.Event.EventKind;
import hxd.Res;
import hxd.Window;
import h3d.mat.Texture;
class PixelatedShader extends h3d.shader.ScreenShader {
static var SRC = {
@param var texture : Sampler2D;
@jefvel
jefvel / whenScrollable directive
Created June 25, 2015 10:37
Adds a class to a element when it has a scrollbar.
//Adds class to element when it has a scrollbar visible. Slightly hacky but works.
/*
<div when-scrollable="scrollbar-visible">stuff</div>
<style>.scrollbar-visible { background-color:green; }</style>
*/
(function () {
angular.module("app.directives")