hardkorebob

joined 8 months ago
[–] hardkorebob@programming.dev 1 points 6 months ago* (last edited 6 months ago)

Woeks well on:

OS: Fedora Linux 40 (Forty) x86_64 :: i3 Edition

Host: OptiPlex 9010

Kernel: 6.8.5-301.fc40.x86_64

CPU: Intel i7-3770S (8) @ 3.900GHz

GPU: AMD ATI Radeon RX 470/480/570/570X/580/580X/590

Memory: 1955MiB / 19862MiB

Runs Ghostrunner on Steam very well for old hardware.

[–] hardkorebob@programming.dev 4 points 6 months ago

Fork it and Make Pull Request. πŸ‘

 

A Shell DSL that transforms into Python.

I created this IDE to spin up Tkinter UIs or anything Python with less boilerplate and rich cognitive and efficiency shortcuts: for me, I think this tool helps me prototype GUI apps quicker with less characters typed so less effort.

I would love to take this further if I could get anyone interested. Thanks.

https://github.com/dislux-hapfyl/shimky

[–] hardkorebob@programming.dev 2 points 6 months ago

I wanna make some cool stuff. I just need some other hackers like me. LOL

 

https://github.com/dislux-hapfyl/shimky

This code is a highly abstracted and unconventional script that appears to be for generating Python code using Bash shell script constructs. It mimics object-oriented programming concepts within a shell scripting context, translating them into Python code generation. Here's a breakdown of what different parts of the script do:

Shebang and Author Information: The script starts with a shebang for Bash, and author details are provided in a comment.

Global Variables:

Various variables are set for use within the generated Python code, such as bg for background color, datenow for the current date and time, px and py for padding values, etc. S, E, and _ are shorthand for self, echo, and expr respectively, simplifying the syntax for commonly used operations. Function Definitions:

The script defines several functions (ZDimp, ZDas, ZDshebang, etc.) that output Python code. Each function generates specific parts of Python code, like imports, class definitions, and method definitions. Functions like ZFtoorwin, XIcv, and ZDcld are used for generating more complex constructs like class instantiation and method invocation within classes. Control Structures:

It includes shell-based control structures to create conditional (if, elif, else) and looping constructs (for, while) in the generated Python code. The constructs use a mix of direct shell commands and placeholders for Python code, indicating that the script likely works alongside other tools or scripts that provide inputs dynamically. Instance and Function Call Generation:

Functions for setting instance variables (ZIfv, YIfv, etc.) and making function calls (ZFfc, YFfc, etc.) dynamically build Python code that manipulates class instances and calls methods. These functions are versatile, allowing for different indentation levels and conditions to be specified dynamically. Utility Operations:

Functions like XFshsp, XFpyev, and others handle subprocess execution, text manipulation, and variable assignment within the generated Python environment. These functions are intended to be flexible and reusable across different parts of the generated code, indicating a modular approach to code generation. Error Handling and Debugging:

The script includes structures for try-except-finally blocks (XKtry, XKexcp, XKfin), allowing generated Python code to handle exceptions effectively. This suggests that the generated code is expected to run in environments where robust error handling is necessary. In summary, this Bash script serves as a meta-programming tool that dynamically generates Python code. It abstracts Python programming constructs into shell script functions, allowing the script writer to generate complex Python applications using shell command syntax. This approach is unconventional and seems tailored for specific use cases where such a level of abstraction is beneficial, perhaps in automated code generation tools or educational environments where showing the transformation of simple commands into Python code can be illustrative.

[–] hardkorebob@programming.dev 1 points 6 months ago* (last edited 6 months ago)

pnk.lang is a DSL made in Shell. It is used to build Tkinter GUI Python Applications a nicer ordeal. I built an IDE on top of pnk.lang. Shimky is that IDE.

[–] hardkorebob@programming.dev 3 points 6 months ago (2 children)

shimky a vim clone weird thing in pnk.lang

https://github.com/dislux-hapfyl/shimky

[–] hardkorebob@programming.dev 4 points 7 months ago (1 children)

I need to build a site like this for my app lol

Very nice is what I am saying!

[–] hardkorebob@programming.dev 3 points 7 months ago* (last edited 7 months ago)

https://youtu.be/q2tfkVe6hTo

https://github.com/dislux-hapfyl/pynksh

Working on making dev of tkinter and pythong* a breeze for any newcomer that's willing to learn a bit different from the mainstream tutorials, videos, docs and mass methods of learning. This guy's ways are more fun than any of those YT videos of piecemeal-coding. If you find that kind of learning extremely boring hmu fam...

*I dont like python syntax, it's uGly, but I do because it was waiting for me to abstract it away by creating pnk.lang. When you see my repo you will understand, maybe...

#allerrorsmatter

 

Using Tkinter and Some Ninja CLI Skillz

[–] hardkorebob@programming.dev 1 points 7 months ago

Let’s eat grandma!

Music or Resume writing?

WDYM?

[–] hardkorebob@programming.dev 2 points 7 months ago

I sure did. Please apologies.

 

korn shell wrapper that outputs python code: you write shell > out comes the snake

view more: next β€Ί