Skip to content

Instantly share code, notes, and snippets.

View Malows's full-sized avatar

Juan Manuel Cruz Malows

  • Santa Fe, Argentina
View GitHub Profile
@Malows
Malows / JsonClass.hx
Created March 9, 2018 18:01 — forked from miltoncandelero/JsonClass.hx
Creates typedefs based on a json example variable.
import haxe.Json;
/**
* Toss a Dynamic var and get a typedef declaration! (Inspired by http://json2csharp.com)
* (A bit of code stolen from https://gist.github.com/elsassph/16d3b2597f6a51b5817c2fa97dd7f505)
* @author Milton Candelero (Elemental Code)
*/
class JsonClass
{
@Malows
Malows / 1_NonFunctionalActions.js
Last active November 28, 2017 16:22
Comparación funcional
const modulo = {
cargarDatosA ({ commit, dispatch }) {
axios.get(URL_A)
.then(({ status, data }) => {
if (status === 200)
commit('COMMIT_A', data)
})
.catch(({ response }) => {
if (response.status === 401)