Skip to content

Instantly share code, notes, and snippets.

View BEOKS's full-sized avatar

JAESEONG LEE BEOKS

View GitHub Profile
@BEOKS
BEOKS / BleHelper.kt
Created August 13, 2021 07:02
This gist is for connecting HM-10 Bluetooth Device with BLE(Bluetooth Low Eenergy) mode on Android. Public Reference is little bit complicated, so I made simple Helper Class
package com.example.myapplication
import android.app.Activity
import android.app.Service
import android.bluetooth.*
import android.content.Context
import android.content.pm.PackageManager
import android.widget.Toast
import android.bluetooth.BluetoothAdapter.LeScanCallback
import android.content.Intent
@BEOKS
BEOKS / benchmark.py
Created May 1, 2021 06:02
Simply check torchvision models inference time
import time
import torch
import torch.nn as nn
import torchvision.models as models
from torch.autograd import Variable
if torch.cuda.is_available():
print('Cuda avilable',torch.cuda.get_device_name(0))
else:
print('cuda is not avilable')