what do you use for sharing #code ?
what do you use for sharing #code ?
Ich unterstelle, das #microsoft #code von #github klaut und für #KI benutzt
6 Best CDN Providers ! Zoom: https://comunidad.nubecolectiva.com/flyer/6-best-cdn-providers
6 Mejores Proveedores de CDN ! Zoom: https://comunidad.nubecolectiva.com/flyer/6-mejores-proveedores-de-cdn
How to Get Mode with Python and SciPy.
Como Obtener el Modo con Python y SciPy.
https://nubecolectiva.com/blog/como-obtener-el-modo-con-python-y-scipy/
I have written code. It works perfectly every time and reports any problems if it doesn't.
But I can't relax because I know that in the script there is
𝚜𝚝𝚊𝚛𝚝 𝚘𝚙𝚎𝚛𝚊𝚝𝚒𝚘𝚗
𝚐𝚎𝚝 𝚛𝚎𝚜𝚞𝚕𝚝 𝚘𝚏 𝚘𝚙𝚎𝚛𝚊𝚝𝚒𝚘𝚗
𝚛𝚎𝚜𝚙𝚘𝚗𝚍 𝚝𝚘 𝚛𝚎𝚜𝚞𝚕𝚝
𝚕𝚘𝚐 𝚝𝚑𝚊𝚝 𝚘𝚙𝚎𝚛𝚊𝚝𝚒𝚘𝚗 𝚑𝚊𝚙𝚙𝚎𝚗𝚎𝚍 𝚊𝚗𝚍 𝚝𝚑𝚎 𝚛𝚎𝚜𝚙𝚘𝚗𝚜𝚎
𝚍𝚘 𝚜𝚘𝚖𝚎𝚝𝚑𝚒𝚗𝚐 𝚠𝚒𝚝𝚑 𝚛𝚎𝚜𝚙𝚘𝚗𝚜𝚎
cut and pasted four times in four different blocks.
I won't be able to sleep until I have refactored it to
𝚍𝚘_𝚘𝚙𝚎𝚛𝚊𝚝𝚒𝚘𝚗()
I have both a love for Go (somewhat portable, smallish binaries, relatively performant), and an absolute hatred for the language due to the syntax, package managment, documentation style, and the fact it has TWO DIFFERENT NULLS...
"Go is still not good" by Thomas Habets has a great simple, minimal, example as for why Go is just not good to irrationally reason with all day.
![IMG: 1]
On the whole? It's a subpar decent-enough performant and batteries-included language that has so many idiotic decisions built up that it warps your brain into thinking "ah, it doesnt work, should, but doesnt, how can I fuck it up enough to work" and guess what? then it will work. The syntax and declaration handlers is just off-kilter enough to be useable, but full of compounding annoyances that makes me not want to open a project after starting it.
Here are 3 tips for beginners to get started with async/await in CSharp!
Read more here:
https://www.devleader.ca/2024/02/27/async-await-in-c-3-beginner-tips-you-need-to-know/
https://medium.com/@fiberartsdecoded/how-crochet-math-and-code-fuse-exploring-the-amazing-butterfly-shape-88ba0b7b555e?sk=606550eb99a398328658097fda8a6dcf
Exploring how concepts surrounding mathematics and code translate to the tangible expression of crocheted items.
#crochet #algorithms #code #coding #crochetdesign #fiberarts #butterflycurve #butterfly #mathematics #equation #study #STEAM
… Grøstl also came up in the discussion mentioned above. Well, why not, and yes, there are a few more ( ಠ‿<)
I can hardly believe it.
Deepseek, which runs locally on my regular laptop WITHOUT internet access, responded to my question of whether it could write me a game in Python similar to “PONG” with the following:
------
Can you write a python scrip to run a game like the classic Pong game?
Thinking...
Okay, so I want to create a Python script for a classic Pong game. Let me
think about how to approach this.
First, I remember that Pong is a two-player game where each player controls
a paddle, and they hit a ball back and forth. The goal is to make the ball
go past the opponent's paddle. So, I need to set up the game window, create
paddles for both players, a ball, and handle their movements.
I think using Pygame would be a good idea since it's a library designed for
creating games in Python. I'll need to initialize Pygame and set up the
display. The screen size can be something like 800x600 pixels. Setting the
title of the window to "Pong" makes sense.
Next, defining colors is important for visibility. White for the paddles and
ball, and black for the background. That should make everything stand out
clearly.
Now, I need to define the game objects: the left paddle, right paddle, and
the ball. Each will have their own positions and dimensions. For example,
the left paddle could be on the left side of the screen, centered
vertically. The same goes for the right paddle but on the opposite side. The
ball should start in the center.
Handling user input is crucial. I'll need to listen for key presses—like the
Up and Down arrows for moving the paddles. For each frame, if a key is
pressed, adjust the paddle's position accordingly. But I also need to make
sure the paddles don't move off the screen, so I should check their
positions against the window boundaries.
The ball movement involves updating its position based on its velocity.
Collision detection with the walls (top and bottom of the screen) will
reverse the y-component of the velocity. When the ball hits a paddle, it
should bounce back, changing the x-component of the velocity. This means I
need to check for collisions between the ball and each paddle.
Scoring is another important aspect. If the ball goes past the left or right
side, the corresponding player gets a point. Updating the score display will
require rendering text on the screen.
Putting it all together, the main loop will handle drawing the objects,
updating positions based on input and physics, checking for collisions, and
managing scoring. I'll also need to set a frame rate using Pygame's clock to
control how fast everything updates.
I should test each part as I go—maybe first make sure the paddles move
correctly without the ball, then add the ball movement, collision with
walls, paddle collisions, and finally scoring. Debugging will be necessary
if something doesn't work right, like the ball not bouncing or the paddles
moving too fast.
In summary, the steps are: set up Pygame, create game objects, handle user
input, move objects, detect collisions, update scores, and display
everything on screen. I'll write the code step by step, making sure each
part works before moving on to the next.
...done thinking.
Certainly! Below is a Python script that creates a classic Pong game using
the Pygame library:
This script creates a simple Pong game with the following features:
1. Two players can play using their respective controls:
- Player on the left uses 'W' and 'S' keys to move up and down.
- Player on the right uses UP and DOWN arrow keys.
2. The ball bounces off the paddles and walls.
3. Points are scored when the ball goes past an opponent's paddle.
4. The score is displayed in the top center of the screen.
To run this game:
1. Make sure you have Pygame installed. If not, install it using pip:
```
pip install pygame
```
import pygame
import random
# Initialize Pygame
pygame.init()
# Set up the display
width = 800
height = 600
window = pygame.display.set_mode((width, height))
pygame.display.set_caption(„Pong Game“)
# Colors
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
# Paddle dimensions
paddle_width = 10
paddle_height = 100
# Ball dimensions
ball_size = 15
# Paddles positions
left_paddle_y = height / 2 – paddle_height / 2
right_paddle_y = height / 2 – paddle_height / 2
# Ball position and speed
ball_x = width / 2
ball_y = height / 2
ball_speed_x = random.choice([-5, 5])
ball_speed_y = random.choice([-5, 5])
# Score
score_left = 0
score_right = 0
font = pygame.font.Font(None, 36)
# Game loop variables
clock = pygame.time.Clock()
running = True
while running:
# Handle events
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
# Get keys pressed
keys = pygame.key.get_pressed()
# Move left paddle
if keys[pygame.K_w]:
left_paddle_y -= 5
if keys[pygame.K_s]:
left_paddle_y += 5
more --->
https://word.undead-network.de/2025/08/22/ich-kann-es-kaum-glauben-i-can-hardly-believe-it/
#ai #code #deepseek #pygame #python
Interesting Git repos of the week:
Detection:
* https://github.com/codeGROOVE-dev/guTZ - timezone detector for Git
* https://github.com/tclahr/uac - UNIX artefact collector
* https://github.com/EdwardAThomson/Scramble-Gate - a theoretical approach to detecting prompt manipulation
* https://github.com/omerbenamram/evtx - parse Windows event logs
* https://github.com/splunk/attack_data - Splunk's TI repo
Exploitation
* https://github.com/synacktiv/gpoParser - parse GPO for AD
* https://github.com/slemire/WSPCoerce - perform coercion attacks on MS WSP
* https://github.com/Straw-Hat-Hacks/periodic-table-offensive-security
* https://github.com/pitkley/in-container - detect if you're in a container
* https://github.com/gtworek/PSBits - bits of PowerShell
Development:
* https://github.com/jgamblin/PGP - @jgamblin's suggested prompts for software engineering
OpenAI just dropped open-weight models. Paradigm shift.
For developers: Customization
Local deployment
No API limits
The race to innovate just accelerated.
https://eproductempire.blogspot.com/2025/08/the-week-that-changed-ai-forever-what.html
#AI #OpenAI #AI #OpenAI #Developer #Tech #Innovation #MachineLearning #Code #AINews #Future #BuildInPublic
A blunt question: Which hashing algorithm do you prefer to use or even another unpopular algorithm?
I would be grateful for sharing the toot.
(we just discuss it without argument)
Angular Official Mascot (Angular 20) ! Zoom: https://nubecolectiva.com/comunidad/flyers/angular-official-mascot/
Mascota Oficial de Angular (Angular 20) ! Zoom: https://nubecolectiva.com/comunidad/flyers/mascota-oficial-angular/
The 5 Best VSCode Extensions for JavaScript.
Las 5 Mejores Extensiones de VSCode Para JavaScript.
https://nubecolectiva.com/blog/las-5-mejores-extensiones-de-vscode-para-javascript/
My AI Had Fixed the Code Before I Saw It
https://every.to/source-code/my-ai-had-already-fixed-the-code-before-i-saw-it
I don't consider having stacked modals anti-pattern.
I consider it an act of war.
4 simple tips for beginners to get started with reflection in CSharp!
Read more here:
https://www.devleader.ca/2024/02/26/reflection-in-c-4-code-simple-but-powerful-code-examples/
... I just work for it. It's a matter of #Code