Skip to content

Instantly share code, notes, and snippets.

View mcsmonk's full-sized avatar

Sunghyun Jin mcsmonk

View GitHub Profile
@mcsmonk
mcsmonk / change-picname-exif.py
Last active May 6, 2023 05:21
rename picture image file into YYYYMMDD_HHMMSS format using exif
"""
2023.03.16
rename picture image file into YYYYMMDD_HHMMSS format using exif
All comments and almost the code is made by ChatGPT 3.5
사진이 찍힌 시간을 이용하여 파일명을 (YYYYMMDD_HHMMSS)형태로 수정하는 코드
chatGPT 3.5를 이용해 만든 코드를 약간 수정함
주석도 전부 ChatGPT가 작성함
"""
@mcsmonk
mcsmonk / arm64-on-Win10-x64.md
Created April 5, 2022 23:41 — forked from paranlee/arm64-on-Win10-x64.md
ARM64 Linux on Win10 x64

Below are the steps to get an ARM64 version of Ubuntu running in the QEMU emulator on Windows 10.

Install QEMU

Install for Windows from choco package manager

choco install qemu -confirm

Check appending Window System PATH C:\Program Files\qemu applied.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@mcsmonk
mcsmonk / savemat7.3.py
Created February 14, 2020 06:52
save mat v7.3 in python
#!/usr/bin/env python
# coding: utf-8
import hdf5storage
import numpy as np
arr = np.array([1,2,3,4,5], dtype=np.double)
matfiledata = dict([('arr', arr)])
hdf5storage.write(matfiledata, '.', 'example.mat', matlab_compatible=True)
@mcsmonk
mcsmonk / Output
Created March 4, 2019 01:52 — forked from macournoyer/Output
A Neural Network framework in 25 LOC
$ python xor.py
Training:
Epoch 0 MSE: 1.765
Epoch 100 MSE: 0.015
Epoch 200 MSE: 0.005
* Target MSE reached *
Evaluating:
1 XOR 0 = 1 ( 0.904) Error: 0.096
0 XOR 1 = 1 ( 0.908) Error: 0.092
1 XOR 1 = 0 (-0.008) Error: 0.008
@mcsmonk
mcsmonk / scraper.py
Last active August 29, 2015 14:18 — forked from cornchz/scraper.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from gevent import monkey; monkey.patch_all()
import re
from urlparse import urljoin
from gevent.pool import Pool
import requests