This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Это первое задание по фронтенду для 2025 года. | |
Фронтенд — это как писать веб-приложения. Как создавать штуки, которые работают в браузере. | |
Мы изучаем фронтенд и пробуем программировать вручную, чтобы понять, как вообще всё работает | |
в компьютерах и телефонах. | |
Почему мы пишем под компьютеры, а не под телефоны? Приложения в телефонах устроены очень |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/game-music-emu/gme/Classic_Emu.cpp b/game-music-emu/gme/Classic_Emu.cpp | |
index f02d79b2a..1d594b70a 100644 | |
--- a/game-music-emu/gme/Classic_Emu.cpp | |
+++ b/game-music-emu/gme/Classic_Emu.cpp | |
@@ -122,3 +122,7 @@ blargg_err_t Classic_Emu::play_( int count, sample_t out [] ) | |
} | |
return blargg_ok; | |
} | |
+ | |
+const char* Classic_Emu::get_chip_state() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ cog predict -i input=@../hackathons/sep3/Carver\ Commodore\ -\ Drown\ Me\ In\ Emotions-bLaipK9lisc.mp3 | |
Building Docker image from environment in cog.yaml... | |
[+] Building 270.0s (15/20) | |
=> [internal] load build definition from Dockerfile 0.0s | |
=> => transferring dockerfile: 1.49kB 0.0s | |
=> [internal] load .dockerignore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# history | |
1 apt update | |
2 python3.8 | |
3 git clone https://github.com/csteinmetz1/wavebeat.git | |
4 cd wavebeat | |
5 python3 -m venv env/ | |
6 source env/bin/activate | |
7 apt install python3.8-venv | |
8 alias apt='apt -y' | |
9 python3 -m venv env/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Repack using https://www.fourmilab.ch/webtools/midicsv/ | |
import csv | |
MAX_TIME = 82559 | |
# HALF_TIME = MAX_TIME / 2 | |
MIN_PITCHBEND = 8192 | |
MAX_PITCHBEND = 3800 | |
# We're in D major, we want to flatten degrees 3, 6 and 7: F#, B and C# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
audio { | |
width: 270px; | |
height: 30px ; | |
margin-top: 5px; | |
} | |
#wrapper { | |
width: 1300px | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script type="text/javascript" src="brython.js"></script> | |
<script type="text/javascript" src="http://canvg.github.io/canvg/rgbcolor.js"></script> | |
<script type="text/javascript" src="http://canvg.github.io/canvg/StackBlur.js"></script> | |
<script type="text/javascript" src="http://canvg.github.io/canvg/canvg.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script type="text/javascript" src="brython.js"></script> | |
<script type="text/javascript" src="http://canvg.github.io/canvg/rgbcolor.js"></script> | |
<script type="text/javascript" src="http://canvg.github.io/canvg/StackBlur.js"></script> | |
<script type="text/javascript" src="http://canvg.github.io/canvg/canvg.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require("request"); | |
var options = { method: 'POST', | |
url: 'http://api.iiko.ru/php/router.php', | |
qs: { a: 'add_order' }, | |
headers: | |
{ 'postman-token': '174a5b85-3ef3-b678-2ea0-de1471095b2d', | |
'cache-control': 'no-cache', | |
'content-type': 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' }, | |
formData: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require("request"); | |
var options = { method: 'POST', | |
url: 'http://api.iiko.ru/php/router.php', | |
qs: { a: 'add_order' }, | |
headers: | |
{ 'postman-token': 'dae9b024-be82-0ed6-5ff3-6bdb268eb9eb', | |
'cache-control': 'no-cache', | |
'content-type': 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' }, | |
formData: |
NewerOlder