Skip to content

Instantly share code, notes, and snippets.

View tucan9389's full-sized avatar
🎯
Focusing

tucan9389 tucan9389

🎯
Focusing
View GitHub Profile
@tucan9389
tucan9389 / getTitle.js
Last active October 5, 2019 10:05
Get conf session titles from html page
// https://stackoverflow.com/questions/1140402/how-to-add-jquery-in-js-file
// If need
var script = document.createElement('script');
script.src = 'https://code.jquery.com/jquery-3.4.1.min.js';
script.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(script);
// at https://skillsmatter.com/conferences/9319-ioscon-2018-the-conference-for-ios-and-swift-developers#program
// open developer console and run this.
@tucan9389
tucan9389 / ExtensionUIViewController.swift
Created May 31, 2018 11:01
Useful UIViewController extenstion for simple alert call with just message: String? parameter.
extension UIViewController {
func showSimpleAlert(message: String?) {
let alert = UIAlertController(title: "Note", message: message, preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "Ok", style: .default, handler: nil))
self.present(alert, animated: true, completion: nil)
}
}
@tucan9389
tucan9389 / [ᄇα…₯ᆫ역]Tensorflow CONTRIBUTING.md
Last active June 12, 2018 01:58
Tensorflow κΉƒν—™ νŽ˜μ΄μ§€μ˜ CONTRIBUTING.md λ¬Έμ„œλ₯Ό 개인적으둜 λ²ˆμ—­ν•΄λ΄€μŠ΅λ‹ˆλ‹€.

κΈ°μ—¬ κ°€μ΄λ“œλΌμΈ

원문: https://github.com/tensorflow/tensorflow/blob/master/CONTRIBUTING.md
λ²ˆμ—­μž: tucan9389

Pull Request 체크리슀트

PR을 날리기 전에 μ•„λž˜ 리슀트λ₯Ό ν™•μΈν•΄λ³΄μ„Έμš”.

@tucan9389
tucan9389 / gif_convertor.sh
Last active February 18, 2020 08:07
This script converts video to gif by using ffmpeg
# Usage:
# command
# `sh gifconverter.sh /Users/canapio/Desktop/turtle_DEMO_004_4.MP4`
# on mac
# some configuration
width="240"
fps="12"
# path setup
@tucan9389
tucan9389 / simple-audio-recognition.py
Created May 27, 2019 01:39
This script is a simple audio recognition using google's Cloud Speech-to-Text API
#!/usr/bin/env python
# This script is a simple audio recognition using google's Cloud Speech-to-Text API
# The script can recognize long audio or video (over 1 minute, in my case 60 minute video)
# Prerequisites libraries
# - ffmpeg
# - google-cloud-speech
# My test
@tucan9389
tucan9389 / swift_api_guideline.md
Created October 3, 2019 13:01 — forked from godrm/swift_api_guideline.md
μŠ€μœ„ν”„νŠΈ API κ°€μ΄λ“œλΌμΈ

1. μŠ€νƒ€μΌ/문법 리뷰

1-1 μŠ€μœ„ν”„νŠΈ API λ””μžμΈ κ°€μ΄λ“œλΌμΈ

https://swift.org/documentation/api-design-guidelines/

  • μ‚¬μš©ν•  λ•Œ κΈ°μ€€μœΌλ‘œ λͺ…ν™•ν•˜κ²Œ μž‘μ„±ν•˜λŠ” 게 κ°€μž₯ μ€‘μš”ν•œ μ§€ν–₯점이닀. λ©”μ†Œλ“œλ‚˜ ν”„λ‘œνΌν‹° 같은 개발 μš”μ†ŒλŠ” ν•œ 번만 μ„ μ–Έν•˜κ³  반볡적으둜 μ‚¬μš©ν•œλ‹€. APIλ₯Ό λ§Œλ“€ λ•ŒλŠ” μ‚¬μš©ν•˜κΈ° λͺ…ν™•ν•˜κ³  νŽΈν•˜κ²Œ λ§Œλ“€μ–΄μ•Ό ν•œλ‹€. 섀계λ₯Ό 검증할 λ•Œ μ„ μ–Έ 뢀뢄을 μ½λŠ” κ²ƒλ§ŒμœΌλ‘œλŠ” λΆ€μ‘±ν•˜λ‹€. κ·Έ λŒ€μ‹  μ‚¬μš©ν•˜λŠ” μƒν™©μ—μ„œ λ§₯락에 맞고 λͺ…ν™•ν•œ μ§€ 늘 κ³ λ €ν•΄μ•Ό ν•œλ‹€.

  • λͺ…ν™•ν•œ ν‘œν˜„μ΄ μ••μΆ•ν•œ 간결성보닀 더 μ€‘μš”ν•˜λ‹€. μŠ€μœ„ν”„νŠΈ μ½”λ“œλŠ” μ••μΆ•ν•΄μ„œ κ°„κ²°ν•˜κ²Œ μž‘μ„±ν•  수 μžˆμ§€λ§Œ, 단지 κΈ€μžμˆ˜λ₯Ό μ€„μ—¬μ„œ κ°€μž₯ 짧은 μ½”λ“œλ₯Ό λ§Œλ“œλŠ” 게 λͺ©ν‘œλŠ” μ•„λ‹ˆλ‹€. μŠ€μœ„ν”„νŠΈ μ½”λ“œμ˜ 간결성은 μžμ—°μŠ€λŸ½κ²Œ 반볡적으둜 μž¬μ‚¬μš©ν•˜λŠ” μ½”λ“œ(boilerplate)λ₯Ό μ€„μ΄λŠ” κΈ°λŠ₯κ³Ό κ°•ν•œ νƒ€μž… μ‹œμŠ€ν…œμ˜ λΆ€μˆ˜νš¨κ³Όλ‘œ λ“œλŸ¬λ‚  뿐이닀.

@tucan9389
tucan9389 / gifs_converter.sh
Created March 10, 2020 06:30
convert videos to gifs with ffmpeg
width="400"
fps="12"
for path in "$@"
do
echo "$path"
# path setup
video_path=$path
directory_path=`dirname "$path"`
file=`basename "$path"`
// https://markets.businessinsider.com/index/components/nasdaq_100
var text = ""
$( ".table-small" ).find("tbody tr td a").each(function() {
var urlString = $(this).attr('href')
urlString = urlString.split("/")[2]
var symbol = urlString.split("-")[0]
text += symbol.toUpperCase() + "\n"
});
//
// ViewController.swift
// ArgmaxChartApp
//
// Created by Doyoung Gwak on 2021/06/21.
//
import UIKit
class ViewController: UIViewController {