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
| // Include headers for classes... | |
| #include <iostream> | |
| #include <iomanip> | |
| #include <string> | |
| #include <bitset> | |
| // Classes from different namespaces... | |
| using std::cout; | |
| using std::cin; | |
| using std::endl; |
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
| #include <iostream> | |
| using std::cin; | |
| using std::cout; | |
| using std::endl; | |
| // Define a top-level namespace for the calculator | |
| namespace calculator { | |
| // Define a nested namespace for the functions | |
| namespace functions { |
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
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Threading; | |
| using TMPro; | |
| using UnityEngine; | |
| public class Terminal : MonoBehaviour | |
| { | |
| public TMP_InputField inputField; | |
| public TMP_Text outputText; |
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
| using UnityEngine; | |
| using UnityEngine.Networking; | |
| using TMPro; | |
| using System.Collections; | |
| public class NetworkRequest : MonoBehaviour | |
| { | |
| public TMP_InputField ipAddressField; | |
| public TMP_Text resultText; |
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
| SCREEN 12 ' Set screen mode to 640x480, 32-bit color | |
| DO ' Infinite loop | |
| RANDOMIZE TIMER ' initialize the random number generator | |
| ' Generate random circle properties | |
| x = INT(RND * 641) ' Random x-coordinate 0 to 640 | |
| y = INT(RND * 481) ' Random y-coordinate 0 to 480 | |
| r = INT(RND * 101) ' Random radius 0 to 100 |
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 main | |
| import ( | |
| "crypto/md5" | |
| "crypto/sha256" | |
| "encoding/hex" | |
| "flag" | |
| "fmt" | |
| "hash" | |
| "io" |
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 main | |
| import ( | |
| "fmt" | |
| "net" | |
| "sync" | |
| ) | |
| func main() { | |
| var wg sync.WaitGroup |
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
| // Client | |
| package main | |
| import ( | |
| "encoding/gob" // Package for encoding and decoding data | |
| "fmt" // Package for formatted I/O | |
| "net" // Package for network operations | |
| ) |
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
| // Server | |
| package main | |
| import ( | |
| "encoding/gob" // Package for encoding and decoding data | |
| "fmt" // Package for formatted I/O | |
| "net" // Package for network operations | |
| ) |
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 main | |
| import ( | |
| "fmt" | |
| "syscall" | |
| "unsafe" | |
| ) | |
| const ( | |
| LOGON32_LOGON_NETWORK = 3 |
OlderNewer