Fantastic work, thanks!
Best posts made by imnegan
Latest posts made by imnegan
Auto add/commit/push to github in Stash
So I have Stash up and running in order to backup and sync a project between multiple devices, one of which is a corporate laptop that is locked down so that I’m unable to install Dropbox/Google Drive etc.
Are there any tricks to get Stash (or another workflow) to automatically sync changes to github on the fly, similar to editing a google docs file that saves online as you type, without having to manually got through the mojo-deflating Stash process of
git add stuff.py git commit git push
Any suggestions? Totally keen to try non-git and/or non-Stash solutions if they’re out there.
Numpy ‘module enum has no attribute intflag
Something strange is happening when I try to import numpy. I have one line of code in my py file, which I created in the default Pythonista location.
import numpy as np
Which returns the following error:
Traceback (most recent call last): File "/var/containers/Bundle/Application/D8A31B2E-150C-4276-B4D5-22A9AC389F51/Pythonista3.app/Frameworks/Py3Kit.framework/pykit_startup.py", line 51, in <module> main() File "/var/containers/Bundle/Application/D8A31B2E-150C-4276-B4D5-22A9AC389F51/Pythonista3.app/Frameworks/Py3Kit.framework/pykit_startup.py", line 47, in main import importcompletion File "/var/containers/Bundle/Application/D8A31B2E-150C-4276-B4D5-22A9AC389F51/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/importcompletion.py", line 26, in <module> import imp File "/var/containers/Bundle/Application/D8A31B2E-150C-4276-B4D5-22A9AC389F51/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/imp.py", line 28, in <module> import tokenize File "/var/containers/Bundle/Application/D8A31B2E-150C-4276-B4D5-22A9AC389F51/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/tokenize.py", line 34, in <module> import re File "/var/containers/Bundle/Application/D8A31B2E-150C-4276-B4D5-22A9AC389F51/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/re.py", line 143, in <module> class RegexFlag(enum.IntFlag): AttributeError: module 'enum' has no attribute 'IntFlag'
Any ideas? I have stash installed, but numpy was going just fine when I last used Pythonista a couple of weeks ago.
Stash gh SyntaxError
I have installed StaSh and am following the tutorial here .
Unfortunately at the very first step:
[~/Documents]$ gh create --help
I get the following error:
stash: <type 'exceptions.SyntaxError'>: invalid syntax (jwk.py, line 60)
Any idea how to resolve this?
Show all scene child nodes
I am building a model of the solar system using the Scene class. In the model each planet is a child node of the sun, and the moons are child nodes of their respective planets.
Is there a way to show all child nodes of a selected node on screen without adding them as child node of the Scene itself? For example: Jupiter, when selected, is at the centre of the screen as the parent node. All of its moons (Io, Europa, etc) are Jupiter's child nodes and would be shown also.
Frame vs rect
I'm having a great time learning programming and python with Pythonista (awesome app!) by making a little space game. In it I have some satellites orbiting a planet. The satellites should be:
- selectable, ie "clickable", to execute actions (like displaying info)
- represented by an icon, the ellipse or rect functions would be fine or the white_circle image
- they orbit the planet.
Would I be better off using a layer/frame or just a simple rect/ellipse? What are the advantages of using frames?
Thanks in advance.