Skip to content

Instantly share code, notes, and snippets.

View JohnPhamous's full-sized avatar
🚀
Hopefully not blowing anything up

John Pham JohnPhamous

🚀
Hopefully not blowing anything up
View GitHub Profile
{
"js/ts.implicitProjectConfig.checkJs": true,
"editor.copyWithSyntaxHighlighting": true,
"liveshare.connectionMode": "relay",
"vim.smartRelativeLine": true,
"vim.overrideCopy": false,
"diffEditor.wordWrap": "on",
"breadcrumbs.enabled": true,
"editor.gotoLocation.multipleDefinitions": "goto",
// "typescript.preferGoToSourceDefinition": true,
export const chaosTestStrings = (): void => {
const textNodes = getAllTextNodes(document.body);
for (const node of textNodes) {
const textNodeLength = node.textContent ? node.textContent.length : 0;
if (node.textContent === null) {
return;
}
if (node.parentElement instanceof Element) {
if (node.parentElement.dataset.originalText === undefined) {
import { ImageResponse } from "@vercel/og";
import { RedisEdge } from "redis-edge";
const REDIS_COUNT_KEY = "og-count-2";
export const config = {
runtime: "experimental-edge",
};
export default async function () {
This file has been truncated, but you can view the full file.
[
{
"type": 4,
"data": {
"href": "https://localhost:3000/11/sessions",
"width": 1876,
"height": 1335
},
"timestamp": 1624043552571
},

Create a repository

Create a new repository named username.github.com, where username is your GitHub username.

Screenshot of the create a new repository page

Creating your first index.html

On the repository page, click the creating a new file link.

Screenshot of the repository page with a rectangle around the creating a new file link Name your file index.html. Now copy and paste the following code into the file.

let itter = 1;
let max_itter = 10000;
let offset = 0;
let width = 800;
let height = 800;
let backgroundColor = "#14213d";
let foregroundColor = "#fca311";
function setup() {
pixelDensity(2);
Running 62.19 mi █████████████████████████████████░░ 93.5%
Swimming 0.00 mi ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.0%
Biking 2.25 mi ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.5%
@JohnPhamous
JohnPhamous / flag.2.gif
Last active May 9, 2019 22:46
Hackathons 💕
flag.2.gif
@JohnPhamous
JohnPhamous / flag.4.gif
Last active May 7, 2019 17:52
Stickers 😸🐙
flag.4.gif
@JohnPhamous
JohnPhamous / flag.5.gif
Created May 7, 2019 17:41
Gist for flag.5.gif. Generated by `crop-github-images-cli`.
flag.5.gif