Class names are CamelCase
.
Methods and variables are snake_case
.
Methods with a ?
suffix will return a boolean.
class CreateAlbums < ActiveRecord::Migration[6.1] | |
def change | |
create_table "albums", force: :cascade do |t| | |
t.string "title" | |
t.string "performer" | |
t.integer "cost" | |
t.datetime "created_at", null: false | |
t.datetime "updated_at", null: false | |
t.datetime "last_purchased_at" | |
t.integer "last_purchased_by" |
#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6
Paragraph
Example inputs:
Variable | Value |
---|---|
key | the shared secret key here |
message | the message to hash here |
Reference outputs for example inputs above:
| Type | Hash |
#!/bin/bash | |
# | |
# Ubuntu post-install script | |
# | |
# Author: | |
# Marco Rougeth <[email protected]> | |
# | |
# Description: | |
# A post-installation bash script for Ubuntu (13.10) | |
# |
Deploying a simple Rails application with AWS Elastic Beanstalk by Julien SIMON, Principal Technical Evangelist @ Amazon Web Services | |
18/02/2016 | |
http://www.slideshare.net/JulienSIMON5/deploying-a-simple-rails-application-with-aws-elastic-beanstalk | |
1. . Create a Git repository with AWS CodeCommit | |
$ aws codecommit create-repository --repository-name blog --region us-east-1 --repository-description "ElasticBeanstalk demo" | |
$ git clone ssh://git-codecommit.us- east-1.amazonaws.com/v1/repos/blog | |
2. Create a new Rails application |
code --install-extension alefragnani.Bookmarks | |
code --install-extension alexkrechik.cucumberautocomplete | |
code --install-extension Angular.ng-template | |
code --install-extension BitBelt.converttoasciiart | |
code --install-extension buenon.scratchpads | |
code --install-extension bung87.vscode-gemfile | |
code --install-extension castwide.solargraph | |
code --install-extension christian-kohler.npm-intellisense | |
code --install-extension christian-kohler.path-intellisense | |
code --install-extension codezombiech.gitignore |
#!/usr/bin/env sh | |
# checks to see if running | |
launchctl list | grep elasticsearch | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist | |
launchctl remove homebrew.mxcl.elasticsearch | |
pkill -f elasticsearch |
# This solution attempts to handle flattening of nested arrays gracefully | |
class CustomArray | |
def flatten(array) | |
raise 'input is not an array' unless array?(array) | |
return [] if array.empty? | |
recursive_flatten(array) | |
end | |
private |