Skip to content

Instantly share code, notes, and snippets.

View hyamamoto's full-sized avatar

Hiroshi Yamamoto hyamamoto

View GitHub Profile
@istallia
istallia / Readme.md
Last active August 24, 2021 12:41
A.I.VOICEのexVOICEのファイル名をリネームするスクリプト(要Python3)

使い方

  1. Python3をインストールする(開発環境は3.8.2)
  2. pip(Pythonのパッケージマネージャ)でpdfplumberパッケージをインストールする
  3. 本スクリプトをexVOICE一覧のPDFと同じフォルダに配置する
  4. 本スクリプトを(ダブル)クリックで実行する、あるいはコマンドプロンプトやGit Bash等から(引数を付けて)実行する

注意点

これ1つで変換完了ではありません。株式会社AIのガバでいくつかのフォルダやファイル名が違うため、一部のファイル名はそのまま残ります。

anonymous
anonymous / align_images.py
Created December 21, 2017 16:05
Face alignment scripts based on 1adrianb/face-alignment
import argparse
import cv2
import dlib
import json
import numpy
import skimage
from pathlib import Path
from tqdm import tqdm
from umeyama import umeyama
@CristalT
CristalT / FileUploader.vue
Last active October 5, 2023 11:20
File Uploader Component for Vue.js using Firebase Storage
<template>
<div>
<input type="file" multiple accept="image/jpeg" @change="detectFiles($event.target.files)">
<div class="progress-bar" :style="{ width: progressUpload + '%'}">{{ progressUpload }}%</div>
</div>
</template>
<script>
@Hiroshiba
Hiroshiba / run.ipynb
Created November 3, 2017 10:36
声優統計コーパスをアライメントしてみる
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

To the members of the MIT community:

We are writing to inform you of plans to upgrade the MIT campus network, and in particular to upgrade MIT to the next generation of Internet addressing. (Please note that no action is required on your part.)

Machines on the Internet are identified by addresses. The current addressing scheme, called IPv4, was specified around 1980, and allowed for about 4 billion addresses. That seemed enough at the time, which was before local area networks, personal computers and the like, but the Internet research community recognized around 1990 that this supply of addresses was inadequate, and put in place a plan to replace the IPv4 addresses with a new address format, called IPv6. IPv6 uses a 128-bit address scheme and is capable of 340 undecillion addresses (340 times 10^36, or 340 trillion trillion trillion possible IP addresses). This stock of addresses allows great flexibility in how addresses are assigned to hosts, for example allowing every host to use a range of addresses to

@simonw
simonw / recover_source_code.md
Last active May 21, 2024 19:04
How to recover lost Python source code if it's still resident in-memory

How to recover lost Python source code if it's still resident in-memory

I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
#CXRLE Pos=-7289,-1110
x = 10016, y = 6796, rule = B3/S23
5843b2o$5843b2o4$5861bobo$5856bo4bo2bo$5857b2o5b2o8bo$5852b2o8bo3b2o5b
obo$5852b2o10b2o6bob2o$5841b2obob2o13bo2bo6b2ob2o$5861bobo8bob2o$5841b
o5bo25bobo8b2o$5864bo9bo9bobo$5842b2ob2o16bo22bo$5844bo18b3o20b2o6$
5847bo17b2o$5841b3o4b2o15b2o$5840bo3bo2b2o2$5839bo5bo$5839b2o3b2o2$
5864b2o$5864bobo$5866bo$5866b2o$5839b2o$5840bo$5837b3o$5837bo7$5851bo$
5851b3o$5854bo14bobo$5853b2o6b2o7b2o5b2o$5860bobo7bo6bo$5861bo16b3o$
5880bo2$5848b2o$5848b2o6b2o29b2o$5856b2o28bo2bo$5887b2o$5865b2o20b2o$
5865b2o19b2o8b2o$5885b2obo6bobo$5850b2o33b2obo7bo$5849bobo35bo$5849bo
@teamdandelion
teamdandelion / labels_1024.tsv
Last active February 6, 2024 08:33
TensorBoard: TF Dev Summit Tutorial
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
7
2
1
0
4
1
4
9
5
9
@badpenguin
badpenguin / Ionic2 Preloader Example index.html
Last active February 25, 2017 20:49
Ionic2 Preloader Example
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<title>Ionic App</title>
<meta name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
@mmazzarolo
mmazzarolo / hideOnScroll.js
Last active October 31, 2023 07:32
react-native-action-button hide on scroll
// 1. Define a state variable for showing/hiding the action-button
state = {
isActionButtonVisible: true
}
// 2. Define a variable that will keep track of the current scroll position
_listViewOffset = 0
// 3. Add an onScroll listener to your listview/scrollview
<ListView