elif cmd.op == 'TUPLE':
arity, = cmd.args
stack = self.data_stack
text = ', '.join(str(stack.pop())
for _ in range(arity))
stack.append(f'{{{text}}}')5,334 karma · joined December 13, 2011
https://twitter.com/michaelhoffman
https://github.com/michaelmhoffman
https://hnbadges.netlify.app/?user=michaelhoffman
elif cmd.op == 'TUPLE':
arity, = cmd.args
stack = self.data_stack
text = ', '.join(str(stack.pop())
for _ in range(arity))
stack.append(f'{{{text}}}')https://en.wikipedia.org/w/index.php?title=Template:Pixar&di...
Thankfully someone else seems to have added him back in and it has stuck now.
> Perhaps, but it would be a bit immature to do so. Or even to quote someone else doing so.
Yeah I shudder to think about how gamification in this way will change the discourse here.
- is fast AF
- supports SyncTeX
- doesn't unnecessarily lock the files it has open
Does using a device that allows you to avoid walking up many flights of stairs really violate the spirit of a law prohibiting work on the sabbath?
https://zenodo.org/communities/hoffmanlab/
GitHub even provides a guide to depositing a GitHub repo in Zenodo:
https://www.carl-abrc.ca/advancing-research/institutional-re...
https://www.carl-abrc.ca/advancing-research/institutional-re...
I recommend these article for discussions of how to share when you can't share all your raw data publicly because of participant privacy:
https://www.nature.com/articles/s41586-020-2766-y (I am a co-author)
https://www.nature.com/articles/s41576-020-0257-5
There's some more discussion in the article linked in the parent to but it's mostly not about that.
https://febs.onlinelibrary.wiley.com/doi/10.1002/1873-3468.1...
https://j-source.ca/article/copy-editors-laid-off-more-than-...
https://www.poynter.org/reporting-editing/2017/by-dismantlin...
from operator import itemgetter
def maxWidthOfVerticalArea(self, points: List[List[int]]) -> int:
xs = sorted(points, key=itemgetter(0))
x_pairs = zip(xs, xs[1:])
widths = (right-left for left, right in x_pairs)
return max(widths)
NumPy also has stuff to solve this sort of thing built-in: from numpy import diff
def maxWidthOfVerticalArea(self, points: List[List[int]]) -> int:
xs = sorted(points, key=itemgetter(0))
widths = diff(xs)
return widths.max()