What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-03 16:47:04
wpf combobox filter as you type
private void comboBox_KeyUp(object sender, KeyEventArgs e) { var combobox = (ComboBox)sender; var ctb = combobox.Template.FindName("PART_EditableTextBox", combobox) as TextBox; if (ctb == null) return; if (Keyboard.Modifiers.HasF... Add solution -
Javascript 2021-10-02 18:13:04
discord bot
// Import the discord.js module const Discord = require('discord.js'); // Create an instance of a Discord client const client = new Discord.Client(); /** * The ready event is vital, it means that only _after_ this will your bot start reacting to inform... Add solution -
Java 2021-09-29 04:33:02
Lists - removing with iterator
List<String> names = new ArrayList<>(List.of("John Doe", "Jack Doe", "John Smith")); Iterator<String> it = names.iterator(); while (it.hasNext()) { String name = it.next(); if (name.startsWith("... Add solution -
Javascript 2021-09-27 12:55:06
service worker js example
/* Copyright 2016 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.or... Add solution -
Python 2021-09-26 11:04:04
def get_label(Dir): for nextdir in os.listdir(Dir): if not nextdir.startswith('.'): if nextdir in ['NORMAL']: label = 0 elif nextdir in ['PNEUMONIA']: label = 1 else: label = 2 return nextdir, label
def get_label(Dir): for nextdir in os.listdir(Dir): if not nextdir.startswith('.'): if nextdir in ['NORMAL']: label = 0 elif nextdir in ['PNEUMONIA']: label = 1 else: ... Add solution
Best helpers
Wayne
+5
Abe bubush
+5
Kyle Carlson
+5
Myles
+5
Takje
+5
Trevorj
+5
David
+5
Mitsos
+5
Nuraxi
+5
Ahmed Masud
+5