Skip to content

Instantly share code, notes, and snippets.

View nearpengju123's full-sized avatar

AllenGair nearpengju123

View GitHub Profile
@nearpengju123
nearpengju123 / AudioManager.cs
Last active August 14, 2018 06:21 — forked from sverrirs/AudioManager.cs
Manage the volume through Windows CoreAudio API, you can get and set the volume of windows
using System;
using System.Runtime.InteropServices;
// ReSharper disable SuspiciousTypeConversion.Global
// ReSharper disable InconsistentNaming
namespace VideoPlayerController
{
/// <summary>
/// Controls audio using the Windows CoreAudio API
/// from: http://stackoverflow.com/questions/14306048/controling-volume-mixer
@nearpengju123
nearpengju123 / secret_garden.py
Created January 27, 2018 15:38 — forked from haojian/secret_garden.py
secret garden
import skimage;
from skimage import data
from skimage.filters import threshold_otsu
from skimage.segmentation import clear_border
from skimage.measure import label
from skimage.morphology import closing, square
from skimage.measure import regionprops
from skimage.color import label2rgb
import cv2
import numpy as np