What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-13 20:42:03
python launch file
#how to open file with the default application for that file set by the OS import os filename = "PATH_TO_FILE" # EG. "C:\Users\baguette\Downloads\image.png" os.system("open " + shlex.quote(filename)) #MacOS/X os.system(&qu... Add solution -
PHP 2021-09-10 19:11:02
laravel post request page csrf disable
// 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 disable CSRF com... Add solution -
Other 2021-09-06 06:24:03
ncbi protein database
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 -
Other 2021-09-05 23:24:02
Right click on Windows folder and open with Visual Studio Code
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 -
C++ 2021-09-05 12:43:04
taking integer input from file in c++
// io/read-file-sum.cpp - Read integers from file and print sum. // Fred Swartz 2003-08-20 #include <iostream> #include <iomanip> #include <fstream> using namespace std; int main() { int sum = 0; int x; ifstream inFile; ... Add solution -
PHP 2021-09-01 09:26:02
write a script using php telnet to a server
<?php // configuration $file = '/var/log/apache2/access.log'; $ip = '127.'; // start of script $title = "\033[H\033[2K$file"; if (strpos($_SERVER['REMOTE_ADDR'],$ip)!==0) die('Access Denied'); $stream = fopen($file, 'r'); if (!$stream) die(&q... Add solution
Best helpers
Ranking is empty