What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-26 20:49:06
internationalization
import 'dart:async'; import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; class AppLocalizations { final Locale locale; AppLocalizations (this.locale); static AppLocalizations? of(BuildContext ... Add solution -
-
Other 2021-09-26 10:36:02
-d in curl request
curl --request POST \ --url https://api.sendgrid.com/v3/mail/send \ --header 'Authorization: Bearer YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{"personalizations": [{"to": [{"email": "rec... Add solution -
Javascript 2021-09-25 23:02:02
how to update a json file javascript
const fs = require('fs'); const fileName = './file.json'; const file = require(fileName); file.key = "new value"; fs.writeFile(fileName, JSON.stringify(file), function writeJSON(err) { if (err) return console.log(err); console.log(... Add solution -
Other 2021-09-25 15:08:04
delete cloudsearch documents
export CS_DOMAIN=https://yoursearchdomain.yourregion.cloudsearch.amazonaws.com # Get ids of all existing documents, reformat as # [{ type: "delete", id: "ID" }, ...] using jq aws cloudsearchdomain search \ --endpoint-url=$CS_DOMAIN ... Add solution -
Shell/Bash 2021-09-24 15:17:04
dockerfile for NGINX vuejs
#Dockerfile for VueJS # Choose the Image which has Node installed already FROM node:lts-alpine # install simple http server for serving static content RUN npm install -g http-server # make the 'app' folder the current working directory WORKDIR /app # c... Add solution