Skip to content

Instantly share code, notes, and snippets.

View Sheepolution's full-sized avatar

Sheepolution Sheepolution

View GitHub Profile
@Sheepolution
Sheepolution / i3wm_config
Last active February 10, 2019 16:24
i3wm config file
set $mod Mod4
set $TERMINAL urxvt
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
font pango:DejaVu Sans Mono 10
font pango:DejaVu Sans Mono, Terminus Bold Semi-Condensed 11
font pango:Terminus 11px
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
@Sheepolution
Sheepolution / .vsvimrc
Created February 6, 2019 12:59
My VS Vim configurations for Visual Studio 2013 using ReSharper commands.
syntax on
set ignorecase
set smartcase
set hlsearch
set wrap
set number
set autoindent
set smartindent
set cursorline
set smarttab
@Sheepolution
Sheepolution / cloudSettings
Last active February 12, 2020 18:21
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-02-12T18:21:46.659Z","extensionVersion":"v3.4.3"}
package;
import flixel.FlxCamera;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.FlxState;
import flixel.util.FlxColor;
import openfl.display.BitmapData;
import openfl.filters.ShaderFilter;
@Sheepolution
Sheepolution / DarknessAdvanced.hx
Last active September 23, 2020 15:02
Class to use with HaxeFlixel for creating lighting by masks. This advanced version allows the use of alpha, but is very slow.
import flixel.FlxBasic;
import flixel.FlxCamera;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.system.FlxAssets.FlxShader;
import flixel.util.FlxColor;
import openfl.display.BlendMode;
import openfl.filters.ShaderFilter;
import openfl.geom.Matrix;
@Sheepolution
Sheepolution / Darkness.hx
Created September 23, 2020 09:48
Class to use with HaxeFlixel for creating lighting by masks.
import flixel.FlxBasic;
import flixel.FlxCamera;
import flixel.FlxG;
import flixel.FlxSprite;
import flixel.system.FlxAssets.FlxShader;
import flixel.util.FlxColor;
import openfl.display.BlendMode;
import openfl.filters.ShaderFilter;
class Darkness extends FlxBasic {
@Sheepolution
Sheepolution / love-build.bat
Last active April 19, 2021 20:10
LÖVE Build script
@echo off
cls
echo Building!
set "gameName=%1"
set "gameNameLower=%2"
set "companyName=%3"
if "!gameName!"=="" (
@Sheepolution
Sheepolution / flux.js
Created May 20, 2022 22:01
rxi's flux in JavaScript
const getFlux = function () {
var flux = { _version: '0.1.5' };
var tween = getTween();
flux.list = [];
flux.objects = [];
flux.tweens = {};
flux.easing = { linear: function (p) { return p; } };
var easing = {
@Sheepolution
Sheepolution / gamera.js
Last active June 14, 2022 13:41
gamera.lua converted to JavaScript. Original: https://github.com/kikito/gamera
// gamera.js
// Based on gamera.lua v1.0.1 by Enrique García Cota, converted to JavaScript by Sheepolution
// Copyright (c) 2018 Enrique García Cota
// 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 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY