Class names are CamelCase.
Methods and variables are snake_case.
Methods with a ? suffix will return a boolean.
| terraform { | |
| backend "s3" {} | |
| } | |
| provider "aws" { | |
| region = "ap-southeast-1" | |
| shared_credentials_file = "~/.aws/credentials" | |
| } | |
| data "aws_vpc" "default" { |
| ActionMailer::Base.register_interceptor(BanDisposableInterceptor) |
对编程有了系统的概念,之前总是从入门到放弃,这次终于自己能够做出完整的作品,对于自己学习其它技能的自信心也大大增强了,自己的小创意有了实现的能力,对于编程的越来越有热情。
关于全栈,之前一直觉得自己很全能,什么都会一点,但是在参加 jdstore 比赛的时候发现,一个人的时间是非常有限的,和他人配合能够大大的提高效率,大家一起做才能够在有限的时间内完成理想中的工作量,所以自己会做是一方面,懂得和人配合,团队之间的沟通也非常重要。
docker run --detach
--hostname your_host_name
--env GITLAB_OMNIBUS_CONFIG="gitlab_rails['gitlab_shell_ssh_portv'] = '23';"
--publish 443:443
--publish 80:80
--publish 23:22
--name gitlab
--restart always
--volume pwd/gitlab/config:/etc/gitlab
--volume pwd/gitlab/logs:/var/log/gitlab \
| class API::V1::BaseController < ApplicationController | |
| skip_before_filter :verify_authenticity_token | |
| before_filter :cors_preflight_check | |
| after_filter :cors_set_access_control_headers | |
| def cors_set_access_control_headers | |
| headers['Access-Control-Allow-Origin'] = '*' | |
| headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, DELETE, OPTIONS' |
| ######################## | |
| # Customize the test machine | |
| ######################## | |
| machine: | |
| # Set the timezeone - any value from /usr/share/zoneinfo/ is valid here | |
| timezone: | |
| America/Los_Angeles | |
| # Version of ruby to use |
Part1 Software Engineering Basics
Part2 Web Development Basics
| RSpec.configure do |config| | |
| config.before(:suite) do | |
| DatabaseCleaner.clean_with(:truncation) | |
| end | |
| config.before(:each) do | |
| DatabaseCleaner.strategy = :transaction | |
| end | |
| config.before(:each, js: true) do |