This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"shell_cmd": "love .", | |
"working_dir": "$folder", | |
"selector": "source.lua", | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
// 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 } }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Little script to learn kanas. | |
TODO: add accents | |
""" | |
import argparse | |
import random | |
import time | |
class bcolors: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |
NewerOlder