Skip to content

Instantly share code, notes, and snippets.

View yamachu's full-sized avatar
🚼
babu-mi

Yusuke Yamada yamachu

🚼
babu-mi
View GitHub Profile
@yamachu
yamachu / ecs-deploy.part
Created December 17, 2018 02:11
TASK_DEFINITION_ARN=古いやつ NEW_TASKDEF=新しいやつ ecs-deploy ここに引数 みたいな形で、AWSコンソールから作ったやつを生やすやつ
if [ $VERBOSE == true ]; then
set -x
fi
: <<'#__COMMENT_OUT__'
# Check that required arguments are provided
assertRequiredArgumentsSet
# Determine image name
parseImageName
echo "Using image name: $useImage"
@yamachu
yamachu / frameworkをそのまま入れてlinkwith.csを入れない場合
Last active October 29, 2018 15:36
iOSバインディングのエラーログ
Building SampleApp.Forms.iOS (Debug|iPhone)
Build started 10/24/2018 9:31:11 PM.
__________________________________________________
Project "/Users/yk-yamada/Projects/github.com/yamachu/JinsMEMESDK/SampleApp.Forms/SampleApp.Forms.csproj" (Build target(s)):
Target GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
Target XamlG:
Generating code behind for XAML files
Target CoreGenerateAssemblyInfo:
const mapper = (n) => (x, i) => {
const pair = x.split(/\s/);
const num = parseInt(/(\d)*\w+/.exec(pair[pair.length - 1])[0]) * n;
const name = pair.slice(0, -1).join('');
return { name, num };
};
const _4_ = $x('//*[@id="article-body"]/div[29]/table/tbody/tr/td[1]').map(x => x.innerText).map(mapper(2));
const _5_ = $x('//*[@id="article-body"]/div[34]/table/tbody/tr/td[1]').map(x => x.innerText).map(mapper(3));
const _6_ = $x('//*[@id="article-body"]/div[37]/table/tbody/tr/td[1]').map(x => x.innerText).map(mapper(3));
const _7_ = $x('//*[@id="article-body"]/div[39]/table/tbody/tr/td[1]').map(x => x.innerText).map(mapper(4));
@yamachu
yamachu / line_filter.py
Last active April 22, 2018 23:36
声優統計コーパスをJuliusでSegmentationしてみる(これは動かないから流れだけ)
import sys
for line in iter(sys.stdin.readline, ""):
raw = line.strip()
max_chr = len(raw)
tmp = []
for i, c in enumerate(raw):
tmp.append(c)
if i == max_chr - 1:
@yamachu
yamachu / CLI_VERSION-en.md
Last active March 31, 2018 13:53
Which azure-functions-core-tools should we use?
@yamachu
yamachu / SubscribeObsCollection.cs
Last active February 22, 2018 15:11
ObservableCollectionの変更通知が欲しかった時にやったこと
Observable.FromEvent<NotifyCollectionChangedEventHandler, NotifyCollectionChangedEventArgs>(
h => (sender, args) => h(args),
h => ((INotifyCollectionChanged)(recorderService.RecordingBuffer)).CollectionChanged += h,
h => ((INotifyCollectionChanged)(recorderService.RecordingBuffer)).CollectionChanged -= h)
.Buffer(2)
.Subscribe(e =>
{
if (e.All(x => x.Action == NotifyCollectionChangedAction.Add))
{
Console.WriteLine(e.First().NewItems.Count);
@yamachu
yamachu / PhoneSegmentation.ipynb
Last active February 20, 2018 13:39
音素のセグメンテーションを行うための支援スクリプト
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yamachu
yamachu / Harvest_Sample.ipynb
Created January 28, 2018 23:37
Harvestが少ないサンプル数で動作しない件
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
uti id title platforms packages
com.xamarin.workbook
285ac8e2-25ef-4e22-965c-f04643524c48
Untitled
Console
id version
Mono.Cecil
0.9.6.4
@yamachu
yamachu / Build.md
Created September 18, 2017 02:59
Monoのビルドの時のコマンドメモ

注意

自分の色々入った環境だとこけたから,まっさらなmacを用意した方が良さそう

必要環境

  • cmake (たしか)
  • openssl (dotnet coreを入れる時みたいに自分はリンクをはった)
  • git
  • mono (自分はこのメモを書いてる時のStable 5.2.0.215を使ったけど, https://bugzilla.xamarin.com/show_bug.cgi?id=57019 の問題があるから,ビルド手順でちょっと小細工)