Documentation uses RGB. https://tailwindcss.com/docs/background-color
bg-black : #000000
bg-white : #FFFFFF
bg-slate-50 : #F8FAFC
bg-slate-100 : #F1F5F9
bg-slate-200 : #E2E8F0
bg-slate-300 : #CBD5E1
Documentation uses RGB. https://tailwindcss.com/docs/background-color
bg-black : #000000
bg-white : #FFFFFF
bg-slate-50 : #F8FAFC
bg-slate-100 : #F1F5F9
bg-slate-200 : #E2E8F0
bg-slate-300 : #CBD5E1
Example inputs:
| Variable | Value |
|---|---|
| key | the shared secret key here |
| message | the message to hash here |
Reference outputs for example inputs above:
| Type | Hash |
| These commands are meant to be followed in conjunction with: | |
| https://www.youtube.com/watch?v=xpYpaRUFzTI | |
| https://gorails.com/deploy/ubuntu/18.04 | |
| ssh [email protected] | |
| adduser deploy | |
| adduser deploy sudo | |
| exit | |
| ssh-copy-id [email protected] | |
| ssh-copy-id [email protected] |
| HTTP status code symbols for Rails | |
| Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
| Status Code Symbol | |
| 1xx Informational | |
| 100 :continue | |
| 101 :switching_protocols | |
| 102 :processing |
| add_filter( 'woocommerce_checkout_fields' , 'custom_remove_woo_checkout_fields' ); | |
| function custom_remove_woo_checkout_fields( $fields ) { | |
| // remove billing fields | |
| unset($fields['billing']['billing_first_name']); | |
| unset($fields['billing']['billing_last_name']); | |
| unset($fields['billing']['billing_company']); | |
| unset($fields['billing']['billing_address_1']); | |
| unset($fields['billing']['billing_address_2']); |
| <ion-toolbar> | |
| <ion-segment [(ngModel)]="selectedSegment" (ionChange)="onSegmentChanged($event)"> | |
| <ion-segment-button value="first"> | |
| First | |
| </ion-segment-button> | |
| <ion-segment-button value="second"> | |
| Second | |
| </ion-segment-button> | |
| <ion-segment-button value="third"> | |
| Third |
| #!/bin/sh | |
| # Clean workspace | |
| rm -rf * | |
| rm .gitignore | |
| # Upgrade Ruby | |
| rvm install ruby-2.4.1 --default | |
| # Start PostgreSQL and fix encoding conflict when creating database |
#Simple Authentication with Bcrypt
This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.
The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).
You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault
##Steps
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |