What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-14 00:18:02
React microphone
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 -
Other 2021-09-13 23:00:02
como poner foto en redondo android studio
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //extraemos el drawable en un bitmap Drawable originalDrawable = getResources().getDraw... Add solution -
Java 2021-09-13 17:53:03
java generic type method
// generic methods public <T> List<T> fromArrayToList(T[] a) { return Arrays.stream(a).collect(Collectors.toList()); } public static <T, G> List<G> fromArrayToList(T[] a, Function<T, G> mapperFunction) { retur... Add solution -
Javascript 2021-09-13 12:18:02
Removing duplicates in an Array of Objects
let person = [{name: "john"}, {name: "jane"}, {name: "imelda"}, {name: "john"}]; function removeDuplicates(data, key) { return [ ...new Map(data.map(item => [key(item), item])).values() ] }; console... Add solution -
C# 2021-09-13 11:22:03
c# open config file by path
System.Configuration.ConfigurationFileMap fileMap = new ConfigurationFileMap("Z:\Settings\appSettings.config"); //Path to your config file System.Configuration.Configuration configuration = System.Configuration.ConfigurationManager.OpenMapped... Add solution
Best helpers
Ranking is empty