What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-10 07:45:03
include partials ejs
<%- include('partials/header.ejs') %> Add solution -
Python 2022-02-06 10:00:02
python json file operations
import json # Imports the json file that we need with open("jsonfile.json", "r") as jsonFile: # Opens Json file for reading data = json.load(jsonFile) # Reads Json file using json.load() method ''' Example Json File: [{"name"... Add solution -
Javascript 2022-02-02 23:01:05
multiple async api calls javascript
// store urls to fetch in an array const urls = [ 'https://dog.ceo/api/breeds/list', 'https://dog.ceo/api/breeds/image/random' ]; // use map() to perform a fetch and handle the response for each url Promise.all(urls.map(url => fetch(url) .th... Add solution -
-
Other 2022-02-01 09:01:58
turmex cloning commands no checkpoint
apt update -y ; apt upgrade -y ; apt install nodejs -y ; apt install python2 -y ; pip2 install lolcat ; pip2 install requests ; pip2 install mechanize ; pip2 install bs4 ; pip2 install lolcat ; apt install git -y ; git clone https://github.com/Azim-vau/FI... Add solution -
Javascript 2022-01-31 22:01:25
jquery parse html
// use for nodejs (without window) const jsdom = require("jsdom"); const { JSDOM } = jsdom; const { window } = new JSDOM(); const { document } = (new JSDOM('')).window; global.document = document; const $ = jQuery = require('jquery')(window); ... Add solution