Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| function mapPromises(args, callback, concurrency = 3) { | |
| const { promise, resolve } = Promise.withResolvers(); | |
| const results = []; | |
| let cursor = 0; | |
| function next() { | |
| if (cursor < args.length) { | |
| const index = cursor++; | |
| void callback(...args[index]).then(value => { |
| <?php | |
| namespace App\Providers; | |
| use App\Services\PaginationService; | |
| use Illuminate\Support\Collection; | |
| use Illuminate\Support\ServiceProvider; | |
| class CollectionMacroServiceProvider extends ServiceProvider | |
| { |
| this video was created earlier in january from a stupid idea and was driven by sheer determination | |
| despite lacking programming skill. here's a decent description of how it was made (because i am | |
| too lazy to write a github readme): | |
| 1. the video | |
| i downloaded the pv off youtube and used ffmpeg to resize it down to 70x54 dimensions (for easy | |
| math calculations, i used 27 firefox windows, 7 tabs each, so it divided nicely). i then used | |
| ffmpeg (again) to splice the source video into 15-second segments to reduce desyncing and cpu load. | |
| 2. the frames |
| .snap { | |
| -ms-scroll-snap-type: x mandatory; | |
| scroll-snap-type: x mandatory; | |
| -ms-overflow-style: none; | |
| scroll-behavior: smooth | |
| } | |
| .snap::-webkit-scrollbar { | |
| display: none; | |
| } |
| import { defineAsyncComponent } from 'vue' | |
| const Content = defineAsyncComponent(() => import('./component-content.js')) | |
| export default { | |
| name: 'App', | |
| components: { Content }, | |
| template: /*html*/` | |
| <Content /> | |
| ` |
| .pikaday-dark { | |
| --backgroundColor: #2d3748; | |
| --textColor: #f7fafc; | |
| --currentDateTextColor: #3182ce; | |
| --selectedDateBackgroundColor: #3182ce; | |
| --selectedDateTextColor: #f7fafc; | |
| --labelTextColor: #3182ce; /* eg. May 2020 */ | |
| --weekDaysTextColor: #a0aec0; /* eg. Mo Tu We ....*/ |
| .pikaday-white { | |
| --backgroundColor: #ffffff; | |
| --textColor: #718096; | |
| --currentDateTextColor: #3182ce; | |
| --selectedDateBackgroundColor: #3182ce; | |
| --selectedDateTextColor: #ffffff; | |
| --labelTextColor: #4a5568; /* eg. May 2020 */ | |
| --weekDaysTextColor: #a0aec0; /* eg. Mo Tu We ....*/ |