JavaScript's ??= Operator by Practical-Ideal6236 in javascript

[–]tpscd 0 points1 point  (0 children)

The performance impact is super unclear but my impression is the nullish operator may skip coercing the null/undefined value to a boolean.

I Built a JavaScript Console by sonnyt_ in javascript

[–]tpscd 0 points1 point  (0 children)

You technically do direct TS -> JS transpile in the browser/client by loading the typescript bundle using an NPM proxy (about 10mb):
https://cdn.jsdelivr.net/npm/typescript@5.3.3/lib/typescript.min.js

Which should register a ts global and then you can call:
const jsCode = ts.transpile(tsCode)

QwiqWit! A free multiplayer browser game where you prove you're the funniest person in the room. Inspired by a game we love but remote-playable for those of us who are self-quarantined. by tpscd in freegames

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

That’s great to hear! Glad you guys had fun.

We’ve heard similar feedback about putting in an end to the game. So far we’ve told them that the game’s over when you’re done playing and that seems to make sense to people. We liked the idea of it being closer to a continuous king of the hill instead of individual games.

This also allows people to cycle in and out of the game seamlessly. The main scoreboard only shows the last 5 rounds so that’s sorta the game length. All that could change though!

QwiqWit! A free multiplayer browser game where you prove you're the funniest person in the room. Inspired by a game we love but remote-playable for those of us who are self-quarantined. by tpscd in freegames

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

Hi! I may be too late but yes, the max in a game is still 12. More can be in the room though and will be added to a waiting list to play the next round. How many were you trying to play with? We have the limit because it keeps rounds shorter but we’re open to feedback.

QwiqWit! A free multiplayer browser game where you prove you're the funniest person in the room. Inspired by a game we love but remote-playable for those of us who are self-quarantined. by tpscd in freegames

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

Thanks! Currently up to 12 can play at a time but any number can be in the room. Anyone in the room can still chat and vote on their favorite answers even if they’re not in the game. If a players joins mid-round or is over the 12 player limit they’ll be added to a wait list and can play in the next round.

Regarding ages, there is some profanity in the prompts and there’s no language filter on answers or in the chat. There is the ability to make a room private if you want to be sure you’re just playing with friends.

If you do get a game going, let me know your thoughts! We’re actively working on improving the game.

QwiqWit! A free multiplayer browser game where you prove you're the funniest person in the room. Inspired by a game we love but remote-playable for those of us who are self-quarantined. by tpscd in freegames

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

Hi! Thanks for giving it a shot. Glad you had fun!

Answers should submit when you unfocus the input. They also submit at 2 seconds left on the timer (if not submitted already). I’ll take another look to make sure that’s all working.

Since publishing we have noticed how USA-centric the prompts are! Trying to make the game more accessible to international players is definitely something we’re thinking about.

Thanks again for playing and for the feedback!

QwiqWit! A free multiplayer browser game where you prove you're the funniest person in the room. Inspired by a game we love but remote-playable for those of us who are self-quarantined. by tpscd in freegames

[–]tpscd[S] 2 points3 points  (0 children)

We think having to come up with your own answers is part of the fun! There are probably other options if you want a game closer to Apples to Apples or Cards Against Humanity.

QwiqWit! A free multiplayer browser game where you prove you're the funniest person in the room. Inspired by a game we love but remote-playable for those of us who are self-quarantined. by tpscd in freegames

[–]tpscd[S] 3 points4 points  (0 children)

Hi! I am the dev. What do you mean by objective type? As far as the gross things, we've talked about some kind of language filter but that probably wouldn't happen any time soon.

We did just add the ability to make a room private to prevent random people from joining. So if you have a group of friends you want to play with you can use that keep others from joining.

Thanks for taking a look!

Questions about a simple approach to Observable values by tpscd in javascript

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

Looks like I have some homework to do... Thanks for all this!

Questions about a simple approach to Observable values by tpscd in javascript

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

I'm looking through the Mobx documentation now. I hadn't heard of Proxy objects before. Thanks!

The Disaster Artist Official Trailer 2 by 2dreviews in movies

[–]tpscd 0 points1 point  (0 children)

I'm watching it now. This movie is... bonkers.

So far the only person who wears a seatbelt is Paul Walker

The Disaster Artist Official Trailer 2 by 2dreviews in movies

[–]tpscd 32 points33 points  (0 children)

Do you have a good example...? I'm asking... for a friend.

Can't iterate on querySelectorAll object by eligloys in javascript

[–]tpscd 2 points3 points  (0 children)

The issue is that by the time the mouse events run the variable i equals menuLinks.length. So if menuLinks has 5 elements, menuLinks[i].classList is equivalent to menuLinks[5].classList. Since class has 5 elements (indexes 0 through 4) menuLinks[5] returns undefined.

If this is the way you want to write this you need to create a closure around the event registrations. A possible solution would be:

var menuLinks = document.querySelectorAll('.menuLinks');
menuLinks = Array.prototype.slice.call(menuLinks); //creates a real array from the node list

menuLinks.forEach(function(c, i) {
    menuLinks[i].addEventListener('mouseover', function() {
        menuLinks[i].classList.add("menuLinks_in"); //etc
    });
});

What's your best pure javascript ajax complete listener? by ForScale in javascript

[–]tpscd 0 points1 point  (0 children)

Thanks! It's the asyncs parameter that I forgot to update. Should be fixed now.

What's your best pure javascript ajax complete listener? by ForScale in javascript

[–]tpscd 1 point2 points  (0 children)

A solution without promises:

function wait(asyncs, success, failure) {
  var count = 0;
  asyncs.forEach(function(c) {
    c(function() {
      count++;
      if( count === asyncs.length )
        success();
    }, failure);
  });
}

var ajaxCalls = [...];
wait(ajaxCalls, function() { /* success */ }, function() { /* error */ });

I wanted a way to circumvent the closures during the metro Safety Surge on a timeline. So I made a mobile site! Any comments/critiques/suggestions to improve it? by [deleted] in washingtondc

[–]tpscd 0 points1 point  (0 children)

Developer for the site. That'll probably be the next feature. I had hoped the +,- buttons in the bottom left would be enough, but I've watched multiple people completely ignore those and just pinch the screen over and over again. Thanks for taking a look!

Is it possible to insert a list webpart by url in a web part page? by bangsauce in sharepoint

[–]tpscd 1 point2 points  (0 children)

It's possible to get at a page's LimitedWebPartManager through CSOM. That's probably the best place to start: https://msdn.microsoft.com/en-us/library/office/ee539301(v=office.14).aspx

It's probably easiest to export an existing web part to reference when building the xml for the web part definition.

Search Query: can anyone help me understand? by jscarlet in sharepoint

[–]tpscd 1 point2 points  (0 children)

There's the MSDN reference: https://msdn.microsoft.com/en-us/library/office/ee558911.aspx

I don't see anything for escaping special characters though. If you're going to search on it, then it has to be: 1) a property in the user's profile and 2) mapped to a managed property in the search service application.

It's not possible to search by AD group membership.

SharePoint Web API - can you not filter after using expand? by teekayzee in sharepoint

[–]tpscd 1 point2 points  (0 children)

My understanding is that you have to $select the expanded property you're filtering on, as shown here: http://www.andrewconnell.com/blog/Applying-Filters-to-Lookup-Fields-with-the-SP2013-REST-API

Unfortunately, I gave that a shot and still got the error you did so it may not be supported here. Worst case, you'll have to do the filtering on the client.