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
@keyframes resize { | |
0% { transform: scale(1); } | |
25% { transform: scale(2.5); } | |
50% { transform: scale(1.5); } | |
75% { transform: scale(2.5); } | |
100% { transform: scale(1); } | |
} | |
body { | |
background-image: linear-gradient(90deg, hotpink, navy); |
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
body { | |
margin: 0; | |
padding: 0; | |
font-size: 1.5rem; | |
font-family: roboto; | |
} | |
.one { |
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"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" /> | |
</head> | |
<body> | |
<label for="menu"> |
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"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style> | |
h1 { | |
font-size: 72px; | |
background-image: linear-gradient(90deg, hotpink, blue); |
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 hex = "cb6ce6"; | |
const hexToDecimal = (val) => | |
val.split("").reverse().reduce((acc, val, index) => { | |
const convertedVal = parseInt(val, 16); | |
if (isNaN(convertedVal)) { | |
throw Error("invalid input passed to the conversion function"); | |
} |
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
import { restful } from 'redux-rocket/plugins; | |
import config from './baseConfig'; | |
const module = config({ | |
resource: 'user', | |
type: 'singleton', | |
plugins: { | |
include: [ | |
restful({ |
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
// hook when the plugin initilizes | |
const init = () => { | |
// do some logic to boot up the plugin. | |
return execute; | |
} | |
// hook for execution | |
const execute = () => { | |
// do some logic stuff. |
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 things = { name: 'john', age: 7, crap: true }; | |
const stuff = ['name', 'age']; | |
const result = Object.entries(things).filter(([index, value]) => stuff.includes(index)); | |
const composed = result.reduce((acc, entry) => ({ [entry[0]]: entry[1], ...acc }), {}) | |
console.log(composed); |
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
var DateDiff = { | |
inDays: function(d1, d2) { | |
var t2 = d2.getTime(); | |
var t1 = d1.getTime(); | |
return parseInt((t2-t1)/(24*3600*1000)); | |
}, | |
inWeeks: function(d1, d2) { |
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 lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=yes" /> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | |
<title>Arc90.com</title> |
NewerOlder