Skip to content

Instantly share code, notes, and snippets.

View thomasmost's full-sized avatar
everything happened

Thomas Constantine Moore thomasmost

everything happened
View GitHub Profile
@thomasmost
thomasmost / main_18-05-10_20-25-03.778.log
Created May 11, 2018 03:46
NativeScript Sidekick build logs
[18-05-10 20:25:03.785] (Info) ab.actionsLogger.shell.appVersion - {"name":"NativeScript Sidekick","version":"1.9.1-v.2018.4.23.1"}
[18-05-10 20:25:03.789] (Info) ab.addPage.shell.appFlavor - No value provided
[18-05-10 20:25:03.806] (Info) ab.analytics.shell.clientId - 1054803040.1525914897
[18-05-10 20:25:03.822] (Info) ab.appContext.shell.appContext - No value provided
[18-05-10 20:25:03.858] (Info) ab.appValidityWatcher.shell.isAppValid - No value provided
[18-05-10 20:25:03.871] (Info) ab.autoUpdate.shell.updates - {"eventName":"checking-for-update","message":"Checking for updates..."}
[18-05-10 20:25:03.893] (Info) ab.buildDeploy.shell.buildConfigChanged - {"platform":null,"buildType":"Cloud Build","buildConfig":"Debug","emulatorDevice":"nexus5","isClean":false,"useSharedCloud":false,"webpack":{"isWebpack":false,"env":{"uglify":true,"snapshot":true,"aot":true}}}
[18-05-10 20:25:03.898] (Info) ab.buildDeploy.shell.isWebpackSupported - No value provided
[18-05-10 20:25:03.901] (Info) ab.buildDeploy.shell.
yollerhorn
├── dist
│ └── [ compiled server code gets binned here ]
|
├── native
│ ├── app
│ | ├── App Resources
│ | ├── fonts
│ | ├── images
│ | ├── [ app code, organized by feature ]
yollerhorn
├── dist
│ └── [ compiled server code gets binned here ]
├── public
│ └── [ compiled web client goes here ]
|
└── src
├── client
├── models
Verifying my Blockstack ID is secured with the address 17CUHPmggSTmW1CzUdYwtZHfLpdzKxnK9V https://explorer.blockstack.org/address/17CUHPmggSTmW1CzUdYwtZHfLpdzKxnK9V
@thomasmost
thomasmost / introducing-typescript.md
Last active January 22, 2019 20:00
Introducing TypeScript

What Changes

I'll include the corresponding npm commands where reasonable

  • Updated Webpack to ^4.16.0 npm i -D webpack@latest
    • Updated almost all of our loaders to the @latest version
    • Added the required webpack 4 mode flag to our dev and production configs
  • Added TypeScript support for the front-end
  • Installed TypeScript npm i -D typescript@latest
@thomasmost
thomasmost / ecosystem.config.js
Last active January 4, 2021 04:37
High Accuracy Time Sync for Windows using PM2
module.exports = {
apps: [
{
name: 'time_sync',
instances: 1,
script: 'time_sync.bat',
interpreter: 'none',
cron_restart: '*/15 * * * *',
autorestart: false
},
@thomasmost
thomasmost / useBlockingRequest.ts
Created April 9, 2021 20:25
A handy hook for handling a common safety practice with PUT and POST requests: blocking additional calls till the original completes
import { useState } from 'react';
import { ApiResultSuccess, ApiResultFailure } from './services/api.svc';
export function useBlockingRequest() {
const [isRequestPending, setRequestPending] = useState<boolean>(false);
const [lastError, setError] = useState<string>('');
const [hasSucceeded, setHasSucceeded] = useState<boolean>(false);
function blockFor<TData = unknown, TArgs extends Array<unknown> = unknown[]>(
requestHandler: (