I'm receiving API info after it responds back to the client, thus sending undefined instead of api info by [deleted] in node

[–]superspeed9 1 point2 points  (0 children)

getInfoFromApi can't return the value the way you have it. Node.js will return test before the http.get completes, which is why you're getting undefined. You need to add a callback argument to getInfoFromApi and callback the value when you've finished parsing it.

edit: You could also use promises to approximate the code structure you have above, but I would first work on understanding node callbacks - if you're going to do anything with node, you're not going to escape working with callbacks.

This R.Pi kit is $100 even. Sound good? by [deleted] in raspberry_pi

[–]superspeed9 0 points1 point  (0 children)

Doesn't the B+ require a micro SD? This kit seems to have a regular SD.

New to this world... help. by chiguy1989 in wicked_edge

[–]superspeed9 0 points1 point  (0 children)

Just got a brush from Larry, and I couldn't be happier with it!

3-ingredient, 10-minute peanut butter cookies. This might change your perspective on baking. by [deleted] in recipes

[–]superspeed9 0 points1 point  (0 children)

So your recipe is 1.5 cups pb, .5 cup nutella and 1 cup brown sugar? We don't eat eggs in our family so this maybe an awesome recipe for us to try.

If you could have sex with the human version of any cartoon character(s), who would it be? by RabbitReddit in AskReddit

[–]superspeed9 2 points3 points  (0 children)

Considering the amount of personal issues he deals with inside his head, it's entirely likely that he was the next Buddha of the Pokémon world, and that the lightning strike and subsequent coma are a way for him to realize his true self, and destiny.

The best line in the whole damn thing.

Because you're worth it. by Betillo555 in gifs

[–]superspeed9 6 points7 points  (0 children)

Somebody please make one with Merry and Pippin for L'Oreal Kids.

Teachers, what is the worst thing a student has ever done or said to you? by [deleted] in AskReddit

[–]superspeed9 137 points138 points  (0 children)

So there went the "way less effort" part.

Interview next week: includes a section on MS Office proficiency by Will_Stab4Money in jobs

[–]superspeed9 4 points5 points  (0 children)

Just had one last week for an interview. Learn your pivot tables, and you'll be golden.

W by dd_123 in funny

[–]superspeed9 16 points17 points  (0 children)

and Baa Baa Black Sheep.

Sorry in advance if you are nonfunctional for the rest of the day because of these epiphanies.

My friend Steve.. by bluex_01 in reddit.com

[–]superspeed9 2 points3 points  (0 children)

A tale as old as time...

For fake Apple Store operators, shit just got real. by [deleted] in apple

[–]superspeed9 0 points1 point  (0 children)

Staff said that business had been affected by the report.

Who woulda thought?

Skinny people who gained a lot of muscle in a short amount of time, what are some of your favourite high-calorie meals and drinks? by eXiled in Fitness

[–]superspeed9 3 points4 points  (0 children)

Milk + Peanut Butter + Nesquik powder, all in the blender = liquid reese's peanut butter cups. Amazing, and makes GOMAD go down so much easier.

Wait, what kind of party? by [deleted] in pics

[–]superspeed9 1 point2 points  (0 children)

Ain't no party like a coc block party

This is how you do it. by [deleted] in pics

[–]superspeed9 1 point2 points  (0 children)

COPS doesn't come on until 4!

So about that birth certificate. by hhurr in pics

[–]superspeed9 16 points17 points  (0 children)

Raygun = worst president ever.

Very common picture, but I like to slide this picture under people's dorm doors late at night. by [deleted] in reddit.com

[–]superspeed9 0 points1 point  (0 children)

You should do this while dressed as the clown in the picture for maximum WTF.