Skip to content

Instantly share code, notes, and snippets.

View e111077's full-sized avatar
🙂

Elliott Marquez e111077

🙂
View GitHub Profile
@e111077
e111077 / git-evolve
Last active September 18, 2023 11:03
Git evolve (untested from GPT4)
#!/bin/bash
# git-evolve:
# A custom Git command to rebase a sequence of branches in order over a base branch.
# It also supports the ability to continue after conflicts and check the current status of the evolution.
#
# Installation Instructions for zsh env:
# 1. Save this script to a location, e.g., ~/bin/git-evolve.
# 2. Make sure the script is executable: chmod +x ~/bin/git-evolve.
# 3. Add the following line to your .zshrc or .zshenv: export PATH="$HOME/bin:$PATH".
@e111077
e111077 / index.html
Last active April 23, 2023 17:44
MWC Select working inside an MWC dialog
<!DOCTYPE html>
<head>
<script type="module" src="./simple-greeting.js"></script>
</head>
<body>
<simple-greeting name="World"></simple-greeting>
</body>
@e111077
e111077 / index.html
Last active August 10, 2023 20:47
Material Elevation
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.69/dist/themes/light.css">
<script type="module" src="./material-box-shadow.js"></script>
<style>
:root {
font-family: Roboto, sans-serif;
}
</style>
</head>
<!DOCTYPE html>
<head>
<script type="module" src="./trom-bone.js"></script>
<style>
:root {
font-family: Arial;
}
</style>
</head>
<body>
export const updateMetadata = ({
title,
description,
url,
image,
imageAlt
}: {
title?: string,
description?: string,
url?: string,
@e111077
e111077 / package.json
Last active January 2, 2024 19:19
Example package json w/o typescript
{
"scripts": {
"serve": "web-dev-server --node-resolve --watch --open",
},
"devDependencies": {
"@web/dev-server": "^0.1.17"
},
"dependencies": {
"lit": "^2.0.0"
}
@e111077
e111077 / background.html
Created June 18, 2021 23:29
bugzilla #1716685 repro
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>
@e111077
e111077 / package.json
Last active August 5, 2022 08:26
I/O 2021 example package.json
{
"scripts": {
"build": "tsc",
"build:watch": "npm run build -- --watch",
"serve": "web-dev-server --node-resolve --watch --open",
"dev": "npm run build:watch & npm run serve"
},
"devDependencies": {
"@web/dev-server": "^0.1.17",
"typescript": "^4.2.4"
@e111077
e111077 / tsconfig.json
Last active November 12, 2021 02:26
I/O 2021 example tsconfig
{
"compilerOptions": {
"target": "es2017",
"module": "es2015",
"moduleResolution": "node",
"lib": ["es2017", "dom", "dom.iterable"],
"declaration": true,
"sourceMap": true,
"inlineSources": true,
"experimentalDecorators": true,
@e111077
e111077 / story-knob-panel.ts
Created January 26, 2021 21:12
Draggable webcomponent dialog panel esample
import '@material/mwc-icon-button';
import '@material/mwc-icon';
import '../story_renderer/story-renderer';
import {customElement, html, LitElement, property, PropertyValues, query} from 'lit-element';
import {headline5} from '../../catalog/styles/m_typography';
import {styles} from './story-knob-panel.css';