Remember, Xmx corresponds to max heap and Xms corresponds to starting heap. It can be an optimization to set these equal.
bootRun {
jvmArgs = ['-Xmx1g']
}
| // ref: https://www.baeldung.com/java-aes-encryption-decryption | |
| import java.util.* | |
| import javax.crypto.Cipher | |
| import javax.crypto.spec.IvParameterSpec | |
| import javax.crypto.spec.SecretKeySpec | |
| fun decrypt(algorithm: String, cipherText: String, key: SecretKeySpec, iv: IvParameterSpec): String { | |
| val cipher = Cipher.getInstance(algorithm) |
| package des.c5inco.cardswipecompose | |
| import androidx.compose.animation.core.* | |
| import androidx.compose.animation.splineBasedDecay | |
| import androidx.compose.foundation.background | |
| import androidx.compose.foundation.gestures.awaitFirstDown | |
| import androidx.compose.foundation.gestures.verticalDrag | |
| import androidx.compose.foundation.layout.* | |
| import androidx.compose.foundation.shape.CircleShape | |
| import androidx.compose.foundation.shape.RoundedCornerShape |
| to check if the server works - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice | |
| stun: | |
| stun.l.google.com:19302, | |
| stun1.l.google.com:19302, | |
| stun2.l.google.com:19302, | |
| stun3.l.google.com:19302, | |
| stun4.l.google.com:19302, | |
| stun.ekiga.net, | |
| stun.ideasip.com, |
| { | |
| // Disable telemetry | |
| "telemetry.telemetryLevel": "off", | |
| // Zen mode | |
| "zenMode.fullScreen": false, | |
| "zenMode.hideTabs": true, | |
| "zenMode.centerLayout": false, | |
| // Theming | |
| "workbench.iconTheme": "city-lights-icons-vsc", | |
| "editor.fontFamily": "Dank Mono", |
| import {createService} from './movies-service.js'; | |
| export default async (instance) => { | |
| const {Movie} = instance; // mongoose model injected | |
| instance.register(async (instance) => { | |
| // we overwrite for the scope by our service instead | |
| instance.decorate('Movie', createService({model: Movie})); | |
| instance.register(routesPlugin); | |
| }); | |
| } |
| public class SingleAdapter<T> extends RecyclerView.Adapter<SingleAdapter.ViewHolder> { | |
| private static String TAG = SingleAdapter.class.getSimpleName() + " -> "; | |
| /** | |
| * dataset for recyler item | |
| * | |
| * @see ArrayList | |
| * @see List | |
| */ | |
| private List<T> mDataset = new ArrayList<>(); |