Skip to content

Instantly share code, notes, and snippets.

Working from home

Ofonime Francis ofonimefrancis

Working from home
Block or report user

Report or block ofonimefrancis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View distance.go
package promo
import (
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
// You can also require other files to run in this process
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 (
client ""
View logger
import (
client ""
var log *logrus.Logger
View queryStruct
type Query struct {
Command string
Database string
RetentionPolicy string
Precision string
Chunked bool
ChunkSize int
Parameters map[string]interface{}
You can’t perform that action at this time.