What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-03-27 10:20:12
why exceptions can lead to memory leaks
//If an exception is raised between allocation and deallocation, memory leak will occur. void f1() { int* ptr = new int; // do something which may throw an exception // we never get here if an exception is thrown delete ptr; } Add solution -
Shell/Bash 2022-03-27 09:45:49
terraform env variables
#Terraform Environment Variables:- export TF_CLI_CONFIG_FILE="$HOME/.terraformrc-custom" export TF_INPUT=0 export TF_LOG_PATH=./terraform.log export TF_LOG=TRACE TF_CLI_ARGS="-input=false" terraform apply -force is the equivalent to ... Add solution -
Python 2022-03-27 09:45:35
header imitate python
import requests url = 'http://www.ichangtou.com/#company:data_000008.html' headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'} response = requests.get(url, ... Add solution -
Python 2022-03-27 08:55:24
print colored text python on terminal
import colorama from colorama import Fore, Back, Style colorama.init(autoreset=True) print('\033[31m' + 'some red text') print('\033[39m') # and reset to default color print() print(f"{Fore.RED}C{Fore.GREEN}O{Fore.YELLOW}L{Fore.BLUE}O{Fore.MAGENTA}... Add solution -
C 2022-03-27 07:35:09
Multi Select with icons htm;
<select title="Select your surfboard" class="selectpicker"> <option>Select...</option> <option data-thumbnail="images/icon-chrome.png">Chrome</option> <option data-thumbnail="images... Add solution -
Other 2022-03-27 07:25:32
adding redirect_uri in octorate testing
In the following example you will find a param that is called redirect_uri, that uri needs to be whitelisted from Octorate. So write [email protected] asking for add the page you can host on your website. This step in mandatory to go in producti... Add solution