vince

Recurring Events on Rails

Get this gem https://github.com/seejohnrun/ice_cube Go Rails videos https://www.youtube.com/watch?v=0tczntjIrKc https://www.youtube.com/watch?v=-nZedbdrTd8 Drifting Ruby videos https://www.youtube....

  • Updated about 2 hours ago by vince
Create Amazon IAM user

Step 1: https://docs.aws.amazon.com/IAM/latest/UserGuide/getting-startedcreate-admin-group.html Step 2: https://console.aws.amazon.com/iam/home?#/securitycredentials

  • Updated 3 days ago by vince
SendGrid on Heroku

Not sure why everything I looked online makes it look complicated but this worked. And you don't even need to add the SendGrid gem. /config/environments/production.rb ruby config.action_mailer.de...

  • Updated 5 days ago by vince
Sample workflow to undo changes

Understand this simple workflow to properly understand how revert and reset works ``` ~/code/gitfaffing % pico hello.txt ~/code/gitfaffing % git init ~/code/gitfaffing % git add . ~/code/gitfaffing...

Merge

Fast Forward Merge when you just have a simple branch from the master tip ``` Start a new feature git checkout -b new-feature master Edit some files git add <file> git commit -m "Start a feature" E...

Tips and Tricks

see compact tree of all your commits git log --graph --all --oneline --decorate if you do this a lot, you can add it as an alias ~/gitfaffing % git config --global alias.go 'log --graph --all --...

  • Updated 6 days ago by vince
Working Directory, Staging Area, and Repository

(a) The working directory contains the files that are not handled by git. These files are also referred to as "untracked files." (b) Staging area contains the files that are going to be a part of t...

Undoing Changes

Undo latest commit using git revert HEAD ``` ~/code/gitfaffing % git log --oneline 481db44 (HEAD -> master) crazy edit of world.txt be880c6 added world.txt and edited hello.txt aa1a9d2 init ~/code/...

Branch

list branches git branch ` create (and checkout) new branch git checkout -b crazy-experiment ` delete branch (after merging) git branch -d crazy-experiment delete branch (not merged but you don...

Cloning an existing repository

  • Updated 6 days ago by vince
Initializing a new Git repo

/Users/Sosie/code/lukeko ruby git init git add . git commit -m "init" Make changes and then ruby git commit -a -m "summary of what changed" If you add a file ruby git add . git commit -a -m "summ...

  • Updated 6 days ago by vince
Getting Started

Install Fontawesome in Rails 6

% yarn add @fortawesome/fontawesome-free app/assets/stylesheets/application.scss scss @import '@fortawesome/fontawesome-free/scss/fontawesome'; in any view html <i class="fas fa-dragon"></i> ht...

Installing Bootstrap in Rails 6

% yarn add bootstrap jquery popper.js app/config/webpack/environment.js ```javascript const { environment } = require('@rails/webpacker') const webpack = require('webpack') environment.plugins.ap...

Run Heroku Rails apps in production mode locally

Procfile web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development} .env RACK_ENV=production PORT=3000 .gitigore .env % rails assets:precompile % heroku local

  • Updated 8 days ago by vince
Manage Ruby versions with rbenv

update rbenv ``` $ brew upgrade rbenv ruby-build list all available versions: $ rbenv install -l install a Ruby version: $ rbenv install 2.7.1 ``` set default/global version of ruby ~/.rbenv % ls ...

  • Updated 8 days ago by vince
Save leaderstats to DataStore

ServerScriptService/PlayerSetup ```lua local DataStoreService = game:GetService("DataStoreService") local playerGold = DataStoreService:GetDataStore("playerGold") local function onPlayerJoin(player...

UserId

The UserId uniquely identifies every user account on Roblox. Unlike Instance.Name of a Player, which may change according the user’s present username, this value will never change for the same acco...

Beginner Video Tutorials

Video tutorials from Blender Guru https://www.youtube.com/playlist?list=PLjEaoINr3zgEq0u2MzVgAaHEBt--xLB6U

  • Updated 10 days ago by vince
Leaderboards

ServerScriptService/PlayerSetup ```lua local function onPlayerJoin(player) local leaderstats = Instance.new("Folder", player) leaderstats.Name = "leaderstats" local gold = Instance.new("Int...