What do you want to save?
Add Code snippet
New code examples
-
VBA 2022-03-05 11:55:05
excelvba is bit set in 64-bit longlong integer
'Extremely fast VBA function to test if a specified bit is set 'within a 64-bit LongLong integer. 'Bits are numbered from 0 to 63, so the first (least significant) bit 'is bit 0. 'Note: we do not inspect bit 63, the sign bit. 'Note: the LongLong data t... Add solution -
Java 2022-03-03 23:25:02
how to check if an arraylist contains a value in java recursion
public static boolean contains(ArrayList<Integer> list, int value) { return contains(list, value, 0); } private static boolean contains(ArrayList<Integer> list, int value, int idx) { boolean hasInt = false; if... Add solution -
Python 2022-03-03 15:25:06
python traceback single line logging module
import logging class OneLineExceptionFormatter(logging.Formatter): def formatException(self, exc_info): """ Format an exception so that it prints on a single line. """ result = super().for... Add solution -
Python 2022-03-03 05:15:16
random choice without random module
# First let's make a function that makes a random number def randint(a, b): "Return random integer in range [a, b], including both end points." return a + randbelow(b - a + 1) def randbelow(n): "Return a random int in the ran... Add solution
Best helpers
Ranking is empty