What do you want to save?
Add Code snippet
New code examples
-
VBA 2022-03-27 20:55:02
excel vba check if all substrings in list are in string
'VBA function to check if ALL of a list of substrings is contained 'within a string: Function AllIn(s$, ParamArray checks()) As Boolean Dim e For Each e In checks If 0 = InStrB(s, e) Then Exit Function Next AllIn = True End Functi... Add solution -
Python 2022-03-27 14:10:11
keras preprocess_input
from tensorflow.keras.applications.resnet50 import ResNet50 from tensorflow.keras.preprocessing import image from tensorflow.keras.applications.resnet50 import preprocess_input, decode_predictions import numpy as np model = ResNet50(weights='imagenet') ... Add solution -
Python 2022-03-27 07:20:02
if else python pandas dataframe
# create a list of our conditions conditions = [ (df['likes_count'] <= 2), (df['likes_count'] > 2) & (df['likes_count'] <= 9), (df['likes_count'] > 9) & (df['likes_count'] <= 15), (df['likes_count'] > 15) ] #... Add solution -
Javascript 2022-03-22 13:20:11
creating room in ws node js
const rooms = {}; wss.on("connection", socket => { const uuid = ...; // create here a uuid for this connection const leave = room => { // not present: do nothing if(! rooms[room][uuid]) return; // if the one exiting is t... Add solution -
Python 2022-03-19 14:00:02
python defining the iterator protocol
class RangeTen: def __init__(self, *args): pass # optional def __iter__(self): '''Initialize the iterator.''' self.count = -1 return self def __next__(self): '''Called for each iteration. Raise StopIteration when done.''' if... Add solution -
SQL 2022-03-18 05:45:27
oracle sql trigger after insert
-- SQL Server (update my_table2 after insert on my_table1) CREATE TRIGGER trigger_name ON my_table1 FOR INSERT AS BEGIN UPDATE my_table2 SET my_col_date = getdate() FROM my_table1 END -- Oracle (insert into log table after update on my_table) CREATE ... Add solution -
Other 2022-03-18 05:05:02
nebular switcher-background-percentage
$nb-enabled-themes: (default); $nb-themes: nb-register-theme(( calendar-active-item-bg: #FFDB06, calendar-selected-item-bg: #FFDB06, checkbox-checked-border-color: #FFDB06, color-fg-highlight: #FFDB06, color-primary: #FFDB06, context-menu-act... Add solution