repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
nicbowen/avt_341 | include/avt_341/planning/local/spline_planner.h | /**
* \class Path
*
* Class for the path planner.
* Adapated for use in off-road with ROS from the paper:
*
* <NAME>., <NAME>., <NAME>., <NAME>., & <NAME>. (2018).
* Dynamic path planning for autonomous driving on various roads with avoidance of static and moving obstacles.
* Mechanical Systems and ... |
nicbowen/avt_341 | include/avt_341/node/ros_types.h | <gh_stars>0
//
// Created by Stefan on 2021-07-28.
//
#ifndef AVT_341_ROS_TYPES_H
#define AVT_341_ROS_TYPES_H
#include <geometry_msgs/Quaternion.h>
#include "sensor_msgs/PointCloud2.h"
#include "sensor_msgs/PointCloud.h"
#include "sensor_msgs/JointState.h"
#include "sensor_msgs/point_cloud_conversion.h"
... |
nicbowen/avt_341 | include/avt_341/planning/local/pf_planner.h | /**
* \class PfPlanner
*
* Class for the potential field planner.
*
* author: <NAME> (@Atsushi_twi)
* Ref:
* https://www.cs.cmu.edu/~motionplanning/lecture/Chap4-Potential-Field_howie.pdf
*
* Original source code from:
* https://github.com/AtsushiSakai/PythonRobotics/tree/master/PathPlanning/Poten... |
nicbowen/avt_341 | include/avt_341/planning/global/astar_cell.h | <filename>include/avt_341/planning/global/astar_cell.h<gh_stars>1-10
#ifndef ASTAR_CELL_H
#define ASTAR_CELL_H
/// represents a single pixel in A* grid
class AStarCell {
public:
int idx; // index in the flattened grid
float cost; // cost of traversing this pixel
/** Create a cell with index i and c... |
nicbowen/avt_341 | include/avt_341/planning/local/spline_plotter.h | /**
* \class Plotter
*
* Class to plot the candidate paths, centerline, and map from the planner.
* For debugging purposes.
*
* \author <NAME>
*
* \date 9/2/2020
*/
#ifndef SPLINE_PLOTTER_H
#define SPLINE_PLOTTER_H
#include "avt_341/avt_341_utils.h"
#include "avt_341/planning/local/candidate.h"
... |
nicbowen/avt_341 | include/avt_341/node/node_proxy.h | <gh_stars>1-10
//
// Created by Stefan on 2021-07-28.
//
#ifndef AVT_341_NODE_PROXY_H
#define AVT_341_NODE_PROXY_H
#include "ros/ros.h"
#include "std_msgs/Header.h"
namespace avt_341 {
namespace node {
using Duration = ros::Duration;
inline Duration make_duration(float period){
... |
nicbowen/avt_341 | include/avt_341/planning/local/polynomial.h | <reponame>nicbowen/avt_341<filename>include/avt_341/planning/local/polynomial.h
/**
* \class Polynomial
*
* Polynomial class for defining polynomial with coefficients.
*
* \author <NAME>
*
* \date 8/31/2020
*/
#ifndef SPLINE_POLYNOMIAL_H
#define SPLINE_POLYNOMIAL_H
#include <vector>
#include <algori... |
nicbowen/avt_341 | include/avt_341/control/pid_controller.h | <gh_stars>0
/**
* \class PidController
*
* A simple Proportional-Integral-Derivative (PID) controller.
* Controller is generic, but used for speed control in this application.
*
* \author <NAME>
*
* \date 8/31/2020
*/
#ifndef PID_CONTROLLER_H
#define PID_CONTROLLER_H
#include <fstream>
namespace avt_341 {
namespace co... |
nicbowen/avt_341 | include/avt_341/planning/global/coord_conversions/ellipsoid.h | /**
* \class Ellipsoid
* Class that defines parameters of the reference ellipsoid being used.
* Modified from from the code posted on
* "www.gpsy.com/gpsinfo/geotoutm", 4 Dec 2017 by <NAME>
*
* \author <NAME>
*
* \date 12/13/2017
*/
#ifndef AVT_341_ELLIPSOID_H
#define AVT_341_ELLIPSOID_H
#include <vector>
#... |
nicbowen/avt_341 | include/avt_341/visualization/image_visualizer.h | <reponame>nicbowen/avt_341<gh_stars>1-10
#ifndef AVT_341_IMAGE_VISUALIZER_H
#define AVT_341_IMAGE_VISUALIZER_H
#include "avt_341/visualization/base_visualizer.h"
#include "avt_341/CImg.h"
namespace avt_341 {
namespace visualization {
class ImageVisualizer : public VisualizerBase {
public:
ImageVisua... |
infiSTAR/JAPM | src/fs/fs_path_get_last_link.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : fs_path_get_last_link.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Wed Aug 8th 13:38:44 2018
*/
#include <string.h>
#include "japm.h"
#include "fs.h"
char *fs_path_get_last_link(char *path)
{
char *last = strrchr(path, JAPM_PATH_... |
infiSTAR/JAPM | src/pbo/pbo_decompress.c | <filename>src/pbo/pbo_decompress.c
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : pbo_uncompress.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Sat Aug 11th 9:48:26 2018
*/
#include <string.h>
#include "pbo.h"
#include "utils.h"
static inline bool print_from_ptr(
FILE *f,
byte... |
infiSTAR/JAPM | src/fs/fs_path_clean_linux.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : fs_path_clean_linux.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Mon Aug 6th 21:19:53 2018
*/
#include <string.h>
#include "fs.h"
#include "utils.h"
char *fs_path_clean_linux(char *path)
{
char *found;
while (strstr(path, "//")... |
infiSTAR/JAPM | lib/utils/src/utils_strreplace.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : utils_strreplace.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Thu Jul 4 15:55:51 2018
*/
#include <string.h>
#include "utils.h"
static char *str_shiftright(char *str)
{
int str_len = strlen(str);
if (str_len <= 0)
return (str... |
infiSTAR/JAPM | lib/utils/src/utils_strsplit.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : utils_strsplit.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Thu Jul 4 15:58:31 2018
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "utils.h"
static int count_delims(const char *str, const char *delims, int ... |
infiSTAR/JAPM | lib/list/src/list_push.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : list_push.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Thu Jul 4 15:48:04 2018
*/
#include <stdlib.h>
#include <stdbool.h>
#include "list.h"
bool list_push(list_t **list, void *element)
{
list_t *node = malloc(sizeof(list_t));
... |
infiSTAR/JAPM | src/fs/fs_get_file_hierarchy.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : fs_get_file_hierarchy.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Mon Aug 6th 18:43:30 2018
*/
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
#include <errno.h>
#ifdef _WIN32
#include <windows.... |
infiSTAR/JAPM | lib/utils/src/utils_wt_destroy.c | <reponame>infiSTAR/JAPM<filename>lib/utils/src/utils_wt_destroy.c
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : utils_wt_destroy.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Thu Jul 4 15:43:19 2018
*/
#include <stdlib.h>
#include "utils.h"
void utils_wt_destroy(char **wt)
{
... |
infiSTAR/JAPM | lib/list/src/list_get_by_elm.c | <filename>lib/list/src/list_get_by_elm.c
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : list_get_by_elm.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Thu Jul 4 15:45:54 2018
*/
#include <stdlib.h>
#include "list.h"
void *list_get_by_elm(list_t *list, const void *elm)
{
for (; ... |
infiSTAR/JAPM | lib/list/src/list_destroy.c | <filename>lib/list/src/list_destroy.c
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : list_destroy.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Thu Jul 4 15:43:19 2018
*/
#include <stdlib.h>
#include "list.h"
void list_destroy(list_t **node, int free_lvl, void (*fnc)(void *))
{... |
infiSTAR/JAPM | src/pbo/pbo_create.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : pbo_create.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Mon Aug 6th 17:08:46 2018
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <string.h>
#include "pbo.h"
#include "fs.h"
#include... |
infiSTAR/JAPM | lib/utils/src/utils_wt_pop_front.c | <gh_stars>10-100
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : utils_wt_pop_front.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Thu Jul 4 15:43:19 2018
*/
#include <stdlib.h>
#include <string.h>
#include "utils.h"
char **utils_wt_pop_front(char **wt, char **str)
{
size_t len ... |
infiSTAR/JAPM | lib/list/src/list_count.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : list_count.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Thu Jul 4 15:45:58 2018
*/
#include <stdlib.h>
#include "list.h"
size_t list_count(const list_t *list)
{
size_t it = 0;
for (; list; list = list->next, ++it);
return it;
... |
infiSTAR/JAPM | src/pbo/pbo_get_data_block.c | <filename>src/pbo/pbo_get_data_block.c
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : pbo_get_data_block.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Sun Aug 5th 11:32:59 2018
*/
#include <string.h>
#include "pbo.h"
byte_t *pbo_get_data_block(byte_t *header_block)
{
for (; *h... |
infiSTAR/JAPM | include/japm.h | <gh_stars>10-100
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : japm.h
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Fri Aug 5 19:06:08 2018
*/
#ifndef JAPM_H_
#define JAPM_H_
#include <stdlib.h>
#include <stdint.h>
#include "japm_conf.h"
#include "args.h"
#define UNUSED __attri... |
infiSTAR/JAPM | src/pbo/pbo_retrieve_entries.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : pbo_retrieve_entries.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Sat Aug 5th 0:04:08 2018
*/
#include <string.h>
#include <ctype.h>
#include "japm.h"
#include "pbo.h"
#include "fs.h"
#include "list.h"
#include "utils.h"
static ch... |
infiSTAR/JAPM | include/fs.h | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : fs.h
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Mon Aug 6th 17:17:03 2018
*/
#ifndef FS_H_
#define FS_H_
#include "japm.h"
#include "list.h"
char *fs_assemble_path(const char *path, const char *file, char *buf);
bool fs_get_file_... |
infiSTAR/JAPM | src/fs/fs_path_clean_windows.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : fs_path_clean.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Mon Aug 6th 17:33:33 2018
*/
#include <string.h>
#include "fs.h"
#include "utils.h"
char *fs_path_clean_windows(char *path)
{
char *found;
while (strstr(path, "\\\\"))
... |
infiSTAR/JAPM | src/pbo/pbo_close.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : pbo_close.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Fri Aug 4rth 23:23:25 2018
*/
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#ifdef _WIN32
#include <windows.h>
#else
#include <sys/mman.h>
#endif /* _WIN32 */
#i... |
infiSTAR/JAPM | lib/list/include/list.h | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : list.h
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Thu Jul 4 15:43:19 2018
*/
#ifndef LIST_H_
#define LIST_H_
#include <stdbool.h>
#include <stddef.h>
enum e_list
{
LIST_FREE_BEG = -1,
LIST_FREE_NOT,
LIST_FREE_PTR,
LIST_FREE_F... |
infiSTAR/JAPM | src/args/args_getopt.c | <reponame>infiSTAR/JAPM<gh_stars>10-100
/*
Originally written by Christopher "skeeto" Wellons
Free of use under the "unlicensed" license
*/
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "args.h"
int args_getopt(int argc, char * const argv[], const char *optstring)
{
static int optpos = 1;
con... |
infiSTAR/JAPM | src/pbo/pbo_get_header_block.c | <reponame>infiSTAR/JAPM<gh_stars>10-100
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : pbo_get_header_start.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Sun Aug 5th 11:31:33 2018
*/
#include "japm.h"
#include "pbo.h"
byte_t *pbo_get_header_block(byte_t *map)
{
map += PBO_MAGI... |
infiSTAR/JAPM | lib/utils/src/utils_strsep.c | <filename>lib/utils/src/utils_strsep.c
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : utils_strsep.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Thu Aug 9th 9:31:51 2018
*/
#include <string.h>
#include "utils.h"
char *utils_strsep(char **str, const char *delims)
{
char ... |
infiSTAR/JAPM | include/japm_conf.h | <reponame>infiSTAR/JAPM
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : japm_conf.h
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Fri Aug 5 19:08:00 2018
*/
#ifndef JAPM_CONF_H_
#define JAPM_CONF_H_
#define JAPM_AUTHOR "Doriann \"Ra'Jiska\" Corlouër"
#define JAPM_AUTHOR_WEBSITE "h... |
infiSTAR/JAPM | src/main.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : main.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Fri Aug 4rth 19:42:51 2018
*/
#include <stdio.h>
#include "japm.h"
int main(int argc, char * const *argv)
{
arguments_t args = { 0 };
if (argc == 0)
return EXIT_FAILURE;
args... |
infiSTAR/JAPM | src/args/args_print_version.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : args_print_version.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Wed Aug 8th 16:50:17 2018
*/
#include <stdio.h>
#include "japm.h"
#include "args.h"
void args_print_version(void)
{
printf(JAPM_NAME_SHORT " (" JAPM_NAME_COMPLETE ")... |
infiSTAR/JAPM | lib/utils/src/utils_clearstr.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : utils_clearstr.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Thu Jul 4 15:43:19 2018
*/
#include <string.h>
#include "utils.h"
static void memmove_null(char *dest, const char *src, size_t len)
{
memmove(dest, src, len);
dest[len]... |
infiSTAR/JAPM | lib/utils/src/utils_wt_copy.c | <gh_stars>10-100
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : utils_wt_copy.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Thu Jul 4 15:43:19 2018
*/
#include <stdlib.h>
#include <string.h>
#include "utils.h"
static void free_all_on_error(char **new, size_t it)
{
for (; it > ... |
infiSTAR/JAPM | src/pbo/pbo_open.c | <reponame>infiSTAR/JAPM<filename>src/pbo/pbo_open.c
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : pbo_open.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Fri Aug 4rth 22:51:50 2018
*/
#include <string.h>
#include <errno.h>
#ifdef _WIN32
#include <windows.h>
#else
#include <sys... |
infiSTAR/JAPM | src/fs/fs_path_is_valid.c | <filename>src/fs/fs_path_is_valid.c
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : fs_path_is_valid.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Mon Aug 6th 17:16:28 2018
*/
#include <ctype.h>
#include <string.h>
#include "fs.h"
#include "japm.h"
#include "utils.h"
bool fs_pat... |
infiSTAR/JAPM | include/args.h | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : args.h
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Wed Aug 8th 16:13:38 2018
*/
#ifndef ARGS_H_
#define ARGS_H_
#include <stdbool.h>
/* Required for our custom getopt */
extern int args_optind;
extern int args_opterr;
extern int a... |
infiSTAR/JAPM | lib/utils/src/utils_strjoin.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : utils_strjoin.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Thu Jul 4 15:43:19 2018
*/
#include <string.h>
#include <stdlib.h>
#include "utils.h"
char *utils_strjoin(char * const *wt, const char *separator)
{
char *ret;
size_t le... |
infiSTAR/JAPM | lib/list/src/list_pop.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : list_pop.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Thu Jul 4 15:43:19 2018
*/
#include <stdlib.h>
#include "list.h"
static void free_element(list_t **node)
{
list_t *bak;
if ((*node)->prev != NULL)
(*node)->prev->next = (*... |
infiSTAR/JAPM | lib/utils/src/utils_wt_push.c | <filename>lib/utils/src/utils_wt_push.c
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : utils_wt_push.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Thu Jul 4 15:43:19 2018
*/
#include <stdlib.h>
#include <string.h>
#include "utils.h"
char **utils_wt_push(char **wt, const char *s... |
infiSTAR/JAPM | lib/utils/src/utils_wt_count.c | <reponame>infiSTAR/JAPM
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : utils_wt_count.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Thu Jul 4 15:59:33 2018
*/
#include "utils.h"
size_t utils_wt_count(char * const *wt)
{
size_t count = 0;
if (!wt)
return 0;
for (; wt[count... |
infiSTAR/JAPM | src/args/args_retrieve.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : args_retrieve.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Wed Aug 8th 16:23:02 2018
*/
#include <stdio.h>
#include <stdlib.h>
#include "args.h"
int args_optind = 1;
int args_opterr = 1;
int args_optopt;
char *args_optarg;
void a... |
infiSTAR/JAPM | src/pbo/pbo_extract.c | <reponame>infiSTAR/JAPM<gh_stars>10-100
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : pbo_extract.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Sun Aug 5th 11:22:14 2018
*/
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include "japm.h"
#in... |
infiSTAR/JAPM | lib/utils/include/utils.h | /*
** EPITECH PROJECT, 2018
** myftp.h
** File description:
** myftp.h
*/
/**
* \file
* \brief Utils header
*/
#ifndef UTIL_H_
# define UTIL_H_
#include <stdbool.h>
#include <stddef.h>
long long int utils_perror(long long int ret, const char *s, ...);
long long int utils_error(long long int ret, const char *s, ...);... |
infiSTAR/JAPM | include/pbo.h | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : pbo.h
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Fri Aug 5 22:33:17 2018
*/
#ifndef PBO_H_
#define PBO_H_
#include <stdio.h>
#ifdef _WIN32
#include <windows.h>
#endif /* _WIN32 */
#include "japm.h"
#include "list.h"
static const... |
infiSTAR/JAPM | lib/utils/src/utils_perror.c | <reponame>infiSTAR/JAPM<gh_stars>10-100
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : utils_perror.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Fri Jul 5 14:38:27 2018
*/
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include "utils.h"
inline l... |
infiSTAR/JAPM | src/pbo/pbo_get_checksum_block.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : pbo_get_checksum_block.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Sun Aug 5th 11:55:51 2018
*/
#include "pbo.h"
byte_t *pbo_get_checksum_block(byte_t *map, size_t file_len)
{
return (map + file_len) - PBO_CHECKSUM_SZ;
} |
infiSTAR/JAPM | src/args/args_print_help.c | <reponame>infiSTAR/JAPM
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : args_print_help.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Wed Aug 8th 16:31:49 2018
*/
#include <stdio.h>
#include <stdlib.h>
#include "args.h"
void args_print_help(const char *myself, int exit_code)
{
... |
infiSTAR/JAPM | src/args/args_validate.c | /*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : args_validate.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Thu Aug 9th 10:51:54 2018
*/
#include "args.h"
bool args_validate(const arguments_t *args)
{
if (!args->input)
return false;
return true;
} |
infiSTAR/JAPM | src/fs/fs_assemble_path.c | <filename>src/fs/fs_assemble_path.c
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : fs_assemble_path.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Mon Aug 6th 19:52:46 2018
*/
#include <string.h>
#include "fs.h"
#include "japm.h"
#include "utils.h"
char *fs_assemble_path(const c... |
infiSTAR/JAPM | src/japm.c | <filename>src/japm.c
/*
* Copyright : Copyright (C) 2018 <NAME>. All rights reserved.
* File : japm.c
* Author : Doriann "Ra'Jiska" Corlouër
* Created : Fri Aug 4rth 18:54:36 2018
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include "utils.h"
#includ... |
PumpkinSpace/pshell | include/PshellControl.h | <reponame>PumpkinSpace/pshell
/*******************************************************************************
*
* Copyright (c) 2009, <NAME>, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
... |
PumpkinSpace/pshell | src/PshellServer.c | <filename>src/PshellServer.c
/*******************************************************************************
*
* Copyright (c) 2009, <NAME>, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* ... |
PumpkinSpace/pshell | include/TraceLog.h | /*******************************************************************************
*
* Copyright (c) 2009, <NAME>, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of sour... |
PumpkinSpace/pshell | include/PshellCommon.h | <filename>include/PshellCommon.h<gh_stars>1-10
/*******************************************************************************
*
* Copyright (c) 2009, <NAME>, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... |
PumpkinSpace/pshell | src/PshellControl.c | /*******************************************************************************
*
* Copyright (c) 2009, <NAME>, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of sour... |
PumpkinSpace/pshell | demo/traceFilterDemo.c | <reponame>PumpkinSpace/pshell
/*******************************************************************************
*
* Copyright (c) 2009, <NAME>, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*... |
PumpkinSpace/pshell | src/TraceFilter.c | <gh_stars>1-10
/*******************************************************************************
*
* Copyright (c) 2009, <NAME>, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistri... |
PumpkinSpace/pshell | src/PshellClient.c | <reponame>PumpkinSpace/pshell<filename>src/PshellClient.c
/*******************************************************************************
*
* Copyright (c) 2009, <NAME>, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the foll... |
PumpkinSpace/pshell | demo/pshellServerDemo.c | <filename>demo/pshellServerDemo.c
/*******************************************************************************
*
* Copyright (c) 2009, <NAME>, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met... |
PumpkinSpace/pshell | include/TraceFilter.h | /*******************************************************************************
*
* Copyright (c) 2009, <NAME>, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of sour... |
PumpkinSpace/pshell | src/TraceLog.c | <filename>src/TraceLog.c
/*******************************************************************************
*
* Copyright (c) 2009, <NAME>, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* ... |
PumpkinSpace/pshell | include/PshellServer.h | /*******************************************************************************
*
* Copyright (c) 2009, <NAME>, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of so... |
PumpkinSpace/pshell | demo/pshellControlDemo.c | /*******************************************************************************
*
* Copyright (c) 2009, <NAME>, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of sour... |
PumpkinSpace/pshell | src/PshellStub.c | /*******************************************************************************
*
* Copyright (c) 2009, <NAME>, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of sour... |
CoderRK/TreeMap | TreeMap/RKTreeMapSingleModule.h |
#import <UIKit/UIKit.h>
@interface RKTreeMapSingleModule : UIView
@property(nonatomic, assign) NSInteger index;
@property(nonatomic, copy) NSString *text;
@end
|
CoderRK/TreeMap | TreeMap/DemoViewController.h |
#import <UIKit/UIKit.h>
@interface DemoViewController : UIViewController
@end
|
CoderRK/TreeMap | TreeMap/UIColor+RKColor.h |
#import <UIKit/UIKit.h>
@interface UIColor (RKColor)
+ (UIColor *)colorWithHexString:(NSString *)stringToConvert;
+ (UIColor *)colorWithHexString:(NSString *)stringToConvert alpha:(CGFloat)alpha;
@end
|
CoderRK/TreeMap | TreeMap/RKTreeMapView.h |
#import <UIKit/UIKit.h>
@interface RKTreeMapView : UIView
@property(nonatomic, strong) NSArray *data;
@property(nonatomic, strong) NSArray *textArray;
@end
|
Tomius/ReLoEd | scripts/image_preprocess/preproc_tex_quad_tree_node.h | <reponame>Tomius/ReLoEd
// Copyright (c) 2015, <NAME>
#ifndef ENGINE_CDLOD_TEXTURE_TEX_QUAD_TREE_NODE_H_
#define ENGINE_CDLOD_TEXTURE_TEX_QUAD_TREE_NODE_H_
#include <memory>
#include <cassert>
#include <Magick++.h>
#include <glm/glm.hpp>
#include "./preproc_settings.h"
#ifdef HEIGHTMAP
using TexelData = unsigned s... |
Tomius/ReLoEd | scripts/image_preprocess/preproc_cube2sphere.h | #pragma once
#include "./preproc_settings.h"
enum CubeFace {
kPosX, kNegX, kPosY, kNegY, kPosZ, kNegZ
};
inline glm::dvec3 Cubify(const glm::dvec3& p) {
return {
p.x * sqrt(1 - sqr(p.y)/2 - sqr(p.z)/2 + sqr(p.y*p.z)/3),
p.y * sqrt(1 - sqr(p.z)/2 - sqr(p.x)/2 + sqr(p.z*p.x)/3),
p.z * sqrt(1 - sqr(p.x)... |
Tomius/ReLoEd | scripts/image_preprocess/preproc_cdlod_quad_tree_node.h | <gh_stars>1-10
// Copyright (c) 2015, <NAME>
#ifndef ENGINE_CDLOD_QUAD_TREE_NODE_H_
#define ENGINE_CDLOD_QUAD_TREE_NODE_H_
#include <memory>
#include "./preproc_tex_quad_tree_node.h"
#include "./preproc_cube2sphere.h"
class CdlodQuadTreeNode {
public:
CdlodQuadTreeNode(double x, double z, CubeFace face, int level... |
Tomius/ReLoEd | scripts/image_preprocess/preproc_settings.h | <gh_stars>1-10
#pragma once
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
template <class T>
inline constexpr T pow(T const& x, std::size_t n){
return n>0 ? x * pow(x, n-1) : 1;
}
#define HEIGHTMAP
#ifdef HEIGHTMAP
static const std::string kInputDir = "/media/icecool/Data/LoE_datasets/height/gmted2010_75/u... |
simmplecoder/ijcar2018-code | fol/term.h |
#ifndef TERM_INCLUDED
#define TERM_INCLUDED 1
#include <string>
#include "../shared/shared_vector.h"
struct term
{
using builder = shared_vector< term > :: builder;
std::string function;
shared_vector< term > sub;
term( const std::string& function, std::initializer_list< term > sub = {} )
: f... |
simmplecoder/ijcar2018-code | simple_string/term.h |
// Written by <NAME>, Part of IJCAR 2018 Contribution.
// Straightforward term implementation using std::vector< >.
#ifndef TERM_INCLUDED
#define TERM_INCLUDED 1
#include <vector>
#include <string>
#include <iostream>
#include <stdexcept>
struct term;
struct heapnode
{
std::string node;
std::vector<term> su... |
simmplecoder/ijcar2018-code | fol/examples.h |
#ifndef EXAMPLES_INCLUDED
#define EXAMPLES_INCLUDED 1
// This implementation is not sophisticated.
// A good implementation would use a std::unordered_map< > +
// a stack.
#include "nondet.h"
#include "fol.h"
// Stack is used by alpha-equivalence.
class stack
{
std::vector< std::string > vect;
public:
... |
simmplecoder/ijcar2018-code | shared/shared_vector.h |
// This is partially an adaption of lazy_list from 2007.
// It was written during April-July 2017.
#ifndef SHARED_VECTOR_INCLUDED
#define SHARED_VECTOR_INCLUDED 1
#include <list>
#include <vector>
#include <stdexcept>
#include <iostream>
template< typename D >
class shared_vector
{
template< size_t s >
... |
simmplecoder/ijcar2018-code | fol/fol.h |
// Written by <NAME>, part of IJCAR 2018 submission.
#ifndef FOL_INCLUDED
#define FOL_INCLUDED 1
#include <iostream>
#include "term.h"
#include "nondet.h"
#include "../shared/shared_vector.h"
struct fol
{
enum logop { fol_atom, fol_equals,
fol_false, fol_true,
fol_not,
... |
simmplecoder/ijcar2018-code | fol/nondet.h | <gh_stars>0
#ifndef NONDET_INCLUDED
#define NONDET_INCLUDED 1
#include <iostream>
#include <functional>
#include <type_traits>
struct failure { };
inline std::ostream& operator << ( std::ostream& out, failure f )
{
std::cout << "computation failed\n";
return out;
}
inline void require( bool b )
{
if(!b) ... |
simmplecoder/ijcar2018-code | fol/subst.h |
#ifndef SUBST_INCLUDED
#define SUBST_INCLUDED
// This implementation is not sophisticated.
// A good implementation would use a std::unordered_map< > +
// a stack.
struct
{
std::vector< std::string > stack;
size_t find( const std::string& var ) const;
// Returns size( ) if var does not occur,
//... |
security-geeks/trrespass | drama/src/rev-mc.c | #include <stdbool.h>
#include <time.h>
#include <stdlib.h>
#include <sched.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <assert.h>
#include <inttypes.h>
#include <string.h>
#include <vector>
#include <functional>
#include <algorithm>
#include <bitset>
#include "rev-mc.h"
#define BOO... |
MohamedJaffer-24/CoreData | Coredata/CoreiOS/CoreiOS.h | <reponame>MohamedJaffer-24/CoreData<gh_stars>0
//
// CoreiOS.h
// CoreiOS
//
// Created by <NAME> on 27/02/20.
//
#import <Foundation/Foundation.h>
//! Project version number for CoreiOS.
FOUNDATION_EXPORT double CoreiOSVersionNumber;
//! Project version string for CoreiOS.
FOUNDATION_EXPORT const unsigned char C... |
JeremyEspresso/runtime | src/mono/mono/mini/mini.h | <reponame>JeremyEspresso/runtime<filename>src/mono/mono/mini/mini.h
/**
* \file
* Copyright 2002-2003 Ximian Inc
* Copyright 2003-2011 Novell Inc
* Copyright 2011 Xamarin Inc
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
#ifndef __MONO_MINI_H__
#define __M... |
JeremyEspresso/runtime | src/libraries/Native/Unix/System.Security.Cryptography.Native.Android/pal_rsa.c | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "pal_rsa.h"
#define RSA_FAIL -1
PALEXPORT RSA* CryptoNative_RsaCreate()
{
RSA* rsa = malloc(sizeof(RSA));
rsa->privateKey = NULL;
rsa->publicKey = NULL;
rs... |
JeremyEspresso/runtime | src/coreclr/ToolBox/superpmi/superpmi-shared/errorhandling.h | <filename>src/coreclr/ToolBox/superpmi/superpmi-shared/errorhandling.h
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//----------------------------------------------------------
// ErrorHandling.h - Helpers & whatnot for using S... |
JeremyEspresso/runtime | src/libraries/Native/Unix/System.Security.Cryptography.Native.Android/pal_evp_cipher.c | <reponame>JeremyEspresso/runtime<gh_stars>1-10
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "pal_evp_cipher.h"
// just some unique IDs
intptr_t CryptoNative_EvpAes128Ecb() { return 1001; }
intptr_t CryptoNative_Evp... |
yashastry/AntennalogProject | New.h | <reponame>yashastry/AntennalogProject
//
// New.h
// Antenna Example
//
// Created by apple on 28/06/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface New : NSObject
-(void) Something;
@end
|
TechnoexponentDev/Cordova-TechnoLib | src/ios/TechnoLib.h | #import <Cordova/CDVPlugin.h>
@interface TechnoLib : CDVPlugin {
NSString* callbackId;
}
@property (nonatomic, copy) NSString* callbackId;
- (void) technoAlert:(CDVInvokedUrlCommand*)command;
- (void) getUDID:(CDVInvokedUrlCommand*)command;
@end
|
Yozak47/DistMedDevice | main/distmed_json.c | /*
* Copyright 2017 <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, di... |
Yozak47/DistMedDevice | main/include/distmed_networks.h | /*
* Copyright 2017 <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, di... |
Yozak47/DistMedDevice | main/distmed_adc.c | <reponame>Yozak47/DistMedDevice
/*
* Copyright 2017 <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, ... |
Yozak47/DistMedDevice | main/include/bootpage_html.h | <filename>main/include/bootpage_html.h
#pragma once
unsigned static char bootpage_html[] = {
0x3c, 0x21, 0x44, 0x4f, 0x43, 0x54, 0x59, 0x50, 0x45, 0x20, 0x68, 0x74,
0x6d, 0x6c, 0x3e, 0x0d, 0x0a, 0x3c, 0x68, 0x74, 0x6d, 0x6c, 0x3e, 0x0d,
0x0a, 0x3c, 0x68, 0x65, 0x61, 0x64, 0x3e, 0x0d, 0x0a, 0x3c, 0x6d, 0x65,
0x... |
Yozak47/DistMedDevice | main/include/distmed_max30100.h | /*
* Copyright 2017 <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, di... |
Yozak47/DistMedDevice | main/distmed_i2c.c | <reponame>Yozak47/DistMedDevice
/*
* Copyright 2017 <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, ... |
Yozak47/DistMedDevice | main/distmed_max30100.c | /*
* Copyright 2017 <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, di... |
Yozak47/DistMedDevice | main/distmed_storage.c | /*
* Copyright 2017 <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, di... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.