Skip to content

Instantly share code, notes, and snippets.

View scarabaeus's full-sized avatar
🍹

Steve G. scarabaeus

🍹
  • San Francisco, CA
  • 03:07 (UTC -07:00)
View GitHub Profile
@scarabaeus
scarabaeus / Create iOS Icons.jsx
Last active February 9, 2016 15:04 — forked from RichardBronosky/Create iOS Icons.jsx
A modification of the "Create iOS Icons.jsx" script to output file names matching [NativeScript](http://www.nativescript.org) expected convention for iOS.
// Photoshop Script to Create iPhone Icons image (Specifically matching NativeScript icon names.)
// Original: https://gist.github.com/appsbynight/3681050
// Turn debugger on. 0 is off.
// $.level = 1;
try
{
// Prompt user to select iTunesArtwork file. Clicking "Cancel" returns null.
var iTunesArtwork = File.openDialog("Select a sqaure PNG file that is at least 1024x1024.", "*.png", false);
const assetDetailPage = {}
const fetchMachine = Machine({
id: '/assets/:id',
initial: 'loadingAsset',
context: {
pageTitle: '',
loadingAsset: true,
name: '',
locale: '',

Keybase proof

I hereby claim:

  • I am scarabaeus on github.
  • I am steve_gomez (https://keybase.io/steve_gomez) on keybase.
  • I have a public key ASB2uWkCGpRXTzju2IXs0BfaLbCV_7afbyI_d8uT3130Ego

To claim this, I am signing this object:

const showNotifications = false;
const showExceptions = false;
const showSkipEvents = false;
const forwardOnlySkips = true;
const notificationActions = (stepName) => showNotifications ? ([`Send ${stepName} SMS`, `Send ${stepName} Email`, `Send ${stepName} Via Other`]) : ([]);
const claimDispositionActions = notificationActions('Claim Disposition');
const postMessage = (messageName) => ([messageName]);
const fetchMachine = Machine({
id: 'Single Party Pole Hit',
initial: 'Claim Created',
context: {
retries: 0
},
states: {
const fetchMachine = Machine({
id: 'Mock One',
initial: 'entryPoint',
context: {
retries: 0
},
states: {
'entryPoint': {
on: {
@scarabaeus
scarabaeus / machine.js
Last active January 22, 2021 23:29
Generated by XState Viz: https://xstate.js.org/viz
const fetchMachine = Machine({
id: 'fetch',
initial: 'WELCOME SCREEN',
context: {},
states: {
'WELCOME SCREEN': {
on: {
'STEP 1': 'STEP ONE SCREEN'
}
},
@scarabaeus
scarabaeus / machine.js
Last active September 16, 2021 15:49
Generated by XState Viz: https://xstate.js.org/viz
// https://xstate.js.org/viz/?gist=f48e92c2eca22f9af7eeb1b9ce8cebfa
const fetchMachine = Machine({
id: 'toggle',
initial: 'paymentAgreement',
context: {
paymentMethod: '',
debitMaximum: 50000,
checkMinimum: 100,
@scarabaeus
scarabaeus / p4merge-as-git-difftool.md
Created January 16, 2022 19:46
Setting p4merge as default git difftool

Download: P4Merge https://www.perforce.com/downloads/visual-merge-tool and only copy P4Merge to /Applications from the dmg.

~ $ git config --global diff.tool p4merge
~ $ git config --global difftool.p4merge.path /Applications/p4merge.app/Contents/MacOS/p4merge
~ $ git config --global difftool.prompt false

If you receive the error message: qt.qpa.fonts: Populating font family aliases took N ms. Replace uses of missing font family "Courier" with one that exists to avoid this cost. run git difftool and in P4Merge > Preferences... > Text Format > Font replace "Courier" with "Consolas".

@scarabaeus
scarabaeus / machine.js
Created March 28, 2022 00:03
Generated by XState Viz: https://xstate.js.org/viz
const fetchMachine = Machine({
id: 'Shopping Cart Checkout',
initial: 'SERVICE_CALL',
context: {},
states: {
'SERVICE_CALL': {
invoke: {
id: 'getData',
src: 'getMockData',
onDone: {