Skip to content

Instantly share code, notes, and snippets.

View mcanam's full-sized avatar
🐢
I may be slow to respond.

mcanam mcanam

🐢
I may be slow to respond.
View GitHub Profile
[
{
"area": "Ambarawa",
"coords": {
"dms": [
"07º 18’ LS",
"110º 23’ BT"
],
"decimal": [
"-7.300000",
@mcanam
mcanam / alternate-case.js
Last active April 11, 2022 13:16
logic test
/*
Alternate each case of each of string given
alternateCase("abc") => "ABC"
alternateCase("ABC") => "abc"
alternateCase("Hello World") => "hELLO wORLD"
*/
@mcanam
mcanam / xdom.js
Created August 11, 2021 11:24
super dom
const xdom = {
bindElement: function(element) {
const props = Object.keys(this);
props.forEach(prop => {
element[prop] = this[prop];
});
return element;
},
@mcanam
mcanam / colors.js
Last active March 3, 2022 11:49
A Javascript object that includes a list of material design color hex codes
const colors = {
red: {
"50": "#FFEBEE",
"100": "#FFCDD2",
"200": "#EF9A9A",
"300": "#E57373",
"400": "#EF5350",
"500": "#F44336",
"600": "#E53935",
"700": "#D32F2F",