const video = document.getElementById('myVideo');
const playBtn = document.getElementById('playBtn');
const pauseBtn = document.getElementById('pauseBtn');
function playVideo() {
return new Promise((resolve, reject) => {
Many tools maintain a list of runtime flags for Chrome to configure the environment. This file is an attempt to document all chrome flags that are relevant to tools, automation, benchmarking, etc.
All use cases are different, so you'll have to choose which flags are most appropriate.
Here's a Nov 2022 comparison of what flags all these tools use.
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Flexboxes</title> | |
</head> | |
<body> | |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>News scroller</title> | |
</head> | |
<body> | |
<style> |
Devices
List all connected devices - adb devices
Select a particular device - adb -s <device name> <command>
Shell
Android shell - adb shell
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
## Unity ## | |
*.cs diff=csharp text | |
*.cginc text | |
*.shader text | |
*.mat merge=unityyamlmerge eol=lf | |
*.anim merge=unityyamlmerge eol=lf | |
*.unity merge=unityyamlmerge eol=lf | |
*.prefab merge=unityyamlmerge eol=lf |
- If you convert to LFS for an existing repository, you will change the history, so the SHA of changed commits changes!!
- That is fine for archiving purposes, as long as it is only about looking up the history.
- All historic states should still work, but you can no longer reference them via SHA.
- You should not use bfg-repo-cleaner because it's not as well supported and maintained anymore compared to git lfs migrate
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 arr1 = ["A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "B", "B", "B", "B", "B", "B", "B", "B", "C", "C", "C", "C", "D", "D", "E"]; | |
// var arr1New = _evenlyDistribute(arr1); | |
// console.dir(arr1New.join()); | |
// Should output: ABACABADABACABAEABACABADABACABA | |
var _evenlyDistribute = function (data) { | |
var _arrayMerge = function (a, b) { | |
var c1 = a.length; |