Skip to content

Instantly share code, notes, and snippets.

@Jimexist
Jimexist / example.kt
Created September 3, 2023 14:18
Example Kotlin
import java.math.BigDecimal
import java.time.YearMonth
enum class VehicleType {
SUV, Sedan
}
interface CarModel {
val vehicleType: VehicleType
}
@Jimexist
Jimexist / Person.java
Created April 19, 2022 01:08
demo usage of `annotation_metadata' flag
/**
* Autogenerated by Thrift Compiler (0.17.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.anno.test;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.17.0)", date = "2022-04-19")
@Jimexist
Jimexist / Dockerfile
Created April 13, 2022 02:59
ubuntu env to run project loom
FROM ubuntu:focal
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -yq && apt-get install -y wget
RUN wget https://download.java.net/java/early_access/loom/5/openjdk-19-loom+5-429_linux-x64_bin.tar.gz -O /tmp/openjdk-19-loom+5-429_linux-x64_bin.tar.gz && \
echo 'a3105f590d1e112757ba0293805b242323f72993a377175ed83b32fa233a286a /tmp/openjdk-19-loom+5-429_linux-x64_bin.tar.gz' | sha256sum -c - && \
mkdir -p /opt && \
tar xvf /tmp/openjdk-19-loom+5-429_linux-x64_bin.tar.gz -C /opt
@Jimexist
Jimexist / Dockerfile
Created April 13, 2022 02:13
dev env for thrift
FROM ubuntu:bionic
RUN apt-get update -y && \
apt-get install -y automake bison flex g++ git libboost-all-dev libevent-dev libssl-dev libtool make pkg-config \
default-jdk
WORKDIR /opt/thrift/src
# docker run -v $(pwd):/opt/thrift/src --rm -it thrift
@Jimexist
Jimexist / stacked_lstm_output.ipynb
Created August 16, 2021 14:43
Stacked LSTM Output
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Jimexist
Jimexist / lstm_output.ipynb
Last active August 16, 2021 14:40
LSTM Output Shape
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Jimexist
Jimexist / lstm_cell_output.ipynb
Created August 16, 2021 14:35
LSTMCell Output
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Jimexist
Jimexist / fasterrcnn_resnet50_fpn.ipynb
Created July 27, 2021 14:40
Torch Vision Faster-RCNN with ResNet50 backbone and FPN
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Jimexist
Jimexist / torchvision_AlexNet.ipynb
Created July 27, 2021 14:03
Torch Vision AlexNet Model
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Jimexist
Jimexist / torchvision_GoogLeNet.ipynb
Created July 27, 2021 14:00
Torch Vision GoogLeNet Model
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.