What do you want to save?
Add Code snippet
New code examples
-
Python 2021-08-28 04:51:01
fibonacci series print
# Program to display the Fibonacci sequence up to n-th term nterms = int(input("How many terms? ")) # first two terms n1, n2 = 0, 1 count = 0 # check if the number of terms is valid if nterms <= 0: print("Please enter a positive in... Add solution -
Other 2021-08-28 03:28:02
capturing-video-from-two-cameras-in-opencv-at-once
import cv2 import threading class camThread(threading.Thread): def __init__(self, previewName, camID): threading.Thread.__init__(self) self.previewName = previewName self.camID = camID def run(self): print("St... Add solution -
Python 2021-08-28 02:15:02
gaussian elimination python without library
# Importing NumPy Library import numpy as np import sys # Reading number of unknowns n = int(input('Enter number of unknowns: ')) # Making numpy array of n x n+1 size and initializing # to zero for storing augmented matrix a = np.zeros((n,n+1)) # Mak... Add solution -
Other 2021-08-28 00:37:02
[core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() "flutter"
void main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(); runApp(MyApp()); } class MyApp extends StatelessWidget { var fsconnect = FirebaseFirestore.instance; myget() async { var d = await fsconnect.col... Add solution -
Swift 2021-08-27 23:22:01
set root view controller ios 13
static func redirectToMainNavRVC(currentVC: UIViewController){ let appDelegate = UIApplication.shared.delegate as! AppDelegate let vc = UIStoryboard(name: appDelegate.storyBoardName, bundle: nil).instantiateViewController(withIdentifier: &... Add solution -
Python 2021-08-27 23:00:02
python nested loop for a 2D list
list = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] for i in range(0, len(list)): # loops over the external list for j in range(0, len(list[i])): # loops over every internal list print(list[i][j], end="\t") # prints the elements of the inner l... Add solution