Skip to content

Instantly share code, notes, and snippets.

Avatar

Jen G germanny

View GitHub Profile
@germanny
germanny / js-redirect-option-to-value.md
Created Nov 4, 2019
JavaScript - Redirect to <option> value on form submission
View js-redirect-option-to-value.md
{
  document.addEventListener("submit", (ev) => {
    const form = ev.target;
    const value = form.subject.value;

    // Return if doesn't contain class
    if (!form.classList.contains("my-class-name")) {
      return;
    }
@germanny
germanny / clone-repos-in-org.md
Last active Nov 4, 2019
Git - Clone all repos in organization
View clone-repos-in-org.md

On macOS for downloading all repos for an organization:

  1. $ brew install jq
  2. Create personal access token on github
  3. $ curl -s https://<your token>:@api.github.com/orgs/<your org>/repos\?per_page\=200 | jq ".[].ssh_url" | xargs -n 1 git clone --recursive

ref: https://gist.github.com/caniszczyk/3856584#gistcomment-2653802

View colors.json
{
"colors": [
{
"color": "black",
"category": "hue",
"type": "primary",
"code": {
"rgba": "[255,255,255,1]",
"hex": "#000"
}
View structured-data-json-ld-example.json
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"@id": "https://yoast.com/#organization",
"name": "Yoast",
"url": "https://yoast.com/",
"sameAs": [
@germanny
germanny / shy-dogs.html
Last active Apr 18, 2019 — forked from ryanj/gist-reveal.it-slides.html
Content for Shy Dog TTouch Presentation - https://slides.com/germanny/shy-dogs/
View shy-dogs.html
<div class="slides">
<section>
<h1>Building a Relationship<br />with Shy & Fearful Shelter Dogs<br />via TTouch</h1>
<p><small>April/May 2019</small></p>
<aside class="notes">
<p>Thank you for letting me talk to you today about one of my passions: shy shelter dogs.</p>
<p>One of the reasons I got into TTouch was to help the most vulnerable populations of dogs at the shelter in Austin, and I have a particular soft spot for shy dogs.</p>
@germanny
germanny / wget-snapshotpage.md
Created Mar 19, 2019 — forked from dannguyen/wget-snapshotpage.md
Use wget to snapshot a page and its necessary visual dependencies
View wget-snapshotpage.md

Use wget to mirror a single page and its visible dependencies (images, styles)

Money graphic via State of Florida CFO Vendor Payment Search

Graphic via State of Florida CFO Vendor Payment Search (flair.myfloridacfo.com)

This is a quick command I use to snapshot webpages that have a fun image I want to keep for my own collection of WTFViz. Why not just right-click and save the image? Oftentimes, the webpage in which the image is embedded contains necessary context, such as captions and links to important documentation just incase you forget what exactly that fun graphic was trying to explain.

@germanny
germanny / Readme.md
Created Jun 11, 2018 — forked from jasoncomes/Readme.md
Developer Project - Cars
View Readme.md

Project Overview

So this should take them about an 30 mins to 1 hr, depending on how in depth they get. I wanted to keep the instructions as vague as possible with little direction to see how they operate. Here is a list of things we'll be looking for as we QA:

  • Questions, if they ask any
  • Github
  • Javascript/JQuery
  • HTML Markup
  • PHP Logic
  • Git Committing
@germanny
germanny / new_puppy.md
Created Apr 5, 2018
Buying a New Puppy
View new_puppy.md

Adopting a dog

Questions to Ask

  • Does dog have shots
  • Will take puppy back if I cannot keep?
  • Why did you breed this litter of puppies? Why did you choose the parents?
  • Proof of health checks passed for parents, puppies?
  • How have puppies been socialized?
  • Where have puppies been raised?
  • What have puppies been eating?
View brewfile
cask_args appdir: '/Applications'
#
# 1 taps
#
# homebrew dupes
tap 'homebrew/dupes'
# homebrew versions
View npm-debug-log.md
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/7.3.0/bin/node',
1 verbose cli   '/Users/germanny/.npm-packages/bin/npm',
1 verbose cli   'install',
1 verbose cli   '/Users/germanny/.cache/yeoman/genesis/wordpress/v1.0.5',
1 verbose cli   '--0',
1 verbose cli   '--quiet' ]
2 info using npm@4.0.5
3 info using node@v7.3.0