(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| using System; | |
| using System.Collections.Generic; | |
| using UnityEditor; | |
| using UnityEngine; | |
| //Unity 4.1.5 | |
| public class UnityTextures : EditorWindow | |
| { |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| using UnityEditor; | |
| using UnityEngine; | |
| public sealed class ExampleClass : EditorWindow | |
| { | |
| private static readonly string[] mList = | |
| { | |
| "AboutWIndowLicenseLabel" , | |
| "AC LeftArrow" , | |
| "AC RightArrow" , |
| ## Unity ## | |
| *.cs diff=csharp text | |
| *.cginc text | |
| *.shader text | |
| *.mat merge=unityyamlmerge eol=lf | |
| *.anim merge=unityyamlmerge eol=lf | |
| *.unity merge=unityyamlmerge eol=lf | |
| *.prefab merge=unityyamlmerge eol=lf |
This was taken from http://rxwiki.wikidot.com/101samples, because I wanted to be able to read it more comfortable with syntax highlighting.
Here's the unedited original, translated to Github Markdown glory:
| #!/bin/bash | |
| # Arguments: | |
| # ${1}: Username | |
| # ${2}: Repository | |
| # Clone the repo from GitLab using the `--mirror` option. | |
| git clone --mirror "[email protected]:${1}/${2}.git" | |
| # Push to GitHub using the `--mirror` option. The `--no-verify` option skips any hooks. |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.