React Presentation

React Addons
Critical Bugfix: Update the version of prop-types to fix critical bug. (@gaearon in 545c87f) Fix react-addons-create-fragment package to include loose-envify transform for Browserify users. (@mridgway in #9642) React Test Renderer
Fix compatibility with Enzyme by exposing batchedUpdates on shallow renderer. (@gaearon in #9382)
This is a basic guide on how to learn Elm rather than actually teach you. I'm going to mostly link to resources that I feel are valuable and try to "teach you how to fish".
The main purpose is to accelerate your learning and save you a lot of googling and weeding through bad explinations.
| # This class helps to captue possible errors as a value. While you could capture these conditions as | |
| # `nil` it's easy to forget to check for it everywhere. | |
| # | |
| # ResultValue helps with this by making the only way to get at the value is with #case_of. | |
| class ResultValue | |
| # This will rescue any exceptions and return it as an "errored" ResultValue | |
| # if there was none it will return it as an "ok" ResultValue with the value | |
| # wrapped inside | |
| def self.capture_result |
From this talk by President Dieter F. Uchtdorf
Life-changing truths are before our eyes and at our fingertips, but sometimes we sleepwalk on the path of discipleship ... We tread a path covered with diamonds, but we can scarcely distinguish them from ordinary pebbles.
| /*********************************************************************** | |
| * Program: | |
| * Lab UnixShell | |
| * Brother Jones, CS 345 | |
| * Author: | |
| * Gage Peterson | |
| * Summary: | |
| * This is a tiny unix shell made for my operating systems class | |
| ************************************************************************/ |
| /*********************************************************************** | |
| * Program: | |
| * Lab 00, Practice Lab Submission | |
| * Brother Jones, CS345 | |
| * Author: | |
| * Gage Peterson | |
| * Summary: | |
| * This is the first lab. It will count the number of lines the user | |
| * enters that begin a capital letter | |
| ************************************************************************/ |
| package main.scala | |
| object HelloWorld { | |
| def hello(name: String = "World") = "Hello, " + name; | |
| // sudo tests | |
| def main(args: Array[String]):Unit = { | |
| println(hello()) | |
| println(hello("Gage")) | |
| } |
| use std::io; | |
| use std::io::Write; | |
| fn prompt() -> String { | |
| let input = io::stdin(); | |
| println!("Welcome to Rock, Paper, and Sinners!"); |