What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2022-03-12 01:40:01
PYTHON STACK FUNCTION count the valid number of brackets Returns the total number of valid brackets in the string
import sys def error(c, line_number, column_number): print 'Error: unmatched', c, 'line', line_number, 'column', column_number def check(stack, wanted, c, line_number, column_number): if stack[-1] != wanted: error(c, line_number, column_... Add solution -
PHP 2022-03-11 21:45:02
PHP Read Single Character - fgetc()
<?php $myfile = fopen("webdictionary.txt", "r") or die("Unable to open file!"); // Output one character until end-of-file while(!feof($myfile)) { echo fgetc($myfile); } fclose($myfile); ?> Add solution -
Other 2022-02-16 00:35:24
add visual code when click right
Windows Registry Editor Version 5.00 ; Open files [HKEY_CLASSES_ROOT\*\shell\Open with VS Code] @="Edit with VS Code" "Icon"="C:\\Program Files (x86)\\Microsoft VS Code\\Code.exe,0" [HKEY_CLASSES_ROOT\*\shell\Open with VS Cod... Add solution -
Other 2022-02-15 18:35:13
how to create a windows 10 bootable dvd
Step 1: Insert a blank DVD into the optical drive (CD/DVD drive) of your PC. Step 2: Open File Explorer (Windows Explorer) and navigate to the folder where Windows 10 ISO image file is located. Step 3: Right-click on the ISO file and then click Burn d... Add solution -
Shell/Bash 2022-02-02 15:30:25
add open git bash here to context menu
Windows Registry Editor Version 5.00 ; Open files ; Default Git-Bash Location C:\Program Files\Git\git-bash.exe [HKEY_CLASSES_ROOT\*\shell\Open Git Bash] @="Open Git Bash here" "Icon"="C:\\Program Files\\Git\\git-bash.exe" ... Add solution -
Other 2022-02-02 07:46:36
ncbi protein database download
use LWP::Simple;$query = 'chimpanzee[orgn]+AND+biomol+mrna[prop]';#assemble the esearch URL$base = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/';$url = $base . "esearch.fcgi?db=nucleotide&term=$query&usehistory=y";#post the esearch UR... Add solution -
PHP 2022-02-01 23:01:40
laravel disable csrf token
//In laravel 7. Open file \App\Http\Middleware\VerifyCsrfToken.php //Disable for all routes protected $except = [ '*', ]; //Disable for some routes protected $except = [ 'mobile/*', 'news/articles', ]; //I searched for a long time how to dis... Add solution -
PHP 2022-01-23 07:30:21
php append line to file
// LOCK_EX will prevent anyone else writing to the file at the same time // PHP_EOL will add linebreak after each line $txt = "data-to-add"; $myfile = file_put_contents('logs.txt', $txt.PHP_EOL , FILE_APPEND | LOCK_EX); // Second option is this... Add solution
Best helpers
Ranking is empty