Skip to content

Instantly share code, notes, and snippets.

View paulomcnally's full-sized avatar
:octocat:
JS

Paulo McNally paulomcnally

:octocat:
JS
View GitHub Profile
import React from 'react';
import { View, Text } from 'react-native';
export default class DetailScreen extends React.Component {
static navigationOptions = {
title: 'Detail title',
};
render() {
return (
<View>
$ yarn add react-navigation
{
"loopback-component-explorer": {
"mountPath": "/explorer",
"generateOperationScopedModels": true
}
}
@paulomcnally
paulomcnally / subdomain.js
Last active March 6, 2019 13:31
Create file server/boot/subdomain.js and edit server/model-config.json to add "tenant": true property on every model. Only work with loopback-connector-postgresql and schema.
'use strict';
var modelConfig = require('../model-config.json');
module.exports = function(app) {
app.use(function(req, res, next) {
// set tenant based subdomain or use public
var subdomain = (req.subdomains.length > 1) ? req.subdomains.pop() : req.subdomains[0];
var tenant = req.subdomains.pop() || 'public';
*PC*
https://www.amazon.com/ThinkCentre-M710-M710Q-i7-7700T-Computer/dp/B073WN77HK/
*Video Captura*
https://www.amazon.com/AV-io-4K-video-capture-1080p/dp/B01H3Y3IL8/
https://www.epiphan.com/products/avio-4k/
*2TB SSD*
https://www.amazon.com/VectoTech-Rapid-External-Portable-Solid/dp/B01JKMZ6L6/
import ContentLoader from 'react-content-loader';
const HorizontalCardLoader = () => (
<ContentLoader
height={190}
width={405}
speed={2}
primaryColor={"#ebecf0"}
secondaryColor={"#f3f5f7"}
>
apm install linter
apm install linter-eslint
{
"devDependencies": {
"babel-eslint": "^8.2.2",
"eslint": "^4.18.1",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-prefer-object-spread": "^1.1.0",
"eslint-plugin-react": "^7.7.0"
}
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"globals": {
"React": true
},
"parserOptions": {
npm i react-helmet --save
ó
yarn add react-helmet