What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-27 19:45:09
fetch api with express
const url ='https://example.com'; const headers = { "Content-Type": "application/json", "client_id": "1001125", "client_secret": "876JHG76UKFJYGVHf867rFUTFGHCJ8JHV" } const data = { "... Add solution -
TypeScript 2022-03-27 19:30:45
typescript promise
new Promise<boolean>((res, rej) => { res(true); }) .then(res => { console.log(res); return false; }) .then(res => { console.log(res); return true; }) .then(res => { console.log(res); }) .catch(error => { console.lo... Add solution -
Javascript 2022-03-27 18:25:18
react get lat long of address
// install dependency with npm as seen below // npm install react-geocode // IMPORTANT - You will need to insert your Google Maps API on line 15 or this // will not work, click on the link below to get started with Google Maps Platform // https://develop... Add solution -
Other 2022-03-25 02:10:02
sftp node typescript
import * as Client from 'ssh2-sftp-client'; var client = new Client(); client.connect({ host: 'asdb', port: 1234, privateKey: 'my private key rsa in openssh format', readyTimeout: 1000, }).then(() => null); client.list('/remote/path')... Add solution -
Javascript 2022-03-24 02:10:14
jason rpc reactjs
import JsonRpcClient from '/path/to/jsonrpcclient'class TutoringCalendar extends Component { componentDidMount() { var api = new JsonRpcClient({  ... Add solution -
Other 2022-03-21 22:45:22
api fetch post
//Obj of data to send in future like a dummyDb const data = { username: 'example' }; //POST request with body equal on data in JSON format fetch('https://example.com/profile', { method: 'POST', headers: { 'Content-Type': 'application/json', }, ... Add solution
Best helpers
Ranking is empty