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
<div class="w-screen h-screen p-12"> | |
<div class="grid grid-cols-2 gap-2"> | |
<div class="flex items-center p-2 cursor-pointer w-full relative"> | |
<input type="radio" name="radio" id="radio-one" class="w-5 h-5 cursor-pointer peer z-10" /> | |
<label for="radio-one" class="pl-8 border-[1px] rounded-md p-2 left-0 w-full absolute peer-checked:bg-slate-200 cursor-pointer">Radio One</label> | |
</div> | |
<div class="flex items-center p-2 cursor-pointer w-full relative"> | |
<input type="radio" name="radio" id="radio-two" class="w-5 h-5 cursor-pointer peer z-10" /> |
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 [scroll, serScroll] = useState(false); | |
const handleScroll = () => { | |
if (scroll !== (window.pageYOffset > 0)) { | |
serScroll(!scroll); | |
} | |
}; | |
useEffect(() => { | |
window.addEventListener('scroll', handleScroll); |
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 React from 'react' | |
export const useWindows = () => { | |
const [size, setSize] = React.useState([window.innerWidth]) | |
React.useEffect(() => { | |
const handleResize = () => { | |
setSize([window.innerWidth]) | |
} | |
window.addEventListener('resize', handleResize) | |
return () => { | |
window.addEventListener('resize', handleResize) |
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
*::-webkit-media-controls-panel { | |
display: none!important; | |
-webkit-appearance: none; | |
} | |
/* Old shadow dom for play button */ | |
*::-webkit-media-controls-play-button { | |
display: none!important; | |
-webkit-appearance: none; |
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 sponsor:Array<string> = [ | |
'https://ko-fi.com/fiqryq', | |
'https://saweria.co/fiqryq', | |
] | |
export default sponsor |
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
server { | |
listen 127.0.0.1:443 ssl; | |
server_name site1.example.com; | |
include common.conf; | |
location / { | |
proxy_pass http://127.0.0.2:8081; | |
} | |
} |
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
{ | |
"embed": { | |
"thumbnail": { | |
"url": "https://cdn.discordapp.com/embed/avatars/0.png" | |
}, | |
"author": { | |
"name": "author name", | |
"url": "https://discordapp.com", | |
"icon_url": "https://cdn.discordapp.com/embed/avatars/0.png" | |
}, |
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
$ git remote set-url <remote_name> <remote_url> |
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
<?php | |
namespace App\Helpers; | |
/** | |
* Format response. | |
*/ | |
class ResponseFormatter | |
{ | |
/** |
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 express = require("express"); | |
const router = express.Router(); | |
router.get("/", (req, res) => { | |
res.send("Hello World"); | |
}); | |
router.get("/about", (req, res) => { | |
res.send("Hello from about"); | |
}); |
NewerOlder