Skip to content

Instantly share code, notes, and snippets.

View eiberham's full-sized avatar
:octocat:
Learning

Abraham Cedeño eiberham

:octocat:
Learning
View GitHub Profile
@eiberham
eiberham / machine.js
Last active August 2, 2022 05:09
Generated by XState Viz: https://xstate.js.org/viz
const steps = [
{ name : 'hospital', required : true },
{ name : 'building', required : true },
{ name : 'floor', required : true }
]
const check = () => {
console.log('check called')
const userId = 'user-id'
return steps.reduce( ( acc, val ) => {
@eiberham
eiberham / installer.txt
Last active October 4, 2020 08:39
How to create a mac os x app with python
# first off, install py2app package.
# docs --> https://py2app.readthedocs.io/en/latest/install.html#installing-with-pip
pip3 install -U py2app
# then go to python project's root directory, and run py2applet --make-install command:
py2applet --make-install script.py
# the above command will generate a setup.py file, we must edit it in case we were using
@eiberham
eiberham / cleanup.sh
Last active July 13, 2020 00:26
Keep your local repository clean
#!/bin/sh
# cleanup of local repository
set -e
echo "*** Listing branches already merged to develop *** \n"
git checkout develop > /dev/null 2>&1