https://github.com/composite-primary-keys/composite_primary_keys のテストで確認してみた
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM rubylang/ruby:2.7.2-bionic | |
RUN apt-get update | |
RUN apt-get install -y build-essential libpq-dev mysql-client libmysqlclient-dev sqlite3 libsqlite3-dev | |
WORKDIR /usr/src/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'sinatra' | |
end | |
require 'sinatra' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM gentoo/portage:latest as portage | |
FROM gentoo/stage3-amd64:latest | |
COPY --from=portage /var/db /var/db | |
RUN echo "GENTOO_MIRRORS=\"rsync://rsync.jp.gentoo.org/gentoo-portage/\"" >> /etc/portage/make.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'jekyll' | |
site = Jekyll::Site.new(Jekyll.configuration) | |
array = Dir.glob('./_posts/*').map {|post| | |
document = Jekyll::Document.new(post, site: site, collection: Jekyll::Collection.new(site, 'post')) | |
document.read | |
{ | |
title: document.data['title'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "cat" | |
version = "0.1.0" | |
authors = ["hrysd"] | |
[dependencies] | |
getopts = "0.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Servo.h> | |
Servo hoge; | |
int val; // サーボモーターの角度 | |
void setup() { | |
hoge.attach(9); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int LED = 13; | |
const int BUTTON = 7; | |
int val = 0; | |
int old_val = 0; | |
int state = 0; | |
void setup() { | |
pinMode(LED, OUTPUT); | |
pinMode(BUTTON, INPUT); |
> be rails new -h
Usage:
rails new APP_PATH [options]
Options:
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
# Default: /Users/hrysd/.rbenv/versions/2.2.3/bin/ruby
-m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL)
-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
NewerOlder