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
sing = (lyric, song) -> | |
lines = (song.line(i, lyric) for i in [0...song.length]) | |
full_song = lines.join(",\n")+"!" | |
alert full_song | |
birthday = | |
length: 4 | |
line: (line, lyric) -> | |
lyric + if (line == 2) then " birthday, dear #{@name}" else " birthday to you" | |
to: (@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
using UnityEngine; | |
using UnityEditor; | |
public enum TextureType { | |
NONE = -1, | |
GUI = 0, | |
CHARACTERS = 1 | |
} | |
public class AssetProcessing : AssetPostprocessor { |
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
// Sorting Layer Offset, for Unity sprites. By Jon Manning (@desplesda) at Secret Lab! http://secretlab.com.au | |
// This code is released under the CC-0 license. https://creativecommons.org/publicdomain/zero/1.0/ | |
// You can do whatever you like with it, but neither I nor Secret Lab offer any support for it. | |
using UnityEngine; | |
using System.Collections; | |
// Shift all sorting layers based on Z position - the farther they are in Z, | |
// the lower their sorting order will be! |
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 | |
set -e | |
urlencode() { | |
# from https://gist.github.com/cdown/1163649 | |
# urlencode <string> | |
old_lc_collate=$LC_COLLATE | |
LC_COLLATE=C |