This file contains hidden or 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
| https://polyfill.io/v3/polyfill.js?features=Element.prototype.classList%2Cdocument.querySelector%2CNode.prototype.contains%2CElement.prototype.remove%2Cdocument%2CNumber.MAX_SAFE_INTEGER%2CNumber.MIN_SAFE_INTEGER |
This file contains hidden or 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
| wp_register_script('name', 'path/to/script.js'); | |
| $array = array( | |
| 'poop' => 'yes, please', | |
| 'pee' => 'would prefer poop' | |
| ); | |
| wp_localize_script('name', 'js_object_name', $array); | |
This file contains hidden or 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
| # Install dependencies | |
| FROM node:16 AS dependencies | |
| WORKDIR /app | |
| COPY package.json yarn.lock ./ | |
| RUN yarn install --frozen-lockfile | |
| # Run yarn build | |
| FROM node:16 AS builder | |
| WORKDIR /app | |
| COPY --from=dependencies /app/node_modules ./node_modules |
This file contains hidden or 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
| // Import the required packages | |
| import NextAuth, { NextAuthOptions } from 'next-auth'; | |
| import { JWT } from 'next-auth/jwt'; | |
| import jwt_decode from 'jwt-decode'; // Used for decoding the accessToken in account | |
| // Define the types for the profile | |
| interface ProfileProps { | |
| aud: string; | |
| iss: string; | |
| iat: number; |
This file contains hidden or 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
| { | |
| "domain": "messages", | |
| "locale_data": { | |
| "messages": { | |
| "": { | |
| "domain": "messages" | |
| }, | |
| "This block contains unexpected or invalid content.": [ | |
| "Poop, this block sucks now" | |
| ] |
This file contains hidden or 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
| sudo apt update | |
| sudo apt install -y \ | |
| git cmake build-essential \ | |
| libgl1-mesa-dev libglm-dev \ | |
| libpulse-dev libfreetype6-dev \ | |
| libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev \ | |
| libxi-dev | |
| cd ~ |
OlderNewer