2024/07/02 現在
氏名:田村元(たむらげん)
$ openssl genrsa -des3 -out server.orig.key 2048 | |
... | |
Enter pass phrase for server.key: 適当なパスワードを。 | |
Verifying - Enter pass phrase for server.key: もう一度同じパスワードを。 |
#!/usr/bin/env ruby | |
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. | |
APP_PATH = File.expand_path('../../config/application', __FILE__) | |
require File.expand_path('../../config/boot', __FILE__) | |
require 'rubygems' | |
require 'rails/commands/server' | |
require 'rack' | |
require 'webrick' |
group :assets do | |
gem 'sass-rails', '~> 3.2.3' | |
gem 'coffee-rails', '~> 3.2.1' | |
gem 'compass-rails' | |
gem 'uglifier', '>= 1.0.3' | |
end |
<%= form_for(@user) do |f| %> | |
<% if @user.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2> | |
<ul> | |
<% @user.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% end %> | |
</ul> |
Demo |
#!/bin/sh | |
# Ubuntu setup from vagrant | |
###### via https://gorails.com/setup/ubuntu/14.04 | |
echo "Packages setting..." | |
sudo apt-get -y update | |
sudo apt-get -y install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev | |
## Ruby | |
echo "Ruby setting..." | |
cd |
{ | |
"foo": "ふー", | |
"bar": "ばー", | |
"baz": "ばず", | |
"foo": "フー", | |
"bar": "バー", | |
"baz": "バズ" | |
} |
{ | |
"public": true, | |
"builds": [ | |
{ | |
"src": "vercel_basic_auth.js", | |
"use": "@vercel/node" | |
} | |
], | |
"routes": [ | |
{ |
const createFontDebugComponent = (Component) => ( | |
Array<number>(9) | |
.fill(0) | |
.map<number>((_, i) => i + 1) | |
.map<number>((size) => { | |
const weight = size * 100; | |
return ( | |
<Component size={size} weight={weight} /> | |
); |