-
Should add root node
- (BUG) My bug that I see when I try to perform the above test
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
| npm install --save-dev babel-eslint eslint eslint-config-prettier eslint-loader eslint-plugin-prettier eslint-plugin-vue | |
| mkdir .vscode | |
| touch .vscode/settings.json | |
| touch .vscode/extensions.json | |
| echo '{ | |
| "recommendations": ["octref.vetur", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode"] | |
| }' > .vscode/extensions.json |
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
| yarn add -D eslint eslint-config-prettier eslint-plugin-prettier prettier | |
| touch .eslintrc | |
| echo '{ | |
| "extends": [ | |
| "plugin:prettier/recommended" | |
| ], | |
| "parserOptions": { | |
| "ecmaVersion": 2019 |
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
| git checkout tyde | |
| git pull | |
| git checkout -b <tyde-feature-branch> | |
| git cherry-pick <first-commmit-of-feature-branch> | |
| git cherry-pick `git rev-list --reverse --no-merges --first-parent <first-commmit-of-feature-branch>..<feature-branch>` |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| <div> | |
| <h1>Counter</h1> |
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
| class Wallet | |
| def initialize | |
| @money = 0 | |
| end | |
| def add_money!(amount:) | |
| @money += amount | |
| end | |
| def purchase!(amount:) |
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
| /** | |
| * This is what the script outputs given the following two files: | |
| * - content/tokenizer/Tokenizer/Tokenizer.stories.tsx | |
| * - content/framer-magic-motion/LayoutExample/LayoutExample.stories.tsx | |
| */ | |
| import * as LayoutExample from '../_dist-content/framer-magic-motion/components/LayoutExample/LayoutExample.stories' | |
| import * as Tokenizer from '../_dist-content/tokenizer/components/Tokenizer/Tokenizer.stories' | |
| const stories = [ | |
| { name: 'LayoutExample', variants: LayoutExample, postName: 'framer-magic-motion' }, |
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 "server-only"; | |
| import { parse } from "@babel/parser"; | |
| import traverse from "@babel/traverse"; | |
| import * as t from "@babel/types"; | |
| import { generate } from "@babel/generator"; | |
| const SNAPSHOT = "__snapshots"; | |
| export function parseAlgorithm(code: string) { | |
| const ast = parse(code); |
OlderNewer