Skip to content

Instantly share code, notes, and snippets.

View nelsson's full-sized avatar

Nelson Villafuerte Orbezo nelsson

View GitHub Profile
20015-Arsat-Aguila-Mobile git:(master) ✗ react-native run-android
Scanning folders for symlinks in /Users/nelson/proyectos/whiteprompt/2019/20015-Arsat-Aguila-Mobile/node_modules (19ms)
JS server not recognized, continuing with build...
Building and installing the app on the device (cd android && ./gradlew installDebug)...
> Configure project :app
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018..
Reading env from: .env
<?php
// Configure your Subject Prefix and Recipient here
$subjectPrefix = 'Contacto desde Orbit Web';
$emailTo = 'email@email.com';
$errors = array(); // array to hold validation errors
import React, { useState } from 'react';
import { Auth0Lock } from 'auth0-lock';
import { withRouter } from 'react-router';
import { CompanyName, CompanyImage, LoginLink, WrapLabelDropdown } from './style';
function LoginButton({ receiveUser, type, user, history }) {
const [openDropdown, setDropdown] = useState(0);
function checkUser(auth0) {
fetch(`http://localhost:3001/api/account/auth0/${auth0}`)
import React, { useState } from 'react';
import ModalBox from '../../features/ModalBox/index';
import PropTypes from 'prop-types';
// import { Mixpanel } from '../../../utils/mixpanel';
import { Formik, Field, Form } from 'formik';
import { LinearProgress, MenuItem } from '@material-ui/core';
import MuiTextField from '@material-ui/core/TextField';
import { fieldToTextField, TextField } from 'formik-material-ui';
import SuccessMessage from '../SuccessMessage';
import {
import { connect } from 'react-redux';
import { submitRequest } from '../../project/state';
import FormRequesQuote from './FormRequesQuote';
const volumenoptions = [
{
value: 'none',
label: 'I don`t know',
},
{
import { connect } from 'react-redux';
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { fetchProjects } from '../state/operations';
import { requestProjects } from '../state/actions';
import store from '../../../rootReducer';
import {
ViewProjects,
LandingProyect,
LandingMain,
@nelsson
nelsson / BiomassChart.js
Created June 7, 2019 15:33
Victory Chart
import React from 'react';
import ReactDOM from 'react-dom';
import { VictoryChart, VictoryLine, VictoryStack, VictoryArea, VictoryTheme } from 'victory';
import _ from 'underscore';
import { red } from 'ansi-colors';
export class BiomassChart extends React.Component {
constructor(props) {
super(props);
this.state = { data: this.getData() };
@nelsson
nelsson / gallery.js
Created June 5, 2019 11:05
Gallery react
const dataFirstProject = {
title: 'Middlebury College improved forest management project',
tagline:
'Located on 2,673.2 acres of mixed hardwood and conifer forest in the Adirondacks of central Vermont, the Middlebury College developed this project to become a carbon-neutral entity by offseting the carbon produced through the college’s operations.',
main_picture: 'https://images.app.goo.gl/zVAMu3RXxmKeha3h9',
credits_avail: {
quatinty: 10000,
unit: 'credtis',
},
credits_issued: {