Add this to webstorm under Editor > Live Templates
Add a variable
TM_FILENAME_BASE -> capitalize(camelCase(fileNameWithoutExtension()))
| import React from 'react'; | |
| import { BehaviorSubject } from 'rxjs'; | |
| import { useObservable } from 'react-use'; | |
| const subject = new BehaviorSubject(1); | |
| const useSubjectState = (subject) => [useObservable(subject), (value) => subject.next(value)] | |
| const Increment = () => { | |
| const [state, setState] = useSubjectState(subject); |
| import { toUrlString } from "./to-url-string"; | |
| describe("toUrlString", () => { | |
| it("should transform a basic url", () => { | |
| expect(toUrlString({ path: "/people" })).toEqual("/people"); | |
| }); | |
| it("should transform a colon parameterised url", () => { | |
| expect(toUrlString({ path: "/people/:id", params: { id: 1 } })).toEqual("/people/1"); | |
| }); |
Code implementation of the following guide for implementing the algorithm
https://isaaccomputerscience.org/concepts/dsa_search_dijkstra
Create a new VM using the Centos 8 Latest ISO https://www.centos.org/download/
Swap to a sudo interactive session
sudo -i| import React from "react"; | |
| import styled from "styled-components"; | |
| const Scene = styled.div` | |
| flex: auto; | |
| display: grid; | |
| grid-template-rows: 48px auto; | |
| overflow: hidden; | |
| & > div, |
To Display the current git commit hash execute the following snipped:
git rev-parse --short HEADTo Extract this to use in a Jenkinsfile use the sh function with the script and returnStdout parameter set to true:
def commitHash = sh(script: 'git rev-parse --short HEAD', returnStdout: true)| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class Movement : MonoBehaviour | |
| { | |
| [SerializeField] public float speed = 1f; | |
| private List<Transform> waypoints = new List<Transform>(); |