Skip to content

Instantly share code, notes, and snippets.

View germanny's full-sized avatar

Jen G germanny

View GitHub Profile
@germanny
germanny / publisherConfig.json
Created June 22, 2021 17:04
Publisher Themes
{
"default": {
"logoWidth": "250",
"publisherName": "collegedegrees.com",
"theme": {
"fontSize": {
"h1": "28px !important",
"h2": "20px !important",
"h3": "16px !important",
"bodyLarge": "18px !important",
@germanny
germanny / js-redirect-option-to-value.md
Created November 4, 2019 20:54
JavaScript - Redirect to <option> value on form submission
{
  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 November 4, 2019 17:30
Git - Clone all repos in organization

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

{
"colors": [
{
"color": "black",
"category": "hue",
"type": "primary",
"code": {
"rgba": "[255,255,255,1]",
"hex": "#000"
}
@germanny
germanny / structured-data-json-ld-example.json
Created May 10, 2019 14:10
Structured Date (JSON-LD)
<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 / wget-snapshotpage.md
Created March 19, 2019 21:00 — forked from dannguyen/wget-snapshotpage.md
Use wget to snapshot a page and its necessary visual dependencies

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 June 11, 2018 17:06 — forked from jasoncomes/Readme.md
Developer Project - Cars

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 / brewfile
Last active May 6, 2019 16:58
brewfile
cask_args appdir: '/Applications'
#
# 1 taps
#
# homebrew dupes
tap 'homebrew/dupes'
# homebrew versions
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
@germanny
germanny / .gitconfig
Last active December 29, 2016 15:56 — forked from jimmynotjim/.gitconfig
Base .gitconfig
[apply]
whitespace = fix
[color]
# Use colors in Git commands that are capable of colored output when outputting to the terminal
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]