Skip to content

Instantly share code, notes, and snippets.

View bojidar-bg's full-sized avatar

Bojidar Marinov bojidar-bg

View GitHub Profile
@bojidar-bg
bojidar-bg / build-helpers.sh
Last active November 17, 2016 15:27
Godot-buildscripts -- a few buildscripts useful for developing godot
#!/bin/bash
## Helps build/debug/test a Godot (usable for non-godot things as well)
##################
#-----Common-----#
##################
function start {
start=1$(date -u +"%s")
@bojidar-bg
bojidar-bg / gpfamr.sh
Last active November 2, 2016 14:37
GPFAMR - Godot "Project" Fixers After Mass Rename (move)
#!/usr/bin/env bash
v=$(echo "$@" | grep -- '-v')
d=$(echo "$@" | grep -- '-d')
sed_command=''
# Doesn't support spaces in names :|
for cf in $(find . -not -path '*.git*' -not -name '* *' -type f | sed 's|\./||g'); do
if [ ! -z "$v" ]; then
function encript(current, previous) {
previous = previous || 0;
return (current + previous)%27;
}
var Canvas = require("canvas");
var fs = require("fs");
var source = process.argv[2];
//---PREPARE---
source = source.toUpperCase();