You should install Electron Fiddle.
Please clone and install the dependencies for the following respositories:
| import path from 'path'; | |
| import talkback from 'talkback'; | |
| // If dev server is started with: | |
| // OPENAI_BASE_URL=http://localhost:3001/v1/ npm start | |
| if (process.env.OPENAI_BASE_URL?.startsWith('http://localhost')) { | |
| const {port} = new URL(process.env.OPENAI_BASE_URL); | |
| const talkbackServer = talkback({ | |
| host: 'https://api.openai.com', |
| module.exports = { | |
| extends: [ | |
| 'eslint:recommended', | |
| 'plugin:react/recommended', | |
| 'plugin:@typescript-eslint/recommended', | |
| 'plugin:react-hooks/recommended', | |
| 'plugin:jsx-a11y/recommended', | |
| 'plugin:prettier/recommended', | |
| ], | |
| parser: '@typescript-eslint/parser', |
You should install Electron Fiddle.
Please clone and install the dependencies for the following respositories:
| title | category | date |
|---|---|---|
Delete a Git branch both locally and remotely [Shell aliases + functions] |
Shell, Git |
2018-09-24 |
Deleting a git branch locally is pretty easy, just do a git branch -D branch_name and you're done. But when you have pushed that branch to remote, it becomes a bit more complex. You can't just delete the local branch and do a git push. Instead you have to do a git push origin --delete branch_name to delete it from the remote.
| class Spiderman { | |
| lookOut() { | |
| alert('My Spider-Sense is tingling.'); | |
| } | |
| } | |
| let miles = new Spiderman(); | |
| miles.lookOut(); |
| const exampleMachine = Machine({ | |
| id: 'example', | |
| initial: 'init', | |
| context: { | |
| count: 0 | |
| }, | |
| states: { | |
| init: { | |
| on: { | |
| START: { |
| function getWatchers(root) { | |
| root = angular.element(root || document.documentElement); | |
| var watcherCount = 0; | |
| function getElemWatchers(element) { | |
| var isolateWatchers = getWatchersFromScope(element.data().$isolateScope); | |
| var scopeWatchers = getWatchersFromScope(element.data().$scope); | |
| var watchers = scopeWatchers.concat(isolateWatchers); | |
| angular.forEach(element.children(), function (childElement) { | |
| watchers = watchers.concat(getElemWatchers(angular.element(childElement))); |