A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
- GitHub Staff
- https://gnfisher.com
- @gnfisher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Capslock? pshaw. | |
setxkbmap -option ctrl:nocaps | |
# Lets get to it | |
sudo apt-get update | |
# install a bunch of build and dev libraries | |
sudo apt-get install build-essential libpq-dev libssl-dev libyaml-dev libreadline6-dev \ | |
zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ActiveRecord::UnionScope | |
def self.included(base) | |
base.send :extend, ClassMethods | |
end | |
module ClassMethods | |
def union_scope(*scopes) | |
id_column = "#{table_name}.#{primary_key}" | |
sub_query = scopes.map { |s| s.select(id_column).to_sql }.join(" UNION ") | |
where "#{id_column} IN (#{sub_query})" |
There's a lot of type terminology and jargon going around when discussing types in Elm. This glossary attempts to list some of the most common type terms along with synonyms, terms from other language communities, examples, and links to more detailed articles on each topic.
These are the basic building blocks of data modeling in Elm. This used to be
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map2 : (a -> b -> c) -> Validatable a -> Validatable b -> Validatable c | |
map2 func v1 v2 = | |
case ( v1, v2 ) of | |
( Invalid a fatal warnings, Valid b ) -> | |
Invalid (func a b) fatal warnings | |
( Invalid a fa wa, Warnings b wb ) -> | |
Invalid (func a b) fa (wa ++ Nonempty.toList wb) | |
( Invalid a fa wa, Invalid b fb wb ) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== zshrc | |
# Lines configured by zsh-newuser-install | |
HISTFILE=~/.histfile | |
HISTSIZE=10000 | |
SAVEHIST=10000 | |
setopt appendhistory autocd extendedglob | |
unsetopt beep | |
bindkey -e | |
# End of lines configured by zsh-newuser-install | |
# The following lines were added by compinstall |
Elm is a statically typed language that allows us to make impossible states impossible. But for those newer to Elm it isn't always obvious how to use this super power to solve their practical problems.
If you are still feeling a bit unsure yourself then join us as we use types to
- Turbo Frames on Rails by @DavidColby - provides a good overview of using frames and what they offer.
OlderNewer