jq is useful to slice, filter, map and transform structured json data.
brew install jq
import * as React from 'react'; | |
import { compose, lifecycle, pure, StateHandler, StateHandlerMap, withStateHandlers } from 'recompose'; | |
import { Message, Transition } from 'semantic-ui-react'; | |
import './FlashMessage.css'; | |
export interface FlashMessageProps { | |
message: string; | |
isWarning?: boolean; | |
} |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: Cognito Stack | |
Parameters: | |
AuthName: | |
Type: String | |
Description: Unique Auth Name for Cognito Resources | |
Resources: | |
# Creates a role that allows Cognito to send SNS messages | |
SNSRole: |
IE6 Only | |
================== | |
_selector {...} | |
IE6 & IE7 | |
================== | |
*html or { _property: } | |
IE7 Only | |
================== |
A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>AWS Cognito + Facebook Login JavaScript Example</title> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.41.min.js"></script> | |
<script> | |
/** | |
* Bitwise Mathematics Utilities | |
* | |
* A collection of fast bitwise operations for integer mathematics. | |
* These functions prioritize performance over readability and should be used | |
* when micro-optimizations are critical (game engines, real-time applications). | |
* | |
* References: | |
* - http://michalbe.blogspot.com.br/2013/03/javascript-less-known-parts-bitwise.html | |
* - http://jsperf.com/bitwise-vs-math-object |
Currently considering https://github.com/webdriverio/webdrivercss
Core Goals:
/** | |
* Get real pixel ratio. Page zoom is included in calculation of real pixel ratio, | |
* so it's valid solution for desktops. | |
* | |
* @return {Object} | |
*/ | |
const getPixelRatio = () => { | |
const STEP = 0.05; | |
const MAX = 5; | |
const MIN = 0.5; |