What do you want to save?
Add Code snippet
New code examples
-
Java 2021-08-28 15:00:04
swagger
● Swagger is an open-source software framework backed by a large ecosystem of tools that helps developers design, build, document, and consume RESTful Web services. ● Swagger allows you to describe the structure of your APIs so that machines can read ... Add solution -
Shell/Bash 2021-08-28 14:58:02
apt install php
# Update packages lists sudo apt update # Install Apache2 (on Ubuntu, mostly it's already installed) sudo apt install apache2 # Install the latest version of PHP and Apache wrapper sudo apt install php libapache2-mod-php # Install some important PHP ex... Add solution -
Shell/Bash 2021-08-28 14:37:03
npm install dev dependencies only
# install as devDependency npm install <package-name> --save-dev # install as normal dependency npm install <package-name> --save # install all devDependencies listed in package.json npm install --only=dev # install all normal dependencies ... Add solution -
Shell/Bash 2021-08-28 13:40:01
how to know namespace is present or not in kubernetes shell script
#!/bin/bash namespaceStatus=$(kubectl get ns nightlybuild-test -o json | jq .status.phase -r) if [ $namespaceStatus == "Active" ] then echo "namespace is present" else echo "namespace is not present" Add solution -
Shell/Bash 2021-08-28 10:06:01
setting up C# project with VSCode
# Setting up C# project with VSCode: # 1. Open File Explorer and create a folder on your disk, then select the # file path and to open the Command Prompt at the current path, type: cmd # (For the purpose of this guide, the folder is called 'MyFol... Add solution -
Python 2021-08-28 06:03:01
json.stringify equivalent in python
import json json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}]) '["foo", {"bar": ["baz", null, 1.0, 2]}]' print(json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True)) {"a": 0, "b&... Add solution
Best helpers
Ranking is empty