Skip to content

Instantly share code, notes, and snippets.

View BOTKooper's full-sized avatar

Alex Ozerov BOTKooper

View GitHub Profile
@BOTKooper
BOTKooper / rails-cookie-hell.ts
Created August 31, 2022 22:20
lost like whole day making this work
<template>
<div id="app">
<div>
<button @click="startStream()">Start stream</button>
<div>
<video id="video" autoplay width="320" height="240"></video>
<div v-if="!stream">No stream found</div>
<canvas id="canvas" width="320" height="240" style="display: none;"></canvas>
</div>
</div>
# Дан одномерный массив целых положительных и
# отрицательных чисел. Вместо этого массива создайте
# массив, в котором элемент равняется 1, если он
# больше или равный 0, и нулю, если число
# отрицательное.
# N= 6 -12 33 5 0 -3 7
def main():
@BOTKooper
BOTKooper / log.txt
Last active September 11, 2023 12:40
Weird `bun build` behaviour while giving it different targets
~/Documents/bun-env ⬢ 18.17.1 03:40:10 PM
❯ batcat index.ts
───────┬───────────────────────────────────────────────────────────────────────────────────────────
│ File: index.ts
───────┼───────────────────────────────────────────────────────────────────────────────────────────
1 │ console.log("Hello via Bun!");
2 │
3 │
4 │ if(process.env.SECRET_FEATURE_ENABLED === 'true') {
5 │ console.log("Development mode");