repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
log-oscon/DicionarioAberto | Classes/EntrySense.h | <filename>Classes/EntrySense.h
//
// Sense.h
// DicionarioAberto
//
// Created by <NAME> on 21/12/2010.
//
#import "EntrySenseUsage.h"
@interface EntrySense : NSObject {
NSInteger ast;
NSMutableString *def;
NSMutableString *gramGrp;
EntrySenseUsage *usg;
}
@property (nonatomic, assign) NSInteger a... |
log-oscon/DicionarioAberto | Classes/EntrySenseUsage.h | //
// Usage.h
// DicionarioAberto
//
// Created by <NAME> on 21/12/2010.
//
@interface EntrySenseUsage : NSObject {
NSMutableString *type;
NSMutableString *text;
}
@property (nonatomic, strong) NSMutableString *type;
@property (nonatomic, strong) NSMutableString *text;
@end
|
log-oscon/DicionarioAberto | Classes/EntryEtymology.h | //
// Etym.h
// DicionarioAberto
//
// Created by <NAME> on 21/12/2010.
//
@interface EntryEtymology : NSObject {
NSMutableString *ori;
NSMutableString *text;
}
@property (nonatomic, strong) NSMutableString *ori;
@property (nonatomic, strong) NSMutableString *text;
@end
|
log-oscon/DicionarioAberto | Classes/SearchCell.h | //
// DefinitionCell.h
// DicionarioAberto
//
// Created by <NAME> on 26/12/2010.
// Copyright 2010 log - Open Source Consulting. All rights reserved.
//
#import "DARemoteClient.h"
#import "DAParser.h"
@interface SearchCell : UITableViewCell {
IBOutlet UIView *background;
IBOutlet UILabel *defini... |
log-oscon/DicionarioAberto | Classes/Entry.h | <reponame>log-oscon/DicionarioAberto
//
// Entry.h
// DicionarioAberto
//
// Created by <NAME> on 21/12/2010.
//
#import "EntryForm.h"
#import "EntrySense.h"
#import "EntryEtymology.h"
@class DDXMLElement;
@interface Entry : NSObject {
NSInteger n;
NSMutableString *entryId;
NSMutableString *entryType;... |
log-oscon/DicionarioAberto | Classes/InfoPageController.h | //
// InfoPageController.h
// DicionarioAberto
//
// Created by <NAME> on 04/01/2011.
//
#import "DADelegate.h"
@interface InfoPageController : UIViewController <UIWebViewDelegate> {
DADelegate *delegate;
IBOutlet UIWebView *infoPageView;
NSString *pageTitle;
NSURL *pageURI;
BOOL mainViewHasLoa... |
log-oscon/DicionarioAberto | Classes/DAParser.h | <reponame>log-oscon/DicionarioAberto<gh_stars>0
//
// DAParser.h
// DicionarioAberto
//
// Created by <NAME> on 23/12/2010.
//
#import "Entry.h"
@interface DAParser : NSObject {
}
+ (NSString *)markupToText:(NSString *)string;
+ (NSString *)markupToHTML:(NSString *)string;
@end
|
log-oscon/DicionarioAberto | Classes/InfoTableController.h | <filename>Classes/InfoTableController.h
//
// InfoController.h
// DicionarioAberto
//
// Created by <NAME> on 04/01/2011.
//
#import "DADelegate.h"
#import "InfoPageController.h"
@interface InfoTableController : UIViewController <UITableViewDataSource, UITableViewDelegate> {
DADelegate *delegate;
IBOutlet ... |
glensand/shared_whiteboard | src/network/IStreamProvider.h | //------------------------------------------------------------------------------
// StreamProvider.h
//
// Copyright (c) 2020 Afti
// All rights reserved.
//
// Date: 27.02.2020
// Author: glensand
//------------------------------------------------------------------------------
#pragma once
#include <functional>
na... |
glensand/shared_whiteboard | src/network/ITcpClient.h | <reponame>glensand/shared_whiteboard
/* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https://github.c... |
glensand/shared_whiteboard | src/whiteboard/render/RenderBase.h | <gh_stars>0
/* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https://github.com/glensand/visual-studio... |
glensand/shared_whiteboard | src/network/BaseStream.h | /* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https://github.com/glensand/visual-studio-compatibili... |
glensand/shared_whiteboard | src/sharedWhiteboard/WhiteboardServer.h | /* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https://github.com/glensand/visual-studio-compatibili... |
glensand/shared_whiteboard | src/whiteboard/Whiteboard.h | <gh_stars>0
/* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https://github.com/glensand/visual-studio-... |
glensand/shared_whiteboard | src/whiteboard/WhiteBoardCV.h | <reponame>glensand/shared_whiteboard
/* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https://github.c... |
glensand/shared_whiteboard | src/sharedWhiteboard/serializer/ShapeSerializer.h | <reponame>glensand/shared_whiteboard<gh_stars>0
/* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https... |
glensand/shared_whiteboard | src/sharedWhiteboard/Protocol/ArgumentShape.h | <reponame>glensand/shared_whiteboard<gh_stars>0
/* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https... |
glensand/shared_whiteboard | src/sharedWhiteboard/SharedWhiteboardClient.h | <reponame>glensand/shared_whiteboard
/* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https://github.c... |
glensand/shared_whiteboard | src/network/BoostTcpSession.h | <reponame>glensand/shared_whiteboard
/* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https://github.c... |
glensand/shared_whiteboard | src/sharedWhiteboard/serializer/SimpleShapeSerializer.h | <filename>src/sharedWhiteboard/serializer/SimpleShapeSerializer.h<gh_stars>0
/* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write ... |
glensand/shared_whiteboard | src/sharedWhiteboard/Protocol/ArgumentFactory.h | /* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https://github.com/glensand/visual-studio-compatibili... |
glensand/shared_whiteboard | src/sharedWhiteboard/Protocol/IArgument.h | <reponame>glensand/shared_whiteboard<gh_stars>0
/* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https... |
glensand/shared_whiteboard | src/whiteboard/utils/WbSignal.h | <reponame>glensand/shared_whiteboard<gh_stars>0
//------------------------------------------------------------------------------
// WbSignal.h
//
// Copyright (c) 2020 glensand
// All rights reserved.
//
// Date: 02.08.2020
// Author: <NAME>
//----------------------------------------------------------------------------... |
glensand/shared_whiteboard | src/network/BoostTcpStream.h | /* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https://github.com/glensand/visual-studio-compatibili... |
glensand/shared_whiteboard | src/whiteboard/render/ShapeData.h | /* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https://github.com/glensand/visual-studio-compatibili... |
glensand/shared_whiteboard | src/sharedWhiteboard/serializer/ShapeSerializerBase.h | /* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https://github.com/glensand/visual-studio-compatibili... |
glensand/shared_whiteboard | src/network/ITcpServer.h | <filename>src/network/ITcpServer.h
/* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https://github.com... |
glensand/shared_whiteboard | src/network/Stream.h | <reponame>glensand/shared_whiteboard<filename>src/network/Stream.h
/* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL... |
glensand/shared_whiteboard | src/sharedWhiteboard/serializer/ISerializerInner.h | <gh_stars>0
/* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https://github.com/glensand/visual-studio... |
glensand/shared_whiteboard | src/network/BoostTcpClient.h | <gh_stars>0
/* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https://github.com/glensand/visual-studio... |
glensand/shared_whiteboard | src/whiteboard/utils/WbSignalBoost.h | //------------------------------------------------------------------------------
// WbSlotBoost.h
//
// WbSlotBoost implements...
//
// Copyright (c) 2020 Afti
// All rights reserved.
//
// Date: dd.mm.2020
// Author: glensand
//------------------------------------------------------------------------------
#pragma onc... |
glensand/shared_whiteboard | src/network/BoostTcpServer.h | /* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https://github.com/glensand/visual-studio-compatibili... |
glensand/shared_whiteboard | src/sharedWhiteboard/Protocol/ArgumentContainer.h | /* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https://github.com/glensand/visual-studio-compatibili... |
glensand/shared_whiteboard | src/sharedWhiteboard/Protocol/IArgumentContainer.h | //------------------------------------------------------------------------------
// IArgumentContainer.h
//
// Copyright (c) 2020 Afti
// All rights reserved.
//
// Date: 27.02.2020
// Author: glensand
//------------------------------------------------------------------------------
#pragma once
namespace Net
{
class ... |
glensand/shared_whiteboard | src/sharedWhiteboard/Protocol/ArgumentBase.h | /* Copyright (C) 2020 - 2021 <NAME> - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
*
* You should have received a copy of the MIT license with
* this file. If not, please write to: <EMAIL>, or visit : https://github.com/glensand/visual-studio-compatibili... |
Vladimir-Lin/QtPhonemes | include/QtPhonemes/qtphonemes.h | <filename>include/QtPhonemes/qtphonemes.h<gh_stars>0
/****************************************************************************
* *
* Copyright (C) 2015 Neutrino International Inc. *
* ... |
Echelon9/vienna-rss | Pods/Headers/Public/PXListView/PXListViewCell+Private.h | //
// PXListViewCell+Private.h
// PXListView
//
// Created by <NAME> on 29/05/2010.
// Copyright 2010 <NAME>. http://perspx.com. All rights reserved.
//
@interface PXListViewCell ()
@property (readwrite, copy) NSString *reusableIdentifier;
@property (readwrite, assign) NSUInteger row;
@end
|
Echelon9/vienna-rss | src/GoogleReader.h | <filename>src/GoogleReader.h<gh_stars>0
//
// GoogleReader.h
// Vienna
//
// Created by <NAME> on 7/7/11.
// Copyright 2011-2014 Vienna contributors (see Help/Acknowledgements for list of contributors). All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ASIHTTPRequest.h"
#import "Folder.h"
#import ... |
Echelon9/vienna-rss | Pods/Headers/Public/PXListView/PXListDocumentView.h | //
// PXListDocumentView.h
// PXListView
//
// Created by <NAME> on 29/05/2010.
// Copyright 2010 <NAME>. http://perspx.com. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "PXListViewDropHighlight.h"
@class PXListView;
@interface PXListDocumentView : NSView
{
PXListView *_listView;
PXListViewDropH... |
Echelon9/vienna-rss | src/ArticleRef.h | <reponame>Echelon9/vienna-rss
//
// ArticleRef.h
// Vienna
//
// Created by Steve on 9/3/05.
// Copyright (c) 2004-2005 <NAME>. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy o... |
Echelon9/vienna-rss | src/Preferences.h | <filename>src/Preferences.h
//
// Preferences.h
// Vienna
//
// Created by Steve on 8/23/05.
// Copyright (c) 2004-2005 <NAME>. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy o... |
Echelon9/vienna-rss | Pods/Target Support Files/Pods-Vienna/Pods-Vienna-environment.h | <filename>Pods/Target Support Files/Pods-Vienna/Pods-Vienna-environment.h
// To check if a library is compiled with CocoaPods you
// can use the `COCOAPODS` macro definition which is
// defined in the xcconfigs so it is available in
// headers also when they are imported in the client
// project.
// ASIHTTPRequest
#... |
Echelon9/vienna-rss | src/Folder.h | //
// Folder.h
// Vienna
//
// Created by Steve on Thu Feb 19 2004.
// Copyright (c) 2004-2005 <NAME>. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// h... |
Echelon9/vienna-rss | Pods/Headers/Public/PXListView/PXListView+Private.h | //
// PXListView+Private.h
// PXListView
//
// Created by <NAME> on 01/06/2010.
// Copyright 2010 <NAME>. http://perspx.com. All rights reserved.
//
// This is a renamed copy of UKIsDragStart from <http://github.com/uliwitness/UliKit>:
// Possible return values from UKIsDragStart:
enum
{
PXIsDragStartMouseRelease... |
Echelon9/vienna-rss | Pods/Headers/Public/PXListView/PXListViewDropHighlight.h | /*
* PXListViewDropHighlight.h
* PXListView
*
* Created by <NAME> on 11.07.10.
* Copyright 2010 <NAME>. All rights reserved.
*
*/
enum PXListViewDropHighlight
{
PXListViewDropNowhere = 0,
PXListViewDropOn,
PXListViewDropAbove,
PXListViewDropBelow
};
typedef NSUInteger PXListViewDropHighlight;
|
Echelon9/vienna-rss | Pods/Headers/Public/PXListView/PXListViewCell.h | //
// PXListViewCell.h
// PXListView
//
// Created by <NAME> on 29/05/2010.
// Copyright 2010 <NAME>. http://perspx.com. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "PXListViewDropHighlight.h"
@class PXListView;
@interface PXListViewCell : NSView
{
NSString *_reusableIdentifier;
PXListView *_lis... |
Echelon9/vienna-rss | src/NSNotificationAdditions.h | @interface NSNotificationCenter (NSNotificationCenterAdditions)
- (void) postNotificationOnMainThread:(NSNotification *) notification;
- (void) postNotificationOnMainThreadWithName:(NSString *) name object:(id) object;
- (void) postNotificationOnMainThreadWithName:(NSString *) name object:(id) object userInfo:(NSDictio... |
PeterSels/milp-logic | libMilpLogic/include/StringUtilities.h | #ifndef STRING_UTILITIES_H
#define STRING_UTILITIES_H
#include <string>
#include <vector>
#include <iostream>
std::string characterToString(char ch);
int toInt(const std::string & str);
double toDouble(const std::string & str);
std::string escapeUnderscore(const std::string & str);
std::string toString... |
PeterSels/milp-logic | libMilpLogic/include/CplexExpression.h | #ifndef CPLEX_EXPRESSION_H
#define CPLEX_EXPRESSION_H
#include <iostream>
#include <assert.h>
#include "HasSolver.h"
/*
#define ILOUSESTL
using namespace std;
#include <ilcplex/ilocplex.h>
*/
#ifdef USE_CPLEX_NATIVE
class CplexExpression : public IloNumExpr {
public:
CplexExpression();
CplexExpression(const I... |
PeterSels/milp-logic | libMilpLogic/include/GurobiSolver.h | <filename>libMilpLogic/include/GurobiSolver.h
#ifndef GUROBI_SOLVER_H
#define GUROBI_SOLVER_H
#include <string>
#include "Solver.h"
#ifdef USE_GUROBI_NATIVE
class GurobiSolver : public Solver {
public:
GurobiSolver(double maxGetLicenseSeconds,
double maxSolveSeconds);
// setting u... |
PeterSels/milp-logic | libMilpLogic/include/BclException.h | #ifndef BCL_EXCEPTION_H
#define BCL_EXCEPTION_H
#include <iostream>
#include <string>
#include "HasSolver.h"
// this includes "xprb_cpp.h"
#ifdef USE_XPRESS_NATIVE
class BclException {
public:
std::string msg;
int code;
BclException(int c, const char *m);
};
typedef BclException SolverExc... |
PeterSels/milp-logic | libMilpLogic/include/Solver.h | #ifndef SOLVER_H
#define SOLVER_H
#include <vector>
#include <map>
#include <string>
#include "HasSolver.h"
//#include "PwlApproximator.h"
#undef USE_SOS_VECTOR
#define STR_MAX_LEN 255
// for Gurobi >= 4.6.0 really, but now spread over all solvers
typedef std::map<const SolverVar *, std::map<int, So... |
PeterSels/milp-logic | libMilpLogic/include/HasSolver.h | <filename>libMilpLogic/include/HasSolver.h
#ifndef HAS_SOLVER_H
#define HAS_SOLVER_H
// You should change this file according to the solvers your have available.
// You can make this conditional on the host system or/and OS type.
// The #ifdefs HAS_<solver> in our code are such that
// you can only define one HAS_<sol... |
ilian/DriverLoader | main.c | <reponame>ilian/DriverLoader
#include <stdio.h>
#include <windows.h>
#include <inttypes.h>
BOOL FileExists(LPCTSTR szPath)
{
DWORD dwAttrib = GetFileAttributes(szPath);
return (dwAttrib != INVALID_FILE_ATTRIBUTES &&
!(dwAttrib & FILE_ATTRIBUTE_DIRECTORY));
}
int main(int argc, char *argv[]) {
... |
eeeeeta/inebriated-c-edition | vbuf.c | /*
* variable data structures, for better memory management (tm)
*/
#include <stdlib.h>
#include <wchar.h>
#include <string.h>
#include <stdbool.h>
#include "markov.h"
#include "vbuf.h"
extern struct database *db_init(void) {
struct database *db = malloc(sizeof(struct database));
db->objs = DPA_init();
d... |
eeeeeta/inebriated-c-edition | markov.c | <filename>markov.c<gh_stars>0
/*
* crappy Markov chains chatbot
*/
#include <stdio.h>
#include <wchar.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include <time.h>
#include <stdbool.h>
#include "markov.h"
/**
* hash algo for strings
*/
static unsigned long djb_hash(void *key, int len) {
unsig... |
eeeeeta/inebriated-c-edition | net.c | /*
* networking parts!
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/unistd.h>
#include <sys/fcntl.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <pthread.h>
#include <stdio.h>
#include <string.h>
#include <poll.h>
#include <stdlib.h>
#include <wchar.h>
#include <unistd.h>
#include <stdbool.h... |
eeeeeta/inebriated-c-edition | save.c | <reponame>eeeeeta/inebriated-c-edition
/*
* save and load
*/
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <wchar.h>
#include <stdbool.h>
#include <pthread.h>
#include "markov.h"
static const wchar_t NEWKEY = L'\x11';
static const int yes = 1;
static const wchar_t NEWVAL = L'\x12';
static const ... |
eeeeeta/inebriated-c-edition | net.h | #ifndef _MARKOV_NET
#define _MARKOV_NET
#define NET_BACKLOG 3 /**< How many connections to tell listen() to keep a backlog for */
#define NET_PING_INTERVAL 45000 /**< time (in ms) between pings */
#define NET_TIMEOUT 4000 /**< time (in ms) to wait for a reply before giving up */
extern int net_init();
extern int net_... |
eeeeeta/inebriated-c-edition | proto.c | <filename>proto.c
/*
* network protocol functions
*/
#include <netdb.h>
#include <pthread.h>
#include <stdio.h>
#include <string.h>
#include <poll.h>
#include <stdlib.h>
#include <wchar.h>
#include <unistd.h>
#include <stdbool.h>
#include "vbuf.h"
#include "markov.h"
#include "net.h"
#include "proto.h"
/**
* Wrapper... |
eeeeeta/inebriated-c-edition | main.c | /*
* markov chains chatbot, main file
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <locale.h>
#include <wchar.h>
#include <wctype.h>
#include <stdbool.h>
#include <unistd.h>
#include "markov.h"
#include "net.h"
char *DB_FILENAME = "markov_keys.mkdb";
char *NET_PORT = "7070... |
eeeeeta/inebriated-c-edition | client.c | <filename>client.c<gh_stars>0
/*
* example client
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/unistd.h>
#include <sys/fcntl.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <pthread.h>
#include <stdio.h>
#include <string.h>
#include <locale.h>
#include <poll.h>
#include <stdlib.h>
#include <w... |
eeeeeta/inebriated-c-edition | markov.h | #ifndef _MARKOV
#define _MARKOV
#include "vbuf.h"
/**
* \brief Database node
*/
struct kv_node {
struct kv_node *next; /**< linked list: next kv_node for this key */
wchar_t *key; /**< key */
unsigned long *hash; /**< pointer to key hash */
struct kv_node *vptr; /**< pointer to value */
#ifdef I_HAVE_... |
eeeeeta/inebriated-c-edition | parser.c | /*
* parser for input
*/
#include <stdio.h>
#include <stdlib.h>
#include <wchar.h>
#include <wctype.h>
#include <stdbool.h>
#include "markov.h"
/**
* Reads two words into a varstr from a UCS-2 string.
* Returns (negative if end of string) the amount of characters
* to advance the buffer by.
*/
static signed int ... |
eeeeeta/inebriated-c-edition | proto.h | #ifndef _MARKOV_NET_PROTO
#define _MARKOV_NET_PROTO
enum message {
MSG_OHAI = '\x01', /**< (S <-> C) welcomes the client, or functions as a ping for the server */
MSG_PONG, /**< (S <-> C) response to MSG_OHAI, also a null command */
MSG_SEND_CMD, /**< (S -> C) request to send selection of command */
MS... |
eeeeeta/inebriated-c-edition | vbuf.h | <reponame>eeeeeta/inebriated-c-edition
#ifndef _MARKOV_VBUF
#define _MARKOV_VBUF
#define VARSTR_START_SIZE 15 /**< Default variable string start length */
#define VARSTR_REFILL_SIZE 5 /**< Default variable string refill length */
#define DPA_START_SIZE 25 /**< Default DPA start length */
#define DPA_REFILL_SIZE 10 /**<... |
Jonwod/SimpleEvolutionSimulator | BrainDataStructs.h | //
// BrainDataStructs.h
// Evolve
//
// Created by <NAME> on 03/07/2017.
// Copyright © 2017 <NAME>. All rights reserved.
//
#ifndef BrainDataStructs_h
#define BrainDataStructs_h
#include "EMath.hpp"
struct CritterInfo{
sf::Vector2f position;
sf::Vector2f velocity;
sf::Color color;
float size;
};... |
mruvim/Granola | Sources/Granola/include/Granola.h | #include "OMHSerializer.h"
|
apr/macpws | db/util.h | /*
* Copyright (c) 2009 <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, ... |
apr/macpws | cryptopp/factory.h | <filename>cryptopp/factory.h
#ifndef CRYPTOPP_OBJFACT_H
#define CRYPTOPP_OBJFACT_H
#include "cryptlib.h"
#include <map>
#include <vector>
NAMESPACE_BEGIN(CryptoPP)
//! _
template <class AbstractClass>
class ObjectFactory
{
public:
virtual AbstractClass * CreateObject() const =0;
};
//! _
template... |
apr/macpws | db/exception.h | /*
* Copyright (c) 2009 <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, ... |
apr/macpws | cryptopp/stdcpp.h | <reponame>apr/macpws<gh_stars>1-10
#ifndef CRYPTOPP_STDCPP_H
#define CRYPTOPP_STDCPP_H
#include <stddef.h>
#include <assert.h>
#include <limits.h>
#include <memory>
#include <string>
#include <exception>
#include <typeinfo>
#ifdef _MSC_VER
#include <string.h> // CodeWarrior doesn't have memory.h
#inclu... |
apr/macpws | cryptopp/cbcmac.h | #ifndef CRYPTOPP_CBCMAC_H
#define CRYPTOPP_CBCMAC_H
#include "seckey.h"
#include "secblock.h"
NAMESPACE_BEGIN(CryptoPP)
//! _
class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE CBC_MAC_Base : public MessageAuthenticationCode
{
public:
CBC_MAC_Base() {}
void UncheckedSetKey(const byte *key, unsigned int length, c... |
apr/macpws | db/db_writer.h | <filename>db/db_writer.h
/*
* Copyright (c) 2009 <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy,... |
apr/macpws | cryptopp/wake.h | #ifndef CRYPTOPP_WAKE_H
#define CRYPTOPP_WAKE_H
#include "seckey.h"
#include "secblock.h"
#include "strciphr.h"
NAMESPACE_BEGIN(CryptoPP)
//! _
template <class B = BigEndian>
struct WAKE_CFB_Info : public FixedKeyLength<32>
{
static const char *StaticAlgorithmName() {return B::ToEnum() == LITTLE_ENDIAN... |
apr/macpws | cryptopp/skipjack.h | <filename>cryptopp/skipjack.h
#ifndef CRYPTOPP_SKIPJACK_H
#define CRYPTOPP_SKIPJACK_H
/** \file
*/
#include "seckey.h"
#include "secblock.h"
NAMESPACE_BEGIN(CryptoPP)
//! _
struct SKIPJACK_Info : public FixedBlockSize<8>, public FixedKeyLength<10>
{
CRYPTOPP_DLL static const char * CRYPTOPP_API Stati... |
apr/macpws | cryptopp/whrlpool.h | <reponame>apr/macpws
#ifndef CRYPTOPP_WHIRLPOOL_H
#define CRYPTOPP_WHIRLPOOL_H
#include "config.h"
#ifdef WORD64_AVAILABLE
#include "iterhash.h"
NAMESPACE_BEGIN(CryptoPP)
//! <a href="http://www.cryptolounge.org/wiki/Whirlpool">Whirlpool</a>
class Whirlpool : public IteratedHashWithStaticTransform<word... |
apr/macpws | Group.h | /*
* Copyright (c) 2009 <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, ... |
apr/macpws | cryptopp/vmac.h | #ifndef CRYPTOPP_VMAC_H
#define CRYPTOPP_VMAC_H
#include "iterhash.h"
#include "seckey.h"
NAMESPACE_BEGIN(CryptoPP)
#define CRYPTOPP_BLOCK_1(n, t, s) t* m_##n() {return (t *)(m_aggregate+0);} size_t SS1() {return sizeof(t)*(s);} size_t m_##n##Size() {return (s);}
#define CRYPTOPP_BLOCK_2(n, t, s) ... |
apr/macpws | Database.h | <reponame>apr/macpws<filename>Database.h<gh_stars>1-10
/*
* Copyright (c) 2009 <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitati... |
apr/macpws | cryptopp/aes.h | <filename>cryptopp/aes.h
#ifndef CRYPTOPP_AES_H
#define CRYPTOPP_AES_H
#include "rijndael.h"
NAMESPACE_BEGIN(CryptoPP)
//! AES winner, announced on 10/2/2000
DOCUMENTED_TYPEDEF(Rijndael, AES);
typedef RijndaelEncryption AESEncryption;
typedef RijndaelDecryption AESDecryption;
NAMESPACE_END
#endif
|
apr/macpws | cryptopp/seal.h | #ifndef CRYPTOPP_SEAL_H
#define CRYPTOPP_SEAL_H
#include "strciphr.h"
NAMESPACE_BEGIN(CryptoPP)
//! _
template <class B = BigEndian>
struct SEAL_Info : public FixedKeyLength<20, SimpleKeyingInterface::INTERNALLY_GENERATED_IV, 4>
{
static const char *StaticAlgorithmName() {return B::ToEnum() == LITTLE_END... |
apr/macpws | Controller.h | <reponame>apr/macpws
/*
* Copyright (c) 2009 <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, mod... |
apr/macpws | cryptopp/strciphr.h | <gh_stars>1-10
/*! \file
This file contains helper classes for implementing stream ciphers.
All this infrastructure may look very complex compared to what's in Crypto++ 4.x,
but stream ciphers implementations now support a lot of new functionality,
including better performance (minimizing copying), resetting... |
apr/macpws | db/db.h | /*
* Copyright (c) 2009 <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, ... |
apr/macpws | NewPasswordController.h | <filename>NewPasswordController.h
/*
* Copyright (c) 2009 <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,... |
apr/macpws | Record.h | <gh_stars>1-10
/*
* Copyright (c) 2009 <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, m... |
SenZhangAI/example | algorithm/qsort/simple.c | <filename>algorithm/qsort/simple.c
#include<stdio.h>
void print_list(int data[], int len) {
int i;
for(i = 0; i < len; i++) {
printf("%d ",data[i]);
}
printf("\n");
}
void swap(int v[], int i, int j) {
int tmp;
tmp = v[i];
v[i] = v[j];
v[j] = tmp;
}
// this version is not quic... |
SenZhangAI/example | security/ROP/stackoverflow.c | <reponame>SenZhangAI/example<filename>security/ROP/stackoverflow.c<gh_stars>0
// gcc -fno-stack-protector -z execstack -o stackoverflow stackoverflow.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
void vulnerable_function() {
char buf[128];
read(STDIN_FILENO, buf, 256);
}
int main(int argc, cha... |
SenZhangAI/example | net/socket/socket.c | // see http://man7.org/linux/man-pages/man2/socket.2.html
// socket - create an endpoint for communication
// see http://man7.org/linux/man-pages/man7/ip.7.html
// #include <sys/socket.h>
// #include <netinet/in.h>
// #include <netinet/ip.h> /* superset of previous */
//
// tcp_socket = socket(AF_INET, SOCK_STREAM, 0... |
SenZhangAI/example | net/epoll/epoll.c | #include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/epoll.h>
#include <sys/resource.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#define MAXBUF 1... |
google/dart-gl | lib/src/generated/function_list.h | // Copyright (c) 2015, the Dart GL extension authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD-style license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
// This file is auto-generated by sc... |
google/dart-gl | lib/src/gl_extension_info.h | <filename>lib/src/gl_extension_info.h
// Copyright (c) 2015, the Dart GL extension authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD-style license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd... |
google/dart-gl | lib/src/generated/gl_bindings.h | // Copyright (c) 2015, the Dart GL extension authors. All rights reserved.
// Please see the AUTHORS file for details. Use of this source code is governed
// by a BSD-style license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
// This file is auto-generated by sc... |
elya701/rs.ios-stage1-task5 | RSSchool_T5/RSSchool_T5/1/Converter.h | <filename>RSSchool_T5/RSSchool_T5/1/Converter.h
#import <Foundation/Foundation.h>
extern NSString *KeyPhoneNumber;
extern NSString *KeyCountry;
@interface PNConverter : NSObject
- (NSDictionary*)converToPhoneNumberNextString:(NSString*)string;
- (NSDictionary*)eight_digits_converter:(NSString*)string code:(NSString*)... |
uLipe/micro_ros_espidf_component | network_interfaces/uros_network_interfaces.h | #include "esp_system.h"
#ifdef __cplusplus
extern "C"
{
#endif
esp_err_t uros_network_interface_initialize(void);
#ifdef __cplusplus
}
#endif |
uLipe/micro_ros_espidf_component | examples/low_consumption/main/main.c | <reponame>uLipe/micro_ros_espidf_component
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "esp_system.h"
#include <uros_network_interfaces.h>
#include <rcl/rcl.h>
#include <rcl/error_handling.h>
#include <std_msgs/msg/... |
uLipe/micro_ros_espidf_component | examples/int32_sub_pub/main/main.c | <filename>examples/int32_sub_pub/main/main.c
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "esp_system.h"
#include <uros_network_interfaces.h>
#include <rcl/rcl.h>
#include <rcl/error_handling.h>
#include <std_msgs/ms... |
swainechen/lacer | lacepr/lacepr.c | <filename>lacepr/lacepr.c<gh_stars>10-100
#include <stdio.h>
#include <stdbool.h>
#include <unistd.h>
#include <getopt.h>
#include <float.h>
#include <math.h>
#include <ctype.h>
#include "sam.h"
#include "sam_header.h"
#include "htslib/sam.h"
#include "htslib/kseq.h"
#include "lacepr.h"
const char *version = "0.2";
//... |
swainechen/lacer | lacepr/lacepr.h | <gh_stars>10-100
#define MAX_CYCLE 1024
#define MAX_FIELD 256
#define MAX_RG 256
#define MIN_Q 2
#define MAX_Q 93
#define MAX_USABLE_Q 40
#define MAX_REASONABLE_Q 60
#define CONTEXT_LENGTH 2
#define MAX_CONTEXT (1 << (CONTEXT_LENGTH * 2))
const char *header_version = "0.2";
const double prior[] = {
-0.0457574905606... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.