View resume.json
{ | |
"basics": { | |
"name": "Usoro, Ofonime Francis", | |
"label": "Software Engineer", | |
"picture": "https://avatars0.githubusercontent.com/u/26252218?s=460&v=4", | |
"email": "ofonimeusoro01@gmail.com", | |
"phone": "+250780102786", | |
"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.", | |
"location": { | |
"address": "KG 706, House 23", |
View distance.go
package promo | |
import ( | |
"context" | |
"log" | |
"math" | |
"net/http" | |
"time" | |
"googlemaps.github.io/maps" |
View ipcMain returnValue
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 |
View renderer-listview
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 | |
}) |
View index.html
<script> | |
// You can also require other files to run in this process | |
require('../renderer/index.js') | |
require('../renderer/dialog.js') | |
</script> |
View loadRenderer.js
mainWindow.loadFile(path.join(__dirname, '/index.html')) |
View package.json
{ | |
"name": "electron-kickstarter", | |
"version": "1.0.0", | |
"main": "./src/main-process/main.js", | |
"scripts": { | |
"start": "electron .", | |
"dev": "electron . --debug" | |
} | |
} |
View validator
/** | |
* @fileOverview Class to validate user input for order | |
* @class Orders validator | |
* @exports ValidateOrders | |
*/ | |
class ValidateOrder { | |
/** | |
* validate orders input validity | |
* @param {Object} request |
View logrusLogger
package logger | |
import ( | |
"path" | |
"runtime" | |
"github.com/Abramovic/logrus_influxdb" | |
client "github.com/influxdata/influxdb/client/v2" | |
"github.com/sirupsen/logrus" | |
) |
View logger
import ( | |
"path" | |
"runtime" | |
"github.com/Abramovic/logrus_influxdb" | |
client "github.com/influxdata/influxdb/client/v2" | |
"github.com/sirupsen/logrus" | |
) | |
var log *logrus.Logger |
NewerOlder