DevOps Resources - 0 views
Viral JS - 0 views
Git Workflow Basics - The Miners - 0 views
elabs/pundit: Minimal authorization through OO design and pure Ruby classes - 0 views
-
The class implements some kind of query method
-
Pundit will call the current_user method to retrieve what to send into this argumen
-
put these classes in app/policies
- ...49 more annotations...
The Asset Pipeline - Ruby on Rails Guides - 0 views
-
provides a framework to concatenate and minify or compress JavaScript and CSS assets
-
adds the ability to write these assets in other languages and pre-processors such as CoffeeScript, Sass and ERB
-
invalidate the cache by altering this fingerprint
- ...80 more annotations...
Auto DevOps | GitLab - 0 views
-
Auto DevOps provides pre-defined CI/CD configuration which allows you to automatically detect, build, test, deploy, and monitor your applications
-
Just push your code and GitLab takes care of everything else.
-
Auto DevOps will be automatically disabled on the first pipeline failure.
- ...78 more annotations...
Running Terraform in Automation | Terraform - HashiCorp Learn - 0 views
-
In default usage, terraform init downloads and installs the plugins for any providers used in the configuration automatically, placing them in a subdirectory of the .terraform directory.
-
allows each configuration to potentially use different versions of plugins.
-
In automation environments, it can be desirable to disable this behavior and instead provide a fixed set of plugins already installed on the system where Terraform is running. This then avoids the overhead of re-downloading the plugins on each execution
- ...12 more annotations...
State: Workspaces - Terraform by HashiCorp - 0 views
-
The persistent data stored in the backend belongs to a workspace.
-
Certain backends support multiple named workspaces, allowing multiple states to be associated with a single configuration.
-
Terraform starts with a single workspace named "default". This workspace is special both because it is the default and also because it cannot ever be deleted.
- ...12 more annotations...
Rails Environment Variables · RailsApps - 1 views
-
You can pass local configuration settings to an application using environment variables.
-
Operating systems (Linux, Mac OS X, Windows) provide mechanisms to set local environment variables, as does Heroku and other deployment platforms.
-
In general, you shouldn’t save email account credentials or private API keys to a shared git repository.
- ...10 more annotations...
深度解读 - TDD(测试驱动开发) - 简书 - 0 views
-
TDD的原理是在开发功能代码之前,先编写单元测试用例代码,测试代码确定需要编写什么产品代码。
-
TDD 并不能直接提高设计能力,它只是给你更多机会和保障去改善设计。
-
写测试,只关注需求,程序的输入输出,不关心中间过程
- ...21 more annotations...
ruby-grape/grape: An opinionated framework for creating REST-like APIs in Ruby. - 0 views
-
Grape is a REST-like API framework for Ruby.
-
designed to run on Rack or complement existing web application frameworks such as Rails and Sinatra by providing a simple DSL to easily develop RESTful APIs
-
Grape APIs are Rack applications that are created by subclassing Grape::API
- ...54 more annotations...
Ruby on Rails 實戰聖經 | 自動化測試 - 0 views
-
最小的測試粒度叫做Unit Test單元測試,會對個別的類別和方法測試結果如預期。再大一點的粒度稱作Integration Test整合測試,測試多個元件之間的互動正確。最大的粒度則是Acceptance Test驗收測試,從用戶觀點來測試整個軟體。
-
單元測試,通常會由開發者自行負責測試,因為只有你自己清楚每個類別和方法的內部結構是怎麼設計的。
-
哪來的時間做自動化測試呢?這個想法是相當短視和業餘的想法
- ...18 more annotations...
A Good Vimrc - 1 views
-
Don't put any lines in your vimrc that you don't understand.
-
the absolute worst way to make your environment better is to just copy it wholesale from others
-
adding features one by one to your vimrc aids in overall Vim comprehension
- ...3 more annotations...
The Exhaustive Guide to Rails Time Zones - Alexander Danilenko - 0 views
-
you can use "wrong" methods in development and fairly often get valid results. But then you'll face with unexpected problems on production.
-
Ruby provides two classes to manage time: Time and DateTime
-
that's in Ruby! When it comes to Rails things get a bit more complicated
- ...15 more annotations...
Deploying Rails Apps, Part 6: Writing Capistrano Tasks - Vladi Gleba - 0 views
-
we can write our own tasks to help us automate various things.
-
organizing all of the tasks here under a namespace
-
upload a file from our local computer.
- ...27 more annotations...
Interviewing a front-end developer - 0 views
Rails Application Templates - Ruby on Rails Guides - 1 views
-
Application templates are simple Ruby files containing DSL for adding gems/initializers etc. to your freshly created Rails project or an existing Rails project.
-
copy_file will accept relative paths to your template's location
Introduction to MongoDB - MongoDB Manual - 0 views
-
MongoDB is a document database designed for ease of development and scaling
-
MongoDB offers both a Community and an Enterprise version
-
A record in MongoDB is a document, which is a data structure composed of field and value pairs.
- ...12 more annotations...
« First
‹ Previous
161 - 180 of 192
Next ›
Showing 20▼ items per page