This file contains hidden or 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 { useState, useTransition } from 'react'; | |
/** | |
* @param {number} initialValue Initial value | |
* @param {number} duration Animation duration in ms | |
*/ | |
export const useAnimatedDigit = (initialValue = 0, duration = 250) => { | |
const [value, setValue] = useState(initialValue); | |
const [isPending, startTransition] = useTransition(); |
This file contains hidden or 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
@mixin phone($phone) { | |
@if $phone == ipx { | |
@media only screen | |
and (device-width : 375px) | |
and (device-height : 812px) | |
and (-webkit-device-pixel-ratio : 3) { @content; } | |
} | |
@else if $phone == ip { | |
@media only screen | |
and (device-width : 375px) |
This file contains hidden or 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 http = new XMLHttpRequest(); | |
var HOOK_URL = 'https://hooks.slack.com/services/*********'; | |
var data = {"text": "Your message here", | |
"attachments": [ | |
] }; | |
http.open("POST", HOOK_URL, true); | |
http.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); | |
http.send('payload='+JSON.stringify(data)); |