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 { chromium } from "playwright"; | |
type Measurements = { screenWidth: number, VW: number, PX: number }; | |
async function getMeasurements( initialWidth: number, granularity: number, url: string, selector: string ) { | |
const browser = await chromium.launch({ | |
// Width and height of the browser window | |
width: initialWidth, | |
height: 1024, | |
headless: false, |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Test Page</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
</body> | |
</html> |
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
// ==UserScript== | |
// @name Copy Hyperlinked Github Issue Title | |
// @namespace https://github.com/ | |
// @version 0.1 | |
// @description Copy the github issue/pr name. The name would be linked as rich text. | |
// @author Adnan Haque <adnan007.id@gmail.com> | |
// @match https://github.com/* | |
// @grant none | |
// ==/UserScript== |
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
#include <cstdio> | |
#include <iostream> | |
#define ll unsigned long long int | |
using namespace std; | |
int main(){ | |
ll fib[100]; |
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
<?php | |
$progs = get_posts( [ | |
'post_type' => 'program', | |
'post_status' => 'publish', | |
'posts_per_page' => -1 ] ); | |
echo "<ul>"; | |
foreach( $progs as $prog ){ | |
echo "<li>"; | |
echo $prog->post_title . ' : '; |