What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-01 22:31:02
web3-react readonly provider error fix
import { StrictMode, Component } from 'react' import { createWeb3ReactRoot, Web3ReactProvider } from '@web3-react/core' import * as uniwallet from 'uni-wallet-connect' import '../styles/global.css' import '@reach/dialog/styles.css' // TODO fix this class... Add solution -
Javascript 2021-10-01 09:47:04
in angular how to get router url without query params
constructor(private activatedRoute: ActivatedRoute) { this.activatedRoute.queryParams.subscribe(params => { let date = params['startdate']; console.log(date); // Print the parameter to the console. }); } Add solution -
Javascript 2021-09-30 16:45:03
threejs tube shape geometry
class CustomSinCurve extends THREE.Curve { constructor(scale) { super(); this.scale = scale; } getPoint(t) { const tx = t * 3 - 1.5; const ty = Math.sin(2 * Math.PI * t); const tz = 0; return new THREE.Vector3(tx, ty, tz).mul... Add solution -
Javascript 2021-09-30 06:52:02
node js class
// Improved formatting of Spotted Tailed Quoll's answer class Person { constructor(name, age) { this.name = name; this.age = age; } introduction() { return `My name is ${name} and I am ${age} years old!`; } } let john = new Person("John Sm... Add solution -
Javascript 2021-09-28 11:33:04
behaviorsubject in angular 10
@Injectable() export class TodoService { private _todos = new BehaviorSubject<Todo[]>([]); private baseUrl = 'https://56e05c3213da80110013eba3.mockapi.io/api'; private dataStore: { todos: Todo[] } = { todos: [] }; readonly todos = this._todo... Add solution
Best helpers
Ranking is empty