Skip to content

Instantly share code, notes, and snippets.

View bc-lee's full-sized avatar

Byoungchan Lee bc-lee

  • Hyperconnect. LLC.
  • Seoul, Korea
  • 12:03 (UTC +09:00)
View GitHub Profile
@bc-lee
bc-lee / CheckAudioEffectActivity.kt
Created February 6, 2024 09:31
Check Audio Effect
package com.example.checkaudioeffect
import android.Manifest
import android.content.pm.PackageManager
import android.media.AudioFormat
import android.media.AudioRecord
import android.media.MediaRecorder
import android.media.audiofx.AudioEffect
import android.os.Build
import android.os.Bundle
@bc-lee
bc-lee / result.json
Last active September 25, 2023 12:18
Compares ELF files in two directories
[
{
"left": {
"path": "swift-5.9-RELEASE-centos7/usr/bin/clang",
"glibc_version": "2.16",
"libstdcpp_version": "3.4.19",
"shared_objects": [
"libtinfo.so.5"
]
},
@bc-lee
bc-lee / analyze.py
Created August 16, 2023 04:58
Analyze Go package dependencies.
#!/usr/bin/env python3
__doc__ = """Analyze Go package dependencies."""
import argparse
import json
import os
import shlex
import subprocess
import sys
@bc-lee
bc-lee / .gitconfig
Created May 5, 2023 01:36
My .gitconfig
[core]
precomposeunicode = true
autocrlf = false
[rebase]
abbreviateCommands = true
[merge]
renameLimit = 1048576
ff = no
@bc-lee
bc-lee / README.md
Created August 25, 2022 12:20
Expansion of googletest assertion macro

.

@bc-lee
bc-lee / print_podfile_dependency.py
Created February 17, 2022 10:31
print_podfile_dependency.py
#!/usr/bin/env python3
import argparse
import sys
import re
# third_party
import graphviz # pip3 install graphviz
import yaml # pip install pyyaml
@bc-lee
bc-lee / Xcode11.7 iOS
Last active May 18, 2021 06:07
libc++1.1.tbd
--- !tapi-tbd-v3
archs: [ armv7, armv7s, arm64, arm64e ]
uuids: [ 'armv7: B41C63AE-D89D-3E89-9582-FA88DFB4A813', 'armv7s: 8D4659D4-1F05-3002-AD00-9152E1483631',
'arm64: 23B2D15C-5687-3176-BB4F-2BF05FC942BB', 'arm64e: C4263B03-FE8A-37A2-AC08-E77C7082038F' ]
platform: ios
install-name: '/usr/lib/libc++.1.dylib'
current-version: 902
exports:
- archs: [ armv7, armv7s ]
symbols: [ __ZNKSt3__18messagesIcE6do_getEiiiRKNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE,
@bc-lee
bc-lee / print_python_package.py
Created May 9, 2021 04:58
print_python_package.py
#!/usr/bin/env python3
# inspired from https://stackoverflow.com/a/53805392
import pkg_resources
try:
from pip import get_installed_distributions
except:
from pip._internal.utils.misc import get_installed_distributions
@bc-lee
bc-lee / .sh
Created September 27, 2020 01:15
One liners
# Perl one liner which convert CRLF to LF
perl -i -pe 's#\r\n$#\n#g'
@bc-lee
bc-lee / test.dart
Last active December 10, 2019 04:56
Dart JSON Parse error
import "dart:convert";
main() {
var input = ["{\"key\":\"value0\"}{\"key\":\"value1\"}"];
Stream.fromIterable(input)
.transform(JsonDecoder())
.listen((item) {
print("item: $item\n");
});
}