Skip to content

Instantly share code, notes, and snippets.

Andre Gallo afgallo

Block or report user

Report or block afgallo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
afgallo / app.js
Last active Jun 15, 2019
Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
View app.js
import React, { useState, useEffect } from 'react'
import useForm from 'react-hook-form'
import Logo from '../assets/images/logo-icon-orange.png'
import TextInput from '../components/TextInput'
import Footer from '../components/Footer'
import AnimatedButton from '../components/AnimatedButton'
import logger from '../logger'
import { sleep } from '../utils/promise'
import PasswordResetSchema from './validation/PasswordResetSchema'
afgallo / controller.js
Created Mar 23, 2017
Lux error on clean install
View controller.js
import { Controller } from 'lux-framework';
class UsersController extends Controller {
export default UsersController;
View config.deploy.js
/* jshint node: true */
module.exports = function(environment) {
const ENV = {};
if (environment === 'production') {
ENV['azure-tables'] = {
storageAccount: 'my-storage-account',
storageAccessKey: 'my-access-key'
afgallo / client.js
Last active Aug 6, 2016
Crumb 403 issues
View client.js
//my client happens to be an Ember.js component but it could be anything ...
export default Ember.Component.extend({
tagName: '',
version: '1.0.0',
crumb: '',
didInsertElement: function() {
afgallo /
Created Jun 2, 2016 — forked from kevin-smets/
iTerm2 + oh my zsh + solarized + Meslo powerline font (OSX)
View handler.js
'use strict';
const Payment = require('../../models/payment');
module.exports = exports = (request, reply) => {
const payment = new Payment(request.payload); => {
View employee.html
<input type="text" data-bind="value: firstName, valueUpdate: 'keyup'" />
<input type="text" data-bind="value: lastName, valueUpdate: 'keyup'" />
<p>Full name getter: <spane data-bind='text: fullName'></span></p>
<p>Full name pure computed: <span data-bind='text: fullNameComp'></span></p>
You can’t perform that action at this time.