(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.
| Shader "Milkbag/CurvatureImageEffect" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| _LightStrength ("LightStrength", Float) = 0.3 | |
| _DarkStrength ("DarkStrength", Float) = 0.3 | |
| _Spread ("Spread", Float) = 1.0 | |
| [Toggle(USE_MULTIPLY)] _UseMultiply("Use Multiply", Float) = 0 | |
| [Toggle(CURVATURE_ONLY)] _CurvatureOnly("Curvature Only", Float) = 0 |
| /* | |
| Set this on an empty game object positioned at (0,0,0) and attach your active camera. | |
| The script only runs on mobile devices or the remote app. | |
| */ | |
| using UnityEngine; | |
| class ScrollAndPinch : MonoBehaviour |
| import * as foo from "foo" | |
| var $foo = require("foo"); | |
| var foo = $foo; | |
| import foo from "foo" | |
| var $foo = require("foo"); | |
| var foo = $foo.default; | |
| import { foo } from "foo" | |
| var $foo = require("foo"); |
(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.
| namespace RxTest | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using Chunk = System.Collections.Generic.List<int>; | |
| internal class Program | |
| { |
Are you new to open source? What sort of questions, concerns, or even fears do you have?
| namespace AliasFun | |
| { | |
| using MyRecord = System.Tuple<string, int>; | |
| public class AnExample | |
| { | |
| public void Demonstrating() | |
| { | |
| var record = new MyRecord("thing", 42); | |
| } |
| // This F# dojo is directly inspired by the | |
| // Digit Recognizer competition from Kaggle.com: | |
| // http://www.kaggle.com/c/digit-recognizer | |
| // The datasets below are simply shorter versions of | |
| // the training dataset from Kaggle. | |
| // The goal of the dojo will be to | |
| // create a classifier that uses training data | |
| // to recognize hand-written digits, and | |
| // evaluate the quality of our classifier |
| // Using comprehensions | |
| function sort(arr) { | |
| var pivot, t; | |
| if (arr.length === 0) { | |
| return []; | |
| } | |
| [pivot, t] = [arr[0], arr.slice(1)]; | |
| return sort([x for (x of t) if x < pivot]) | |
| .concat(pivot) | |
| .concat(sort([x for (x of t) if x >= pivot])); |
| #include <SDKDDKVer.h> | |
| #include <ShObjIdl.h> | |
| #include <tchar.h> | |
| int wmain(int argc, wchar_t* argv[]) | |
| { | |
| const wchar_t* appId = L"WinningJS-test-runner_aw9cjjms6ptaw!App"; | |
| CoInitialize(nullptr); | |
| IApplicationActivationManager* aam = nullptr; |