Skip to content

Instantly share code, notes, and snippets.

View harshitsilly's full-sized avatar
🚀
light

harshit harshitsilly

🚀
light
View GitHub Profile
@harshitsilly
harshitsilly / machine.js
Created October 14, 2020 07:51
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@harshitsilly
harshitsilly / generateZipAndBlockamp.js
Last active December 15, 2020 05:40
Electron builder rebuild zip and update blockmap to work with auto-updater.
const path = require('path');
const { execSync } = require('child_process');
const fs = require('fs');
const yaml = require('js-yaml');
const { appBuilderPath } = require('app-builder-bin');
const currentWorkingDirectory = process.cwd();
const packageInfo = require(path.join(currentWorkingDirectory, 'package.json'));
const APP_NAME = packageInfo.build.productName;
const APP_VERSION = process.argv[2] ? process.argv[2] : packageInfo.version;
@harshitsilly
harshitsilly / cloudSettings
Created July 7, 2020 20:10
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-07-07T20:10:19.627Z","extensionVersion":"v3.4.3"}