This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://flems.io/#0=N4IgzgpgNhDGAuEAmIBcIC2SB0ALeGUIANCAGYCWMYaA2qAHYCGGEamO+hJIsA9g0SD2AYgAEATQhNcxMQEkxSPmPi4m8MQHcKasRgCeYsPACuABwpIGEMGGwAdBk4BUYgLJ8+TsWIC0YgBytohIYlAUJr4+-qq4EGKUAE5Rpgx8SUgQScjhkZpMZIhJcQnJUbgAjNpUUGJMpvB8GBoUsExQUEYA5hCaGHwAbrlNpcZWEE5OgXxyfGRi-KYpCenw2AqaWkxggGQEYqa4++YZ6RtSMnJqGgDkYGK6GwDSVvfqw2LMrGAA-JJ8pkWTAYxggCVwfC0CjywzCACMIGQMglFKxNAYARsAGIUD4Q5a-MQAQS0chaDAAhGIAMIAqDWG7ogFiABWpiivX6CTUCSyGlwYnMEGYUHgBj+AAVgWADI5nAwAAZKllMQY7WBJCjmeBOCgYE5JTQqMhJZpiBwgPhgIWwC1TBh6g2aC3YAD0SL42BZYDtDv1GWdIDdcKYSS9PpATldrrEfVgcqcnqSaQAFABKJxKhX2+SaZS2BiM8JeADWxhUYFwFAYRlGrA28jAhc0ulUye56iZgPeCQRwsFTCsiQyYgxy1UIT1AnFYixSQMci04NVCSYiySGm5KiyEWGYbEAHV5IEACLueQAGQvAGUxCeAPJBe8AFUP94ASk8xM+ABJE18HkSEhUgA4ve94nkE8ggT+z5UgA+vB15NOYFKIWILgngIRaVl4mjJAkJhtGW1bGOYTCwAk7TpBAFJuNSDSQLGAAe5hQFauK8nAzTmDkdgUAIFL2iI4gSMy1GguCkLQruuQIkiOTQmio6YvaDEgoo7Idgk3RpH8ihIFYzb1GAZYKfUiw8TAiBdGIOQ7AITBwjALGwFpVKKDsJa5GOqgqJyYhwuyBhUge0BQFc6gMCW9yjDyCiCNkNjwHI8g3BgnzSXCyJhDoeiQMxDaxfEilrmxFEJAIYxLnCcQaAODBZCkfn6EYUDsvhI6DA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dontwork @dontwork Feb 07 12:22 | |
export function getUserFormData() { | |
var form = Object.assign({}, store.getState().users.form) | |
return form | |
} | |
that should return a copy of the form object right | |
Magnus Leo @magnusleo Feb 07 12:37 | |
Yes. | |
Object.assign is not available in IE11 if you must support that. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const set = (obj, prop, modify = (v) => v) => (value) => obj[prop] = modify(value) | |
exports default set |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GET, POST, PUT, PATCH, DELETE, HEAD or OPTIONS | |
// data becomes querystring on GET requests | |
class Http { | |
constructor() { | |
let methods = ['get', 'post', 'put', 'patch', 'delete', 'head', 'options'] | |
methods.forEach((method) => { | |
this[method] = (url, data, opts) => m.request(Object.assign({ method, url, data }, opts, this.eval(), this.defaults)) | |
}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.backalleycoder.com/2016/05/13/sghpa-the-single-page-app-hack-for-github-pages/ | |
<script> | |
sessionStorage.redirect = location.href; | |
</script> | |
<meta http-equiv="refresh" content="0;URL='http://MY_PROJECT_HERE.github.io'"></meta> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example | |
// app.js | |
document.addEventListener("DOMContentLoaded", function (e) { | |
m.route.mode = "hash"; | |
m.route(document.getElementById("application"), "/", { | |
"/": m.resolve("pages.home"), | |
"/findus": m.resolve("pages.findus") | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Autoloader</title> | |
</head> | |
<body> | |
<script> |
NewerOlder