(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 UnityEngine; | |
| using UnityEngine.Networking; | |
| using UnityEditor; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Security.Cryptography; | |
| using System.Text; | |
| using System; |
| // Thanks to http://www.labs.saachitech.com/2012/10/23/pdf-generation-using-uiprintpagerenderer | |
| // Note: including images in the HTML won't work, see here: | |
| // https://github.com/nyg/HTMLWithImagesToPDF | |
| import UIKit | |
| // 1. Create a print formatter | |
| let html = "<b>Hello <i>World!</i></b>" | |
| let fmt = UIMarkupTextPrintFormatter(markupText: html) |
| #!/bin/bash | |
| # From ScalaCourses.com Introduction to Play Framework with Scala course | |
| # https://www.scalacourses.com/student/showLecture/158 | |
| set -eo pipefail | |
| function help { | |
| echo "Download or update Typesafe Activator on Linux and Cygwin" | |
| echo "Usage: $(basename $0) [options]" |
| using UnityEngine; | |
| using UnityEngine.EventSystems; | |
| //by Ralph Barbagallo | |
| //www.flarb.com | |
| //www.ralphbarbagallo.com | |
| //@flarb | |
| public class VRInputModule : BaseInputModule { |
| using UnityEngine; | |
| using Hashtable = ExitGames.Client.Photon.Hashtable; | |
| public class SmoothSyncObject : MonoBehaviour | |
| { | |
| public PhotonView OwnerView; | |
| public GameObject[] SyncTargets; | |
| public Animator SycnAnimator; | |
| // public int RootTargetId = 0; // target which affects position. | |
| private bool isDeltaTimeBasedSmoothing = false; |
| #!/usr/bin/env perl | |
| use 5.10.0; | |
| use strict; | |
| use warnings; | |
| use Getopt::Long; | |
| use Data::Dumper; | |
| $Data::Dumper::Indent = 0; | |
| $Data::Dumper::Terse = 1; |
(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.
| open Microsoft.CodeAnalysis | |
| open Microsoft.CodeAnalysis.CSharp | |
| open Microsoft.CodeAnalysis.CSharp.Syntax | |
| open FSharp.CodeAnalysis.CSharp.Patterns | |
| // full form for the node, with SyntaxKind and tokens | |
| let fullForm (n: CSharpSyntaxNode) = | |
| match n with | |
| | BinaryExpressionSyntax(_, LiteralExpressionSyntax(_), _, _) -> () |
| /** @jsx React.DOM */ | |
| // d3 chart function | |
| // note that this is a higher-order function to | |
| // allowing passing in the component properties/state | |
| update = function(props) { | |
| updateCircle = function(me) { | |
| me | |
| .attr("r", function(d) { return d.r; }) | |
| .attr("cx", function(d) { return 3 + d.r; }) |