This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div>{JSON.stringify(objectVariable, null, 4)}</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Because Prisma Client is tailored to your own schema, you need to update it every time your Prisma schema file is changing by running the following command: | |
// npx prisma generate | |
// schema.prisma file is comprised of some admin setup, generator and datasource, and data model definitions | |
// Data model definition includes: | |
// - Models: Defines fields and relationships between models | |
// - Enum: Blocks of type-definitions | |
// - Attributes and functions that change fields and models: e.g. unique, primary_key, autoincrement, etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Last Udpated: 27th April 2021 | |
# https://www.prisma.io/docs/reference/api-reference/command-reference/ | |
# To actually create the tables in your database, you now can use the following command of the Prisma CLI: | |
npx prisma db push --preview-feature | |
# Because Prisma Client is tailored to your own schema, you need to update it every time your Prisma schema file is changing by running the following command: | |
npx prisma generate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- include ./../templates/components/midroll-cta.html -%} | |
Reminding myself the proper file link structure for scaffold components > blog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.App-header { | |
background-color: #282c34; | |
min-height: 100vh; | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
justify-content: center; | |
font-size: calc(10px + 2vmin); | |
color: white; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
/* An 8px variable */ | |
--utility-8: 8px; | |
/* An 24px variable */ | |
--utility-24: 24px; | |
/* Creating an 'auto' size variable */ | |
--utility-auto: auto; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*------ Step One: ------*/ | |
/* Setting a blue hex-code as our variable */ | |
--favourite-blue: #464794; | |
/*------ Step Two: ------*/ | |
/* Making the border of our website blue */ | |
border-color: var(--favourite-blue); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
font-family: | |
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; | |
} | |
h1 { | |
font-size: 28px; | |
} | |
h2 { | |
font-size: 26px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = new XMLHttpRequest(); | |
a.addEventListener('readystatechange', function(r) { | |
if (r.target.status === 200) { | |
console.log(r.target.response); | |
} | |
}); | |
a.open('GET', 'https://api.github.com/users/jasontcrabtree', true); | |
a.send(); |
NewerOlder