Skip to content

Instantly share code, notes, and snippets.

View ignatius22's full-sized avatar
😀
Available for Hire and Looking for New Opportunities.

Ignatius Sani ignatius22

😀
Available for Hire and Looking for New Opportunities.
View GitHub Profile
@ignatius22
ignatius22 / MyComponent.js
Last active June 11, 2021 20:36
Result of converted component from class in to a funcrional component.
import React, { useEffect } from "react";
const MyComponent = ({ fetchDrafts, fetchHistory }) => {
useEffect(() => {
fetchDrafts();
fetchHistory();
const fetchDraftsTimer = setInterval(() => {
fetchDrafts();
}, 120000);
@ignatius22
ignatius22 / index.html
Created October 8, 2020 16:35
Tic Tac Toe
<div id="errors" style="
background: #c00;
color: #fff;
display: none;
margin: -20px -20px 20px;
padding: 20px;
white-space: pre-wrap;
"></div>
<div id="root"></div>
<script>
@ignatius22
ignatius22 / index.html
Created October 8, 2020 15:56
Tic Tac Toe
<div id="errors" style="
background: #c00;
color: #fff;
display: none;
margin: -20px -20px 20px;
padding: 20px;
white-space: pre-wrap;
"></div>
<div id="root"></div>
<script>
@ignatius22
ignatius22 / tutorial.md
Created August 27, 2020 21:24 — forked from Hinsei/tutorial.md
Using Cloudinary With CarrierWave Rails

Uploading Files To A Cloud Via Cloudinary and CarrierWave with Rails

This is a tutorial on how to use Cloudinary cloud services with carrierwave to upload files, in this case we would like to use it for image uploading for our users avatar

Sign Up For A Cloudinary Account

Cloudinary -> Sign up for an account here!

Take Note Of Details In Your Dashboard

After successfuly signing up, you will be redirected to your dashboard.

@ignatius22
ignatius22 / RAILS_CHEATSHEET.md
Created July 22, 2020 18:23 — forked from mdang/RAILS_CHEATSHEET.md
Ruby on Rails Cheatsheet

Ruby on Rails Cheatsheet

Architecture

Create a new application

Install the Rails gem if you haven't done so before