Skip to content

Instantly share code, notes, and snippets.

View claeusdev's full-sized avatar
🏠
Working from home

Nana Adjei Manu claeusdev

🏠
Working from home
View GitHub Profile
@claeusdev
claeusdev / learn-react.md
Created January 18, 2020 23:21 — forked from sagirk/learn-react.md
How to become a React expert
  1. Carefully do the official [tutorial][].
  2. Read the official guide to [main concepts][].
  3. Read the official [advanced guides][].
  4. Watch [building React from scratch][] to get an idea of how React actually works (this covers the "stack" reconciler which was used in React 15 and earlier).
  5. Go through the [React "fiber" architecture][] which is the default reconciler since React 16.
  6. Go crazy, build your own projects, and stop doing React tutorials!
class Admin::AdminPostsController < InheritedResources::Base
layout 'admin'
before_filter :require_login
before_action :set_post
before_action :set_branches
before_action :set_sections
load_and_authorize_resource
def index
class PostController < ApplicationController
before_action :set_post
before_action :set_active_posts, only: [:create, :update]
def show
@post = @posts.find_by(slug: params[:slug])
@author = @post.author
if !@post.present?
render "errors/404.html", status: :not_found
@claeusdev
claeusdev / ruby_books.md
Created June 30, 2022 16:29 — forked from baweaver/ruby_books.md
A list of books for learning and expanding on your Ruby knowledge.

Ruby Book List

Learning Ruby

You're taking your first steps into Ruby

A good introduction to programming in general. Easy on newer programmers.

@claeusdev
claeusdev / .zshrc
Created September 2, 2022 15:18 — forked from jednano/.zshrc
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
export PATH="/usr/local/opt/python/bin:$PATH"
export GPG_TTY=$(tty)
# export START="$HOME/a"
# if [[ $PWD == $HOME ]]; then
# cd $START
# fi
# alias ls='ls -F --color --show-control-chars'
@claeusdev
claeusdev / rails http status codes
Created October 31, 2023 18:20 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
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