色設定
色変更したい箇所にカーソルを合わせて以下のコマンドを実行してface名を確認
M-x describe-face
次に以下のコマンドを実行して、対象のface名を選択する
M-x list-faces-display
#!/usr/bin/env python | |
import sys | |
def read_smaps(pidlist): | |
try: | |
print("PID\tRSS\tSHARED\t\tNONE_SHARED") | |
mem = lambda t, f: int(f[1]) if f[0] == '%s:' % t else 0.0 | |
for pid in pidlist: | |
filename = "/proc/%s/smaps" % pid |
色変更したい箇所にカーソルを合わせて以下のコマンドを実行してface名を確認
M-x describe-face
次に以下のコマンドを実行して、対象のface名を選択する
M-x list-faces-display
#include <iostream> | |
#include <faiss/IndexFlat.h> | |
#include <faiss/IndexIVFPQ.h> | |
#include <faiss/gpu/GpuIndexFlat.h> | |
#include <faiss/gpu/GpuIndexIVFPQ.h> | |
#include <faiss/gpu/StandardGpuResources.h> | |
#include <faiss/index_io.h> | |
#include <faiss/utils.h> | |
#include <boost/program_options.hpp> |
let loadImage = ({ src }) => { | |
return new Promise((resolve, reject) => { | |
let img = new Image(); | |
img.onload = () => { | |
resolve(img); | |
}; | |
img.src = src; | |
}); | |
}; |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import botocore | |
from boto3.session import Session | |
from boto3.s3.transfer import TransferConfig | |
from pprint import pprint | |
class S3Client(object): |
<template> | |
<div class="hello"> | |
<h1>{{ msg }}</h1> | |
<canvas width="32" height="32" ref="canvas"></canvas> | |
<button type="button" @click="inference">inference</button> | |
<span>{{ infoLabel }}</span> | |
</div> | |
</template> | |
<script lang="ts"> |
#!/usr/bin/env python | |
import glob | |
import random | |
import shutil | |
import math | |
def random_sample_file(input_dir: str, output_dir: str, sample_ratio: float=0.05): | |
print(f'copy {input_dir} to {output_dir}') |