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
pub const B0: u32 = 1 << 0; | |
pub const B1: u32 = 1 << 1; | |
pub const B2: u32 = 1 << 2; | |
pub const B3: u32 = 1 << 3; | |
pub const B4: u32 = 1 << 4; | |
pub const B5: u32 = 1 << 5; | |
pub const B6: u32 = 1 << 6; | |
pub const B7: u32 = 1 << 7; | |
pub const B8: u32 = 1 << 8; | |
pub const B9: u32 = 1 << 9; |
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
# For more information on configuration, see: | |
# * Official English Documentation: http://nginx.org/en/docs/ | |
# * Official Russian Documentation: http://nginx.org/ru/docs/ | |
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log; | |
pid /run/nginx.pid; | |
# Load dynamic modules. See /usr/share/nginx/README.dynamic. |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <limits.h> | |
#include <string.h> | |
struct entry_s { | |
char *key; | |
char *value; |
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
<internode><api><service type="Personal_ADSL" request="history">3854328</service><usagelist><usage day="2013-01-26"><traffic name="total" unit="bytes">3038963621</traffic></usage><usage day="2013-01-27"><traffic name="total" unit="bytes">655453443</traffic></usage><usage day="2013-01-28"><traffic name="total" unit="bytes">574066529</traffic></usage><usage day="2013-01-29"><traffic name="total" unit="bytes">773252202</traffic></usage><usage day="2013-01-30"><traffic name="total" unit="bytes">4869566556</traffic></usage><usage day="2013-01-31"><traffic name="total" unit="bytes">1987457829</traffic></usage><usage day="2013-02-01"><traffic name="total" unit="bytes">422007374</traffic></usage><usage day="2013-02-02"><traffic name="total" unit="bytes">724808476</traffic></usage><usage day="2013-02-03"><traffic name="total" unit="bytes">2111501510</traffic></usage><usage day="2013-02-04"><traffic name="total" unit="bytes">1725925308</traffic></usage><usage day="2013-02-05"><traffic name="total" unit="bytes">50825691 |
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
/* Code: */ | |
#include <libxml/parser.h> | |
#include <libxml/xpath.h> | |
#include <stdio.h> | |
xmlDocPtr | |
getdoc (char *docname) | |
{ | |
xmlDocPtr doc; | |
doc = xmlParseFile(docname); |
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
/* Code: */ | |
#include <stdio.h> | |
#include <string.h> | |
#include "internodeAPI.h" | |
#include "xmlparsing.h" | |
#define BASEXML "tmp/nodeservice.xml" | |
/* sample XML file */ | |
/* <internode> */ | |
/* <api> */ | |
/* <services count="1"> */ |
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
int | |
main(int argc, char *argv[]) | |
{ | |
char mystr[50] = {"The brown fox."}; | |
//gets(mystr); | |
char result[50];// = "______________"; | |
printf("%s \n", mystr); | |
removeXtraSpaces(mystr, result); | |
printf("%s\n", result); |