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
{ | |
"request_id": "818cf539-5b38-4c0b-aeb4-47a4789fdb54", | |
"event": "question", | |
"type": "response", | |
"data": { | |
"datetime": "2025-04-01T07:29:05.780636+00:00", | |
"payload": { | |
"question_id": 405, | |
"question_text": "Вопрос", | |
"question_number": 3, |
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
package com.mercury.app.updater | |
import android.app.Activity | |
import androidx.activity.compose.rememberLauncherForActivityResult | |
import androidx.activity.result.ActivityResult | |
import androidx.activity.result.ActivityResultLauncher | |
import androidx.activity.result.IntentSenderRequest | |
import androidx.activity.result.contract.ActivityResultContracts | |
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.Stable |
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
class DeflateInterceptor : Interceptor { | |
override fun intercept(chain: Interceptor.Chain): Response { | |
val response = chain.proceed(chain.request()) | |
return inflate(response) | |
} | |
private fun inflate(response: Response): Response { | |
val body = response.body ?: return response |
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
Version: 2.22.4 | |
BlockCommandPlayer: '&cВам запещено вводить команду {command}.' | |
BlockCommandSender: '&cИгроку &6{player} &cзапрещено выполнять команду {command}.' | |
BlockedCommand: '&cВам запещено вводить команду: {command}' | |
BlockingMessage: '&6{player} блокирует сообщения.' | |
BungeeToggleOff: '&6Вы теперь блокируете чат BungeeCord.' | |
BungeeToggleOn: '&6Вы теперь получаете сообщения из чата BungeeCord.' | |
ClearChatSender: '&aЧат сервера очищен.' | |
ClearChatServer: '&aВаш чат был очищен.' | |
ChannelCannotMute: '&cВы не можете заглушить игроков в этом канале: {channel_color}{channel_name}' |
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
function getPluralString(count, pluralForms) | |
local lastDigit = count % 10 | |
if count % 100 >= 11 and count % 100 <= 14 then | |
return pluralForms[1] | |
elseif lastDigit == 1 then | |
return pluralForms[2] | |
elseif lastDigit >= 2 and lastDigit <= 4 then | |
return pluralForms[3] | |
else | |
return pluralForms[1] |
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
<acl> | |
<group name="Everyone"> | |
<acl name="Default"></acl> | |
<object name="user.*"></object> | |
<object name="resource.*"></object> | |
</group> | |
<group name="Moderator"> | |
<acl name="Moderator"></acl> | |
<object name="resource.mapcycler"></object> | |
<object name="resource.mapmanager"></object> |
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
# Your snippets | |
# | |
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to | |
# expand the prefix into a larger code block with templated values. | |
# | |
# You can create a new snippet in this file by typing "snip" and then hitting | |
# tab. | |
# | |
# An example CoffeeScript snippet to expand log to console.log: | |
# |
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
@Override | |
protected void onDraw(Canvas canvas) { | |
canvas.drawColor(Color.BLACK); | |
Paint paint = new Paint(); | |
paint.setStyle(Paint.Style.FILL); | |
for (int i = 1; i < 5; i ++) { | |
Log.d("MyView", "onDraw " + Integer.toString(i)); | |
switch (i) { | |
case 1: { |
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
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner in = new Scanner(System.in); | |
int[] array = new int[in.nextInt()]; | |
for (int i = 0; i < array.length; i++) { | |
array[i] = in.nextInt(); | |
} |
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
public class Main { | |
public static void main(String[] args) { | |
Scanner in = new Scanner(System.in); | |
int[] array = new int[in.nextInt()]; | |
for (int i = 0; i < array.length; i++) { | |
array[i] = in.nextInt(); | |
} | |
for (int i = 0; i < array.length; i ++) { | |
if (array[i] % 2 == 0) { |
NewerOlder