Steph pfp

Steph

@assydcrypto

69 Following
13 Followers


Steph pfp
Steph
@assydcrypto
@poster Ready for a quick and free potential airdrop ? @crediblefin Just go to https://credible.finance/invite/v7j884 Sign up with email Go to Airdrop tab Connect your Phantom wallet Complete social tasks Extra: lend 10 $USDC to earn more points. You can withdraw right after. Don’t miss out! #Airdrop
0 reply
0 recast
0 reaction

Steph pfp
Steph
@assydcrypto
@poster New points program from @SandwatchAI, might get eligible for $WATCH Airdrop 1. https://sandwatch.com/signup : login a @solana Wallet 2. Use seat code 4149D5 or get one from discord 3. Confirm Tx 4. Choose username 5. Start earn passively ! And do tasks in your profile #Airdrop
0 reply
0 recast
0 reaction

Steph pfp
Steph
@assydcrypto
@poster Want to increase your footprint on Soneium before it’s too late ? Go check UneMeta : soneiumevent.unemeta.com/?invitationCode=true&codes=37ESQ Just do the tasks to position yourself ! #Airdrop
0 reply
0 recast
0 reaction

Steph pfp
Steph
@assydcrypto
Tip of the day #26 - Python getting back on lists Do you know how easy it is to loop through a list from the end to the beginning in python ? Just : for myitem in reversed(mylist): # Do your stuff And in case you want the index too: for key, myitem in reversed(list(enumerate(mylist))): # Do your stuff Have fun, stay safe and be nice until next time, cheers ! 🤘🏼🍻 #python
0 reply
0 recast
0 reaction

Steph pfp
Steph
@assydcrypto
Tip of the day #25 - JS, char are you in there ? Do you know how to check a character (or a substring) presence ni a string in Javascript ? Switching daily from a language to another, sometimes these kind of simple needs are hard to remember ;) Simplest form : test if (stringvar.includes(char)) If position needed : test if (stringvar.indexOf(char) > -1) Have fun, stay safe and be nice until next time, cheers ! 🤘🏼🍻 #javascript #Node
0 reply
0 recast
0 reaction

Steph pfp
Steph
@assydcrypto
Tip of the day #24 - Solidity can’t wait, this is « now » ! Do you know that the closest thing to « now » is « block.timestamp » ? With block duration as precision though... And by the way, timestamps are in seconds here, beware when going back to javascript or other languages that might handle timestamps is milliseconds ;) Have fun, stay safe and be nice until next time, cheers ! 🤘🏼🍻 #Solidity #SmartContracts #EVM
0 reply
0 recast
0 reaction

Steph pfp
Steph
@assydcrypto
Tip of the day #23 - ReactJS What time to pick ? Do you know a nice date/time picker ? Here is one that I found the most handy until now. Everything needed to use it is accessible through : www.npmjs.com/package/react-datepicker and is quite straightforward, maybe the « timeFormat » can seem tricky at first but is documented enough. Have fun, stay safe and be nice until next time, cheers ! 🤘🏼🍻 #javascript #Node #reactjs #CSS #html
0 reply
0 recast
0 reaction

Steph pfp
Steph
@assydcrypto
Tip of the day #22 - ReactJS display HTML Do you know that in ReactJS you can super easily render HTML code stored in a variable ? I found a magic package for that : html-react-parser. Just « import parse from 'html-react-parser’; » And « parse(any_variable_containing_html) » in your react code, that's it ! Have fun, stay safe and be nice until next time, cheers ! 🤘🏼🍻 #javascript #Node #reactjs #CSS #html
0 reply
0 recast
31 reactions

Steph pfp
Steph
@assydcrypto
Tip of the day #22 - ReactJS display HTML Do you know that in ReactJS you can super easily render HTML code stored in a variable ? I found a magic package for that : html-react-parser. Just « import parse from 'html-react-parser’; » And « parse(any_variable_containing_html) » in your react code, that's it ! Have fun, stay safe and be nice until next time, cheers ! 🤘🏼🍻 #javascript #Node #reactjs #CSS #html
0 reply
0 recast
11 reactions

Steph pfp
Steph
@assydcrypto
Tip of the day #22 - ReactJS display HTML Do you know that in ReactJS you can super easily render HTML code stored in a variable ? I found a magic package for that : html-react-parser. Just « import parse from 'html-react-parser’; » And « parse(any_variable_containing_html) » in your react code, that's it ! Have fun, stay safe and be nice until next time, cheers ! 🤘🏼🍻 #javascript #Node #reactjs #CSS #html
0 reply
0 recast
8 reactions

Steph pfp
Steph
@assydcrypto
Tip of the day #22 - ReactJS display HTML Do you know that in ReactJS you can super easily render HTML code stored in a variable ? I found a magic package for that : html-react-parser. Just « import parse from 'html-react-parser’; » And « parse(any_variable_containing_html) » in your react code, that's it ! Have fun, stay safe and be nice until next time, cheers ! 🤘🏼🍻 #javascript #Node #reactjs #CSS #html
0 reply
0 recast
8 reactions

Steph pfp
Steph
@assydcrypto
Tip of the day #22 - ReactJS display HTML Do you know that in ReactJS you can super easily render HTML code stored in a variable ? I found a magic package for that : html-react-parser. Just « import parse from 'html-react-parser’; » And « parse(any_variable_containing_html) » in your react code, that's it ! Have fun, stay safe and be nice until next time, cheers ! 🤘🏼🍻 #javascript #Node #reactjs #CSS #html
0 reply
0 recast
8 reactions

Steph pfp
Steph
@assydcrypto
Tip of the day #22 - ReactJS display HTML Do you know that in ReactJS you can super easily render HTML code stored in a variable ? I found a magic package for that : html-react-parser. Just « import parse from 'html-react-parser’; » And « parse(any_variable_containing_html) » in your react code, that's it ! Have fun, stay safe and be nice until next time, cheers ! 🤘🏼🍻 #javascript #Node #reactjs #CSS #html
0 reply
0 recast
19 reactions

Steph pfp
Steph
@assydcrypto
Tip of the day #22 - ReactJS display HTML Do you know that in ReactJS you can super easily render HTML code stored in a variable ? I found a magic package for that : html-react-parser. Just « import parse from 'html-react-parser’; » And « parse(any_variable_containing_html) » in your react code, that's it ! Have fun, stay safe and be nice until next time, cheers ! 🤘🏼🍻 #javascript #Node #reactjs #CSS #html
0 reply
0 recast
0 reaction

Steph pfp
Steph
@assydcrypto
Tip of the day #22 - ReactJS display HTML Do you know that in ReactJS you can super easily render HTML code stored in a variable ? I found a magic package for that : html-react-parser. Just « import parse from 'html-react-parser’; » And « parse(any_variable_containing_html) » in your react code, that's it ! Have fun, stay safe and be nice until next time, cheers ! 🤘🏼🍻 #javascript #Node #reactjs #CSS #html
0 reply
0 recast
0 reaction

Steph pfp
Steph
@assydcrypto
Tip of the day #22 - ReactJS display HTML Do you know that in ReactJS you can super easily render HTML code stored in a variable ? I found a magic package for that : html-react-parser. Just « import parse from 'html-react-parser’; » And « parse(any_variable_containing_html) » in your react code, that's it ! Have fun, stay safe and be nice until next time, cheers ! 🤘🏼🍻 #javascript #Node #reactjs #CSS #html
0 reply
0 recast
0 reaction

Steph pfp
Steph
@assydcrypto
Tip of the day #22 - ReactJS display HTML Do you know that in ReactJS you can super easily render HTML code stored in a variable ? I found a magic package for that : html-react-parser. Just « import parse from 'html-react-parser’; » And « parse(any_variable_containing_html) » in your react code, that's it ! Have fun, stay safe and be nice until next time, cheers ! 🤘🏼🍻 #javascript #Node #reactjs #CSS #html
0 reply
0 recast
0 reaction

Steph pfp
Steph
@assydcrypto
Tip of the day #21 - Python get the trace ! Do you know that you can get the type and the trace of an exception you caught ? That’s quite useful when you don’t know yet the exact typology of exception you might have to handle. Just like this : import traceback try: something() except Exception as ex: print(‘Exception type=‘ + str(type(ex))) traceback.print_exc() # or traceback.print_exception(*sys.exc_info()) Have fun, stay safe and be nice until next time, cheers ! 🤘🏼🍻 #Python #pythonprogramming
0 reply
0 recast
23 reactions

Steph pfp
Steph
@assydcrypto
Hey guys, do you want another scroll contract interaction ? Get a fresh one here : https://8bit-beers.nfts2.me 🍻
0 reply
0 recast
16 reactions

Steph pfp
Steph
@assydcrypto
Tip of the day #20 - Want a fresh Co(o)rs ? Do you know how simple is it to handle CORS (Cross-Origin Resource Sharing) from a NestJS server ? Sometimes ago I struggled with cross origin problems between my NestJS server and the client side which spit out a lot of CORS errors when running Wasm programs trying to access foreign resources from the client side. I found it that simple to handle, just enable CORS in NestJS like this : In the boostrap() function of your main.ts, after you instantiated your App with NestFactory, just add : « app.enableCors(); » Have fun, stay safe and be nice until next time, cheers ! 🤘🏼🍻 #javascript #Node #nestjs @nestframework
0 reply
0 recast
0 reaction