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
export function getAxiosErrorMsg(error: any): string { | |
let msg = '' | |
if (error.response) { | |
// The request was made and the server responded with a status code | |
// that falls out of the range of 2xx | |
// console.log(error.response.data) | |
// console.log(error.response.status) | |
// console.log(error.response.headers) | |
msg = error.response.data.msg ? error.response.data.msg : error.response.statusText | |
} else if (error.request) { |
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
$spacing-sizes: ( | |
0: 0rem, | |
1: 0.25rem, | |
2: 0.5rem, | |
3: 0.75rem, | |
4: 1rem, | |
5: 1.25rem, | |
6: 1.5rem, | |
7: 1.75rem, | |
8: 2rem, |
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
%Facts | |
is_at(monkey, door). | |
is_at(box, window). | |
is_at(banana, middle). | |
hungry(monkey). | |
%Rules | |
grasp(monkey, banana):- hungry(monkey), climb(monkey, box), is_at(banana, middle). | |
climb(monkey, box) :- is_at(monkey, box, middle). | |
is_at(monkey, box, middle) :- push(monkey, box, middle). |
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
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { | |
// no easing, no acceleration | |
linear: function (t) { return t }, | |
// accelerating from zero velocity | |
easeInQuad: function (t) { return t*t }, | |
// decelerating to zero velocity |