This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RecordService : LifecycleService() { | |
private val notificationBuilder by lazy { NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID) } | |
private val notificationManager by lazy { NotificationManagerCompat.from(applicationContext) } | |
private val recordThread = HandlerThread("RecorderThread").apply { start() } | |
private val recordHandler = Handler(recordThread.looper) | |
private lateinit var recordParam: RecordServiceParam | |
// private lateinit var cameraCharacteristics: CameraCharacteristics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstring> | |
struct Foo { | |
Foo() { | |
std::cout << "Constructor: " << this << std::endl; | |
array = new char[4096]; | |
} | |
~Foo() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from https://github.com/android/camera-samples.git | |
private data class CameraInfo( | |
val name: String, | |
val cameraId: String, | |
val size: Size, | |
val fps: Int) | |
private fun lensOrientationString(value: Int) = when (value) { | |
CameraCharacteristics.LENS_FACING_BACK -> "Back" |
次に“Elkhart Lake”であるが、“Tremont”と呼ばれる10nmプロセス世代のAtom系コアを使用したSoCである。 Pentium/Celeron J/NとAtom x6000 seriesという2つの系統があり、 後者についてはその機能によってAtom x6000E,x6000RE, x6000FEに細分化される。 これのコンシューマ向けとなるのが“Jasper Lake”であるが、両者とも構成はよく似ており、 最大4-coreまでの“Tremont”コアと最大32 EUのGen 11 graphicsを組み合わせている。 メモリはLPDDR4X-4267ないしはDDR4-3200に対応し、Atom x6000 seriesについては ECCへの対応が追加されている。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun personal-transform-region-to-link-line (beg end) | |
"タイトルとURLの2行を、markdownのLINK行の形式に変換する" | |
(save-excursion | |
(goto-char end) | |
(cond ((bolp)(forward-char -1)(insert ")")) | |
((eolp)(insert-before-markers ")")) | |
(t (insert-before-markers ")\n")(forward-char -1))) | |
(beginning-of-line) | |
(insert "(") | |
(beginning-of-line) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 0 0 <- 画面の文字 | |
0 0 128 | |
0 128 0 | |
0 128 128 | |
128 0 0 | |
1 36 86 | |
200 200 200 | |
232 232 232 <- 画面の背景 | |
128 128 128 |
NewerOlder