Skip to content

Instantly share code, notes, and snippets.

@andrewfritz86
andrewfritz86 / github-conventional-comments.js
Last active May 9, 2022 14:42 — forked from ifyoumakeit/github-conventional-comments.js
GitHub Conventional Comments (instructions to install in comment below code)
// Credit Dave Garwacke @ifyoumakeit
{
// https://conventionalcomments.org/#labels
const LABELS = [
["praise", "Praises highlight something positive. Try to leave at least one of these comments per review. Do not leave false praise (which can actually be damaging). Do look for something to sincerely praise."],
["nitpick", "Nitpicks are small, trivial, but necessary changes. Distinguishing nitpick comments significantly helps direct the reader's attention to comments requiring more involvement."],
["suggestion (blocking)", "Suggestions are specific requests to improve the subject under review. It is assumed that we all want to do what's best, so these comments are never dismissed as “mere suggestions”, but are taken seriously."],
["suggestion (non-blocking)", "Suggestions are specific requests to improve the subject under review. It is assumed that we all want to do what's best, so these comments are never dismissed as “mere suggestions”, but are taken seriously."],
["issue (blocking)"
javascript:(function(){
const el = document.querySelector("body");
const klass = el.className;
el.className += " theme-marketplace";
}
)();
javascript:(function(){
const el = document.querySelector("body");
const klass = el.className;
@andrewfritz86
andrewfritz86 / adhoc_broken_runbook.md
Created January 30, 2019 17:00
adhoc_broken_runbook.md
  1. If you push changes to WWW, run sudo service www restart
  2. If you the helios store (ecom) API is down, try sudo service nginx restart
  3. If it still seems down, check the logs sudo tail -f /var/log/wp/helios/frontend_store.log
  4. If the admin won't load, try sudo service admin restart
  5. If it's still down, try restarting the adhoc in the aws console https://console.aws.amazon.com/ec2/v2/home
@andrewfritz86
andrewfritz86 / landing_page.json
Created July 21, 2017 20:03
landing_page_off_white
{
"hero": {
"copy_left": "As an architect, creative director, and designer, Virgil Abloh is a man of many talents. Over the past four years, he's channeled his far-reaching expertise into one cult fashion label: OFF-WHITE c/o VIRGIL ABLOH™.",
"logo": "https://i.warbycdn.com/v/c/assets/off-white/image/logo/0/2ab6b32940.png",
"image": [
{
"image": "{{ asset:off-white/image/hero-mobile/1 }}",
"quality": 100,
"size": "mobile"
},
@andrewfritz86
andrewfritz86 / off_white.json
Last active July 21, 2017 17:09
hp_off_white
{
"callouts": [
{
"picture": {
"images": [
{
"url": "{{ asset:home-06-07-17/image/mobile-quiz-a/0 }}",
"quality": 80,
"size": "mobile"
},
@andrewfritz86
andrewfritz86 / hpca1227.json
Created December 21, 2016 15:32
hp_ca_1227
{
"callouts": [
{
"picture": {
"images": [
{
"url": "{{ asset:home-winter-2016/image/couple_b_desktop/0 }}",
"quality": 100,
"size": "desktop-sd"
},
@andrewfritz86
andrewfritz86 / hpus1227.json
Created December 21, 2016 15:31
hp_us_1227
{
"callouts": [
{
"picture": {
"images": [
{
"url": "https://i.warbycdn.com/v/c/assets/home-fsa/image/desktop/0/91788801af.jpg",
"quality": 100,
"size": "desktop-sd"
},
@andrewfritz86
andrewfritz86 / notes.md
Last active December 14, 2016 20:52
notes

Intro -

  • Class aim, future classes

  • What is programming? Wiki example

  • What is javascript?

    • different programming languages, levels of abstraction
    • concepts that existed before the internet.
    • input, output
    • variables, evaluation, assignment, comparison, control flow, loops, data structures, functions/methods
  • How does this fit into warby parker? We use JS a lot, but these concepts are common across any OO language

@andrewfritz86
andrewfritz86 / adhoc.md
Last active June 3, 2016 14:25
Adhoc guide
  1. fab.aws.boot
  2. ssh adjective-name.wp-dev.io
  3. sudo su - helios
  4. make build
  5. manage.py migrate
  6. There is an uppercased boolean in the node store config. exit helios user, sudo EDITOROFCHOICE /etc/wp/node_store.json. server.locales.ca and server.locales.us, change "canadian_entity: true"
  7. Everything should now be working, but you're missing product data. The following gets product catalog working on your machine.
  8. cd ~
  9. curl -O -L http://wp-public-software-packages.s3-website-us-west-2.amazonaws.com/ubuntu/python3.5_3.5.1_amd64.deb
  10. sudo dpkg -i python3.5_3.5.1_amd64.deb
@andrewfritz86
andrewfritz86 / oauth.md
Last active August 28, 2015 16:29
oauth