No, this isn't about render props
I'm going to clean this up and publish it in my newsletter next week!
So react-i18n (not the npm one... one we made at PayPal internally) has this
No, this isn't about render props
I'm going to clean this up and publish it in my newsletter next week!
So react-i18n (not the npm one... one we made at PayPal internally) has this
| import threading | |
| from yattag import Doc | |
| from flask import Flask | |
| js_scripts = [] | |
| app = (Flask(__name__)) | |
| thread = None | |
| def start(host='0.0.0.0', port = 6969): | |
| """Gets app listening on host:port. Call inject before starting the |
| import NextHead from 'next/head' | |
| import React from 'react' | |
| import ReactGA from 'react-ga' | |
| import Router from 'next/router' | |
| /*****************************************************************************\ |
| Object.defineProperty(Number.prototype,Symbol.iterator,{ | |
| *value({ start = 0, step = 1 } = {}) { | |
| var inc = this > 0 ? step : -step; | |
| for (let i = start; Math.abs(i) <= Math.abs(this); i += inc) { | |
| yield i; | |
| } | |
| }, | |
| enumerable: false, | |
| writable: true, | |
| configurable: true |
| $(document).ready(function () { | |
| var $btn = $('.btn'); | |
| var $image = $('#img'); | |
| function Filter (config) { | |
| this.target = config.target; | |
| this.image = config.image; | |
| this.filters = config.filters; | |
| this.support = config.support === undefined ? true : config.support; |
| #!/bin/bash | |
| # Install docker | |
| apt-get update | |
| apt-get install -y apt-transport-https ca-certificates curl software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| add-apt-repository \ | |
| "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
| $(lsb_release -cs) \ | |
| stable" | |
| apt-get update |
| // The classic AJAX call - dispatch before the request, and after it comes back | |
| function myThunkActionCreator(someValue) { | |
| return (dispatch, getState) => { | |
| dispatch({type : "REQUEST_STARTED"}); | |
| myAjaxLib.post("/someEndpoint", {data : someValue}) | |
| .then( | |
| response => dispatch({type : "REQUEST_SUCCEEDED", payload : response}), | |
| error => dispatch({type : "REQUEST_FAILED", error : error}) | |
| ); |
| 'use strict' | |
| import React, { | |
| Component, | |
| StyleSheet, | |
| View, | |
| Text | |
| } from 'react-native' | |
| import { padding } from './styles/mixins' | |
| export default class MixinExample extends Component { |
| from flask import abort, make_response, jsonify | |
| abort(make_response(jsonify(message="Message goes here"), 400)) |