A study creating performant particles with Canvas 2D
A Pen by Justin Windle on CodePen.
| def fetch_news(self, asset: str, current_time: datetime) -> bool: | |
| # Re-implemented: compute sentiment and return True if entries should be blocked | |
| try: | |
| # Get cached-or-fresh sentiment | |
| sentiment = self.news_service.get_symbol_sentiment(asset) | |
| self._last_sentiment[asset] = sentiment | |
| # Decide if we block entries: | |
| # - Require minimum confidence (quality/recency/amount of news) | |
| # - Require minimum absolute sentiment magnitude |
A study creating performant particles with Canvas 2D
A Pen by Justin Windle on CodePen.
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Infinite Maze Solver</title> | |
| <link rel="stylesheet" href="styles.css"> | |
| </head> | |
| <body> |
| <div id="demos"> | |
| <span class="demo" data-id="0">Demo 1</span> | |
| <span class="demo" data-id="1">Demo 2</span> | |
| <span class="demo" data-id="2">Demo 3</span> | |
| <span class="demo" data-id="3">Demo 4</span> | |
| <span class="demo" data-id="4">Demo 5</span> | |
| </div> |
| #!/bin/bash | |
| # advanced python regex for snatching up as many extra videos | |
| # as possible and also neatly organizing video directories | |
| yt-dlp --parse-metadata "description:(?P<download_domain>https?://(?:[a-z]+\.)?(?P<domain>youtube\.com|youtu\.be|vimeo\.com|dailymotion\.com|twitch\.tv|fb\.watch|facebook\.com|soundcloud\.com|mixcloud\.com|bandcamp\.com|twitter\.com|instagr\.am|instagram\.com|redd\.it|reddit\.com|tiktok\.com|bit\.ly|bitchute\.com|peertube\.co|bili\.com|tinyurl\.com|goo\.gl|ow\.ly)/[^\s]+)" \ | |
| --parse-metadata "upload_date:(?P<unix_timestamp>[0-9]{8})" \ | |
| --replace-in-metadata "unix_timestamp" "[0-9]{8}" "%(upload_date)s" \ | |
| --output "%(domain)s/%(unix_timestamp)s/%(sentiment)s/%(view_count)s/%(title)s.%(ext)s" \ | |
| --embed-metadata <VIDEO_URL> |
| <pre id="p"> | |
| <script> | |
| n = setInterval("for (n += 7, i = k, P = 'p.\\n'; i -= 1 / k; P += P[i % 2 ? (i % 2 * j - j + n / k ^ j) & 1 : 2]) j = k / i; p.innerHTML = P", k = 128) | |
| </script> | |
| </pre> |
| <pre id="p"> | |
| <script> | |
| n = setInterval("for (n += 7, i = k, P = 'p.\\n'; i -= 1 / k; P += P[i % 2 ? (i % 2 * j - j + n / k ^ j) & 1 : 2]) j = k / i; p.innerHTML = P", k = 128) | |
| </script> | |
| </pre> |
A Pen by Sharkyboybruh on CodePen.
A Pen by Artem Zubkov on CodePen.
Click anywhere to make an explosion.
Forked from towc's Pen Square exploder (mini-game).
A Pen by Artem Zubkov on CodePen.