sloanlance, 21 days ago to random Example of using Python to save PDF pages as images. import pymupdf import requests doc = pymupdf.Document(stream=requests.get( '<https://pycon-assets.s3.amazonaws.com/2024/media/>' 'documents/DLCC-Floorplan-Marked_up_PyCon_US_2024.pdf').content) for (pageNumber, page) in enumerate(doc.pages()): pixmap = page.get_pixmap(dpi=300) pixmap.save(f'page-{pageNumber + 1}.png') This is the #codeGolf like version, to fit within Mastodon message length limits. #PyConUS #PyConUS2024
Example of using Python to save PDF pages as images.
import pymupdf import requests doc = pymupdf.Document(stream=requests.get( '<https://pycon-assets.s3.amazonaws.com/2024/media/>' 'documents/DLCC-Floorplan-Marked_up_PyCon_US_2024.pdf').content) for (pageNumber, page) in enumerate(doc.pages()): pixmap = page.get_pixmap(dpi=300) pixmap.save(f'page-{pageNumber + 1}.png')
This is the #codeGolf like version, to fit within Mastodon message length limits. #PyConUS #PyConUS2024
winslowjosiah, 24 days ago to genart 📝 New post: Snake, in 500 characters https://winslowjosiah.com/blog/2024/05/15/snake-in-500-characters #pico8 #tweetcart #codeGolf
📝 New post: Snake, in 500 characters
https://winslowjosiah.com/blog/2024/05/15/snake-in-500-characters
#pico8 #tweetcart #codeGolf
ucodery, 5 months ago to python A fun way to flex my Python muscles. Thanks for the distraction Oskar! https://oskaerik.github.io/theevalgame/ #python #codegolf
A fun way to flex my Python muscles. Thanks for the distraction Oskar! https://oskaerik.github.io/theevalgame/ #python #codegolf
walkerb, 9 months ago to CSharp Playing around with some comparative code in a few languages tonight. Here for your viewing pleasure is some sexy code golf in three languages (C#, Java and Python)... #csharp #java #python #codegolf
Playing around with some comparative code in a few languages tonight.
Here for your viewing pleasure is some sexy code golf in three languages (C#, Java and Python)...
#csharp #java #python #codegolf
Liquidream, 9 months ago to demoscene 2 Weeks until #PICO1K Jam 2023! 👩💻 🌐 https://itch.io/jam/pico-1k-2023 👨💻 Make #Pico8 carts in ≤ 1KB of compressed code 📅 SEP 1st-30th 2023 What game/demo/tool will YOU make? 🤔 #GameJam #Demoscene #TweetCart #CodeGolf #Sizecoding
2 Weeks until #PICO1K Jam 2023! 👩💻 🌐 https://itch.io/jam/pico-1k-2023 👨💻 Make #Pico8 carts in ≤ 1KB of compressed code 📅 SEP 1st-30th 2023 What game/demo/tool will YOU make? 🤔
#GameJam #Demoscene #TweetCart #CodeGolf #Sizecoding
Liquidream, 10 months ago to demoscene █▓▒░ 𝗣𝗜𝗖𝗢⬩𝟭𝗞 𝗝𝗔𝗠 𝟮𝟬𝟮𝟯 ░▒▓█ 🌐 https://itch.io/jam/pico-1k-2023 𝘞𝘏𝘈𝘛? 👨💻 Make #Pico8 Games/Demos/Tools in ≤ 1KB of compressed bytes 𝘞𝘏𝘌𝘕? 📅 SEP 1st-30th 2023 Hope to see you at #Pico1k jam! 🤓 #GameJam #Demoscene #TweetCart #CodeGolf #Sizecoding Animated banner announcing: PICO-1K JAM 2023 Sep 1-30 (Revealed using retro line bar effect)
█▓▒░ 𝗣𝗜𝗖𝗢⬩𝟭𝗞 𝗝𝗔𝗠 𝟮𝟬𝟮𝟯 ░▒▓█ 🌐 https://itch.io/jam/pico-1k-2023 𝘞𝘏𝘈𝘛? 👨💻 Make #Pico8 Games/Demos/Tools in ≤ 1KB of compressed bytes 𝘞𝘏𝘌𝘕? 📅 SEP 1st-30th 2023 Hope to see you at #Pico1k jam! 🤓
Animated banner announcing: PICO-1K JAM 2023 Sep 1-30 (Revealed using retro line bar effect)
codewiz, 11 months ago to programming A friend of mine minified Bitshift Variations in C Minor down to 179 bytes: gcc -xc -oa -<<<'i;n;g(m,t,o){m=("GTj?TG?5"[7&t]+!(n&12|t&2)*9)*i>>o&m&24;}main(s){for(;;putchar(g(8,n=s>>4,8)+g(n,n^s/8,6)+g(n/3,n+s/2%3,6)+g(n/5,n-s%3,5)))s=++i>>10;}';./a|aplay #bytebeat #programming #codegolf #chiptune
A friend of mine minified Bitshift Variations in C Minor down to 179 bytes:
gcc -xc -oa -<<<'i;n;g(m,t,o){m=("GTj?TG?5"[7&t]+!(n&12|t&2)*9)*i>>o&m&24;}main(s){for(;;putchar(g(8,n=s>>4,8)+g(n,n^s/8,6)+g(n/3,n+s/2%3,6)+g(n/5,n-s%3,5)))s=++i>>10;}';./a|aplay
#bytebeat #programming #codegolf #chiptune
StefanHabel, 1 year ago to programming Happy #StarWarsDay! 🥳 #MayThe4thBeWithYou https://code.golf/star-wars-opening-crawl#python #Python #CodeGolf ⛳️🐍 #AchievementUnlocked
Happy #StarWarsDay! 🥳 #MayThe4thBeWithYou https://code.golf/star-wars-opening-crawl#python #Python #CodeGolf ⛳️🐍 #AchievementUnlocked