What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-01 12:56:25
website blocker python
#Import libraries import time from datetime import datetime as dt #Windows host file path hostsPath=r"C:\Windows\System32\drivers\etc\hosts" redirect="127.0.0.1" #Add the website you want to block, in this list websites=["www.yout... Add solution -
PHP 2021-11-18 07:42:13
Difference between echo and print statement in php
Source link: https://www.programmingquest.com/2019/04/difference-between-echo-and-print.html 1. echo Statement * we can write echo statement with parenthesis like 'echo()' or without parenthesis 'echo'. * In the echo we can pass multiple variable in comm... Add solution -
SQL 2021-11-10 19:59:23
cursor procedure with python mssql get result
#********************************************************************** # FILENAME : CallSPMultiResultSet.py # # DESCRIPTION : # Simple ODBC (pyodbc) example to SELECT data from two tables # via a stored procedure, returning... Add solution -
Python 2021-11-04 17:17:14
arff to csv python
#coding=utf-8import pandas as pddef arff_to_csv (fpath): #Read arff data if fpath.find (". arff")<0: print ("the file is nott .arff file") return f=open (fpath) lines=f.readlines () content=[] for l in lines: content.... Add solution -
Swift 2021-10-19 14:33:08
data binding swift
//In this case we are referring to the property wrapper @Binding in SwiftUI //We want to take this analogies for Bindings //Imagine if I did not bind my coffee cup. If I say filled the new cup, only the new cup will fill and not the original cup //If I d... Add solution -
Other 2021-10-06 21:13:02
commanding ip camera(onvif-ptz-control-python)
#!/usr/bin/python #------------------------------------------------------------------------------- #Test of Python and Quatanium Python-ONVIF with NETCAT camera PT-PTZ2087 #ONVIF Client implementation is in Python #For IP control of PTZ, the camera shoul... Add solution -
C 2021-09-25 13:16:02
lru page replacement algorithm in c
/* This code is contributed by : Tanishq Vyas (github : https://github.com/tanishqvyas ) */ #include <stdlib.h> #include <stdio.h> int main(int argc, char const *argv[]) { int length; int num_frames; printf("Enter the ... Add solution
Best helpers
Ranking is empty