Skip to content

Instantly share code, notes, and snippets.

View tuxedocat's full-sized avatar
๐Ÿˆโ€โฌ›
WFH with cats

tuxedocat

๐Ÿˆโ€โฌ›
WFH with cats
View GitHub Profile
@mpppk
mpppk / clean_architecture.md
Last active September 5, 2026 23:39
ใ‚ฏใƒชใƒผใƒณใ‚ขใƒผใ‚ญใƒ†ใ‚ฏใƒใƒฃๅฎŒๅ…จใซ็†่งฃใ—ใŸ

2020/5/31่ฟฝ่จ˜: ่‡ชๅˆ†็”จใฎใƒกใƒขใซๆ›ธใ„ใฆใ„ใŸใคใ‚‚ใ‚Šใ ใฃใŸใฎใงใ™ใŒใ€ใŸใใ•ใ‚“ใฎใ‚นใ‚ฟใƒผใ‚’้ ‚ใ‘ใฆใจใฆใ‚‚ๅฌ‰ใ—ใ„ใงใ™ใ€‚
ใจๅŒๆ™‚ใซใ€ๆ›ธใใ‹ใ‘ใงไธญ้€”ๅŠ็ซฏใช็Šถๆ…‹ใฎใƒ‰ใ‚ญใƒฅใƒกใƒณใƒˆใ‚’ใ”่ฆงใ„ใŸใ ใใ“ใจใซใชใฃใฆใŠใ‚Šใ€ๅคงๅค‰ๅฟƒ่‹ฆใ—ใๆ€ใฃใฆใ„ใพใ™ใ€‚

ใ“ใฎใƒ‰ใ‚ญใƒฅใƒกใƒณใƒˆใ‚’ๅฎŒๆˆใ•ใ›ใ‚‹ใŸใ‚ใซใ€ไปŠๅพŒไปฅไธ‹ใฎใ‚ˆใ†ใชๆ›ดๆ–ฐใ‚’ไบˆๅฎšใ—ใฆใ„ใพใ™ใ€‚

  • TODO้ƒจๅˆ†ใ‚’ๅŸ‹ใ‚ใ‚‹
  • ๆ›ธ็ฑใ‚’ๅŸบใซใ—ใŸ็†่ซ–ใƒปๅŽŸๅ‰‡ใƒ‘ใƒผใƒˆใจใ€ๅฎŸ่ฃ…ไพ‹ใƒ‘ใƒผใƒˆใ‚’ๅˆ†ๅ‰ฒ
    • ็พๅœจใฏ4ๅฑคใฎใƒฌใ‚คใƒคใใ‚Œใžใ‚Œใ”ใจใซๅŽŸๅ‰‡ใฎ็ขบ่ชโ†’ๅฎŸ่ฃ…ๆ™‚ใฎ่ชฒ้กŒใƒชใ‚นใƒˆโ†’ๅฎŸ่ฃ…ไพ‹ใจใ„ใ†ๆง‹ๆˆใงใ™ใŒใ€ๅŒใ˜ใƒชใƒใ‚ธใƒˆใƒชใธใฎ่จ€ๅŠ็ฎ‡ๆ‰€ใŒใƒใƒฉใƒใƒฉใซใชใฃใฆใ—ใพใ†ๅ•้กŒใŒใ‚ใ‚Šใพใ—ใŸใ€‚ๆ›ดๆ–ฐๅพŒใฏใ€ๅฎŸ่ฃ…ๆ™‚ใฎ่ชฒ้กŒใƒชใ‚นใƒˆใ‚’ๅ…จใฆๆด—ใ„ๅ‡บใ—ใŸๅพŒใซใพใจใ‚ใฆๅฎŸ่ฃ…ใ‚’็ขบ่ชใ™ใ‚‹ๆง‹ๆˆใจใ™ใ‚‹ไบˆๅฎšใงใ™ใ€‚

2021/1/22่ฟฝ่จ˜:

@sile
sile / README.md
Last active January 18, 2026 16:22
Optunaใ‚’ไฝฟใฃใฆFFmpegใฎใ‚จใƒณใ‚ณใƒผใƒ‰ใƒ‘ใƒฉใƒกใƒผใ‚ฟใ‚’ๆœ€้ฉๅŒ–ใ—ใฆใฟใ‚‹

ๆฆ‚่ฆ

  • Optunaใจใ„ใ†ใƒใ‚คใƒ‘ใƒผใƒ‘ใƒฉใƒกใƒผใ‚ฟๆœ€้ฉๅŒ–ใƒ„ใƒผใƒซใ‚’ไฝฟใฃใฆใ€FFmpegใงใฎๅ‹•็”ปใ‚จใƒณใ‚ณใƒผใƒ‰ใƒ‘ใƒฉใƒกใƒผใ‚ฟใฎๆœ€้ฉๅŒ–ใ‚’่ฉฆใ—ใฆใฟใŸ็ตๆžœใฎใƒกใƒข
  • ๅ…ทไฝ“็š„ใซใฏใ€ๆฑบใ‚ใ‚‰ใ‚ŒใŸๅˆถ็ด„(ๅพŒ่ฟฐ)ไธ‹ใงใ€็”ป่ณช(SSIM)ใ‚’ๆœ€ๅคงๅŒ–ใ™ใ‚‹ใ‚ˆใ†ใชใƒ‘ใƒฉใƒกใƒผใ‚ฟ็พคใ‚’่‡ชๅ‹•ใง่ฆ‹ใคใ‘ๅ‡บใ™ใฎใŒ็›ฎ็š„
  • ็ตๆžœใจใ—ใฆใฏใ€
    • ็”ป่ณช็š„ใซใฏใ€FFmpegใŒๆไพ›ใ—ใฆใ„ใ‚‹ใƒ—ใƒชใ‚ปใƒƒใƒˆใฎไธญใงไบŒ็•ช็›ฎใซ้‡ใ„ใ‚‚ใฎ(slower)ใ‚ˆใ‚Š่‹ฅๅนฒ่‰ฏใ„็จ‹ๅบฆใฎใƒ‘ใƒฉใƒกใƒผใ‚ฟ็พคใŒ่ฆ‹ใคใ‹ใฃใŸ
    • ใพใŸใ€OptunaใŒ่ฆ‹ใคใ‘ใŸใƒ‘ใƒฉใƒกใƒผใ‚ฟ็พคใฎๆ–นใŒslowerใซๆฏ”ในใฆใ€CPU่ฒ ่ทใŒๅฐใ•ใ‹ใฃใŸ

ๆ–น้‡

@azu
azu / README.md
Last active June 22, 2026 09:06
ใ‚นใ‚ฟใƒผใƒˆใ‚ขใƒƒใƒ—/ไผๆฅญใฎ่ชฟในๆ–น

๐Ÿ“ ไผๆฅญใ‚’่ชฟในใ‚‹ๆ™‚ใฎใƒกใƒขๆ›ธใใงใ™ใ€‚

ๆฑ‚ไบบใ‚ตใ‚คใƒˆ

  • https://www.wantedly.com/
  • https://jobs.forkwell.com/
  • https://jp.indeed.com/
    • ๆ—ฅๆœฌใ ใจใ‚ใ‚“ใพใ‚Šไฝฟใฃใฆใ‚‹ไผๆฅญใŒใ„ใชใ„ใ‘ใฉใ€ใ‚ฐใƒญใƒผใƒใƒซใ‚ˆใ‚Šใงๆ—ฅๆœฌใงใ‚‚ใ‚„ใฃใฆใ‚‹้ข็™ฝใ„ใ‚‚ใฎใŒใŸใพใซ่ฆ‹ใคใ‹ใ‚‹
  • ใชใฉใฎๅ„็จฎๆฑ‚ไบบใ‚ตใ‚คใƒˆใ‚’่ฆ‹ใ‚‹
  • Note: ๐Ÿ“
@voluntas
voluntas / death_march.md
Last active February 13, 2026 13:32
ใƒ‡ใ‚นใƒžใƒผใƒใŒ่ตทใใ‚‹็†็”ฑ - ๏ผ“ใคใฎๆŒ‡ๆจ™

ใƒ‡ใ‚นใƒžใƒผใƒใŒ่ตทใใ‚‹็†็”ฑ - ๏ผ“ใคใฎๆŒ‡ๆจ™

่‘—่€…๏ผš ้’ใ„้ด‰๏ผˆใถใ‚‹ใใ‚๏ผ‰ใ•ใ‚“ย @bluecrow2

ใ“ใ‚Œใฏ็ตๅŸŽๆตฉใ•ใ‚“ใฎ้‹็”จใ•ใ‚Œใฆใ„ใŸ YukiWiki ใซๅฝ“ๆ™‚ Coffee ๆง˜ (้’ใ„้ด‰๏ผˆใถใ‚‹ใใ‚๏ผ‰ใ•ใ‚“๏ผ‰ใŒใ‹ใ‹ใ‚Œใฆใ„ใŸๆ–‡็ซ ใงใ™ใ€‚ ใŸใ  2018 ๅนด 3 ๆœˆ 7 ๆ—ฅใซ YukiWiki ใŒ้‹็”จๅœๆญขใ—ใŸใŸใ‚ๆถˆใˆใฆใ—ใพใ„ใพใ—ใŸใ€‚ใใฎ่จ˜ไบ‹ใฎใƒใƒƒใ‚ฏใ‚ขใƒƒใƒ—ใงใ™ใ€‚

ไปŠใฏ 404 ใงใ™ใŒใ€ใ‚‚ใจใ‚‚ใจใฎ่จ˜ไบ‹ใฎ URL ใฏ http://www.hyuki.com/yukiwiki/wiki.cgi?%A5%C7%A5%B9%A5%DE%A1%BC%A5%C1%A4%AC%B5%AF%A4%AD%A4%EB%CD%FD%CD%B3 ใซใชใ‚Šใพใ™ใ€‚

ๆ˜”ใ€่‡ชๅˆ†ใŒใจใฆใ‚‚ๆ„Ÿ้Š˜ใ‚’ๅ—ใ‘ใŸๆ–‡็ซ ใชใฎใงใ€ใ“ใฎใพใพ่ชญใ‚ใชใใชใ‚‹ใฎใฏใจใฆใ‚‚ใ‚‚ใฃใŸใ„ใชใ„ใจๆ€ใ„ใ€ใƒใƒƒใ‚ฏใ‚ขใƒƒใƒ—ใจใ—ใฆๅ…ฌ้–‹ใ—ใฆใ„ใพใ™ใ€‚

@liangfu
liangfu / ffmpeg.md
Created May 24, 2017 04:46 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

@jkubecki
jkubecki / ExportKindle.js
Last active July 18, 2026 04:22
Amazon Kindle Export
// The following data should be run in the console while viewing the page https://read.amazon.com/
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension
var db = openDatabase('K4W', '3', 'thedatabase', 1024 * 1024);
getAmazonCsv = function() {
// Set header for CSV export line - change this if you change the fields used
var csvData = "ASIN,Title,Authors,PurchaseDate\n";
db.transaction(function(tx) {
@jaceklaskowski
jaceklaskowski / deployment-tool-ansible-puppet-chef-salt.md
Last active June 14, 2026 04:52
Choosing a deployment tool - ansible vs puppet vs chef vs salt

Requirements

  • no upfront installation/agents on remote/slave machines - ssh should be enough
  • application components should use third-party software, e.g. HDFS, Spark's cluster, deployed separately
  • configuration templating
  • environment requires/asserts, i.e. we need a JVM in a given version before doing deployment
  • deployment process run from Jenkins

Solution

What is the appeal of dynamically-typed languages?

Kris Nuttycombe asks:

I genuinely wish I understood the appeal of unityped languages better. Can someone who really knows both well-typed and unityped explain?

I think the terms well-typed and unityped are a bit of question-begging here (you might as well say good-typed versus bad-typed), so instead I will say statically-typed and dynamically-typed.

I'm going to approach this article using Scala to stand-in for static typing and Python for dynamic typing. I feel like I am credibly proficient both languages: I don't currently write a lot of Python, but I still have affection for the language, and have probably written hundreds of thousands of lines of Python code over the years.

@kmader
kmader / README.md
Last active October 31, 2023 14:21
Beating Serialization in Spark

Serialization

As all objects must be Serializable to be used as part of RDD operations in Spark, it can be difficult to work with libraries which do not implement these featuers.

Java Solutions

Simple Classes

For simple classes, it is easiest to make a wrapper interface that extends Serializable. This means that even though UnserializableObject cannot be serialized we can pass in the following object without any issue

public interface UnserializableWrapper extends Serializable {
 public UnserializableObject create(String parm1, String parm2);
@jasonlong
jasonlong / vimium-styling.md
Last active January 29, 2024 21:37
Nicer Vimium link hint styling. What's Vimium? See http://vimium.github.io. This awesome yellow is courtesy of @mrmrs colors: http://clrs.cc.