What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-17 07:35:10
spfx webpart add file to sharepoint list
onDrop = (acceptedFiles) => { //console.log(acceptedFiles); //just one file let file=acceptedFiles[0]; sp.web.lists.getByTitle("TestList").items.add({ Title: "Upload Attachement" }).then(r => { // ... Add solution -
Python 2022-02-16 01:05:03
colab erase recycle bin drive
# credit to Stack Overflow user in the source link from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive from google.colab import auth from oauth2client.client import GoogleCredentials auth.authenticate_user() gauth = GoogleAuth() ga... Add solution -
Python 2022-02-13 11:55:02
facerecognizer python
import face_recognition import os import cv2 KNOWN_FACES_DIR = 'known_faces' UNKNOWN_FACES_DIR = 'unknown_faces' TOLERANCE = 0.6 FRAME_THICKNESS = 3 FONT_THICKNESS = 2 MODEL = 'cnn' # default: 'hog', other one can be 'cnn' - CUDA accelerated (if availa... Add solution -
Javascript 2022-02-12 17:50:04
AngularFireDatabase is not a observable??
// change to valueChanges() constructor(afDb: AngularFireDatabase) { afDb.list('items').subscribe(console.log); } //to constructor(afDb: AngularFireDatabase) { afDb.list<Item>('items').valueChanges().subscribe(console.log); } Add solution -
Shell/Bash 2022-02-11 16:55:02
discord.py bot github
#Discord.py bot github import discord from discord.ext import commands import datetime from urllib import parse, request import re bot = commands.Bot(command_prefix='>', description="This is a Helper Bot") @bot.command() async def ping(ct... Add solution -
Other 2022-02-11 16:30:06
Deleting all files from the cache folder in ionic
this.file.listDir(this.file.cacheDirectory,'org.chromium.android_webview').then((result)=>{ console.log('files in org.chromium.android_webview directory: ', result); console.log('Started deleting files from cache folder!'); ... Add solution -
Java 2022-02-11 11:50:02
spring custom auth frugalis
package com.frugalis; import java.util.ArrayList; import java.util.List; import org.springframework.security.authentication.AuthenticationProvider; import org.springframework.security.authentication.UsernamePasswordAuthenticationToken; impor... Add solution