Majid (@maj1d) • Hey
کدنویسی به من میگوید که تازهترین بلوکهای زندگی را چگونه بسازم
Coding whispers to me how to create the freshest blocks of life
Publications
- Happy New Year 2024!
I hope to be more active on this social platform in the coming year.
- Justin Sun is considering acquiring FTX's holding tokens and assets to reduce their selling impact on the crypto community.
https://x.com/justinsuntron/status/1701265627741335573
- اگه از فونت زشت سایت لنز @lenster.lens برای زبان فارسی خسته و دلزده شدین
افزونه متن باز فونت آرا رو به شما پیشنهاد میکنم.
یه سری سایتهای معروف مثل گوگل و توئیتر و جیمیل و... رو بصورت پیشفرض فونت فارسی بهش میده و برای سایتهای غیرمعروف مثل لنز فقط کافیه روی آیکوش کلیک کنید و افزودن سایت رو تیک بزنید
لینک:
https://chrome.google.com/webstore/detail/fontara/dcjdhicepiklefpimapdkbaeoocniemc
- Priorities during an earthquake: Secure the most prized possession, the Playstation 5! 😂🎮 Hope everyone's safe in Morocco though.
- اولین بار که با دنیای برنامه نویسی آشنا شدم، زمانی بود که به صورت اتفاقی از سایت گیت هاب بازدید کردم!
https://github.com
فقط برام جالب بود. همین! تا مدتها نمی دونستم واقعا گیت هاب چه نقشی تو برنامه نویسی داره که اینقدر فراگیر و محبوبه. جالب اینکه هیچ کجا نتونستم یه توضیح ساده و عامه پسند برای این سایت پیدا کنم.
الان که خودم یه مقدار وارد دنیای برنامه نویسی شدم میخام سایت گیتهاب رو به صورت خیلی ساده و قابل فهم توضیح بدم:
گیتهاب یه سرویس اینترنتیه که به برنامهنویسها اجازه میده کدها و برنامههایی که مینویسن رو به اشتراک بزارن و روش کار کنن.
تصور کن چند نفر دارن روی یه برنامه با هم کار میکنن. حالا به جای اینکه کدها رو ایمیل کنن یا روی یه فلش بدن به هم، همه میتونن روی گیتهاب کدها رو بزارن و ویرایش کنن.
گیتهاب باعث میشه همکاری تیمی و مدیریت پروژههای برنامهنویسی خیلی راحتتر بشه.
- I just voted "For" on "KIP-40: Trial - Progressing KlimaDAO's Governance Framework" https://snapshot.org/#/klimadao.eth/proposal/0x1e0ddb862433c186478f8ef930c2c4d74f03f9c5ffed99fcf527479c877ff97d #Snapshot
- 5 Tips for Writing Clean Code
As a programmer, writing clean, readable code is one of the most important skills to master. Messy, disorganized code can lead to bugs, slow down development, and make it hard for others to understand your work. Here are my top 5 tips for writing cleaner code:
1. Use descriptive variable and function names. Don't be afraid of longer names if they accurately describe what something does. Avoid single-letter variables like x, y, z.
2. Break code into smaller functions that do one thing. Functions should be short and focused on a single task. This makes them easier to understand and reuse.
3. Use consistent indentation and formatting. Proper indentation and white space improves readability and makes the flow of logic clearer. Follow style guides like PEP8 for Python.
4. Add comments to explain complex sections. Use comments judiciously to clarify what non-obvious sections of code are doing without restating what the code already shows.
5. Refactor mercilessly. As you expand a codebase, don't be afraid to restructure existing code to improve its organization and readability. Refactoring improves quality over time.
Writing clean code takes practice, but ultimately allows us to develop faster and share our work with others easily. Following tips like these has helped me write more understandable and maintainable software. Let me know if you have any other code quality best practices I should try!
- Ethereum developers have introduced Ethereum Execution Layer Specification
Ethereum has launched Ethereum Execution Layer Specification (EELS), a Python reference implementation of the core components of an Ethereum execution client focused on readability and clarity. This innovation provides complete snapshots of the protocol at each fork (including upcoming ones) making it much easier to follow than EIPs and production clients.
👉🏻 https://blog.ethereum.org/2023/08/29/eel-spec
👉🏻 https://x.com/Crypto_Dep/status/1696887064665407772
- Intriguing idea to give users more control over content algorithms. Could lead to greater customization and autonomy. Curious to see how this develops.
- a short nap can boost productivity, focus and mood for the rest of the day. A workplace that recognizes the benefits of strategic rest and values employee wellbeing is progressive.
- 👌
Pepe- What Exactly Happened? A short summary.
-On August 24th, 2023, 16 trillion $PEPE tokens (worth $15m USD) were stolen from the $PEPE multisig CEX wallet by some team members.
-The stolen tokens were transferred to OKX, Binance, Kucoin, and Bybit.
-The remaining 10 trillion tokens in the multisig are now under the control of a single signer who claims to have the best interests of the $PEPE community.
-The stolen tokens are believed to have been quickly sold on OKX and Binance.
-The remaining 10 trillion tokens will be transferred to a new wallet and burned once they are no longer needed.
-
It's truly heartwarming to connect with fellow developers in the Web3 space. I'm genuinely impressed by your innovation.
"I'm thrilled to contribute $2 to your project! Every bit counts, and I believe that even small contributions play a significant role in supporting innovative ideas like yours. Let's continue to empower each other and build a brighter future together.
Donating to your project is not only a pleasure but an investment in the exciting future of decentralized technologies.
🚀 Keep up the amazing work! can't wait to see your project flourish. Looking forward to staying connected and witnessing more groundbreaking achievements!
@lenster.lens @yoginth.lens @sagargowda.lens @stani.lens
- I just donated to GG18 on @gitcoin. Join me in making a difference by donating today, and check out the projects I supported on my Donation History page!
https://explorer.gitcoin.co/#/contributors/0x17C8487638e39ea3f250bd63171F737e01C23F90
Thank you @lenster.lens
- Hello everyone, this is Ali again! In my last post, I promised a tutorial on creating an interactive image generator using the new **DALL-E API from OpenAI**. Well, today I'm following up on that.
Let's dive right into the step-by-step process:
1- First, sign up on the OpenAI site to get your API key for accessing DALL-E.
2- Next, make API calls within your React app using axios to send the text prompts to DALL-E and receive the generated images.
3- Use React state and effects to display the images in your app UI and update them when generating new ones.
4- Add a text input field and button that calls the API on clicks.
5- The user can enter text, click the button, and see new AI-generated images based on their prompt!
The end result is a cool web app where users can let their imagination run wild and turn text into stunning visuals with the power of DALL-E.
Let me know if you need any clarification or have suggestions for future tutorials!
- Hey folks! Tomorrow I'm going to show you how to use the new DALL-E API to create a cool image generator web app.
- Hey everyone, Majid here! In today's post, I want to show you how to leverage exciting new AI APIs like ChatGPT and DALL-E in your web development projects.
ChatGPT is an AI chatbot developed by Anthropic that can engage in natural conversations and generate human-like text on demand. With the ChatGPT API, you can integrate conversational interfaces or auto-generated content into your apps and sites.
DALL-E is an AI system by OpenAI that creates realistic images and art from a text description. The DALL-E API allows generating images that can be used to enhance the visuals of your web projects.
Here are three cool ways to use these AI tools:
1. Build an intelligent chatbot for your site by having ChatGPT power conversational interactions with visitors.
2. Automatically generate content like blog posts by describing topics to ChatGPT.
3. Create eye-catching images and illustrations by prompting DALL-E with textual descriptions.
I'll be making some hands-on tutorials soon demonstrating projects with ChatGPT and DALL-E. Let me know what kind of ideas you'd like to see! Exciting times ahead!
- 5 professional tips for debugging JavaScript programs:
1- Using console.log to print values
2- Debugging in a development environment like VSCode
3- Using debugging tools like React Developer Tools
4- Adding breakpoints to pause code execution
5- Using conditional operators like alert in code
- I am Majid,
studying and practicing to become a web developer and programmer.
I share my experiences with you.
- مجید هستم. در حال یادگیری برنامهنویسی هستم. اطلاعاتم رو با شما به اشتراک خواهم گذاشت
- Built on L2 @memester-xyz.lens
- Welcomed to Lens @maj1d.lens, here’s some info to get you started! These are popular websites/apps in the ecosystem:
https://lensport.io is a full Lens social website + a marketplace for Post NFTs!
https://orb.ac + https://phaver.com + https://buttrfly.app are three Lens mobile apps!
https://lenster.xyz is a full Lens social website!
https://memester.xyz is a full Lens NFT meme platform where you can create memes and participate in meme competitions!
https://lenstube.xyz is a Lens version of YouTube!
https://lensvert.xyz lets you convert Lens links between different apps!
For more apps visit: https://lens.xyz/apps
—— What makes Lens special? ——
1. It’s decentralized and composable.
All Lens data is stored on the Polygon blockchain. This means that no company has control of your data, only you do! No one can delete your profile, posts, or followers
Composable means that all of your data (followers, posts, etc) appear on every Lens website/app… it’s all shared!
If you switch to a new Lens website, your data is already there!
2. Posts can be collected
Every post can be “collected” a set number of times for a price set by its creator. When a post is collected, a “collect” is created. This is a copy of a post. Each post can have a limited amount of collects
Collects can be collected on most Lens platforms and can be bought, sold, and traded on LensPort
Collects function as the economy of Lens! They are a novel new mechanism for creators to earn and for collectors to feel social ownership
Try collecting your first post for free! https://lensport.io/p/1_1
More resources: https://lens.xyz
- I just minted https://lenster.xyz/u/maj1d.lens #lens