What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-17 03:55:01
javascript terminal base64 encoder
// Copy the following code into a file.js to parse values from terminal function getBase64(base64) { return Buffer.from(base64).toString('base64'); } console.log(getBase64(process.argv[2])); // In terminal write the following granted nodejs is inst... Add solution -
Javascript 2022-03-17 02:05:02
redux action to hit api and assign data in stateless component
export function fetchProducts() { return dispatch => { dispatch(fetchProductsBegin()); return fetch("/products") .then(handleErrors) .then(res => res.json()) .then(json => { dispatch(fetchProductsSucc... Add solution -
Javascript 2022-03-16 22:45:14
nodejs gitignore
# Logs logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* # Diagnostic reports (https://nodejs.org/api/report.html) report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json # Runtime data pids *.pid *.seed *.pid.lock # Directory for instrumented... Add solution -
Python 2022-03-16 18:00:14
django import json
""" Import json data from URL to Datababse """ import requests import json from import_data.models import Movie #Import your model here from django.core.management.base import BaseCommand from datetime import datetime IMPOR... Add solution -
Javascript 2022-03-16 15:50:09
javascript particles js not working
<div id="particles-js"></div> <script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script> <script> particlesJS.load('particles-js', 'particles.json', function(){ co... Add solution