Skip to content

Instantly share code, notes, and snippets.

View JamesHenry's full-sized avatar

James Henry JamesHenry

View GitHub Profile
//Menu: Convert HEIC Images to JPEG or PNG
const FileType = await npm('file-type');
const convert = await npm('heic-convert');
// Seems to be no way to get this from the env...
const SCRIPT_NAME = 'convert-heic';
const SCRIPT_KIT_OUTPUTS_DIR = '/Users/james/ScriptKit Outputs';
// NOTE: Not rendering custom placeholder, reported here: https://github.com/johnlindquist/kit/discussions/332#discussioncomment-960487
//Menu: Convert HEIC Images to JPEG or PNG
const FileType = await npm('file-type');
const convert = await npm('heic-convert');
// Seems to be no way to get this from the env...
const SCRIPT_NAME = 'convert-heic';
const SCRIPT_KIT_OUTPUTS_DIR = '/Users/james/ScriptKit Outputs';
// NOTE: Not rendering custom placeholder, reported here: https://github.com/johnlindquist/kit/discussions/332#discussioncomment-960487
//Menu: Convert HEIC Images to JPEG or PNG
const FileType = await npm('file-type');
const convert = await npm('heic-convert');
// Seems to be no way to get this from the env...
const SCRIPT_NAME = 'convert-heic';
const SCRIPT_KIT_OUTPUTS_DIR = '/Users/james/ScriptKit Outputs';
// NOTE: Not rendering custom placeholder, reported here: https://github.com/johnlindquist/kit/discussions/332#discussioncomment-960487
/** @type {import("@johnlindquist/kit")} */
// Menu: Say Hello World Shortcut
// Description: Trigger macOS Monterey Shortcut from Script Kit
// Author: James Henry
// Twitter: @MrJamesHenry
/**
* I have created a Shortcut on my Mac running macOS Monterey called
* "Say Hello World".
@JamesHenry
JamesHenry / macos-monterey-shortcuts-example.js
Created October 29, 2021 10:49
Script Kit - Say Hello World Shortcut
/** @type {import("@johnlindquist/kit")} */
// Menu: Say Hello World Shortcut
// Description: Trigger macOS Monterey Shortcut from Script Kit
// Author: James Henry
// Twitter: @MrJamesHenry
/**
* I have created a Shortcut on my Mac running macOS Monterey called
* "Say Hello World".

Keybase proof

I hereby claim:

  • I am jameshenry on github.
  • I am jameshenry (https://keybase.io/jameshenry) on keybase.
  • I have a public key ASBRbGY2oH7HHVhFJa2mSPxt5C6czJrN8pejQn4tGVmkUgo

To claim this, I am signing this object:

@JamesHenry
JamesHenry / app\actions\foo.ts
Last active March 27, 2017 23:12 — forked from Hotell/app\app.component.ts
ngMetadata 2.x - with @ngrx/store
import { Injectable } from 'ng-metadata/core'
import { Action } from '@ngrx/store'
interface SomePayload {
baz: string
}
/**
* Instead of passing around action string constants and manually recreating
* action objects at the point of dispatch, we create services encapsulating
@JamesHenry
JamesHenry / app\app.component.ts
Created July 2, 2016 12:33 — forked from Hotell/app\app.component.ts
ngMetadata 2.x - quick start
import { Component } from 'ng-metadata/core';
@Component({
selector: 'my-app',
template: '<h1>My First Angular 1 App <small>with ng-metadata!</small></h1>'
})
export class AppComponent { }