Skip to content

Instantly share code, notes, and snippets.

View nicksteffens's full-sized avatar

Nick Steffens nicksteffens

View GitHub Profile
# Inspired from https://github.com/meiokubo/emoji.zsh-theme/blob/main/emoji.zsh-theme
PROMPT=" %(?:%{$fg_bold[cyan]%}➜:%{$fg_bold[cyan]%}➜)"
PROMPT+=' %{$fg[green]%}%c%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[green]%}[%{$fg[cyan]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}] %{$fg[yellow]%}✏️ "
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}] ✅"
@nicksteffens
nicksteffens / copy-svgs.sh
Created April 4, 2023 20:24
allows rapid copying of svgs from a srcDir to destDir
#!/bin/bash
# Set the source and destination directories
SRC_DIR="$1"
DEST_DIR="$2"
# Loop through all SVG files in the source directory
for svg_file in "$SRC_DIR"/*.svg
do
# Get the filename without the path or extension
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
export default class extends Component {
@service router;
constructor() {
super(...arguments);
this.router.on('routeWillChange', (transition) => {
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
modelName = "My Model Name";
modelId = 33;
}
import Controller from '@ember/controller';
import { tracked } from '@glimmer/tracking';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
@tracked checkValue = 1;
}
import Component from '@glimmer/component';
export default class extends Component {
}
  • Navigate to https://vax4nyc.nyc.gov/patient/s/vaccination-schedule
  • Fill out the "Eligibility" form
    1. Check " New York City residents ages 30 or older"
    2. "No" you're not NYC employee
    3. Fill in DoB
    4. Fill in Zip
    5. "yes" Certify live in NYC
    6. click Next
  • Fill in "Health Screening And attestation
    1. "no" for allergic reaction
// Typescript Generics
class MyMap<T extends Error> {
value: T;
getVal() {
return this.value;
}
constructor(val: T) {
let failingTests = [];
const testElements = document.querySelectorAll('li[id].fail');
testElements.forEach(test => {
const moduleName = test.getElementsByClassName('module-name')[0].textContent
const testName = test.getElementsByClassName('test-name')[0].textContent
failingTests.push(`- [ ] ${moduleName} ${testName}`)
});
console.log(failingTests.join('\n'));