Render props - going away
- Web and native load data differently
- mobile switches immediately
- web pauses and then goes to it when its loaded fro mserver
get package name
const ownPackageName = require(path.join(__dirname, '..', 'package.json')).name;| # npm publish with goodies | |
| # prerequisites: | |
| # `npm install -g trash conventional-recommended-bump conventional-changelog conventional-github-releaser conventional-commits-detector json` | |
| # `np` with optional argument `patch`/`minor`/`major`/`<version>` | |
| # defaults to conventional-recommended-bump | |
| # and optional argument preset `angular`/ `jquery` ... | |
| # defaults to conventional-commits-detector | |
| np() { | |
| travis status --no-interactive && | |
| trash node_modules &>/dev/null; |
| var DOMTokenListSupports = function(tokenList, token) { | |
| if (!tokenList || !tokenList.supports) { | |
| return; | |
| } | |
| try { | |
| return tokenList.supports(token); | |
| } catch (e) { | |
| if (e instanceof TypeError) { | |
| console.log("The DOMTokenList doesn't have a supported tokens list"); | |
| } else { |
| var DOMTokenListSupports = function(tokenList, token) { | |
| if (!tokenList || !tokenList.supports) { | |
| return; | |
| } | |
| try { | |
| return tokenList.supports(token); | |
| } catch (e) { | |
| if (e instanceof TypeError) { | |
| console.log("The DOMTokenList doesn't have a supported tokens list"); | |
| } else { |
| import { Injectable } from 'ng-metadata/core' | |
| import { Action } from '@ngrx/store' | |
| interface SomePayload { | |
| baz: string | |
| } | |
| /** | |
| * Instead of passing around action string constants and manually recreating | |
| * action objects at the point of dispatch, we create services encapsulating |
| import java.util.List; | |
| import java.util.concurrent.TimeUnit; | |
| import rx.Observable; | |
| import rx.Subscriber; | |
| import rx.schedulers.Schedulers; | |
| public class DebounceBuffer { | |
| public static void main(String args[]) { |
##Google Interview Questions: Product Marketing Manager
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="description" content="RxJS Throttle vs Sample"> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/2.5.3/rx.all.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/2.5.3/rx.time.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/2.5.3/rx.virtualtime.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/2.5.3/rx.testing.js"></script> | |
| <meta charset="utf-8"> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="description" content="[add your bin description]" /> | |
| <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
| <script src="http://d3js.org/d3.v3.min.js"></script> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> |