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
| @Test | |
| fun `send http request success`() = runBlocking { | |
| mockHttpCall( | |
| statusCode = 200, | |
| jsonResponse = json { | |
| obj( | |
| "ip" to "1.1.1.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 random | |
| from time import sleep | |
| class Game(object): | |
| def __init__(self, deck, players): | |
| self.deck = deck | |
| self.players = players | |
| self.dealer = Dealer() | |
| self.players.append(self.dealer) |
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" | |
| services: | |
| deluge: | |
| image: linuxserver/deluge | |
| container_name: deluge | |
| environment: | |
| - PUID=1000 | |
| - PGID=1000 | |
| - TZ=PST | |
| volumes: |
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 searchQuery = 'from:*@amazon.com in:inbox John Doe'; // replace with actual query | |
| var forwardAddress = 'john.doe@example.com'; // replace with actual email | |
| function forwardEmails() { | |
| var emailThreadsToFoward = GmailApp.search(searchQuery); | |
| for (var i = 0; i < emailThreadsToFoward.length; i++) { | |
| var emailThread = emailThreadsToFoward[i]; | |
| var email = emailThread.getMessages()[0]; | |
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.io.BufferedReader; | |
| import java.io.DataOutputStream; | |
| import java.io.InputStreamReader; | |
| import java.net.Socket; | |