Skip to content

Instantly share code, notes, and snippets.

View superzazu's full-sized avatar
🐷

superzazu superzazu

🐷
View GitHub Profile
@superzazu
superzazu / LOVE.sublime-build
Created July 16, 2018 21:05
LÖVE Sublime Text 3 build
{
"shell_cmd": "love .",
"working_dir": "$folder",
"selector": "source.lua",
}
@superzazu
superzazu / wsenginebuilder.sh
Created June 27, 2018 14:35
Wineskin Engine Builder v1.0: create Wineskin engines from winehq.org
#!/usr/bin/env bash
# Wineskin Engine Builder v1.0: create Wineskin engines from winehq.org
set -e
if [[ $# -ne 3 ]]; then
echo "usage: wsenginebuilder version branch arch" >&2
echo "example 1: wsenginebuilder 3.11 devel osx64" >&2
echo "example 2: wsenginebuilder 3.0.1 stable osx" >&2
exit 1
@superzazu
superzazu / umineko_installer.sh
Last active March 11, 2023 10:57
Umineko Project installer for macOS/Linux
#!/usr/bin/env bash
#
# Umineko Project installer for macOS/Linux
#
# note1: "7z" cli tool is required (on mac, install with: `brew install p7zip`)
# note2: all 7z files (.001, .002, etc.) must be in the current folder
#
if [[ $# -eq 0 ]]; then
echo "usage: umineko_installer extraction_password [install_path]"
@superzazu
superzazu / check64.py
Created January 29, 2018 17:44
Python3 script that lists all non-64bit apps on your mac
"""
check64.py: python3 script that lists all apps that don't contain Intel 64bit
code. Tested on macOS 10.13.3 with Python 3.6.4, no external deps
"""
import plistlib
import subprocess
if __name__ == "__main__":
app_profile = subprocess.check_output(
@superzazu
superzazu / Default (OSX).sublime-keymap
Created January 29, 2018 14:28
ST3 keybindings for french keyboards
[
// tab-switching cmd+1..9 for french azerty keyboards
{ "keys": ["super+&"], "command": "select_by_index", "args": { "index": 0 } },
{ "keys": ["super+é"], "command": "select_by_index", "args": { "index": 1 } },
{ "keys": ["super+\""], "command": "select_by_index", "args": { "index": 2 } },
{ "keys": ["super+'"], "command": "select_by_index", "args": { "index": 3 } },
{ "keys": ["super+("], "command": "select_by_index", "args": { "index": 4 } },
{ "keys": ["super+§"], "command": "select_by_index", "args": { "index": 5 } },
{ "keys": ["super+è"], "command": "select_by_index", "args": { "index": 6 } },
{ "keys": ["super+!"], "command": "select_by_index", "args": { "index": 7 } },
@superzazu
superzazu / main.c
Created November 13, 2017 17:09
Simple screen buffer with OpenGL2 and GLFW3
// simple screen buffer with OpenGL 2 (and GLFW3)
// build with:
// Linux: gcc main.c -lglfw -lGL
// macOS: gcc main.c -lglfw -framework OpenGL
#include <GLFW/glfw3.h>
static const int WIN_WIDTH = 160;
static const int WIN_HEIGHT = 144;
"""Little script to learn kanas.
TODO: add accents
"""
import argparse
import random
import time
class bcolors:
-- simple Camera class
-- taken from https://gist.github.com/BlackBulletIV/961685, written by BlackBulletIV
local class = require 'lib.middleclass'
local Camera = class('Camera')
function Camera:initialize()
self._x = 0
self._y = 0
self.scaleX = 1
self.scaleY = 1