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
Тут ваш код до завдання 1 |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Microsoft.Extensions.Logging; | |
using Microsoft.EntityFrameworkCore; | |
namespace TestEF | |
{ |
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
package academy.prog; | |
import java.util.Scanner; | |
import net.thauvin.erik.crypto.*; | |
public class Main { | |
public static void main(String[] args) throws Exception { | |
var scanner = new Scanner(System.in); | |
var price = CryptoPrice.spotPrice("BTC").getAmount().doubleValue(); |
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
private static void Folder_OnDrop(object sender, ShellFolderDropEventArgs e) | |
{ | |
e.AllowedEffects = Constants.DROP_EFFECT_COPY | Constants.DROP_EFFECT_MOVE | Constants.DROP_EFFECT_LINK; | |
var formats = e.Formats.Split('\n'); | |
var format = formats[0]; | |
int count = 0; | |
var data = folder.GetDragData(e.TaskId, format, 0, ref count); |
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
# Add Docker's official GPG key: | |
sudo apt-get update | |
sudo apt-get install ca-certificates curl gnupg | |
sudo install -m 0755 -d /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
sudo chmod a+r /etc/apt/keyrings/docker.gpg | |
# Add the repository to Apt sources: | |
echo \ | |
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ |
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
package org.example; | |
import net.thauvin.erik.crypto.CryptoPrice; | |
import org.telegram.telegrambots.bots.TelegramLongPollingBot; | |
import org.telegram.telegrambots.meta.api.methods.send.SendMessage; | |
import org.telegram.telegrambots.meta.api.methods.send.SendPhoto; | |
import org.telegram.telegrambots.meta.api.objects.InputFile; | |
import org.telegram.telegrambots.meta.api.objects.Update; | |
public class MyBot extends TelegramLongPollingBot { |
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
package org.example; | |
import org.telegram.telegrambots.meta.TelegramBotsApi; | |
import org.telegram.telegrambots.updatesreceivers.DefaultBotSession; | |
public class Main { | |
public static void main(String[] args) throws Exception { | |
var api = new TelegramBotsApi(DefaultBotSession.class); | |
api.registerBot(new MyBot()); | |
} |
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
package org.example; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
var scanner = new Scanner(System.in); | |
System.out.println("What is BTC price today?"); | |
var rate = scanner.nextDouble(); |
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
package org.example; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
var scanner = new Scanner(System.in); | |
System.out.println("What is BTC price today?"); | |
var rate = scanner.nextDouble(); |
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
package org.example; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
System.out.println("Hello world!"); | |
System.out.println("How are you?"); | |
var scanner = new Scanner(System.in); |
NewerOlder