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
test |
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 new client: 127.0.0.1:61281 | |
-> sys msg: Info | |
<- sys msg: MapChange | |
<- sys msg: MapData | |
-> sys msg: Ready | |
<- gam msg: SvMotd | |
<- sys msg: ConReady | |
-> gam msg: ClStartInfo | |
-> sys msg: RconCmd | |
<- gam msg: SvVoteClearOptions |
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
# Interface | |
type InterfaceType = ref object of RootObj | |
baseVar: int # optional var | |
# Virtual method of `InterfaceType` | |
method doSomething(this: InterfaceType) = | |
discard # empty method | |
# Implementation | |
type ImplementType = ref object of InterfaceType |
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
# A plugin interface might look like this | |
type PluginInterface = ref object of RootObj | |
discard # here might be some vars | |
# virtual methods (not implemented) | |
# on irc message | |
method onMsg(this: PluginInterface, msg: string) = | |
discard |
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
writeFile = open("testdatei2.txt", "w"); | |
with open("testdatei.txt", "r") as ins: | |
for line in ins: | |
newLine = "echo " + line; | |
writeFile.write(newLine); | |
writeFile.close(); |
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
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/kthread.h> | |
#include <linux/time.h> | |
#include <linux/timer.h> | |
#include <linux/fs.h> | |
#include <asm/segment.h> | |
#include <asm/uaccess.h> | |
#include <linux/buffer_head.h> | |
#include <linux/vmalloc.h> |