What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-05 02:40:02
google sheet api python
from __future__ import print_function import os.path from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request from google.oauth2.credentials import Credentials #... Add solution -
Python 2021-09-04 20:46:04
blockchain private key generator
import ecdsa import random import hashlib b58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' def privateKeyToWif(key_hex): return base58CheckEncode(0x80, key_hex.decode('hex')) def privateKeyToPublicKey(s): sk = ecdsa.Si... Add solution -
Java 2021-09-04 17:33:02
how to create driver object
Driver class: -Driver class is public, has a private constructor and private WebDriver object which named driver, so that no object can be created outside the class. It is also an example for "singleton design pattern". -Webdriver driver is pr... Add solution -
Other 2021-09-03 20:49:01
Generate 10 verification codes of length 4 and print them, e.g.,
#random package to find random integer import random #This method returns a random value of given length #len - parameter determines the length of the random value def random_value(len): result = '' #len decrements with each iteration #Hence... Add solution -
Other 2021-09-03 15:11:03
asp classic connect to database
<% Dim conn Set conn = Server.CreateObject("ADODB.Connection") conn.Open "Provider=SQLOLEDB; Data Source = (local); Initial Catalog = Northwind; User Id = sa; Password=" If conn.errors.count = 0 Then Response.Write "Connec... Add solution -
C# 2021-09-03 07:25:01
ternary operator in c#
/* In C#, if condition is true, the first expression is evaluated and becomes the result; if false, the second expression is evaluated and becomes the result. */ // The syntax of ternary operator is: Condition ? Expression1 : Expression2; // Here... Add solution -
VBA 2021-09-02 22:52:01
excel vba exit for next loop
'In VBA how to exit a For Next loop when a condition 'is met: use Exit For. For i = 1 To 1000 c = c + 1 If c = 750 Then Exit For Next 'Exit For can also be used inside a For Each loop: For Each r In [A1:A10] c = c + c If r.Value = "Hi&qu... Add solution