Skip to content

Instantly share code, notes, and snippets.

View mryssng's full-sized avatar

mryssng mryssng

View GitHub Profile
@mryssng
mryssng / GestureImageZoomViewController.swift
Last active September 24, 2018 12:30
Gesture Image Zoom View Controller
//
// GestureImageZoomViewController.swift
//
// Created by Ytse Jam on 2017/10/21.
// Copyright © 2017 Ytse Jam. Licensed under MIT.
//
import UIKit
class GestureImageZoomViewController: UIViewController, UIScrollViewDelegate {
@mryssng
mryssng / README.md
Last active May 3, 2018 15:12
Gesture Image Zoom View Controller without UIScrollView

Storyboard

Storyboard

@mryssng
mryssng / ConvertMatToVector.cpp
Last active September 16, 2022 04:27
Convert cv::Mat to std::vector in OpenCV
// https://stackoverflow.com/questions/26681713/convert-mat-to-array-vector-in-opencv
std::vector<uchar> array;
if (mat.isContinuous()) {
array.assign((uchar*)mat.datastart, (uchar*)mat.dataend);
} else {
for (int i = 0; i < mat.rows; ++i) {
array.insert(array.end(), mat.ptr<uchar>(i), mat.ptr<uchar>(i)+mat.cols);
}
}
@mryssng
mryssng / scatter_plot_matrix.md
Last active January 23, 2021 16:31
Scatter Plot Matrix by pandas

Scatter Matrix

Scatter Matrix

# -*- coding: utf-8 -*-
"""
Created on 2020/01/31
Description:
Show digital filters frequency responce.
Based on "Cookbook formulae for audio EQ biquad filter coefficients"
by Robert Bristow-Johnson.
Author: Ytse Jam
Copyright © 2020 Ytse Jam. Licensed under MIT.
"""
@mryssng
mryssng / biquad_filter.py
Last active February 8, 2020 15:33
Implementation of EQ Biquad Filter for python
# -*- coding: utf-8 -*-
"""
Created on 2020/01/31
Description:
Show digital filters frequency responce.
Based on "Cookbook formulae for audio EQ biquad filter coefficients"
by Robert Bristow-Johnson.
Author: Ytse Jam
Copyright © 2020 Ytse Jam. Licensed under MIT.
"""
@mryssng
mryssng / wav_io.py
Last active February 17, 2020 08:55
WAVE file read / write.
# -*- coding: utf-8 -*-
"""
Created on 2020/02/13 
Description: WAVE file read / write.
@author: Jam Ytse
"""
import wave
from scipy import fromstring, int16
@mryssng
mryssng / ProcessStart.cs
Created March 5, 2020 04:16
Start local system process with hide the window.
private void button1_Click(object sender, EventArgs e)
{
// Create instance of System.Diagnostics.Process
var proc = new System.Diagnostics.Process();
// Set path to exe file.
proc.StartInfo.FileName = @"[path to exe]";
// Set argument of exe
proc.StartInfo.Arguments = arg;