Skip to content

Instantly share code, notes, and snippets.

View rnakano's full-sized avatar
🌴

Ryusuke Nakano rnakano

🌴
View GitHub Profile
@yosshi
yosshi / 通堂もやし.md
Last active March 30, 2022 12:24
通堂もやしのつくりかた

通堂もやしの作り方

材料

  • もやし 1袋
  • 味の素・ほんだし 1袋
  • ごま油 適量
  • ラー油 適量
  • 一味唐辛子 適量
  • にんにく 適量
  • 醤油 少々
@enerick
enerick / bakusoku-chouseisan.js
Last active September 2, 2021 09:15
爆速調整さんブックマークレット
javascript: document.querySelectorAll(".oax").forEach(function(e) {e.addEventListener("mouseenter", function() { e.parentNode.childNodes.forEach((e) => { e.classList.remove("active"); }); e.classList.add("active"); e.parentNode.firstElementChild.value = parseInt(e.id.slice(-1)) + 1}, false);})
@fotinakis
fotinakis / Jenkins auto-shudown-slaves job
Last active July 6, 2020 08:56
Auto-managed Jenkins slaves on Google Compute Engine
#!/bin/bash
# Have to redirect stderr to stdout here because slave.py uses stderr for output.
~/bin/slave.py list 2>&1 >/dev/null | grep beaker-slave- | while read slave; do
echo
echo "Checking status of $slave..."
# First, check if we can SSH into the host. If we can, then check the process and maybe shut down.
# This makes sure that we don't consider an SSH failure to be reason to shut down the node.
if ssh $slave echo < /dev/null; then
@GINK03
GINK03 / keras-seq2seq.md
Last active December 27, 2019 01:41
keras-seq2seq.md

KerasでSeq2Seqをやる

KerasでSeq2Seq

Seq2Seqといえば、TensorFlowでの実装が有名で、英語とフランス語の大規模コーパスを使ってやるものが、よくチューニングされており便利です
しかし、この翻訳のタスクに最適化されており、一般的なものと言い難い感じで任意のタスクに変換して利用する際に少々不便を感じていました。 (TensorFlowのものは、自分で改造するにしても人に説明する際も、ちょっと面倒)

今回、Kerasで実装して、ある程度、うまく動作することを確認しました

ネットワークの説明

@wuhao5
wuhao5 / png_build.sh
Last active December 1, 2019 21:53
build libpng for iOS/MacOS X
rm -rf install_*
rm -rf output-*
# build simulator
./configure --prefix=`pwd`/install_i386 CFLAGS="-Ofast -mios-version-min=5.0" LDFLAGS="-flto" CC="xcrun -sdk iphonesimulator clang -arch i386"
make clean && make -j8 && make install
./configure --prefix=`pwd`/install_x86_64 CFLAGS="-Ofast -mios-version-min=5.0" LDFLAGS="-flto" CC="xcrun -sdk iphonesimulator clang -arch x86_64"
make clean && make -j8 && make install
@makimoto
makimoto / rhg-mobi.rb
Last active August 30, 2018 12:16 — forked from miyagawa/rhg-mobi.rb
#!/usr/bin/env ruby
file = File.open("index.html", "r:iso-2022-jp:UTF-8")
content = file.read
all_html = <<HTML
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta name="Author" content="Aoki Minero">