I hereby claim:
- I am prajwalprakash3722 on github.
- I am theprajwalp (https://keybase.io/theprajwalp) on keybase.
- I have a public key ASCBCj3lk5Q5_BquArOFSzrxRXNbwUBykUmILhN7TSlBpQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| if err := ValidatePluginName("mysql"); err != nil { | |
| log.Fatalf("Plugin is not valid: %v", err) | |
| } |
| // Load the mysql, hello, and jobs plugins | |
| err := LoadPlugins(manager, []string{"mysql", "hello", "jobs"}) |
| // Register the "mysql" plugin with an alias "database" | |
| GlobalRegistry.RegisterPlugin("mysql", NewMySQLPluginFactory, "database") |
| // This function is a factory. | |
| func NewMySQLPluginFactory() types.Plugin { | |
| return mysql_plugin.New() | |
| } |
| package types | |
| // Plugin is the fundamental interface for all extensible components. | |
| type Plugin interface { | |
| // Name provides a unique identifier for the plugin. | |
| Name() string | |
| // Configure applies a given configuration map to the plugin. | |
| Configure(config map[string]interface{}) error | |
| // Init initializes the plugin, like connecting to a database. | |
| Init() error |
| package main | |
| import ( | |
| "encoding/csv" | |
| "fmt" | |
| "os" | |
| "regexp" | |
| ) | |
| func main() { |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "generic/ubuntu2204" | |
| config.vm.network "private_network", type: "dhcp" | |
| (1..2).each do |i| | |
| config.vm.define "ubuntu#{i}" do |node| | |
| node.vm.provider "libvirt" do |vb| |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # All Vagrant configuration is done below. The "2" in Vagrant.configure | |
| # configures the configuration version (we support older styles for | |
| # backwards compatibility). Please don't change it unless you know what | |
| # you're doing. | |
| Vagrant.configure("2") do |config| | |
| # The most common configuration options are documented and commented below. | |
| # For a complete reference, please see the online documentation at |
| import java.util.Iterator; | |
| class Node { | |
| int value; | |
| Node node; | |
| } | |
| public class Solution { | |
| public static void main(String[] args) { |