Skip to content

Instantly share code, notes, and snippets.

View duranmla's full-sized avatar
🚀
Focused

Alexis Duran duranmla

🚀
Focused
View GitHub Profile
@duranmla
duranmla / machine.js
Last active September 20, 2020 12:30
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@duranmla
duranmla / machine.js
Last active September 9, 2020 21:49
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
const input = [pineapple, onion, lettuce, apple];
const main = (input) => {
const output = [];
// check if the element is a veggie
// if is veggie do not push into result
// else push into result return output;
}
console.log(main(input))
{
"id": 371,
"status": "completed",
"subtotal": "480.0",
"fee": "32.735128",
"updated_at": "2018-10-02T08:05:02.520-05:00",
"user": {
"id": 19,
"contact_name": "Javier Aldape",
"contact_email": "javieraldape@outlook.com",
@duranmla
duranmla / auth_refresh.md
Last active October 1, 2018 19:32
Handle the refresh token process

#27 Handle session refreshing using the provided refresh token

Author

Alexis Duran

Constrains

  • The token needed to make requests should not be needed to be passed from within async action, API should handle it.
  • If the user has a expired session and it couldn't refresh the application should notify and logout the user from the application.
@duranmla
duranmla / GitCommitEmoji.md
Created August 6, 2018 22:40 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@duranmla
duranmla / discourse_intro.md
Last active May 8, 2018 15:29
Gist intended to onboarding new developers for the AHWAA project powered by Discourse

Discourse

#ahwaa/intro

Development Rules

Styling

We are going to be using SCSS for the styling conserving a kind of BEM like approach whenever is possible, besides, we will make styles for layouts and components in desktop that will look decent on mobile and on top of that we will declare mobile files to address special styles that will edit the discourse built-in ones.

Development Information

Useful links

Links for getting started with a Discourse project.

@duranmla
duranmla / webpack.config.js
Created February 24, 2017 19:22
webpack configuration to work with storybook and apollo-client
// load the default config generator.
var genDefaultConfig = require('@kadira/storybook/dist/server/config/defaults/webpack.config.js');
module.exports = function (config, env) {
var conf = genDefaultConfig(config, env);
// add es6 support for node_modules
// config structure is here
// https://github.com/storybooks/react-storybook/blob/d0fd01054f02e79518d36a6fbb238c24577fef83/dist/server/config/webpack.config.js
conf.module.loaders[0].exclude = /node_modules\/(?!(apollo-client)\/).*/;