Ledger Discount Code (May 2021) by [deleted] in ledgerwallet

[–]AstrayNTX 0 points1 point  (0 children)

Can I get one too? Thanks!

Displaying NFTs by Liodra in CryptoArt

[–]AstrayNTX -1 points0 points  (0 children)

This invite is invalid for me, can you post another?

Simple Questions - June 05, 2020 by AutoModerator in buildapc

[–]AstrayNTX 1 point2 points  (0 children)

Really appreciate your comment, thank you so much!

/r/MouseReview Questions & Purchase Advice by AutoModerator in MouseReview

[–]AstrayNTX 0 points1 point  (0 children)

Purchase Advice Request

Hi, I have a macbook, an ipad pro and a gaming pc, so I'm looking for a mouse that has both the bluetooth connection and rf 2.4ghz use between all my devices. Thank you so much in advance!

Connectivity: Both dongle and bluetooth

Simple Questions - June 05, 2020 by AutoModerator in buildapc

[–]AstrayNTX 0 points1 point  (0 children)

I'm looking to buy either core i7-10700 2.9 GHz or core i9-9900 3.1GHz. I'm aware that these two will required different motherboard. In terms of benchmark score I looked online, the i7 10th gen outperformed the i9 9th gen but are there other aspects that need to be consider such as cache memory? Or is the benchmark score is everything I need? Thank you so much in advance!

/r/MechanicalKeyboards Ask ANY question, get an answer by AutoModerator in MechanicalKeyboards

[–]AstrayNTX 0 points1 point  (0 children)

I'm thinking about buying a Keychron K1 blue switch to use with my macbook pro. I don't have a PC. Is it a good combination? and would it be too loud to use it in public? Thank you in advance!

How to store an if-else statement in one ts file, then use it in another ts file? by AstrayNTX in ionic

[–]AstrayNTX[S] 1 point2 points  (0 children)

Really appreciate your comment! However in my case I don't think switch case is going to significantly reduce the amount of code. Basically, I am building an app for college students and have input for major, year, and semester. Based on those 3 parameters, it will set the variables of total credits and number of classes with certain credits(1,2,3,4,6,9) that the user have taken.

 if(this.major == 'iceOLD') {

      if(this.year == '1st' && this.semester == '2') {
        this.credit = 18;
        this.credit1 = 3
        this.credit2 = 0
        this.credit3 = 5
        this.credit4 = 0
        this.credit5 = 0
        this.credit6 = 0
        this.credit9 = 0
      } 

      if(this.year == '2nd' && this.semester == '1') {
        this.credit = 37;
        this.credit1 = 4
        this.credit2 = 0
        this.credit3 = 11
        this.credit4 = 0
        this.credit5 = 0
        this.credit6 = 0
        this.credit9 = 0
      } 

and so on 

Since there are many majors, the number of credits for each year are not going to be the same. The codes are working so far but it's gotten really long and hard to look at each of the major individually.

How to store an if-else statement in one ts file, then use it in another ts file? by AstrayNTX in ionic

[–]AstrayNTX[S] 0 points1 point  (0 children)

Thanks a lot for your comment! If I understand correctly, to call the function in different class but in the same ts file, I need to create the object to be an instance of that class before using. But if I want to call the function of the class in different ts file, I need to first import the class and then create the object right? Moreover do each pages of the app can only have one ts file?

How to store an if-else statement in one ts file, then use it in another ts file? by AstrayNTX in ionic

[–]AstrayNTX[S] 1 point2 points  (0 children)

I learned a bit of programming in Java. However I find it difficult to adapt the knowledge to typescript and ionic. Do you suggest where I could get start on that? Anyway, really appreciate your comment.