What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-18 23:50:15
slurm submit python job
#!/bin/bash -l ############################## # Job blueprint # ############################## # Give your job a name, so you can recognize it in the queue overview #SBATCH --job-name=example # Define, how many nodes you need. Here, we ask... Add solution -
Javascript 2021-11-18 23:15:25
ipcrenderer main.js
const { app, BrowserWindow, ipcMain } = require("electron"); const path = require("path"); const fs = require("fs"); // Keep a global reference of the window object, if you don't, the window will // be closed automatic... Add solution -
Python 2021-11-15 20:12:16
load python file in jupyter notebook
A text file can be loaded in a notebook cell with the magic command %load. If you execute a cell containing: %load filename.py the content of filename.py will be loaded in the next cell. You can edit and execute it as usual. To save the cell content ba... Add solution -
Shell/Bash 2021-11-13 22:53:15
windows service find command
Note: You need to run the command prompt as an administrator, not just logged in as the administrator, but also with administrative rights. If you get errors above about not having the necessary access rights to stop and/or delete the service, run the com... Add solution -
Shell/Bash 2021-11-13 07:10:10
dos findstr
# EXAMPLE: display the files (within the given folder) that contain the text "+renew" findstr /n /l "+renew" "C:\Users\LongW\*" # SYNTAX # findstr <options-if-any> "<string-to-find>" "<path(s)-... Add solution -
C 2021-11-11 08:44:21
copy file content from one file to other in c
#include <stdio.h>#include <stdlib.h> main(){ char ch, source_file[20], target_file[20]; FILE *source, *target; printf("Enter name of file to copy\n"); gets(source_file); source = fopen(source_file, "r"); if(... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5