Skip to content

Instantly share code, notes, and snippets.

@jerbaroo
jerbaroo / electron.js
Last active February 28, 2017 15:14
`electron.js` which waits on a child process local server
const { app, BrowserWindow } = require('electron');
const freeport = require('freeport');
const spawn = require('child_process').spawn;
const waitOn = require('wait-on');
const timeout = 10000; // Time to wait for Threepenny server, milliseconds
// Assign a random port to run on.
freeport((err, port) => {
if (err) throw err;
{
"dependencies": {
"electron": "^1.4.15",
"freeport": "^1.0.5",
"wait-on": "^2.0.2"
}
}
@jerbaroo
jerbaroo / config.yml
Created November 14, 2019 12:26
.circleci/config.yml
# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
version: 2
jobs:
build:
docker:
- image: circleci/python:3.7.5
environment: