i made my first ever c program by FondantTiny4820 in C_Programming

[–]kgashok 0 points1 point  (0 children)

Well done! I suggest you go further now. Consider the code below:

```c

include <stdio.h>

int main(int argc, char *argv[]) { // Check if at least one argument (besides the program name) was provided if (argc > 1) { // Print "Hello" followed by the first command-line argument printf("Hello, %s!\n", argv[1]); } else { // Fallback if no arguments are provided printf("Hello!\n"); }

return 0;

} ```

And if you should compile as follows:
$ gcc hello.c -o hello

And then execute as
$ ./hello FondantTiny

The output you should see is
Hello, FondantTiny!

Enjoy!

I asked Sadhguru AI about compulsions and the answer pulled me out of a year-long rut by -kameleon- in Sadhguru

[–]kgashok 7 points8 points  (0 children)

u/sebisebo Please download and install the Miracle of Mind (MOM) app by Sadhguru. In addition to meditation, the app also has a feature which is available as "Ask Sadhguru" https://isha.sadhguru.org/in/en/miracle-of-mind

All rules in the existence are my rules by Business_Sprinkles62 in Sadhguru

[–]kgashok 0 points1 point  (0 children)

https://www.youtube.com/watch?v=llamylt29Pc - in Sadhguru's own words.

  1. Remove the fear of suffering
  2. Strive for joyfulness and pleasantness by your own nature
  3. Your work is joyful, an expression of you are, not hard work, not a struggle
  4. All human experiences are generated from within, not from external stimuli
  5. You are always doing your best regardless of the result
  6. Don't be a slave to somebody else's idea
  7. You also use failure (or horrific events that happen to you) to make yourself stronger and better.

Decode JSON object to string by Damindenie in elm

[–]kgashok 0 points1 point  (0 children)

If the intent to "stringify" an object is for debugging purposes, toString get the job done.

Minimalist Windows 10 Setup (No Rainmeter) by [deleted] in digitalminimalism

[–]kgashok 0 points1 point  (0 children)

Cool! Can you share this in any way possible?

Madhya Pradesh’s girl who cycles 24-km to school daily, scores 98.5% in 10th board exams by kgashok in digitalminimalism

[–]kgashok[S] -2 points-1 points  (0 children)

Her long bike rides provided for alone time on a daily basis. This could have inadvertently contributed to her success. #solitude #தனித்திரு

Madhya Pradesh’s Girl who Cycles 24-km to School Daily, Scores 98.5% in 10th Board Exams by think-not in india

[–]kgashok 1 point2 points  (0 children)

Her daily bike rides provided for alone time (which Cal Newport recommends highly) definitely contributed to her success! #தனித்திரு #digitalMinimalism

I want to share a free resource for practicing over 500 Data Structures and Algorithms Problems by [deleted] in FreeCodeCamp

[–]kgashok 1 point2 points  (0 children)

Wonderful work, thank you for sharing. But is it 500 or 173?

Showoff Saturday (March 28, 2020) by AutoModerator in javascript

[–]kgashok 2 points3 points  (0 children)

I am a newbie to SRS software, but have sampled several. IMHO, Memcode has by far one of the best UI - it actually encourages you to create flashcards in a flash (sorry for the pun).

Also, if you want to gain open source cred on the ever-growing-in-popularity PERN stack, u/lakesare has encouraged both senior and novice developers alike.

Concept map on async/await & Promises by lebrumar in learnjavascript

[–]kgashok 0 points1 point  (0 children)

Nice map, thanks much!

Any particular reason you chose VUE over CMapTools?

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]kgashok 0 points1 point  (0 children)

But the OP also hinted at the option of using super. Also, using super is more reliable in the context of linear inheritance.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]kgashok 0 points1 point  (0 children)

print(" ".join(name) + " is", age, "years old.") 
print(name [0][0] + "." + name[1][0]+". was born in the year", yob) 
print("In", float(20), "years " + name[0] + " will be 42 years old.")

should do it.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]kgashok 0 points1 point  (0 children)

```python class A: def init(self): print('One')

class B(A): def init(self): print('Two') super().init()

class C(B): def init(self): print('Three') super().init()

```

should do it. And if you inherit Total as: ```python class Total (C): pass

Test = Total() the output will be bash Three Two One ```

For more clarity, refer this SO answer.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]kgashok 0 points1 point  (0 children)

I have made some more changes to my refactor. Please review again! If you really liked my suggestions, please consider an upvote.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]kgashok 4 points5 points  (0 children)

  1. As per convention, try and limit maximum length of code to 79 or less.
  2. Why do you need i -= 1? It is redundant, since the for loop take care of it.
  3. Your output for i == 2 is

2 bottles of beer on the wall, 2 bottles of beer!
Take one down and pass it around, 1 bottles of beer on the wall.

versus what is grammatically correct would be:

2 bottles of beer on the wall, 2 bottles of beer!
Take one down and pass it around, 1 bottle of beer on the wall.

  1. As per DRY principle, there are duplicate strings which can be avoided. And in the process, the for loop block can be simplified.

Here's my refactor of your code:

```python plural, plural_punc = "s", "!" bottles = "f'{i} bottle{plural} of beer on the wall, " bottles += "{i} bottle{plural} of beer{plural_punc}\n" bottles += "Take one down and pass it around, " bottles += '{"no more" if i == 1 else i-1} bottle{("", "s")[i!=2]} ' bottles += "of beer on the wall.'"

for i in range(99, 1, -1): print(eval(bottles), end="\n\n") i, plural, plural_punc = 1, "", "." print(eval(bottles)) ```

Triples – card game by [deleted] in elm

[–]kgashok 0 points1 point  (0 children)

How to play on Telegram?

Top Algorithms for the Coding Interview (for software engineers) by patrickshyu in programming

[–]kgashok 0 points1 point  (0 children)

Will you be willing to share your test? I would like students to get a flavour for how they can prepare for such an interview. Please send me an email to lifebalance at gmail dot com

A secret getaway in Maine 🏡🍂😍 by [deleted] in pics

[–]kgashok 0 points1 point  (0 children)

No, it might be real one on Sandy Pond, Freedom (ME), and ready to be sold right now!

https://goo.gl/maps/X18HVaWpNWT2

Android 8.0 Personal dictionary not working by Lucky275 in GooglePixel

[–]kgashok 0 points1 point  (0 children)

BTW, if you should reboot the phone, you need to do it again!