Skip to content

Instantly share code, notes, and snippets.

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

Owanate Amachree owans

🏠
Working from home
View GitHub Profile
{"id": "378e548e7e8f25418c1876e83f4ee3f121caf85851f74f595ee0ff53692cdd7078e0b9aba9eb2474dd26a9e909c651a33c2e9012cf1cb58b311651829c5b1762"}
@owans
owans / Learning Cloud Computing Day 1.md
Last active May 12, 2020 22:48
This is a gist about all I learnt from PluralSight with Andela Cloud Developer Scholarship

Cloud Computing Day 1: 20200511

What Is Cloud Computing?

NB: The cloud is not the same thing as the internet

General Benefits of Cloud Computing

  • Cost
  • Convenience
@owans
owans / Daily RSK Work Activity for May.md
Last active June 1, 2020 07:02
This is a private gist containing my month's daily activity in RSK
@owans
owans / How To Install Pandoc and LaTex on Mac.md
Last active April 16, 2020 13:20
This is a tutorial on how to install Pandoc and LaTex on Mac Mojave, and solve some common installation errors

How To Install Pandoc and LaTex on MacOS Mojave

I recently had an opportunity to use the Pandoc Universal Document Converter in a project, I needed to run a PDF shell script to output the PDF version of a document, the codebase was already set up with Pandoc using LaTex to convert to a PDF file, this means I had to set up Pandoc and LaTex on my Mac, I faced some errors while trying to run the shell script, so after I solved this errors and outputted the PDF file, I thought to share my experience, and here we go;

System Requirements

  • MacOS Mojave version 10.14.5

Package Requirements

  • Homebrew
{"id": "4e3a6f0b63beed1e147f30d5c366dd54eac2e22438a4c4ec06e13953e41cdb875556670e2a0923ccc9c091b8688b13d683a52a021ba1dde4c795fdd210022ba0"}
@owans
owans / helloWorld.sol
Last active November 24, 2019 16:03
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.11+commit.c082d0b4.js&optimize=false&gist=
pragma solidity ^0.5.11;
contract HelloWorld{
string public message;
function setMessage (string memory newMessage) public {
message = newMessage;
}
@owans
owans / Apitest.js
Last active April 24, 2019 13:07
Write tests using Jest
const axios = require("axios")
const getCatFact = async (req, res) => {
try{
const url = "https://cat-fact.herokuapp.com/facts/random?animal"
const response = await axios.get(url)
const facts = response.data
console.log(facts)
res.json(
@owans
owans / today.md
Last active April 22, 2019 18:34
Today's weather using TDD

var assert = require('assert'); var expect = require('chai').expect;

describe("Today", function(){ it("today's date", function(){ expect (new Date); });

@owans
owans / timeoff_db.md
Last active April 16, 2019 21:38
A workbench image of relationship description for the timeoff_app database

Entities:

Employee Organiation Manager Timeoff_type

Entities and data_types employee_table: id(INT), employee_id(VARCHAR), first_name(VARCHAR), last_name(VARCHAR), gender(VARCHAR), DOB(DATE), LGA(VARCHAR), state_of_origin(VARCHAR), phone_nos(VARCHAR).

@owans
owans / tomorrow.js
Last active April 17, 2019 17:27
API for tomorrow's weather
const ora = require('ora');
const getWeather = require('../utils/weatherforecast');
const getLocation = require('../utils/location');
module.exports = async (args) => {
const spinner = ora().start();
try{
const location = args.location || args.l ||await getLocation();