Skip to content

Instantly share code, notes, and snippets.

View noirmist's full-sized avatar

Jungwoo noirmist

  • HCI Lab
  • Seoul.KR
View GitHub Profile
@noirmist
noirmist / generate-magenta-sound-font.rb
Created January 15, 2025 04:19 — forked from Guseyn/generate-magenta-sound-font.rb
generate-magenta-sound-font
#!/usr/bin/env ruby
#
# JavaScript Soundfont Builder for MIDI.js
# Author: 0xFE <[email protected]>
# edited by Valentijn Nieman <[email protected]>
#
# Requires:
#
# FluidSynth
# Lame
@noirmist
noirmist / ReaperInstallGuide.md
Created October 20, 2024 06:42
Installing Reaper on Ubuntu 22.04 LTS

Installing Reaper on Ubuntu 22.04 LTS

The best way to install the Reaper digital audio workstation on Linux is to install the included script. You’ll have to download the Reaper DAW program files from the internet to start.

After downloading the latest Reaper DAW files to your computer, you’ll have to extract the contents of the TarXZ archive using the tar command.

tar xvf reaper646_linux_x86_64.tar.xz

Once the extraction process is complete, you must create a folder named Reaper in your home directory using the mkdir command.

@noirmist
noirmist / BUILD
Created June 26, 2020 07:47 — forked from eknight7/BUILD
Multi-Hand Tracking via Live Webcam on CPU on Desktop: Shows how to extract landmarks on desktop.
// Copyright 2019 The MediaPipe Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
Download Google Drive files with WGET
Example Google Drive download link:
https://docs.google.com/open?id=[ID]
To download the file with WGET you need to use this link:
https://googledrive.com/host/[ID]
Example WGET command:
@noirmist
noirmist / safepass.js
Created August 28, 2019 06:38 — forked from kde713/safepass.js
국민대학교 안전교육 이수 스크립트 (2019.03.11 동작확인)
var currentPage = nowPageNum;
function goNextPage() {
if (currentPage <= totalPageNum) {
opener.PageMove2019AfterVersion(currentPage);
console.log(`${currentPage} 페이지를 수강완료했습니다.`);
currentPage += 1;
setTimeout(function() {
goNextPage();
}, 1000);
@noirmist
noirmist / collate.py
Created March 5, 2019 04:44 — forked from rkaplan/collate.py
PyTorch example of a custom collate function that uses shared memory when appropriate
import functools
def my_collate(batch, use_shared_memory=False):
r"""Puts each data field into a tensor with outer dimension batch size"""
error_msg = "batch must contain tensors, numbers, dicts or lists; found {}"
elem_type = type(batch[0])
if isinstance(batch[0], torch.Tensor):
out = None
if use_shared_memory:
@noirmist
noirmist / install-packages.sh
Created June 24, 2018 05:48 — forked from Musinux/install-packages.sh
VNC xstartup for unity
#!/bin/bash
sudo apt-get install vnc4server ubuntu-desktop
sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip
# Unzip
unzip protoc-3.2.0-linux-x86_64.zip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
# Move protoc3/include to /usr/local/include/
@noirmist
noirmist / cvimg.py
Created December 5, 2017 14:49 — forked from tonmoay/cvimg.py
Template matching using OpenCV python. This code gets a real time frame from webcam & matches with faces in 'images' folder. After the lookup, it rectangles the webcam face & says with which face the webcam face matches
import cv2
from matplotlib import pyplot as plt
import numpy as np
cap = cv2.VideoCapture(0) #Webcam Capture
while(True):
ret, frame = cap.read()
@noirmist
noirmist / LMDB_val_patches.txt
Created October 17, 2017 06:56 — forked from bearpaw/LMDB_val_patches.txt
Read LMDB in python
./cache/flic_win/LMDB/LMDB_val_patches/casino-royale-00039871_00000001_000001.jpg 1
./cache/flic_win/LMDB/LMDB_val_patches/casino-royale-00039871_00000001_000002.jpg 1823
./cache/flic_win/LMDB/LMDB_val_patches/casino-royale-00039871_00000001_000003.jpg 2903
./cache/flic_win/LMDB/LMDB_val_patches/casino-royale-00039871_00000001_000004.jpg 4470
./cache/flic_win/LMDB/LMDB_val_patches/casino-royale-00039871_00000001_000005.jpg 4698
./cache/flic_win/LMDB/LMDB_val_patches/casino-royale-00039871_00000001_000006.jpg 4797
./cache/flic_win/LMDB/LMDB_val_patches/casino-royale-00039871_00000001_000007.jpg 4917
./cache/flic_win/LMDB/LMDB_val_patches/casino-royale-00039871_00000001_000008.jpg 5072
./cache/flic_win/LMDB/LMDB_val_patches/casino-royale-00039871_00000001_000009.jpg 5177
./cache/flic_win/LMDB/LMDB_val_patches/casino-royale-00039871_00000001_000010.jpg 5271