For an example, let's look at the oneOf
function from the Maybe module:
oneOf : List (Maybe a) -> Maybe a
oneOf maybes =
case maybes of
const R = require('ramda'); | |
const aws = require("aws-sdk"); | |
const { GraphQLClient } = require("graphql-request"); | |
aws.config.update({ | |
region: process.env.REGION | |
}); | |
const cognitoidentityserviceprovider = new aws.CognitoIdentityServiceProvider({ | |
apiVersion: "2016-04-18" | |
}); |
(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.
function cssLoaded(href) { | |
var cssFound = false; | |
for (var i = 0; i < document.styleSheets.length; i++) { | |
sheet = document.styleSheets[i]; | |
if (sheet['href'].indexOf(href) >= 0 && sheet['cssRules'].length > 0) { | |
cssFound = true; | |
} | |
}; |
/** | |
* Centered Vertical line with CSS Gradient | |
*/ | |
div { | |
background: #fff; | |
background: linear-gradient(180deg, transparent, #353535, transparent); | |
background-position: 50%; | |
background-repeat: repeat-y; | |
background-size: 1px auto; | |
} |
# This is a template .gitignore file for git-managed Prestashop projects. Inspired by micahwalter wordpress gitignore | |
#Ignore ds_store | |
*.DS_Store | |
# Ignore everything in the root except modules, themes and override. | |
/* | |
!modules/ | |
!themes/ |
# This is a template .gitignore file for git-managed WordPress projects. | |
# | |
# Fact: you don't want WordPress core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Solution: stick this file up your repository root (which it assumes is | |
# also the WordPress root directory) and add exceptions for any plugins, | |
# themes, and other directories that should be under version control. | |
# | |
# See the comments below for more info on how to add exceptions for your |