Skip to content

Instantly share code, notes, and snippets.

View rogong's full-sized avatar

Ayinde Oluseyi rogong

  • Rogo
  • Nigeria
View GitHub Profile
@rogong
rogong / gameboard.java
Created November 19, 2022 10:27 — forked from ShainaR/gameboard.java
Battleship game created in java
package battleshipgame;
import java.util.ArrayList;
import java.util.Random;
import java.util.Scanner;
public class Gameboard {
private int hits, misses;
private ArrayList<Integer> shipLengthArray = new ArrayList<Integer>();
@rogong
rogong / node_nginx_ssl.md
Created April 2, 2022 01:27 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@rogong
rogong / basicmarket.sol
Created June 24, 2021 21:29 — forked from dabit3/basicmarket.sol
Basic NFT marketplace
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
contract NFT is ERC721URIStorage {
using Counters for Counters.Counter;
@rogong
rogong / devcamper_specs.md
Created April 3, 2021 00:11 — forked from bradtraversy/devcamper_specs.md
Specs for Devcamper Udemy course project

DevCamper Backend API Specifications

Create the backend for a bootcamp directory website. The frontend/UI will be created by another team (future course). The html/css template has been created and can be used as a reference for functionality. All of the functionality below needs to be fully implmented in this project.

Bootcamps

  • List all bootcamps in the database
    • Pagination
    • Select specific fields in result
    • Limit number of results
  • Filter by fields