Skip to content

Instantly share code, notes, and snippets.

View hryk's full-sized avatar
🏠
Working from home

Hiroyuki Nakamura hryk

🏠
Working from home
View GitHub Profile
@hryk
hryk / flpdnn.dockerfile
Last active October 7, 2022 03:12
Modified flpdnn dockerfile forked from [sina.ghadermarzi/fldpnn_docker](https://gitlab.com/sina.ghadermarzi/fldpnn_docker).
FROM nvidia/cuda:11.0.3-cudnn8-runtime-ubuntu20.04
RUN apt-get update -y
RUN DEBIAN_FRONTEND=noninteractive apt-get -yq install git openjdk-8-jre libidn11 tcsh python3 python3-pip
RUN pip3 install scikit-learn==0.23.1 pandas==1.2.2 plotly==4.14.3 tensorflow==2.4.1 keras==2.4.3 protobuf==3.19.6 numpy~=1.19.2 six~=1.15.0
WORKDIR /home
RUN git clone https://gitlab.com/sina.ghadermarzi/fldpnn.git
ENTRYPOINT ["/bin/bash"]
@hryk
hryk / .gitignore
Last active January 23, 2018 02:42
Vizualize phylogenetic tree with phylocanvas
### https://raw.github.com/github/gitignore/9da1b5d8ce4e009ff627c4fe49a4488b2a3f60d4/Global/vim.gitignore
# Swap
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-v][a-z]
[._]sw[a-p]
# Session
Session.vim
@hryk
hryk / README.md
Created August 25, 2017 06:30 — forked from emepyc/README.md
Collapsible nodes

Example of TnT Tree. Click on the nodes to collapse / uncollapse them

#!/usr/bin/env ruby
require "csv"
require "json"
require "yaml"
def help(msg = "")
puts msg
puts <<-EOF
csv2 something converter

@antipop

技術的負債の分類 (Kruchten et al., 2012)

  • コードの負債は見えるので検出し易いけど、アーキテクチャの負債は見えないので大変
  • アーキテクチャの再構築、リファクタリング

可能的代替システムとの差異(Schmid, 2013)

  • 負債の要因や意図を問わないモデル化
#!/usr/bin/env ruby
require "nokogiri"
require "excon"
require "thor"
# Tasks related to maintain my subscriptions.
class FeedTask < Thor
OPML = <<-EOF
<?xml version="1.0" encoding="UTF-8" ?>
@hryk
hryk / remove_dup_tracks.rb
Created October 20, 2013 12:12
Remove duplicate tracks from iTunes.
#!/usr/bin/env ruby
#
# Remove duplicate tracks from iTunes with
# (itunes-client)[https://github.com/katsuma/itunes-client/].
# ------------------------------------
#
require "itunes-client"
include Itunes
begin
@hryk
hryk / print_all_in_folder.rb
Created September 5, 2013 12:48
It print all PDFs in folder of Mendeley.
#!/usr/bin/env ruby
require "uri"
require "rubygems"
require "sequel"
require "optparse"
module Mendeley
class FolderNotFound < StandardError; end
class GroupNotFound < StandardError; end
@hryk
hryk / Gemfile
Last active December 19, 2015 19:19
# A sample Gemfile
source "https://rubygems.org"
gem "neo4j"
#!/usr/bin/env ruby
require 'rubygems'
require 'sequel'
DB = Sequel.connect('jdbc:sqlite:memory:')
DB.create_table :items do
primary_key :id
String :string_attribute