Taken from http://nielson.io/2016/04/2d-sprite-outlines-in-unity/ for safe keeping
Shader "Seventy Sevian/Pixelated" | |
{ | |
Properties | |
{ | |
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {} | |
_Color ("Color", Color) = (1, 1, 1, 1) | |
_PixelCountU ("Pixel Count U", float) = 100 | |
_PixelCountV ("Pixel Count V", float) = 100 | |
} |
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.UI; | |
public class ImageAnimation : MonoBehaviour { | |
public Sprite[] sprites; | |
public int spritePerFrame = 6; | |
public bool loop = true; | |
public bool destroyOnEnd = false; |
// Trie.js - super simple JS implementation | |
// https://en.wikipedia.org/wiki/Trie | |
// ----------------------------------------- | |
// we start with the TrieNode | |
function TrieNode(key) { | |
// the "key" value will be the character in sequence | |
this.key = key; | |
# Pass the env-vars to MYCOMMAND | |
eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
# … or ... | |
# Export the vars in .env into your shell: | |
export $(egrep -v '^#' .env | xargs) |
This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
Convert .mov/.MP4 to .gif
As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.
This is not limited to developer, anyone has this need can use this method to convert the files.
Given a subscribed calendar with a url like
https://example.com/example.ics
To force Google Calendar to refresh and reload the contents right now, unsubscribe from the calendar and subscribe to a new calendar with a URL like
https://example.com/example.ics#1
Adding the anchor tag will force Google Calendar to think of it as a new calendar
void AFPSCharacter::Tick(float DeltaTime) | |
{ | |
Super::Tick(DeltaTime); | |
if (Health <= 0 && Controller != nullptr) | |
{ | |
// Shouldn't be in control after we die. | |
DetachFromControllerPendingDestroy(); | |
// Capsule collisions off |
using System; | |
using UnityEditor; | |
using UnityEngine; | |
namespace Tools | |
{ | |
/// <summary> | |
/// Add this attribute to a float property to make it a logarithmic range slider | |
/// </summary> | |
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] |