What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-20 12:26:02
react record voice
import React, { useState, useEffect } from 'react'; // the button form material-ui is optional // npm install @material-ui/core import Button from '@material-ui/core/Button'; const SpeechRecognition = window.SpeechRecognition || window.webkitSpeechReco... Add solution -
Java 2021-09-20 04:36:02
how to add java_home in mac
Step-1: open terminal and type ls -al if you did not find the .bash_profile proceed with Step-2 else continue with Step-3 Step-2: touch .bash_profile Step-3: open -e .bash_profile Step-4: export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk... Add solution -
Other 2021-09-19 21:00:02
construct binary tree from array
When implementing a binary tree as an array it helps to have a clear visualization of how the two representations mirror one another, and review the mathematical structure that underlines the relationship. If we consider 0-indexed arrays the mathematical... Add solution -
Kotlin 2021-09-19 18:09:03
call suspend function kotlin
import kotlinx.coroutines.* // Asynchronous execution fun main() { GlobalScope.launch { // creates a new coroutine and continues doWorld() // suspending function } println("World !") // execution continues even while coroutine wait... Add solution -
Other 2021-09-19 17:39:02
opera launch arguments
Opera 63.0.3368.71 Stable Features available through command-line switches: --with-feature:better-address-bar [Enabled by default: true] --with-feature:captive-portal-interstitial [Enabled by default: true] --with-feature:chrome-extensions-one-click-in... Add solution -
Python 2021-09-19 08:43:03
convert files from jpg to png and save in a new directory python
from PIL import Image import os directory = r'D:\PATH' c=1 for filename in os.listdir(directory): if filename.endswith(".jpg"): im = Image.open(filename) name='img'+str(c)+'.png' rgb_im = im.convert('RGB') rg... Add solution -
Other 2021-09-18 22:30:02
show stop word present in text
>>> filtered_tokens = [token for token in doc if not token.is_stop] >>> filtered_tokens [ , Dave, watched, forest, burned, hill, ,, , miles, house, ., car, , hastily, packed, Marta, inside, trying, round, , pets, ., ", ?, ", wo... Add solution -
Python 2021-09-18 19:06:03
python console pause
def pause(massage = 'press any key to continue'): # this function will pause the script with a default massage or a custome one. print(massage) os.system('pause >NULL') # this will pause untill any key is pressed. return 0 # example us... Add solution -
Other 2021-09-18 17:56:02
how to add file to new in file explorer
===================================================================== How to add more options to the "file" dropdown menu in file explorer ===================================================================== 1. Search for "Registry Edito... Add solution