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
'use strict'; | |
// | |
// This script is a simple "assistant" to play wordle. | |
// It gives you an initial word to enter and then calling a function after each word it will filter the word list | |
// using the information given by wordle on absent/present/correct letters to narrow down the list. | |
// | |
// It doesn't try to help you find the word in the least amount of tries nor anything else. It just filter the possible | |
// words with the guesses information available at the moment, it just works. | |
// |
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
module Colors | |
def self.fg_green(io=$stdout) | |
io.print "\x1b[0;32m" | |
end | |
def self.fg_white(io=$stdout) | |
io.print "\x1b[1;37m" | |
end | |
def self.fg_gray(io=$stdout) |
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
using UnityEngine; | |
public class GizmosExtensions | |
{ | |
private GizmosExtensions() { } | |
/// <summary> | |
/// Draws a wire arc. | |
/// </summary> | |
/// <param name="position"></param> |
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
# The itch.io username | |
user=REPLACE_WITH_USERNAME | |
# The project name used for uploading | |
itchio_project=REPLACE_WITH_PROJECT_NAME |
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
#!/bin/bash | |
# | |
# This script creates builds for several platforms for a Unity project. | |
# It assumes this directory hierarchy: | |
# base_dir/ | |
# UnityProjectName/ | |
# dist/ | |
# dist/files/ | |
# |
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
#!/bin/bash | |
# | |
# Takes a directory of macOS screemshots, label each file with | |
# a timestamp and creates a video with them. | |
# | |
dir=$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 ruby -W | |
require 'yaml' | |
require 'fileutils' | |
# | |
# Copies a physics shape from a sprite (reading it's .meta file) | |
# and aplies the same shape to other sprites. | |
# Tested only with .meta files created with Unity 2019.1.0f2 and MY |
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
// | |
// Tries to decode all the files on a certain directory and outputs the result: | |
// System.out for the files with a qr code | |
// System.err for the files without a qr code | |
// | |
// based on code from https://stackoverflow.com/questions/36210537/find-qr-code-in-image-and-decode-it-using-zxing | |
// | |
// needs the ZXing jars from: | |
// https://oss.sonatype.org/content/repositories/snapshots/com/google/zxing/core/3.3.4-SNAPSHOT/core-3.3.4-20181025.133109-2.jar | |
// https://oss.sonatype.org/content/repositories/snapshots/com/google/zxing/javase/3.3.4-SNAPSHOT/javase-3.3.4-20181025.133127-2.jar |
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 ruby | |
# | |
# Takes a screenshot every 5 seconds and save the file to a certain folder passed as argument. | |
# It uses screencapture, which comes with OS X. | |
# | |
# | |
require 'fileutils' | |
include FileUtils |
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
require 'fileutils' | |
include FileUtils | |
# | |
# Copy images from a directory hierarchy like this: | |
# | |
# dir/ | |
# 320x480/ | |
# 640x480/ | |
# 1024x768/ |
NewerOlder