What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-30 06:18:05
binary search tree
// Binary Search Tree operations in C #include <stdio.h> #include <stdlib.h> struct node { int key; struct node *left, *right; }; // Create a node struct node *newNode(int item) { struct node *temp = (struct node *)malloc(sizeof(struc... Add solution -
Java 2021-09-29 19:01:06
capacitor-android. Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project
1- close the project 2- close Android Studio IDE 3- delete the .idea directory 4- delete all .iml files 5- open Android Studio IDE and import the project Answer from here Add solution -
Javascript 2021-09-28 21:54:07
firestore javascript delete document
// define document location (Collection Name > Document Name > Collection Name >) var docRef = Firebase.firestore().collection("Rooms").doc("bsYNIwEkjP237Ela6fUp").collection("Messages"); // delete the document docR... Add solution -
Shell/Bash 2021-09-28 09:05:03
remove windows folder from old drive
Open a command line as administrator and copy these lines one by one: Note: replace the folder address to the folder you want to remove takeown /F "Z:\Program Files" /A /R /D Y icacls "Z:\Program Files" /T /grant administrators:F rd... Add solution -
Shell/Bash 2021-09-27 16:51:02
git get latest
Case 1: Don’t care about local changes Solution 1: Get the latest code and reset the code git fetch origin git reset --hard origin/[tag/branch/commit-id usually: master] Solution 2: Delete the folder and clone again :D rm -rf [project_folder] git... Add solution -
Other 2021-09-25 15:08:04
delete cloudsearch documents
export CS_DOMAIN=https://yoursearchdomain.yourregion.cloudsearch.amazonaws.com # Get ids of all existing documents, reformat as # [{ type: "delete", id: "ID" }, ...] using jq aws cloudsearchdomain search \ --endpoint-url=$CS_DOMAIN ... Add solution -
Python 2021-09-25 09:41:06
django runpython
from django.db import migrations def forwards_func(apps, schema_editor): # We get the model from the versioned app registry; # if we directly import it, it'll be the wrong version Country = apps.get_model("myapp", "Country"... Add solution -
TypeScript 2021-09-24 21:21:05
==> restfulapi: Booting VM... There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.
//==> restfulapi: Booting VM... //There was an error while executing `VBoxManage`, a CLI used by Vagrant //for controlling VirtualBox. The command and stderr is shown below. 1 - Go to the VirtualBox and delete the VM 2 - On your project delete de .vag... Add solution