repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
ThomasDuverney/Nachos_Project
code/test/PutChar_Exit_0.c
<reponame>ThomasDuverney/Nachos_Project #include "syscall.h" /* Ecriture d'un caractère sur la sortie standard. */ int main() { PutChar('c'); Exit(0); }
ThomasDuverney/Nachos_Project
code/test/MutexCondition_0.c
#include "syscall.h" #define NB 2 /* * */ Cond_t cond; Mutex_t mutex; int checkNumber; void g(void *arg) { MutexLock(mutex); while(checkNumber <= 0){ PutInt(checkNumber); checkNumber++; CondWait(cond,mutex); PutInt(666); } checkNumber = checkNumber+5; CondSignal(cond); MutexUnlock(mute...
ThomasDuverney/Nachos_Project
code/test/ForkExec_1.c
<gh_stars>0 #include "syscall.h" int main(){ PutString(" * Le processus ForkExec_1 lancé par de_forkexecmulti démarre*\n"); ForkExec("PutString_0"); PutString(" *Le processus ForkExec_1 lancé par de_forkexecmulti termine*\n"); Exit(0); }
ThomasDuverney/Nachos_Project
code/test/ForkExec_4.c
#include "syscall.h" #define NB 5 Mutex_t mutex; void g(void *arg) { int i = 0; MutexLock(mutex); for( i = 0; i<NB; i++){ PutInt(*(int *)arg); } MutexUnlock(mutex); UserThreadExit(); } int main(){ int tab[NB]; int i; int tid[NB]; mutex = MutexCreate(); PutString("MainDebut"); ForkExec("ForkExec_3"); ...
ThomasDuverney/Nachos_Project
code/test/PutInt_1.c
<filename>code/test/PutInt_1.c #include "syscall.h" /* Ecriture de deux entiers sur la sortie standart */ int main(){ PutInt(0); PutInt(1); return 0; }
ThomasDuverney/Nachos_Project
code/userprog/addrspace.h
<reponame>ThomasDuverney/Nachos_Project // addrspace.h // Data structures to keep track of executing user programs // (address spaces). // // For now, we don't keep any information about address spaces. // The user level CPU state is saved and restored in the thread // executing the user progra...
ThomasDuverney/Nachos_Project
code/test/test_putInt.c
#include "syscall.h" // test PutInt avec passage de variables dans une fonction void printInt(int test){ int i = 27; PutInt(i); PutChar('\n'); PutInt(test); PutChar('\n'); } int main(){ int i = 35; PutInt(10); PutChar('\n'); PutInt(202000); PutChar('\n'); PutInt(i); PutChar('\n'); printInt(200); ...
ThomasDuverney/Nachos_Project
code/test/Forkexec_call.c
#include "syscall.h" int main(){ PutChar('2'); ForkExec("PutChar_0"); return(0); }
ThomasDuverney/Nachos_Project
code/test/MultiThreadGetString_0.c
<reponame>ThomasDuverney/Nachos_Project #include "syscall.h" #define NB 5 /* * Création de plusieurs threads exécutant getString puis PutString. * On vérifie le bon fonctionnement des structures de synchronisation par * l'utilisation concurrente de synchconsole */ void g(void *arg) { char s[10]; GetString(s,...
ThomasDuverney/Nachos_Project
code/test/UserThreadCreate_2.c
#include "syscall.h" #define NB 10 /* * Programme de test créant un nombre de thread supérieur au nombre de thread possible. * Ici 7 Threads sont crées, puis au huitième thread, il n'y a plus assez de place pour placer la pile * de ce thread en mémoire. La bitMap est pleine, la création du thread renvoie -1. * Ch...
ThomasDuverney/Nachos_Project
code/test/ForkExec_Multithread_Mutex.c
#include "syscall.h" int main(){ PutString("Début Main\n"); ForkExec("MultiThreadPutChar_Mutex_0"); ForkExec("MultiThreadPutChar_Mutex_0"); PutString("Fin Main\n"); Exit(0); }
ThomasDuverney/Nachos_Project
code/test/PutString_0.c
#include "syscall.h" /* Affichage d'une chaine de caractères sur la sortie standart. */ int main() { PutString(" **Le programme PutString lancé par ForkExec_1 démare**\n"); PutString(" **ABCDEFGHIJKLMNOPQRSTUVWXYZ**\n"); PutString(" **Le programme PutString lancé par ForkExec_1 termine**\n"); ...
ThomasDuverney/Nachos_Project
code/test/GetString_1.c
#include "syscall.h" /* Lecture d'une chaine de caractères de moins de 20 caractères depuis l'entrée standard. Affichage de la chaîne. */ int main(){ char s[20]; GetString(s, 20); PutString(s); PutString("\n"); return 0; }
ThomasDuverney/Nachos_Project
code/test/UserThreadJoin_3.c
#include "syscall.h" #define NB 5 /* * Création de plusieurs threads exécutant putInt. * On vérifie le bon fonctionnement de UserThreadjoin * Deux join du main sur chaque thread crée. */ void g(void *arg) { PutInt(*(int *)arg); UserThreadExit(); } int main(){ int tab[NB]; int i; int tid[NB]; for(i=...
ThomasDuverney/Nachos_Project
code/test/putstring.c
#include "syscall.h" int main() { char s[] = {"ABCDEFGHIJKLMNOPQ"}; PutString(s); Halt(); }
ThomasDuverney/Nachos_Project
code/test/Factoriel.c
#include "syscall.h" int factorial(int n){ if (n == 1) { return 1; } else { int step = factorial(n-1); return (n * step); } } int main() { int res = factorial(5); PutString(" *Début du processus factorielle*\n"); PutString(" *"); PutInt(res); PutString("*"); PutChar('\n'); PutString(...
ThomasDuverney/Nachos_Project
code/test/putchar.c
#include "syscall.h" void print(char c, int n) { int i; for (i = 0; i < n; i++) { PutChar(c+i); } PutChar('\n'); } int main() { print('a',4); PutChar('\n'); PutChar('a'); return(0); }
ThomasDuverney/Nachos_Project
code/test/de_forkexecthreads.c
#include "syscall.h" int main(){ PutString("Début du processus forkexecthreads\n"); ForkExec("MultiThreadPutInt_Mutex_0"); PutString("Fin du processus forkexecthreads\n"); return(0); }
ThomasDuverney/Nachos_Project
code/test/test_PutInt_Thread.c
<gh_stars>0 #include "syscall.h" // test PutInt avec passage de variables dans une fonction void printInt(void * test){ int i = 27; PutInt(i); UserThreadExit(); } int main(){ int i = 200; PutInt(i); PutChar('\n'); UserThreadCreate(printInt, (void *) i); return 0; }
goldim/unistats
unistats/category_states.h
<reponame>goldim/unistats #pragma once #include <string> #include <map> // Qt #include <QtQml> #include <QVariantMap> // unistatscore #include <unistatscore/Config.h> #include <unistatscore/System.h> class CategoryState { public: virtual Criterion *getCriterion() = 0; virtual ~CategoryState() = default; };...
goldim/unistats
MathStats/point.h
<filename>MathStats/point.h #pragma once namespace stats { template<typename __X = double, typename __Y = double> struct Point { Point() = default; inline Point(__X _x, __Y _y){ x = _x; y = _y; } __X x; __Y y; }; }
goldim/unistats
unistatscore/defs.h
#pragma once #include <vector> #include <string> #include <map> struct IdValStruct { std::string id; // long long id; double value; }; //using idNameMap_t = std::map<long long, std::string>; using idNameMap_t = std::map<std::string, std::string>; using idValueMap_t = std::vector<IdValStruct>; using values...
goldim/unistats
unistatscore/perfomance.h
<filename>unistatscore/perfomance.h #pragma once // STL #include <map> #include <string> #include <vector> #include <memory> #include "defs.h" #include <MathStats/correlation.h> #include <StorageStats/Config.h> #include <StorageStats/storage.h> class Perfomance { public: struct CorrelationInfo { std:...
goldim/unistats
StorageStats/rdb_impl.h
<filename>StorageStats/rdb_impl.h #pragma once // STL #include <iostream> #include <memory> // Qt #include <QtSql> // local #include "rdb.h" class RDBValue : public IRDBValue { public: RDBValue() = default; RDBValue(const QVariant &val); virtual int toInt(); virtual long long toLongLong(); virtua...
goldim/unistats
StorageStats/query.h
<reponame>goldim/unistats #pragma once #include "category_catalog.h" struct Conditions { DomainFilter category; DomainFilter timeseries = DomainFilter::dfYears; int klass = 0; int exam = 0; }; class Query { public: Query() = default; Query(const Conditions &conditions); std::string getSQ...
goldim/unistats
unistats/controller.h
#pragma once // Qt #include <QObject> #include <QString> #include <QVariantMap> #include <QtQml> // unistatscore #include <unistatscore/Config.h> #include <unistatscore/perfomance.h> class controller : public QObject { Q_OBJECT public: controller(const Config &cfg, QObject *parent = 0); private: ...
goldim/unistats
StorageStats/rdbfactory_impl.h
<reponame>goldim/unistats #pragma once #include <memory> #include "rdbfactory.h" class RDBFactory : public IRDBFactory { public: RDBFactory() = default; RDBFactory(const std::string &filename); virtual std::unique_ptr<IRDB> createRDB(); virtual std::unique_ptr<IRDBValue> createRDBValue(); virtu...
goldim/unistats
MathStats/sample_builder.h
#pragma once #include <map> #include "sample.h" namespace stats { class PerfomanceSampleBuilder { public: PerfomanceSampleBuilder() = default; void add(int name, unsigned m, unsigned n); std::map<int, PerfomanceSample> build(); private: std::map<int, PerfomanceSample> _samples; }; }// stats
goldim/unistats
StorageStats/domain_filter.h
<filename>StorageStats/domain_filter.h #pragma once enum class DomainFilter { dfNone, dfFaculties, dfSpecialties, dfSpecializations, dfStartYears, dfTeachers, dfSubjects, dfTerms, dfKurs, dfYears, dfGroups, dfExamOrder };
goldim/unistats
StorageStats/storage.h
#pragma once #include <vector> #include "defs.h" #include "rdb.h" #include "category_catalog.h" #include "query.h" class Storage { public: Storage(const Config &cfg); struct ID { std::string id; std::string name; }; struct Item { std::string id; int success; ...
goldim/unistats
StorageStats/rdb.h
#pragma once #include <memory> class IRDBValue { public: virtual int toInt() = 0; virtual long long toLongLong() = 0; virtual double toDouble() = 0; virtual std::string toStdString() = 0; virtual ~IRDBValue() = default; }; class IRDB { public: enum class Types{ INT, DOUBLE, ...
goldim/unistats
StorageStats/Config.h
<filename>StorageStats/Config.h /* * Config.h * * Created on: 07.01.2017 * Author: goldim */ #pragma once #include <boost/property_tree/ptree.hpp> #include <string> class ptree; class Config { public: Config(const std::string &path); ~Config() = default; std::string get(const std::string &ke...
goldim/unistats
MathStats/range.h
<gh_stars>0 /* * RangeBuilder.h * * Created on: 08.01.2017 * Author: goldim */ #pragma once #include <vector> namespace stats { struct Range { struct Interval { double left; double right; long n = 0; }; double min = 0.0; double max = 0.0; double h = 0; ...
goldim/unistats
MathStats/sample.h
<filename>MathStats/sample.h /* * Accumulator.h * * Created on: 10.01.2017 * Author: goldim */ #pragma once //local #include "range.h" //boost #include <boost/accumulators/accumulators.hpp> #include <boost/accumulators/statistics.hpp> namespace stats { using values_t = std::vector<double>; class Sample...
goldim/unistats
StorageStats/category_catalog.h
<reponame>goldim/unistats<filename>StorageStats/category_catalog.h #pragma once #include <memory> #include <map> #include <vector> #include "domain_filter.h" #include "Config.h" #include <iostream> class Category { public: Category(const Config &cfg, const std::string &section): _idField(cfg.get(section,...
goldim/unistats
StorageStats/rdbfactory.h
#pragma once // STL #include <memory> // local #include "rdb.h" class IRDBFactory { public: IRDBFactory() = default; virtual std::unique_ptr<IRDB> createRDB() = 0; virtual std::unique_ptr<IRDBValue> createRDBValue() = 0; virtual ~IRDBFactory() = default; };
goldim/unistats
MathStats/ols.h
#pragma once #include <vector> #include <memory> #include "point.h" namespace stats { class OLS { public: OLS(const std::vector<Point<>> &points); inline double getB() const { return _B; } inline double getC() const { return _C; } Point<> getStartPoint() const; Point<> getEndPoint() const; ...
goldim/unistats
unistatscore/analyser.h
#pragma once #include <string> #include <sstream> #include <MathStats/sample.h> #include <MathStats/anova.h> namespace stats { class Analyser { public: Analyser(); void addSample(const Sample &params); void addAnova(Anova &anova); void addAnova2(TwoFactorAnova &anova); std::string getConclusio...
goldim/unistats
MathStats/correlation.h
#pragma once #include <map> #include <limits> #include "sample.h" #include "timeseries.h" namespace stats { class TwoFactorCorrelation { public: TwoFactorCorrelation(const Sample &x, const Sample &y); double getRegression(); private: Sample _x; Sample _y; }; class MeanCorrelation { public: usi...
goldim/unistats
StorageStats/defs.h
<filename>StorageStats/defs.h #pragma once #include <string> #include <vector> using values_t = std::vector<double>; using ids_t = std::vector<std::string>;
goldim/unistats
MathStats/timeseries.h
<filename>MathStats/timeseries.h #pragma once #include <vector> #include "point.h" namespace stats { class TimeSeries: public std::iterator<std::input_iterator_tag, int> { public: using Points = std::vector<Point<int>>; TimeSeries() = default; std::vector<int> getMoments() const; std::vector<int> g...
goldim/unistats
MathStats/anova.h
#pragma once #include <map> #include "sample.h" namespace stats { class Anova { public: inline int getV1() const { return _v1; } inline int getV2() const { return _v2; } inline double getFTestRes() const { return _F; } double FTest(const Samples &samples); double FCriticalTest(double alpha) cons...
zhihuidu/zhihuidu
src/c_helpers/help_h5ls.c
/** * External C functions for simulating h5ls and processing HDF5 API objects/data. * HDF5 API passes void* data objects in between calls which can't be processed * directly in chapel, so you need C functions to handle opaque data objects. */ #include "c_helpers/help_h5ls.h" /** * C function to retrieve the HDF5...
aklomp/libsmbclient-php
php_libsmbclient.h
<filename>php_libsmbclient.h /* ------------------------------------------------------------------ * This file is part of libsmbclient-php: Samba bindings for PHP. * Libsmbclient-php is licensed under the BSD 2-clause license: * ------------------------------------------------------------------ * * Copyright (c) 2...
congleetea/fuse
fuse_core/include/fuse_core/constraint.h
<filename>fuse_core/include/fuse_core/constraint.h<gh_stars>0 /* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions...
congleetea/fuse
fuse_constraints/include/fuse_constraints/uuid_ordering.h
<reponame>congleetea/fuse /* * Software License Agreement (BSD License) * * Copyright (c) 2019, Locus Robotics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributi...
congleetea/fuse
fuse_constraints/include/fuse_constraints/relative_constraint_impl.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_models/include/fuse_models/common/sensor_proc.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_graphs/test/covariance_constraint.h
<gh_stars>100-1000 /* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * 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 ...
congleetea/fuse
fuse_core/include/fuse_core/callback_wrapper.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_core/include/fuse_core/ceres_options.h
<gh_stars>0 /* * Software License Agreement (BSD License) * * Copyright (c) 2019 Clearpath Robotics * 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...
congleetea/fuse
fuse_publishers/include/fuse_publishers/serialized_publisher.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2019, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_constraints/include/fuse_constraints/normal_prior_orientation_3d_euler_cost_functor.h
<gh_stars>100-1000 /* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * 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 ...
congleetea/fuse
fuse_viz/include/fuse_viz/serialized_graph_display.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2019, Clearpath Robotics * 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 source code mus...
congleetea/fuse
fuse_core/include/fuse_core/transaction.h
<filename>fuse_core/include/fuse_core/transaction.h /* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are m...
congleetea/fuse
fuse_models/include/fuse_models/unicycle_2d_ignition.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_constraints/include/fuse_constraints/normal_delta_orientation_3d_cost_functor.h
<reponame>congleetea/fuse<filename>fuse_constraints/include/fuse_constraints/normal_delta_orientation_3d_cost_functor.h /* * Software License Agreement (BSD License) * * Copyright (c) 2019, Locus Robotics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modifica...
congleetea/fuse
fuse_constraints/include/fuse_constraints/marginal_constraint.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2019, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_optimizers/include/fuse_optimizers/variable_stamp_index.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2019, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_models/include/fuse_models/parameters/odometry_2d_publisher_params.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2019, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_models/include/fuse_models/common/sensor_config.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_core/include/fuse_core/graph_deserializer.h
<reponame>congleetea/fuse /* * Software License Agreement (BSD License) * * Copyright (c) 2019, Locus Robotics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributi...
congleetea/fuse
fuse_constraints/include/fuse_constraints/normal_prior_pose_2d_cost_functor.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_models/include/fuse_models/unicycle_2d_predict.h
<reponame>congleetea/fuse /* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributi...
congleetea/fuse
fuse_constraints/include/fuse_constraints/normal_prior_pose_3d_cost_functor.h
<reponame>congleetea/fuse /* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributi...
congleetea/fuse
fuse_optimizers/include/fuse_optimizers/optimizer.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_models/include/fuse_models/parameters/parameter_base.h
<reponame>congleetea/fuse /* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributi...
congleetea/fuse
fuse_models/include/fuse_models/unicycle_2d_state_cost_functor.h
<gh_stars>0 /* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * 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 source ...
congleetea/fuse
fuse_models/include/fuse_models/twist_2d.h
<gh_stars>0 /* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * 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 source ...
congleetea/fuse
fuse_constraints/include/fuse_constraints/relative_orientation_3d_stamped_constraint.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2019, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_core/include/fuse_core/motion_model.h
<reponame>congleetea/fuse /* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributi...
congleetea/fuse
fuse_core/include/fuse_core/eigen_gtest.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2019, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_models/include/fuse_models/parameters/imu_2d_params.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2019, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_constraints/include/fuse_constraints/relative_pose_2d_stamped_constraint.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_core/include/fuse_core/local_parameterization.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2019, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_publishers/include/fuse_publishers/pose_2d_publisher.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_core/include/fuse_core/autodiff_local_parameterization.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2019, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_models/include/fuse_models/unicycle_2d_state_kinematic_constraint.h
<reponame>congleetea/fuse<filename>fuse_models/include/fuse_models/unicycle_2d_state_kinematic_constraint.h<gh_stars>100-1000 /* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * mo...
congleetea/fuse
fuse_core/include/fuse_core/eigen.h
<filename>fuse_core/include/fuse_core/eigen.h /* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: *...
congleetea/fuse
fuse_core/include/fuse_core/publisher.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_constraints/include/fuse_constraints/absolute_constraint.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_models/include/fuse_models/parameters/acceleration_2d_params.h
<reponame>congleetea/fuse<filename>fuse_models/include/fuse_models/parameters/acceleration_2d_params.h<gh_stars>0 /* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, ...
congleetea/fuse
fuse_constraints/include/fuse_constraints/marginal_cost_function.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2019, Locus Robotics * 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 source code must re...
congleetea/fuse
fuse_constraints/include/fuse_constraints/normal_prior_orientation_2d.h
<reponame>congleetea/fuse /* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributi...
congleetea/fuse
fuse_core/include/fuse_core/sensor_model.h
/* * Software License Agreement (BSD License) * * Copyright (c) 2018, Locus Robotics * 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 source code must re...
psyeugenic/monarch
c_src/libmonarch.c
<reponame>psyeugenic/monarch<gh_stars>0 /* * Copyright (C) 2014 <NAME> * * File: libmonarch.c * Author: <NAME> * Created: 2014-09-11 */ #include <stdio.h> #include <string.h> #include <sys/types.h> #ifdef __linux__ #include <sys/sysinfo.h> #include <unistd.h> #endif #include <sys/time.h> #include <sys/sysct...
tj1432423/Rectangle_Overlap_Judgement
Rectangle.h
<reponame>tj1432423/Rectangle_Overlap_Judgement #ifndef RECTANGLE_H #define RECTANGLE_H #include <math.h> #include "opencv2/core.hpp" using namespace cv; class Rectangle{ public: Rectangle(double _center_x,double _center_y,double _center_phi,double _length,double _width); bool Overlap(const Rectangle& obj...
wangchunjie1993/test
test.c
<filename>test.c<gh_stars>0 #include<stdio.h> #include<unistd.h> int main() { pid_t pid; if((pid=fork())>0){ printf("I'm father.pid=%d,child's pid=%d\n",getpid(),pid); }else if(pid==0){ printf("I'm child.pid=%d,father's pid=%d\n",getpid(),getppid()); exit(0); }else{ printf("fork() failed\n"); exit(0); }...
wangchunjie1993/test
serial.c
<filename>serial.c #include<stdio.h> #include<sys/types.h> #include<sys/stat.h> #include<fcntl.h> int main(){ int len; char buffer[30]; int fd = open("/dev/tq2440_serial0",O_RDWR); if(fd<0){ printf("open file failed\n"); exit(-1); } printf("sizeof(buffer)=%d\n",sizeof(buffer)); while(1){ len=read(fd,buffe...
wangchunjie1993/test
beepApp.c
#include<stdio.h> #include<sys/types.h> #include<sys/stat.h> #include<fcntl.h> int main(){ int fd = open("/dev/PWM-Test",O_RDWR); if(fd<0){ printf("open file failed\n"); exit(-1); } ioctl(fd,1,2000); getchar(); ioctl(fd,0,1); close(fd); return 0; }
coolshou/hostap
wpa_supplicant/wpa_gui-qt4/userdatarequest.h
<gh_stars>0 /* * wpa_gui - UserDataRequest class * Copyright (c) 2005-2006, <NAME> <<EMAIL>> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #ifndef USERDATAREQUEST_H #define USERDATAREQUEST_H #include <QObject> #include <QtGlobal> #include "ui_userdata...
coolshou/hostap
src/crypto/tls_gnutls.c
<filename>src/crypto/tls_gnutls.c /* * SSL/TLS interface functions for GnuTLS * Copyright (c) 2004-2017, <NAME> <<EMAIL>> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "includes.h" #include <gnutls/gnutls.h> #include <gnutls/x509.h> #ifdef PKC...
coolshou/hostap
src/crypto/tls_internal.c
<gh_stars>1-10 /* * TLS interface functions and an internal TLS implementation * Copyright (c) 2004-2011, <NAME> <<EMAIL>> * * This software may be distributed under the terms of the BSD license. * See README for more details. * * This file interface functions for hostapd/wpa_supplicant to use the * integrated ...
ibarisic05/CHRTextFieldFormatter
CHRTextFieldFormatter/CHRUSPhoneNumberMask.h
// // CHRUSPhoneNumberMask.h // CHRTextFieldFormatterTest // // Created by <NAME> on 30/09/2016. // Copyright © 2016 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "CHRTextMask.h" @interface CHRUSPhoneNumberMask : NSObject <CHRTextMask> /** Specifies not editable phone number prefix. ...
ibarisic05/CHRTextFieldFormatter
Example/Pods/Headers/Public/CHRTextFieldFormatter/CHRTextMask.h
// // CHRTextMask.h // // Created by <NAME> on 12/05/15. // Copyright (c) 2015 e-legion. All rights reserved. // #import <Foundation/Foundation.h> @protocol CHRTextMask <NSObject, NSCopying> - (BOOL)shouldChangeText:(NSString *)text withReplacementString:(NSString *)string inRange:(NSRange)range; - (NSString *)fi...
ibarisic05/CHRTextFieldFormatter
Example/Pods/Headers/Public/CHRTextFieldFormatter/CHRTextFieldFormatter.h
// // CHRTextFieldFormatter.h // // Created by <NAME> on 12/05/15. // Copyright (c) 2015 e-legion. All rights reserved. // #import <UIKit/UIKit.h> #import "CHRTextMask.h" NS_ASSUME_NONNULL_BEGIN /** UITextField formatter that applies a mask to the input text. @see http://stackoverflow.com/a/19161529/318790 *...
ibarisic05/CHRTextFieldFormatter
CHRTextFieldFormatter/CHRBusinessEINNumberMask.h
<filename>CHRTextFieldFormatter/CHRBusinessEINNumberMask.h // // CHRBusinessEINNumberMask.h // CHRTextFieldFormatterTest // // Created by <NAME> on 30/09/2016. // Copyright © 2016 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "CHRTextMask.h" NS_ASSUME_NONNULL_BEGIN @interface CHRBusin...
Pako2/esp-rfid
src/rfid125kHz.h
/* RFID reader. Based on the "rfid_reader" library (https://github.com/travisfarmer) from <NAME>. Author: <NAME> Hardware: RDM6300 or RF125-PS Uses 125KHz RFID tags. */ #ifndef rfid125kHz_h #define rfid125kHz_h #include "Arduino.h" class RFID_Read { public: void rfidSerial(char x); bool Available(); St...
vladcc/tme
tme/tme.c
<reponame>vladcc/tme<filename>tme/tme.c<gh_stars>0 /* Executable name : tme.exe * Version : v1.0 * Created Date : 14.04.2016 * Last Update : 15.04.2016 * Author : <NAME> * Description : A countdown timer program. It exists because I always forget my coffe on the stove. * The time is given in minutes as dec...
vladcc/tme
tme/tme.h
// #define UNICODE /* defined automatically by the -municode flag in gcc */ #define _UNICODE #define _WIN32_WINNT 0x0400 #define _WIN32_DCOM #include <initguid.h> #include <windows.h> #include <sapi.h> #include <ole2.h> #include <oleauto.h> #include <wbemidl.h> #include <tchar.h> #include <Tlhelp32.h> #include <stdboo...