Skip to content

Instantly share code, notes, and snippets.

View jtwray's full-sized avatar
:bowtie:
writing custom Hooks tackling mapbox and C#

James 'Tucker' Wray jtwray

:bowtie:
writing custom Hooks tackling mapbox and C#
View GitHub Profile
@jtwray
jtwray / semantic-commit-messages.md
Created January 6, 2021 21:09 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@jtwray
jtwray / newAmenities.js
Last active December 16, 2020 20:04
writing thousand line for loop output to new file with promisify stream pipeline
{/**
code starts line 78
a little story telling for context
while mocking seeds for my Express API
I ran into 2 simliar common obstacles
-- several occasions where I didn't get the seed just right the first go around and needed to tweak a small part..of every seed

I bundled these up into groups and wrote some thoughts about why I ask them!

If these helped you, I'd love to hear about it!! I'm on twitter @vcarl_ or send me an email carl.vitullo@gmail.com

Onboarding and the workplace

https://blog.vcarl.com/interview-questions-onboarding-workplace/

  • How long will it take to deploy my first change? To become productive? To understand the codebase?
  • What kind of equipment will I be provided? Will the company pay/reimburse me if I want something specific?
@jtwray
jtwray / gist:27ce3cfaeeae3ec4b51c44be29da9bed
Last active October 12, 2020 04:50
json string to setup an AWS bucket for serverless static site deployment
- use aws cloud9 very similar to codesandbox
- git clone you repo into cloud9
- create a new s3 bucket in the provided terminal ( the aws cli )
all lowercase dashes and periods only cant start or end with a number
aws s3 mb s3://REPLACE_ME_BUCKET_NAME
- run 2nd command to enable the bucket to be used for state website hosting
Shopify objects that contain attributes that can be dynamically put on the page. For example, the product object contains an attribute called title that can be used to output the title of a product.
The handle is used to access the attributes of a Liquid object. By default, it is the object’s title in lowercase with any spaces and special characters replaced by hyphens (-). Every object in Liquid (product, collection, blog, menu) has a handle.
Collections & Products
Collection ►
all_types ►
Returns a list of all the product types for a collection
@jtwray
jtwray / express_postgress_knex.md
Created May 14, 2020 20:48 — forked from laurenfazah/express_postgress_knex.md
Cheat Sheet: Setting up Express with Postgres via Knex

Express & Postgres via Knex

Note: <example> is meant to denote text replaced by you (including brackets).

Setup

// global dependencies
npm install -g knex
@jtwray
jtwray / Knex-Migrations-Seeding.md
Created February 25, 2020 01:48 — forked from NigelEarle/Knex-Migrations-Seeding.md
Migration and seeding instructions using Knex.js!

Migrations & Seeding

What are migrations??

Migrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using knex command line tool.

To learn more about migrations, check out this article on the different types of database migrations!

Creating/Dropping Tables

Verifying my Blockstack ID is secured with the address 13MSkEUNmhEDmNG4phKBNmkBe23FyqAkjM https://explorer.blockstack.org/address/13MSkEUNmhEDmNG4phKBNmkBe23FyqAkjM
@jtwray
jtwray / LICENSE
Created April 26, 2019 19:03 — forked from ourmaninamsterdam/LICENSE
Arrayzing - The JavaScript array cheatsheet
The MIT License (MIT)
Copyright (c) 2015 Justin Perry
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions: