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
| // [dependencies] | |
| // fltk = { version = "^1.3", features = ["fltk-bundled"] } | |
| use fltk::{app, prelude::*, window::Window}; | |
| fn my_app() { | |
| let app = app::App::default(); | |
| let mut app_window = Window::new(100, 100, 400, 300, "Checking out the FLTK-rs Library"); | |
| app_window.end(); |
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
| // In this script, we'll create a function to generate secure random strings. | |
| // First, define the function that generates the random string. | |
| func generateRandomString(chars string, length int) string { | |
| // Create an array of bytes with the specified length. | |
| bytes := make([]byte, length) | |
| // Use crypto/rand to fill the byte array with secure random bytes. | |
| _, err := rand.Read(bytes) | |
| if err != nil { |
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 ( | |
| "encoding/json" | |
| "log" | |
| "net/http" | |
| ) | |
| type Person struct { | |
| Name string `json:"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
| package main | |
| import "fmt" | |
| type Node struct { | |
| data any | |
| next *Node | |
| } | |
| type LinkedList struct { |
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/tls" | |
| "fmt" | |
| "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
| package main | |
| import ( | |
| "fmt" | |
| "github.com/PuerkitoBio/goquery" | |
| "net/http" | |
| ) | |
| type Information struct { | |
| link string |
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
| let walletServer = walletserver.init("path") | |
| let recoveryPhrase = seed.generateRecoveryPhrase() | |
| let mnemonic = seed.toMnemonicList(recoveryPhrase) | |
| let passphrase = "name" | |
| let walletName = "name" | |
| let wallet = await walletServer.createOrRestoreShelleyWallet(walletName, mnemonic, passphrase) |
NewerOlder