Skip to content

Instantly share code, notes, and snippets.

View hachi8833's full-sized avatar
😀

Shozo Hatta hachi8833

😀
View GitHub Profile
Harry
Potter
Hermione
Granger
Ron
Weasley
Neville
Longbottom
Draco
Malfoy
Vincent
Crabbe
Greggory
Goyle
Ginny
Weasley
Cho
Chang
Cedric
Diggory
錬金術
(Alchemy)
- 9 - 4 - 1 2 8 - 6
数占い学
(Arithmancy)
- 10 - - 7 2 2 - 8 -
天文学
(Astronomy)
6 9 6 - - - - - 9 8
魔法生物飼育学
(Magical Creatures )
8 9 7 5 4 2 3 8 - 8
呪文学
(Charms)
5 10 7 4 7 - - 9 7 7
対闇魔術防衛
(Dark Arts)
10 9 8 4 3 1 2 9 7 6
占い学
(Divination)
4 1 7 5 - - - - - -
薬草学(Herbology) 7 10 8 10 8 3 2 9 8 6
@hachi8833
hachi8833 / compose.yaml
Created September 1, 2022 06:26
compose.yaml
# compose.yaml
version: '2.4'
x-app: &app
build:
context: .dockerdev
dockerfile: Dockerfile
args:
DISTRO_NAME: 'bullseye'
RUBY_VERSION: '3.1.2'
@hachi8833
hachi8833 / Dockerfile
Created September 1, 2022 06:25
Dockerfile for
# .dockerdev/Dockerfile
ARG RUBY_VERSION
ARG DISTRO_NAME
FROM ruby:$RUBY_VERSION-slim-$DISTRO_NAME
# Common dependencies
RUN apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
build-essential \

A: rails newのみ

インストールされるgem

  • gem "sprockets-rails", ">= 3.4.2"
  • gem "importmap-rails", ">= 1.0.1"
  • gem "turbo-rails", ">= 1.0.0"
  • gem "stimulus-rails", ">= 1.0.2"
@hachi8833
hachi8833 / docker-compose.yml
Last active June 30, 2021 02:39
RailsGoatのdocker-compose.ymlを変更
version: '2'
services:
web:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- .:/myapp
ports:
- "3000:3000"
depends_on:
@hachi8833
hachi8833 / dip.yml
Last active June 30, 2021 02:40
RailsGoat向けのdip.yml
version: '7.0'
environment:
RAILS_ENV: development
compose:
files:
- docker-compose.yml
interaction:
@hachi8833
hachi8833 / sample.rb
Created April 28, 2021 02:09
Conversion sample
> emoji_flag("eu")
#=> "🇪🇺"
@hachi8833
hachi8833 / invalid.rb
Created April 28, 2021 02:07
Invalid RIS
emoji_flag("AA")
#=> "🇦🇦"
@hachi8833
hachi8833 / conversion.rb
Created April 28, 2021 02:05
Sequence of converting country code to flag
"FR".codepoints
#=> [70, 82]
70 + 127397
#=> 127467
127467.chr(Encoding::UTF_8)
#=> "🇫"
82 + 127397
@hachi8833
hachi8833 / intl_flag.rb
Last active April 28, 2021 02:11
A country flag consists of two RIS
"🇪🇺".chars
#=> ["🇪", "🇺"]