Skip to content

Instantly share code, notes, and snippets.

import os
import sys
from PIL import Image
import cv2
import numpy as np
import math
from typing import NamedTuple, Tuple
import argparse
from prettytable import PrettyTable
from ultralytics import YOLO
@hinablue
hinablue / Dockerfile
Created April 19, 2024 12:36
Forge Docker
FROM nvidia/cuda:12.3.2-runtime-ubuntu22.04
WORKDIR /app
RUN apt update && apt upgrade -y
RUN apt install -y wget git python3 python3-dev python3-pip python3-venv libgl1 libglib2.0-0 apt-transport-https libgoogle-perftools-dev libgoogle-perftools4 libtcmalloc-minimal4 bc jq
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
RUN useradd -m webui
RUN chown -R webui:webui /app \

Keybase proof

I hereby claim:

  • I am hinablue on github.
  • I am hinablue (https://keybase.io/hinablue) on keybase.
  • I have a public key ASBvGFjdRoKkQkqJ1WzR56ZfP2sd1uwCq6aM2NVXLgcxoQo

To claim this, I am signing this object:

@hinablue
hinablue / Dockerfile
Last active July 2, 2019 12:30
NginxLua
FROM openresty/openresty:alpine
MAINTAINER Hina Chen <hinablue@gmail.com>
WORKDIR /build
# Install Nginx
RUN apk --update add \
nginx \
nginx-mod-http-lua \
nginx-mod-http-lua-upstream
@hinablue
hinablue / server.js
Last active May 29, 2022 00:29
Google Chrome headless sample code
const http = require('http')
const Koa = require('koa')
const CDP = require('chrome-remote-interface')
const PORT = process.argv[2] || 3000
const ADDRESS = process.argv[3] || '0.0.0.0'
const app = new Koa()
@hinablue
hinablue / jquery.plupload.queue.js
Created June 17, 2014 08:24
jQuery.plupload.queue.js
/**
* jquery.plupload.queue.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*/
@hinablue
hinablue / robot.js
Created December 7, 2012 04:17 — forked from bpinto/robot.js
[CAELUM TEAM]Megatron
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.clone();
@hinablue
hinablue / robot.js
Created December 7, 2012 03:48
tt009
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
robot.clone()
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
if(robot.parentId) {
robot.turn(1);
@hinablue
hinablue / robot.js
Created December 6, 2012 02:11
CHACHA
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.rotateCannon(360);
@hinablue
hinablue / directory.txt
Created April 19, 2012 10:00
Test of the socket.io
/home/hinablue/test-socketio
├── test.coffee
├── test.js
├─┬ /views/
│ ├── layout.jade
│ └── index.jade
├── /public/
├─┬ /sass/
│ └── screen.sass
└─┬ /stylesheets/