What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-28 03:35:55
Java
//create ArrayList ArrayList<String> arrayList = new ArrayList<String>(); //add item to ArrayList arrayList.add("item"); //check if ArrayList contains item (returns boolean) System.out.println(arrayList.contains("item")); /... Add solution -
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 -
Other 2022-03-27 20:25:14
bootstrap popover on dynamic element
<!-- Bootstrap 5 Popovers --> <button type="button" class="btn btn-lg btn-danger" data-bs-toggle="popover" title="Popover title" data-bs-content="And here's some amazing content. It's ve... Add solution -
Javascript 2022-03-27 20:15:07
bootstrap validator password and confirm password
//Declarative Usage <form id="identicalForm" class="form-horizontal" data-bv-feedbackicons-valid="glyphicon glyphicon-ok" data-bv-feedbackicons-invalid="glyphicon glyphicon-remove" data-bv-feedbackico... Add solution -
TypeScript 2022-03-27 19:30:45
typescript promise
new Promise<boolean>((res, rej) => { res(true); }) .then(res => { console.log(res); return false; }) .then(res => { console.log(res); return true; }) .then(res => { console.log(res); }) .catch(error => { console.lo... Add solution -
Other 2022-03-27 18:05:25
booklet series formula
' VBA Booklet series formula Function PAGINATE(intItemNo As Integer, intNumItems As Integer, Optional intPerPage As Integer = 8) If intItemNo > intNumItems Then PAGINATE = 0: Exit Function ' This creates booklet series formula Dim nP As Int... Add solution