Skip to content

Instantly share code, notes, and snippets.

View kimdwkimdw's full-sized avatar
🏃‍♂️
Running & Learning

Arthur Kim kimdwkimdw

🏃‍♂️
Running & Learning
View GitHub Profile
import PhotosUI
extension AVAsset {
func videoOrientation() -> (orientation: UIInterfaceOrientation, device: AVCaptureDevice.Position) {
var orientation: UIInterfaceOrientation = .unknown
var device: AVCaptureDevice.Position = .unspecified
let tracks :[AVAssetTrack] = self.tracks(withMediaType: AVMediaType.video)
@kimdwkimdw
kimdwkimdw / whooing-hide-fiugre.user.js
Last active December 10, 2019 08:06 — forked from huntrax11/whooing-hide-fiugre.user.js
whooing-hide-fiugre.user.js
// ==UserScript==
// @name 후잉 hide figures
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 후잉 숫자를 가려드립니다.
// @author Robert Park
// @match https://whooing.com/
// @match https://new.whooing.com/
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @grant none
@kimdwkimdw
kimdwkimdw / Mixamo.js
Created September 18, 2019 06:21 — forked from gnuton/Mixamo.js
Script which downloads all mixamo animations for one character.
// Mixamo Animation downloadeer
// The following script make use of mixamo2 API to download all anims for a single character that you choose.
// The animations are saved with descriptive long names instead of the short ones used by default by mixamo UI.
//
// This script has been written by gnuton@gnuton.org and the author is not responsible of its usage
//
// How to use this script
// 1. Browse mixamo.com
// 2. Log in
// 3. Open JS console (F12 on chrome)
@kimdwkimdw
kimdwkimdw / base.js
Last active August 29, 2015 14:05 — forked from SsonHJ/base.js
function getArticleAfterArticle(article_id)
{
var EndArticle = false;
$.ajax({
url: "/more",
dataType: 'JSON',
data: {
last_article_id : article_id
},

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@kimdwkimdw
kimdwkimdw / gzip.js
Created March 7, 2011 12:51 — forked from kig/gzip.js
TarGZ = function(){};
// Load and parse archive, calls onload after loading all files.
TarGZ.load = function(url, onload, onstream, onerror) {
var o = new TarGZ();
o.onload = onload;
o.onerror = onerror;
o.onstream = onstream;
o.load(url);
return o;