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
<?xml version="1.0" encoding="UTF-8"?> | |
<style-scheme version="1.0" name="Zenburn"> | |
<style name="AddedLine" foreground="#708c80" background="#313c36" bold="true"/> | |
<style name="Comment" foreground="#7f9f7f"/> | |
<style name="CurrentLine" foreground="#dcdccc" background="#262626"/> | |
<style name="CurrentLineNumber" foreground="#9fafaf" bold="true"/> | |
<style name="DiffFile" foreground="#ecbcbc" background="#41363c" bold="true"/> | |
<style name="DiffLocation" foreground="#80d4aa" background="#2f2f2f" bold="true"/> | |
<style name="DisabledCode" background="#555555" bold="true"/> | |
<style name="Doxygen.Comment" foreground="#80969f"/> |
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 <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
int main(int argc, char* argv[]) { | |
char *src="12345678"; | |
char dst1[10]; | |
char dst2[10]; | |
// ensure that dst is clean |
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
# This is a condensed snippet of making a python daemon manually. | |
# grizzled and python-daemon were simply not working as easily as | |
# I would expect, while this little bit of code works just fine. | |
# Assumes you've already used an OptionParser instance to get | |
# some info but that's easily modified. | |
if options.daemon: | |
# Fork once | |
pid = os.fork() | |
if pid > 0: |
NewerOlder