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
git filter-repo --replace-text /tmp/replacements.txt --force | |
git filter-repo --invert-paths --path config/env.rb | |
git ls-files config/env.rb | |
ggshield secret scan repo repo-name |
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>Centering divs</title> | |
<style> | |
* { | |
box-sizing: border-box; |
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
const dragons = [ | |
{ name: 'fluffykins', size: 1 }, | |
{ name: 'wargle', size: 3 } | |
] | |
for(let i=0; i<500; i++) { | |
dragons.push({ name: 'fluffykins', size: Math.random()*10 }) | |
} | |
const getDragonTitle = dragon => { | |
if (dragon.size > 1) { |
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
const humanSize = bytes => { | |
if (bytes === 0) return 'n/a' | |
const i = Math.floor(Math.log(Math.abs(bytes)) / Math.log(1024)) | |
const sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'] | |
return `${(bytes / Math.pow(1024, i)).toFixed(1)} ${sizes[i]}` | |
} |