- Types are declared with
:and not::, and the consing operator conversely is::instead of: - No
whereclauses, onlylet/in - The standard style is different, check http://elm-lang.org/docs/style-guide for reference
- Multiline strings are a thing with
""" - Haskell's
datacorresponds totypein Elm, and also, Haskell'stypecorresponds to Elm'stype alias ($)is(<|), but you don't use it all that much – Elm people like the flipped operator(|>)which lets you build something that reads like a pipeline- Related: Backticks will likely die soon in favour of functions that have an argument order that lends itself to pipelining with
(|>) - Also,
(.)is(<<), and a flipped version(>>)exists, but I don't see it used that much either (>>=)is not an available operator and would not be polymorphic (no typeclasses, see below), and is instead commonly namedSomeType.andThen– e.g.Maybe.andThen : Maybe a -> (a -> Maybe b) -> Maybe b
| Price breakdown vs DigitalOcean, Vultr and Linode: | |
| RAM / CPU Cores / STORAGE / Transfer | |
| $5/mo | |
| LightSail: 512MB, 1, 20GB SSD, 1TB | |
| DO: 512MB, 1, 20GB SSD, 1TB | |
| VULTR: 768MB, 1, 15GB SSD, 1TB | |
| $10/mo |
| export ZSH=/home/antouank/.oh-my-zsh | |
| # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
| ZSH_THEME="candy" | |
| # Uncomment the following line to change how often to auto-update (in days). | |
| export UPDATE_ZSH_DAYS=1 | |
| # Uncomment the following line to display red dots whilst waiting for completion. | |
| COMPLETION_WAITING_DOTS="true" | |
| # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
| # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
| # Example format: plugins=(rails git textmate ruby lighthouse) |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft,elem.offsetTop,elem.offsetWidth,elem.offsetHeight,elem.offsetParent
| root@beryllium:~# wget http://cachefly.cachefly.net/100mb.test | |
| converted 'http://cachefly.cachefly.net/100mb.test' (ANSI_X3.4-1968) -> 'http://cachefly.cachefly.net/100mb.test' (UTF-8) | |
| --2015-09-03 11:28:49-- http://cachefly.cachefly.net/100mb.test | |
| Resolving cachefly.cachefly.net (cachefly.cachefly.net)... 62.210.187.96 | |
| Connecting to cachefly.cachefly.net (cachefly.cachefly.net)|62.210.187.96|:80... connected. | |
| HTTP request sent, awaiting response... 200 OK | |
| Length: 104857600 (100M) [application/octet-stream] | |
| Saving to: '100mb.test' | |
| 100mb.test 100%[==========================================================================================================================================>] 100.00M 50.1MB/s in 2.0s |
I've changed link to each video. I'll add links to slides as I find them :)
Simon Swain - Cold War Simulation
Yan Zhu - Weird Tricks to Improve Web Security 10000000% Slides
Jed Schmidt - Inline Styles
Michelle Bu - building component libraries
| var active = false; | |
| function changeRefer(details) { | |
| if (!active) return; | |
| for (var i = 0; i < details.requestHeaders.length; ++i) { | |
| if (details.requestHeaders[i].name === 'Referer') { | |
| details.requestHeaders[i].value = 'http://www.google.com/'; | |
| break; | |
| } |
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
This document is research for the selection of a communication platform for robot-net.
The purpose of this component is to enable rapid, reliable, and elegant communication between the various nodes of the network, including controllers, sensors, and actuators (robot drivers). It will act as the core of robot-net to create a standardized infrastructure for robot control.
Requirements: