What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-09-13 07:54:04
crontab format
# Example of job definition: # .---------------- minute (0 - 59) # | .------------- hour (0 - 23) # | | .---------- day of month (1 - 31) # | | | .------- month (1 - 12) OR jan,feb,mar,apr ... # | | | | .---- weekday (0 - 6) (Sunday=0 or 7) OR s... Add solution -
Python 2021-09-12 04:13:03
python time function duration and memory usage
import time import resource time_start = time.perf_counter() # insert code here ... time_elapsed = (time.perf_counter() - time_start) memMb=resource.getrusage(resource.RUSAGE_SELF).ru_maxrss/1024.0/1024.0 print ("%5.1f secs %5.1f MByte" % (tim... Add solution -
PHP 2021-09-11 12:50:02
validation not exists with this id laravel
$e = Subscription::find($request->subscription_id); $rules = [ 'subscription_id' => 'required|integer|exists:subscriptions,id', 'date' => 'required|date|after:yesterday', 'date' => Rule::unique('member_attendances')->where(function ($... Add solution -
C 2021-09-11 06:00:02
The number of repeated letters in two words
#include <stdio.h> #include<string.h> int main(void) { int n,m,i,j,d; char tab1[100],tab2[100]; printf("enter the first word :"); gets(tab1); printf("enter the second word :"); gets(tab2); n=strlen(tab1); m=... Add solution -
Javascript 2021-09-10 01:25:05
gps nodejs
var gps = require("gps-tracking"); var options = { 'debug' : true, &nb... Add solution -
SQL 2021-09-09 17:24:02
sql server restore database
--Step 1: Check the logical file names with the help of the following command: RESTORE FILELISTONLY FROM DISK = 'E:\DBBackups\mydb.bak' --Step 2: Use the logical names you get from the above query in the below query: RESTORE DATABASE [mydb_new] ... Add solution