Skip to content

Instantly share code, notes, and snippets.

View ofonimefrancis's full-sized avatar
🐷

Ofonime Francis ofonimefrancis

🐷
View GitHub Profile
@ofonimefrancis
ofonimefrancis / resume.json
Last active August 21, 2023 13:18
Ofonime's resume
{
"meta": {
"theme": "paper"
},
"basics": {
"name": "Ofonime Francis Usoro",
"label": "Software Engineer",
"image": "https://avatars.githubusercontent.com/u/26252218?v=4",
"summary": "Enthusiastic backend engineer, with 4+ years experience developing web applications and REST api clients. I am dedicated to continuous self improvement and learning new concepts to ease engineering and increase productivity.",
"email": "ofonimeusoro01@gmail.com",
{
"meta": {
"theme": "Kendall"
},
"basics": {
"name": "Keyisha Leeza Kalengeraye",
"label": "Product Designer",
"image": "https://firebasestorage.googleapis.com/v0/b/syndicate-25006.appspot.com/o/kkimage.jpeg?alt=media&token=f00cba21-0614-4446-be8c-67544db3bd80",
"summary": "I am a Product (UI/UX) designer who creates compelling user experience through user interface for early stage startups to help them increase acquisition and help them understand the user's pain points through user research.",
"email": "kkagaju@gmail.com",
@ofonimefrancis
ofonimefrancis / linkedlist.go
Created May 8, 2022 17:35
Implementing LinkedList Operations
package main
import (
"fmt"
)
type LinkedList struct {
Elements *LinkedList
Head *Node
@ofonimefrancis
ofonimefrancis / lru_cache.go
Created May 8, 2022 17:30
Implementing an LRU Cache
import (
"container/list"
"sync"
)
type LRUCache struct {
lock sync.Mutex
cache map[int]*list.Element
ll *list.List
capacity int
@ofonimefrancis
ofonimefrancis / script.sh
Created November 30, 2021 08:51 — forked from vielhuber/script.sh
PostgreSQL: Backup and restore export import pg_dump with password on command line #sql
# best practice: linux
nano ~/.pgpass
*:5432:*:username:password
chmod 0600 ~/.pgpass
# best practice: windows
edit %APPDATA%\postgresql\pgpass.conf
*:5432:*:username:password
# linux
@ofonimefrancis
ofonimefrancis / balancer.go
Created March 23, 2021 09:03 — forked from angeldm/balancer.go
Rob Pike balancer for go
package main
import (
"container/heap"
"fmt"
"math/rand"
"time"
)
const nRequester = 100
package promo
import (
"context"
"log"
"math"
"net/http"
"time"
"googlemaps.github.io/maps"
const path = require('path')
const {app, Menu, BrowserWindow, ipcMain } = require('electron')
const {readFileSync} = require('fs')
const fs = require('fs')
const listViewHtml = readFileSync(path.join(__dirname, '../components/listView.html'), 'utf-8')
ipcMain.on('listview', (event, arg) => {
event.returnValue = listViewHtml
const ipc = require('electron').ipcRenderer
const listView = document.getElementById('nav__list')
listView.addEventListener('click', () => {
const listing = ipc.sendSync('listview', 'see listings')
document.getElementById('main-content').innerHTML = listing
})
<script>
// You can also require other files to run in this process
require('../renderer/index.js')
require('../renderer/dialog.js')
</script>