-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WTF #90
Comments
@King-Oni you think this is an abomination ? particle-life/particle_life/src/ofApp.cpp Line 59 in 8b64fcc
|
how's your better implementation going ? |
lol |
I did make a better version that are made for human consumption, then went to work on another project, and like the Idiot I am I did |
Waiting to see the grace of the Pythonic God |
LOLLLL |
im actually on the floor rn |
Welp I now did rerewrite it but I'm blocked out of github cause 2FA and
Microsoft doesn't support Egypt
Making me look even far worse than what I have been lol
…On Sun, Nov 19, 2023, 2:21 AM Crooked Alter ***@***.***> wrote:
im actually on the floor rn
—
Reply to this email directly, view it on GitHub
<#90 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOUNPJ35Y3D4HGCZWIT23Q3YFFGG3AVCNFSM6AAAAAAX6KUYNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXGY4TMOJRHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
wait, but I can't even run the C++ program because the ofMain.h; ofxGui.h and ofUtils.h don't even exist... |
it's a bit annoying how openframeworks work. you need to install the framework and import the project. i think it's described somewhere in the readme. |
Thank you |
How is your Python programming going? I can't wait to see some top tier code |
I have finished I just can't log into github and deploy it because of the 2
factor authentication
I live in a country that isn't supported :(
…On Thu, Jan 4, 2024, 11:30 PM Alan Haertel ***@***.***> wrote:
How is your Python programming going? I can't wait to see some top tier
code
—
Reply to this email directly, view it on GitHub
<#90 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOUNPJ7AL6EME2AN4353HJ3YM4NN7AVCNFSM6AAAAAAX6KUYNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZXG44DKNZYHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
sure
…On Fri, Jan 5, 2024 at 6:54 AM King Oni ***@***.***> wrote:
I have finished I just can't log into github and deploy it because of the
2
factor authentication
I live in a country that isn't supported :(
On Thu, Jan 4, 2024, 11:30 PM Alan Haertel ***@***.***> wrote:
> How is your Python programming going? I can't wait to see some top tier
> code
>
> —
> Reply to this email directly, view it on GitHub
> <
#90 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AOUNPJ7AL6EME2AN4353HJ3YM4NN7AVCNFSM6AAAAAAX6KUYNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZXG44DKNZYHE>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#90 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BAQPTOJGSOGCVKDRSP4N6P3YM7ZZLAVCNFSM6AAAAAAX6KUYNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZYGYZDANJZGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
*-----------------------------*
*Christian Osei*
6th Grade - Homeroom / Ellis
-----------------------------------------
|
Here is a pythonic version, I asked ChatGPT to modify the Python code so that the pythonic community are happy :)
|
Finally my restless python demons shall let me rest `\\_(*W*)_//`
…On Thu, Aug 29, 2024 at 7:26 PM Hunar Ahmad ***@***.***> wrote:
Here is a pythonic version, I asked ChatGPT to modify the Python code so
that the pythonic community are happy :)
`import matplotlib.pyplot as plt
import random
import math
window_size = 200
class Atom:
def *init*(self, x, y, color):
self.x = x
self.y = y
self.vx = 0
self.vy = 0
self.color = color
def update_position(self):
self.x = min(max(self.x + self.vx, 0), window_size)
self.y = min(max(self.y + self.vy, 0), window_size)
self.vx *= -1 if self.x in {0, window_size} else 1
self.vy *= -1 if self.y in {0, window_size} else 1
def apply_force(self, fx, fy):
self.vx = (self.vx + fx) * 0.5
self.vy = (self.vy + fy) * 0.5
def draw(ax, atom, size=3):
ax.plot(atom.x, atom.y, 'o', color=atom.color, markersize=size)
def random_position():
return random.uniform(1, window_size)
def create_atoms(number, color):
return [Atom(random_position(), random_position(), color) for _ in
range(number)]
def apply_rule(atoms1, atoms2, g):
for a in atoms1:
fx, fy = 0, 0
for b in atoms2:
dx, dy = a.x - b.x, a.y - b.y
distance = math.hypot(dx, dy)
if 0 < distance < 50:
force = g / distance
fx += force * dx
fy += force * dy
a.apply_force(fx, fy)
a.update_position()
yellow = create_atoms(50, "yellow")
red = create_atoms(50, "red")
green = create_atoms(50, "green")
all_atoms = yellow + red + green
fig, ax = plt.subplots()
ax.set_xlim(0, window_size)
ax.set_ylim(0, window_size)
ax.set_facecolor('black')
def update():
ax.clear()
ax.set_xlim(0, window_size)
ax.set_ylim(0, window_size)
ax.set_facecolor('black')
apply_rule(green, green, -0.32);
apply_rule(green, red, -0.17);
apply_rule(green, yellow, 0.34);
apply_rule(red, red, -0.1);
apply_rule(red, green, -0.34);
apply_rule(yellow, yellow, 0.15);
apply_rule(yellow, green, -0.2);
for atom in all_atoms:
draw(ax, atom)
plt.pause(0.01)
while(True):
update()
plt.draw()
plt.close()`
—
Reply to this email directly, view it on GitHub
<#90 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOUNPJYPJ23D6YDVPN7J6FLZT5DTNAVCNFSM6AAAAAAX6KUYNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJYGI4TIMZXGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I dont know who the hell wrote this hellish unpythonic buggy abomination
THIS is the worst python program I have ever seen
Lucky for you I'll write a better implementation don't ever touch the holy python with your unpythonic hands ever again
The text was updated successfully, but these errors were encountered: