This gist was built by the community of the researchers and was scribed by Kir and Igor from the QIWI/Vulners. We are grateful for the help of all those who sent us the data, links and information. Together we can make this world a better place!
This file contains 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
""" | |
Temporary module to allow for sqlite databases during development. Remove once | |
we get an actual database. | |
""" | |
import peewee | |
from peewee_async import AsyncDatabase | |
import playhouse.sqlite_ext as sqlite_ext | |
try: | |
import aiosqlite |
This file contains 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
Please generate a JSON song using the following contract: | |
The song data should be an object with the following properties: | |
channel1: An array of numbers and strings representing the notes for the first channel. | |
channel2: An array of numbers and strings representing the notes for the second channel. | |
channel3: An array of numbers and strings representing the notes for the third channel. | |
channel4: An array of numbers and strings representing the notes for the fourth channel. | |
Each channel should have at least one note, and each note should be a positive integer representing the frequency in Hertz or a string that starts with the letter 'r' followed by a duration in milliseconds for pauses. The duration of each note/pause should be 250 milliseconds, except for pause notes, in which the duration should be the specified pause duration. |