Taken from http://nielson.io/2016/04/2d-sprite-outlines-in-unity/ for safe keeping
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
# Ruby 2.0 | |
# Reads stdin: ruby -n preprocess-twitter.rb | |
# | |
# Script for preprocessing tweets by Romain Paulus | |
# with small modifications by Jeffrey Pennington | |
def tokenize input | |
# Different regex parts for smiley faces | |
eyes = "[8:=;]" |
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
# inside initializers/exception_notifier.rb | |
# Webhook notifier sends notifications over HTTP protocol. Requires 'httparty' gem. | |
# config.add_notifier :telegram, { | |
# api_key: Rails.application.credentials.telegram_api, | |
# chat_id: Rails.application.credentials.telegram_chat, | |
# backtrace_length: 10, | |
# body: { | |
# disable_notification: true, | |
# parse_mode: "HTML" | |
# } |
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
# Add to model: | |
# include Chromable | |
# chroma do | |
# hnsw_space :cosine | |
# embedding :name | |
# document :label | |
# metadata :name | |
# end | |
# Usage: |
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
// (c) 2022 Ben D'Angelo. www.throwtheproject.com | |
// This code is licensed under MIT license (see LICENSE.txt for details) | |
using System.Collections; | |
using System; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Assertions; | |
public class StatList { |
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
// (c) 2022 Ben D'Angelo. www.throwtheproject.com | |
// This code is licensed under MIT license (see LICENSE.txt for details) | |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine.Assertions; | |
using System; | |
public class TileNode { | |
public Vector2 pos; |
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
// (c) 2022 Ben D'Angelo. www.throwtheproject.com | |
// This code is licensed under MIT license (see LICENSE.txt for details) | |
using UnityEngine; | |
using System.Collections; | |
using System; | |
public class Node : IComparable<Node> { | |
public Vector2 pos; | |
public Node parent; |
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
# Install Haxe using Brew and set the haxelib path | |
brew install haxe | |
haxelib setup /usr/local/Cellar/haxe/lib | |
# Install lime | |
haxelib install lime | |
# Install lime tools | |
haxelib install format | |
haxelib install svg |
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
HELP=" | |
################################################# | |
# # | |
# UnityBuildAll # | |
# # | |
################################################# | |
# A simple script by SnowHydra # | |
# # | |
# Automated building of your Unity app # | |
# To Windows, Mac, Linux. # |
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; | |
using System.Collections; | |
using Zenject; | |
using NSubstitute; | |
/* | |
Usage: | |
Container.Bind<IPath>().FromSub<IPath>(); | |
Container.Bind<IPath>().FromSub(); | |
*/ |
NewerOlder