Skip to content

Instantly share code, notes, and snippets.

View AustineA's full-sized avatar
🎯
Focusing

Austine A. AustineA

🎯
Focusing
View GitHub Profile
@AustineA
AustineA / slidespage.html
Created March 26, 2018 19:49 — forked from aarjithn/slidespage.html
Sliding Segments Ionic v2
<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
@AustineA
AustineA / cloud9-setup.sh
Created February 6, 2018 23:07 — forked from thibaudgg/cloud9-setup.sh
Rails 5: The Tour - Step by Step
#!/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

@AustineA
AustineA / 0_reuse_code.js
Created April 6, 2017 07:46
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console