repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
N-I-N-0/NSMBWii-Mod
Kamek/src/creatorInfo.cpp
#include "courseSelectManager.h"; // TODO: - 0x80926ba0 LoadFilesForWorldMap: re-add lakitu and items // - Warning: eventually the poweruplist was already changed before in boomeranghax, poweruphax or some stockItemFix file ... // WorldMap folder list handled in worldmapGrid.S // ...
conservify/lwcron
src/lwcron/lwcron.cpp
#include "lwcron.h" #include <stdio.h> namespace lwcron { constexpr uint32_t SecondsPerYear = (60 * 60 * 24L * 365); constexpr uint32_t SecondsPerDay = 60 * 60 * 24L; constexpr uint32_t SecondsPerHour = 3600L; constexpr uint32_t RerunThreshold = 30; constexpr uint8_t DaysInMonth[] = { 31, 28, 31, 30, 31, 30, 31, 31,...
conservify/lwcron
examples/simple/main.cpp
#include <Arduino.h> #include <lwcron/lwcron.h> void setup() { Serial.begin(119200); while (!Serial) { delay(100); } } void loop() { }
conservify/lwcron
test/test_lwcron.cpp
#include <gtest/gtest.h> #include <vector> #include <lwcron/lwcron.h> using namespace lwcron; static DateTime JacobsBirth{ 1982, 4, 23, 7, 30, 00 }; class SchedulerSuite : public ::testing::Test { protected: }; TEST_F(SchedulerSuite, DateTime) { ASSERT_EQ(JacobsBirth.unix_time(), 388395000); ASSERT_EQ(Dat...
alext234/PubSub
tests.cpp
<reponame>alext234/PubSub<filename>tests.cpp #include "gmock/gmock.h" #include "pubsub.h" #include <memory> using namespace std; using namespace pubsub; using namespace testing; TEST(PubSub, registerAndNotify ) { struct Event { Event(int v) : val{v}{} int val; }; class A:public Subscribe...
themeldingwars/Key9Auth
dll/dllmain.cpp
<gh_stars>1-10 // Simple dll replacement to read login data from the launcher and pass it to the client // Reads the values from a memory mapped file #include "pch.h" #include <stdio.h> #include <string.h> #include <windows.h> #define ENABLE_LOGGING #ifdef ENABLE_LOGGING #include "ThirdParty/easylogging/easylogging++...
jeanropke/LemonUI
LemonUI.SHV/IRecalculable.hpp
#pragma once namespace LemonUI { /// <summary> /// Interface for classes that have values that need to be recalculated on resolution changes. /// </summary> class IRecalculable { public: /// <summary> /// Recalculates the values. /// </summary> virtual void Recalculate() = 0; }; }
jeanropke/LemonUI
LemonUI.SHV/Alignment.cpp
namespace LemonUI { }
jeanropke/LemonUI
LemonUI.SHV/IDrawable.hpp
#pragma once namespace LemonUI { /// <summary> /// Represents an item that can be drawn. /// </summary> class IDrawable { public: /// <summary> /// Draws the item on the screen. /// </summary> virtual void Draw() = 0; }; }
jeanropke/LemonUI
LemonUI.SHV/Sound.cpp
#include <natives.hpp> #include <string> #include "Sound.hpp" namespace LemonUI { Sound::Sound(std::string set, std::string file) { this->set = set; this->file = file; } std::string Sound::GetSet() { return this->set; } void Sound::SetSet(std::string set) { this->set = set; } std::string Sound::Ge...
ErisZhang/complementary-dynamics
matlab-include/mex/read_blendshape_anim.cpp
<gh_stars>10-100 #include <mex.h> #include <math.h> #include <iostream> #include <vector> #include <fstream> #include <cassert> #include <utility> #include <dirent.h> #include <igl/matlab/MexStream.h> #include <igl/matlab/parse_rhs.h> #include <igl/matlab/prepare_lhs.h> #include <igl/matlab/validate_arg.h> #include ...
ErisZhang/complementary-dynamics
matlab-include/mex/read_3d_bone_anim.cpp
#include <mex.h> #include <math.h> #include <iostream> #include <vector> #include <igl/matlab/MexStream.h> #include <igl/matlab/parse_rhs.h> #include <igl/matlab/prepare_lhs.h> #include <igl/matlab/validate_arg.h> #include <igl/PI.h> #include <igl/forward_kinematics.h> #include <igl/directed_edge_parents.h> #includ...
ErisZhang/complementary-dynamics
matlab-include/mex/read_3d_pnt_anim.cpp
<reponame>ErisZhang/complementary-dynamics #include <mex.h> #include <math.h> #include <iostream> #include <vector> #include <igl/matlab/MexStream.h> #include <igl/matlab/parse_rhs.h> #include <igl/matlab/prepare_lhs.h> #include <igl/matlab/validate_arg.h> #include <igl/PI.h> #include <igl/forward_kinematics.h> #inc...
chinsaiki/L2live
source/qt_L2Viewer/s4SnapViewerWidget.cpp
#ifdef _MSC_VER # pragma warning(push) # pragma warning(disable: 4189) #endif #include "qt_L2Viewer/s4SnapViewerWidget.h" #include <QSplitter> #include <QMessageBox> #include <QTableWidget> #include <QStyleFactory> #include <QGridLayout> #include <QDebug> // //#ifdef max //#undef max //#endif using namespace std...
chinsaiki/L2live
source/qt_L2Viewer/s4L2ViewerWidgetL2Live.cpp
#ifdef _MSC_VER # pragma warning(push) # pragma warning(disable: 4189) #endif #include "qt_L2Viewer/s4L2ViewerWidgetL2Live.h" #include "qt_L2Viewer/s4L2Instrument.h" #include "qt_common/s4qt_itemDelegateNumberOnly.h" #include "network/L2_udp_recver_th_native.h" #include "common/s4logger.h" #include <QSplitter> #...
jaustin/microbit-samples
source/examples/button-events/main.cpp
/* The MIT License (MIT) Copyright (c) 2016 British Broadcasting Corporation. This software is provided by Lancaster University by arrangement with the BBC. 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...
kamfor/ANRO1
LAB3/src/src/NONKDL_DKIN.cpp
#include <ros/ros.h> #include <geometry_msgs/PoseStamped.h> #include <sensor_msgs/JointState.h> #include <visualization_msgs/Marker.h> double finalX, finalY, finalZ; double d1,d2,d3; ros::Publisher pub; void jointCallback(const sensor_msgs::JointState & msg) { ROS_INFO("poseX: [%f]", msg.position[0]); ROS_INFO("p...
kamfor/ANRO1
LAB4/src/src/jint.cpp
<filename>LAB4/src/src/jint.cpp #include <ros/ros.h> #include <geometry_msgs/PoseStamped.h> #include <sensor_msgs/JointState.h> #include <nav_msgs/Path.h> #include <visualization_msgs/Marker.h> #include "lab4/jint_control_srv.h" #include <math.h> #include <kdl/chain.hpp> #include <iostream> #include <kdl/chainfksolverp...
kamfor/ANRO1
LAB5/src/src/oint.cpp
#include <ros/ros.h> #include <nav_msgs/Path.h> #include <geometry_msgs/Quaternion.h> #include "lab5/oint_control_srv.h" #include <math.h> #include <tf/LinearMath/Matrix3x3.h> #include <iostream> #define LOOP_RATE 10 using namespace std; double x, y, z, ox, oy, oz, t; ros::Publisher oint_pub; ros::Publisher path_pu...
kamfor/ANRO1
LAB4/src/src/ocmd.cpp
<reponame>kamfor/ANRO1<filename>LAB4/src/src/ocmd.cpp #include "ros/ros.h" #include "lab4/oint_control_srv.h" #include <iostream> using namespace std; int main(int argc, char **argv) { double x, y, z, rx, ry, rz, t; string type; ros::init(argc, argv, "oint_server"); ros::NodeHandle n; ros::ServiceClient cli...
kamfor/ANRO1
LAB3/src/src/KDL_DKIN.cpp
<filename>LAB3/src/src/KDL_DKIN.cpp<gh_stars>0 #include <ros/ros.h> #include <geometry_msgs/PoseStamped.h> #include <sensor_msgs/JointState.h> #include <visualization_msgs/Marker.h> #include <math.h> #include <kdl/chain.hpp> #include <kdl/chainfksolverpos_recursive.hpp> #include <kdl/frames.hpp> using namespace std; u...
kamfor/ANRO1
LAB4/src/src/jcmd.cpp
#include "ros/ros.h" #include "lab4/jint_control_srv.h" #include <iostream> using namespace std; int main(int argc, char **argv) { double x, y, z, t; string type; ros::init(argc, argv, "jint_server"); ros::NodeHandle n; ros::ServiceClient client = n.serviceClient<lab4::jint_control_srv>("jint_control_srv");...
kamfor/ANRO1
LAB2/src/src/dh_to_rpy.cpp
#include <iostream> #include <kdl/kdl.hpp> #include <kdl/tree.hpp> #include <kdl/chain.hpp> #include <math.h> #include <stdlib.h> using namespace std; int main(int argc,char *argv[]) { KDL::Chain chain; // Deklaracje zmiennych i stałych double const PI = M_PI; double d1, d2, d3; if(argc == 4) { d1 = strtol(a...
kamfor/ANRO1
LAB1/src/src/turtle.cpp
#include <iostream> #include <stdio.h> #include <unistd.h> #include <termios.h> #include <ros/ros.h> #include <geometry_msgs/Twist.h> char getch(){ char buf=0; struct termios old={0}; fflush(stdout); if(tcgetattr(0, &old)<0) perror("tcsetattr()"); old.c_lflag&=~ICANON; old.c_lflag&=~EC...
kamfor/ANRO1
LAB4/src/src/oint.cpp
#include <ros/ros.h> #include <nav_msgs/Path.h> #include <geometry_msgs/Quaternion.h> #include "lab4/oint_control_srv.h" #include <math.h> #include <tf/LinearMath/Matrix3x3.h> #include <iostream> #define LOOP_RATE 10 using namespace std; double x, y, z, ox, oy, oz, t; double rx, ry, rz, rox, roy, roz; double arx, ar...
kamfor/ANRO1
LAB5/src/src/ikin.cpp
<filename>LAB5/src/src/ikin.cpp #include <ros/ros.h> #include <geometry_msgs/PoseStamped.h> #include <sensor_msgs/JointState.h> #include <math.h> #include <iostream> #include <csignal> #include <cstring> #define LOOP_RATE 10 volatile int exitFlag = 0; using namespace std; ros::Publisher joint; ros::Subscriber pos...
kamfor/ANRO1
LAB5/src/src/ocmd.cpp
<reponame>kamfor/ANRO1 #include "ros/ros.h" #include "lab5/oint_control_srv.h" #include <iostream> using namespace std; int main(int argc, char **argv) { double x, y, z, t; string type; ros::init(argc, argv, "oint_server"); ros::NodeHandle n; ros::ServiceClient client = n.serviceClient<lab5::oint_control_sr...
qisashasanudin/Proglan_FinalProject_FPS
main.cpp
<filename>main.cpp //Referensi : www.videotutorialsrock.com, www.lighthouse3d.com #include <cstdlib> #include <ctime> #include <iostream> #include <set> #include <sstream> #include <stdlib.h> #include <vector> #include <windows.h> #include <math.h> #include <GL/gl.h> #include <GL/glut.h> #include <GL/gl...
nonwill/my_pupil
SFtongbu/TB_BT.cxx
#include <fstream> #include <vector> #include <random> #include <ctime> #include <iomanip> using namespace std; class TB_BT { public: TB_BT(int x, int y) : _x(x), _y(y) { _xy = x * y; } ~TB_BT() {} int _x; int _y; int _xy; }; void exercise_tb_bt() { ...
tisaac/tictoc
test/tictoc.cc
#include <gtest/gtest.h> #include <tictoc.h> #ifdef _MSC_VER #include <windows.h> void usleep(int us) { __int64 time1 = 0, time2 = 0, freq = 0, w; QueryPerformanceFrequency((LARGE_INTEGER *)&freq); w=us*freq/1000000; QueryPerformanceCounter((LARGE_INTEGER *) &time1); do { QueryPerformance...
gqw/coro_redis
include/coro_redis/impl/config.ipp
// // Copyright (c) 2020 Gu.Qiwei(<EMAIL>) // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // https://opensource.org/licenses/MIT // #pragma once #ifdef _USE_SPD_LOG # include <logger.hpp> #else # ifndef LOG_TRACE # define LOG_TRACE(fmt, ...) # endif # ...
gqw/coro_redis
examples/300/src/main.cpp
#include <future> #include "logger.hpp" #include "cmdline.hpp" #include "coro_task.h" task<> task_test2() { co_return; } task<int> task_test() { int i = 0; auto ret = co_await task_awaiter<int>([i](coro::coroutine_handle<task_promise<int>>) { std::cout << "wait set: " << i << std::en...
gqw/coro_redis
examples/100/src/main.cpp
#include <future> #include <chrono> #include <hiredis/hiredis.h> #include <hiredis/async.h> #include <hiredis/adapters/libevent.h> #include "logger.hpp" #include "cmdline.hpp" using namespace std::chrono_literals; #define ASSERT_RETURN(exp, ret, fmt, ...) do { if(!(exp)) { LOG_ERROR((fmt), ##__VA_ARGS...
gqw/coro_redis
include/coro_redis/impl/coro_connection.ipp
// // Copyright (c) 2020 Gu.Qiwei(<EMAIL>) // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // https://opensource.org/licenses/MIT // #pragma once #include <memory> #include <hiredis/async.h> #include <coro_redis/impl/config.ipp> #include <coro_redis/impl...
gqw/coro_redis
examples/301/src/main.cpp
<filename>examples/301/src/main.cpp #include <future> #include <hiredis/adapters/libevent.h> #include "logger.hpp" #include "cmdline.hpp" #include "reids_client.h" #include "watchdog.h" #include "coro_task.h" int main(int argc, char* argv[]) { std::cout << "__cplusplus: " << __cplusplus << std::e...
gqw/coro_redis
include/coro_redis/impl/sync_connection.ipp
// // Copyright (c) 2020 Gu.Qiwei(<EMAIL>) // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // https://opensource.org/licenses/MIT // #pragma once #include <optional> #include <fmt/format.h> #include <hiredis/hiredis.h> #include <coro_redis/impl/config.ipp> ...
gqw/coro_redis
examples/303/src/main.cpp
// // Copyright (c) 2020 Gu.Qiwei(<EMAIL>) // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // https://opensource.org/licenses/MIT // #include <future> #include <logger.hpp> #include <cmdline.hpp> // #include <hiredis/adapters/libevent.h> #include <hiredis/adap...
gqw/coro_redis
examples/101/src/main.cpp
#include <array> #include <future> #include <chrono> #include <thread> #include <iostream> #include "logger.hpp" #include "cmdline.hpp" #include <coro_redis/task.hpp> #include <asio.hpp> using namespace std::chrono_literals; using namespace coro_redis; class consumer { consumer() : work_(ioc_....
gqw/coro_redis
include/coro_redis/coro_connection.hpp
<gh_stars>1-10 // // Copyright (c) 2020 Gu.Qiwei(<EMAIL>) // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // https://opensource.org/licenses/MIT // #pragma once #include <fmt/format.h> #include <coro_redis/impl/coro_connection.ipp> namespace coro_redis { ...
gqw/coro_redis
examples/302/src/reids_client.cpp
<gh_stars>1-10 #include "reids_client.h" #include <future> #include <chrono> #include <hiredis/hiredis.h> #include <hiredis/async.h> #include <hiredis/adapters/libevent.h> #include "logger.hpp" using namespace std::chrono_literals; redis_client& redis_client::get() { static redis_client clt; return clt; } ...
gqw/coro_redis
include/coro_redis/context.hpp
<filename>include/coro_redis/context.hpp #pragma once namespace coro_redis { struct io_context { virtual int attach(redisAsyncContext* actx) const = 0; virtual void loop() const = 0; virtual void exit() const = 0; }; #ifdef __HIREDIS_LIBEVENT_H__ class libevent_io_context : public io_context { ...
gqw/coro_redis
examples/utils/logger.hpp
<filename>examples/utils/logger.hpp // // Copyright (c) 2020 Gu.Qiwei(<EMAIL>) // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // https://opensource.org/licenses/MIT // #pragma once #include <filesystem> #include <sstream> #ifndef NOMINMAX # undef min # u...
gqw/coro_redis
include/coro_redis/impl/client.ipp
// // Copyright (c) 2020 Gu.Qiwei(<EMAIL>) // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // https://opensource.org/licenses/MIT // #pragma once #include <list> #include <mutex> #include <hiredis/async.h> #include <coro_redis/context.hpp> #include <coro_redis/coro_conn...
gqw/coro_redis
examples/303/src/test.cpp
<reponame>gqw/coro_redis #include "test.h" #include <coro_redis/client.hpp> using namespace coro_redis; task<bool> test_coro_impl(const coro_redis::io_context& ioc, std::string_view host, uint16_t port) { auto conn = co_await client::get().coro_connect(ioc, host, port, 50); ASSERT_CO_RETURN(conn != n...
gqw/coro_redis
examples/301/src/watchdog.cpp
<gh_stars>1-10 #include "watchdog.h" #include <sys/types.h> #include <event2/event.h> #include <event2/listener.h> #include <event2/buffer.h> #include <event2/bufferevent.h> #ifdef WIN32 #else # include <sys/socket.h> # include <unistd.h> #endif // WIN32 #include "logger.hpp" #include "reids_client.h" bool w...
gqw/coro_redis
include/coro_redis/client.hpp
<reponame>gqw/coro_redis // // Copyright (c) 2020 Gu.Qiwei(<EMAIL>) // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // https://opensource.org/licenses/MIT // #pragma once #include <hiredis/hiredis.h> #include <coro_redis/impl/client.ipp> #include <coro_redis/impl/task.i...
gqw/coro_redis
examples/utils/cmdline.hpp
<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: * Redistributions of source code must retain the above copyright notice, this list of conditions a...
gqw/coro_redis
examples/200/src/watchdog.cpp
<gh_stars>1-10 #include "watchdog.h" #include <sys/types.h> #include <event2/event.h> #include <event2/listener.h> #include <event2/buffer.h> #include <event2/bufferevent.h> #ifdef WIN32 #else # include <sys/socket.h> # include <unistd.h> #endif // WIN32 #include "logger.hpp" #include "reids_client.h" bool wat...
gqw/coro_redis
include/coro_redis/impl/task.ipp
<gh_stars>1-10 // // Copyright (c) 2020 Gu.Qiwei(<EMAIL>) // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // https://opensource.org/licenses/MIT // #pragma once #include <any> #include <functional> #include <optional> #include <coroutine> #include <coro_redis/impl/confi...
yanxianghuang/fpfft
src/fix_fft.cpp
//######################################################### //# Project : Fixed-point FFT //# //# //# Author : <NAME> //# //# Company : imec //# Kapeldreef 75 //# B-3001 Leuven //# Belgium //# http://www.imec.be ...
Sanic/UROSBridge
Source/UROSBridge/Private/ROSBridgeGameInstance.cpp
// Copyright 2018, Institute for Artificial Intelligence - University of Bremen #include "ROSBridgeGameInstance.h" // Default constructor UROSBridgeGameInstance::UROSBridgeGameInstance() { ROSBridgeServerHost = "127.0.0.1"; ROSBridgeServerPort = 9090; bConnectToROS = true; } // Called when the game in...
Sanic/UROSBridge
Source/UROSBridge/Private/ROSBridgeHandler.cpp
<gh_stars>10-100 // Copyright 2018, Institute for Artificial Intelligence - University of Bremen #include "ROSBridgeHandler.h" #include "UROSBridge.h" #include "Core.h" #include "Modules/ModuleManager.h" #include "Networking.h" #include "Json.h" int32 FROSBridgeHandler::ThreadInstanceIdx = 0; void FROSBridgeHandler:...
choltz95/pcb-placement
src/floor_plan.hpp
<reponame>choltz95/pcb-placement #include <cassert> #include <list> #include <map> #include <numeric> #include <tuple> #include <vector> #include <fstream> #include <iostream> #include <sstream> #include <stdexcept> #include <string> #include <utility> #include <iomanip> #include <vector> #include <complex> #include <...
choltz95/pcb-placement
src/main.cpp
<reponame>choltz95/pcb-placement<filename>src/main.cpp<gh_stars>0 #include <stdlib.h> #include <cassert> #include <cstdlib> #include <iostream> #include <vector> #include <map> #include <unistd.h> using namespace std; const clock_t start_time = clock(); constexpr float temp_th = 0.001, rej_ratio = 0.99; inline float...
xphillyx/vscode-tizentv-wasm
templates/Wasm/templates/HelloWorld/src/helloworld.cpp
#include "functions.h" #include <iostream> int main(int argc, char* argv[]) { std::cout << "Hello World" << std::endl; std::cout << "The time from Epoch is: " << helloworld::time() << std::endl; return 0; }
xphillyx/vscode-tizentv-wasm
templates/Wasm/templates/Empty_CPP/inc/empty.hpp
<reponame>xphillyx/vscode-tizentv-wasm #pragma once // Put your content here if required.
xphillyx/vscode-tizentv-wasm
templates/Wasm/templates/HelloWorld/src/functions.cpp
#include "functions.h" #include <emscripten/bind.h> #include <time.h> namespace helloworld { time_t time() { return ::time(0); } } /* * This way the function may be called from the JavaScript code. * (see the updated index.html file of the parent project, * starting from the tag: "WASM MODULE START: HelloWo...
artepic/Seq2SeqSharp
CpuOps/ConvolutionUnfold.cpp
#include "ConvolutionUnfold.h" int TS_Unfolded_Copy(TensorRef* finput, TensorRef* input, int kW, int kH, int dW, int dH, int padW, int padH, int nInputPlane, int inputWidth, int inputHeight, int outputWidth, int outputHeight) { API_BEGIN() SWITCH_TENSOR_TYPE_ALL_CPU(input->elementType, unfolded_copy, fi...
artepic/Seq2SeqSharp
CpuOps/GatherScatterOps.cpp
<reponame>artepic/Seq2SeqSharp<filename>CpuOps/GatherScatterOps.cpp<gh_stars>0 #include "GatherScatterOps.h" #include "TensorIter-inl.h" #include "TensorApplyDim-inl.h" template<typename T> INLINE_FUNC void Gather_Apply(TensorRef* result, TensorRef* src, int dim, TensorRef* indices) { auto func = []( T *rData, __i...
ravijo/ros_protocol_buffer_tutorial
src/main.cpp
<reponame>ravijo/ros_protocol_buffer_tutorial<gh_stars>1-10 /** * main.cpp * Author: <NAME> * Date: 2018/01/17 */ #include <ros/ros.h> #include "std_msgs/String.h" #include "addressbook.pb.h" int main(int argc, char** argv) { GOOGLE_PROTOBUF_VERIFY_VERSION; ros::init(argc, argv, "node_name", ros::init_option...
c0dedump/libcr
oldsrc/hooks.cc
#include <stdio.h> #include <unistd.h> #include "coroutine.h" extern Scheduler gSched; extern "C" { #undef pthread_create int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine) (void *), void *arg) { *thread = gSched.Spawn(arg, start_routine); return 0; } #un...
c0dedump/libcr
oldsrc/coroutine.cc
<filename>oldsrc/coroutine.cc<gh_stars>10-100 #include <errno.h> #include <dlfcn.h> #include <fcntl.h> #include <stdio.h> #include <string.h> #include <sys/epoll.h> #include <unistd.h> #include "coroutine.h" // stack size static const int kProtectStackSize = 10 * 1024; static const int kDefaulaStackSize = 100 * 1024; ...
c0dedump/libcr
example/test.cc
#include <fcntl.h> #include <stdio.h> #include <pthread.h> #include <arpa/inet.h> //inet_addr #include <sys/types.h> #include <sys/socket.h> #include <sys/socket.h> #include "coroutine.h" void *echo(void *arg) { int fd = *((int*)arg); char buf[1024]; printf("in echo\n"); while (true) { ssize_t n = recv(fd...
c0dedump/libcr
oldsrc/idmap.cc
#include <string.h> #include "idmap.h" /* page size = 2^12 = 4K */ #define PAGE_SHIFT 12 #define PAGE_SIZE (1UL << PAGE_SHIFT) #define BITS_PER_BYTE 8 #define BITS_PER_PAGE (PAGE_SIZE * BITS_PER_BYTE) #define BITS_PER_PAGE_MASK (BITS_PER_PAGE - 1) IdMap::IdMap() : nr_free_(ID_MAX_DEFAULT), ...
jeff-hykin/acpm
native-module/src/native.cc
#include <stdio.h> int main() { printf("i am a native module"); }
afedonin/projectV
src/projectV.cpp
/* * Licensed to <NAME> under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. <NAME> licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this file except in c...
SamueleAlpino/Game_Jam_Epic
Source/JamTest/GamePlayerController.cpp
<reponame>SamueleAlpino/Game_Jam_Epic<filename>Source/JamTest/GamePlayerController.cpp // Fill out your copyright notice in the Description page of Project Settings. #include "GamePlayerController.h" #include "JamGameInstance.h" #include "JamCharacter.h" #include "Runtime/UMG/Public/Blueprint/UserWidget.h" TSubclassOf...
SamueleAlpino/Game_Jam_Epic
Source/JamTest/JamPlayerState.cpp
// Fill out your copyright notice in the Description page of Project Settings. #include "JamPlayerState.h" #include "Net/UnrealNetwork.h" AJamPlayerState::AJamPlayerState() { bReplicates = true; } void AJamPlayerState::GetLifetimeReplicatedProps(TArray<FLifetimeProperty> & OutLifetimeProps) const { Super::GetLifetim...
SamueleAlpino/Game_Jam_Epic
Source/JamTest/JamGameMode.cpp
// Fill out your copyright notice in the Description page of Project Settings. #include "JamGameMode.h" #include "GamePlayerController.h" #include "JamCharacter.h" #include "JamGameInstance.h" #include "Runtime/Engine/Classes/Kismet/GameplayStatics.h" #include "Engine/World.h" #include "Runtime/Engine/Public/EngineUt...
SamueleAlpino/Game_Jam_Epic
Source/JamTest/JamGameInstance.cpp
<gh_stars>0 // Fill out your copyright notice in the Description page of Project Settings. #include "JamGameInstance.h" #include "Runtime/Engine/Classes/Kismet/GameplayStatics.h" #include "Runtime/UMG/Public/Blueprint/UserWidget.h" #include "Runtime/Engine/Classes/GameFramework/GameModeBase.h" #include "LobbyPlayerCon...
SamueleAlpino/Game_Jam_Epic
Source/JamTest/ServersList.cpp
<reponame>SamueleAlpino/Game_Jam_Epic<gh_stars>0 // Fill out your copyright notice in the Description page of Project Settings. #include "ServersList.h" #include "Runtime/Engine/Classes/Components/SkeletalMeshComponent.h" #include "Runtime/Engine/Classes/Materials/Material.h" #include "Runtime/Engine/Classes/Animation...
SamueleAlpino/Game_Jam_Epic
Source/JamTest/JamCharacter.cpp
// Fill out your copyright notice in the Description page of Project Settings. #include "JamCharacter.h" #include "JamMovementComponent.h" #include "Runtime/Engine/Classes/Engine/SkeletalMesh.h" #include "Runtime/Engine/Classes/Components/SkeletalMeshComponent.h" #include "Runtime/Engine/Classes/Materials/Material.h" ...
SamueleAlpino/Game_Jam_Epic
Source/JamTest/JamMovementComponent.cpp
// Fill out your copyright notice in the Description page of Project Settings. #include "JamMovementComponent.h" #include "Runtime/Engine/Classes/GameFramework/Pawn.h" #include "Runtime/Engine/Classes/GameFramework/Character.h" //TODO: teleport and dash cooldown not implemented FNetworkPredictionData_Client* UJamMove...
SamueleAlpino/Game_Jam_Epic
Source/JamTest/LobbyGameMode.cpp
<filename>Source/JamTest/LobbyGameMode.cpp // Fill out your copyright notice in the Description page of Project Settings. #include "LobbyGameMode.h" #include "Engine/World.h" #include "Runtime/Engine/Classes/GameFramework/GameStateBase.h" #include "JamGameInstance.h" #include "Runtime/Engine/Public/TimerManager.h" #in...
SamueleAlpino/Game_Jam_Epic
Source/JamTest/LobbyPlayerController.cpp
<gh_stars>0 // Fill out your copyright notice in the Description page of Project Settings. #include "LobbyPlayerController.h" #include "JamGameInstance.h" #include "Runtime/UMG/Public/Blueprint/UserWidget.h" void ALobbyPlayerController::SetupLobbyUI() { if (IsLocalPlayerController()) { if (LobbyHUDWidgetClass ...
morsisko/MineSweeper-Bot
MineSweeperCheat/dllmain.cpp
#include <Windows.h> #include <iostream> #include "Structures.hpp" void markAndWriteMines() { std::cout << "****************************" << std::endl; std::cout << "MineSweeper x64 - Mine detector by morsisko" << std::endl; std::cout << "****************************" << std::endl << std::endl << std::endl; MineS...
morsisko/MineSweeper-Bot
MineSweeperCheat/Structures.hpp
#pragma once #include <cstdint> // Created with ReClass.NET by KN4CK3R template <class T> class SimpleArray { public: uint32_t size; //0x0000 char pad_0004[12]; //0x0004 T* array; //0x0010 char pad_0018[72]; //0x0018 }; //Size: 0x0060 class GameState { public: uint64_t vTable; //0x0000 uint32_t totalMines; //...
jslee02/cmake-based-qt5-project-template
src/mainwindow.hpp
#ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QScopedPointer> namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = 0); virtual ~MainWindow(); private: QScopedPointer<Ui::MainWindow> ui; }; #endif
jslee02/cmake-based-qt5-project-template
src/mainwindow.cpp
#include "mainwindow.hpp" #include "ui_mainwindow.h" //============================================================================== MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); } //=====================================================================...
Pandinosaurus/ExtractPatchesForRecolorization
main.cpp
/* main.cpp * * Author: <NAME> * Email : <EMAIL> * LICENSE : MIT * */ #include "headers/headers.hpp" #include "functions/getpatchesfromgrayscaledata.hpp" #include "functions/getpatchesfromcolordata.hpp" #include "functions/getpatchesfromgrayscaleAndgtdata.hpp" #include "functions/getpatchesaloneinsubfolders.hpp"...
fujunwei/dldt
inference-engine/src/vpu/graph_transformer/src/middleend/passes/merge_parallel_fc.cpp
<reponame>fujunwei/dldt // Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <memory> #include <utility> #include <vector> #include <ie_parallel.hpp> #include <vpu/middleend/pass_manager.hpp> #include <vpu/stages/stub_stage.hpp> namespace vpu { namespace { class MergeFul...
fujunwei/dldt
inference-engine/tests/functional/plugin/gna/shared_tests_instances/subgraph_tests/split_conv_concat.cpp
<reponame>fujunwei/dldt // Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <vector> #include "subgraph_tests/split_conv_concat.hpp" #include "common_test_utils/test_constants.hpp" using namespace LayerTestsDefinitions; const std::vector<InferenceEngine::Precision> inputP...
fujunwei/dldt
inference-engine/src/vpu/graph_transformer/src/middleend/passes/split_hw_depth_convolution.cpp
<gh_stars>1-10 // Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <vpu/middleend/pass_manager.hpp> #include <memory> #include <array> #include <string> #include <list> #include <unordered_set> #include <vector> #include <set> #include <tuple> #include <limits> #include <p...
fujunwei/dldt
inference-engine/src/inference_engine/convert_function_to_cnn_network.cpp
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "convert_function_to_cnn_network.hpp" #include <string> #include <memory> #include <vector> #include <unordered_set> #include "ngraph_ops/convolution_ie.hpp" #include "ngraph_ops/deconvolution_ie.hpp" #include "ngraph_ops...
fujunwei/dldt
inference-engine/src/mkldnn_plugin/nodes/mkldnn_eltwise_node.cpp
<filename>inference-engine/src/mkldnn_plugin/nodes/mkldnn_eltwise_node.cpp // Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "mkldnn_eltwise_node.h" #include <ie_layers.h> #include <string> #include <vector> #include <memory> #include <algorithm> #include <cmath> #include ...
fujunwei/dldt
inference-engine/src/transformations/src/transformations/convert_opset1_to_legacy/convert_strided_slice_to_strided_slice_ie.cpp
<reponame>fujunwei/dldt // Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "transformations/convert_opset1_to_legacy/convert_strided_slice_to_strided_slice_ie.hpp" #include <memory> #include <vector> #include <ngraph/opsets/opset1.hpp> #include <ngraph_ops/strided_slice_...
fujunwei/dldt
inference-engine/tests/functional/inference_engine/ie_extension_test.cpp
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <gtest/gtest.h> #include <string> #include <memory> #include <ie_extension.h> #include <file_utils.h> #include <ngraph/opsets/opset.hpp> #include "common_test_utils/test_common.hpp" IE_SUPPRESS_DEPRECATED_START using n...
fujunwei/dldt
inference-engine/thirdparty/mkl-dnn/src/cpu/jit_uni_dw_convolution.hpp
<reponame>fujunwei/dldt /******************************************************************************* * Copyright 2019 Intel Corporation * * 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 * *...
fujunwei/dldt
inference-engine/src/inference_engine/builders/ie_argmax_layer.cpp
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <builders/ie_argmax_layer.hpp> #include <ie_cnn_layer_builder.h> #include <vector> #include <string> using namespace InferenceEngine; Builder::ArgMaxLayer::ArgMaxLayer(const std::string& name): LayerDecorator("ArgMax", n...
fujunwei/dldt
inference-engine/src/vpu/common/src/parsed_config_base.cpp
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <vpu/parsed_config_base.hpp> #include <vector> #include <unordered_map> #include <unordered_set> #include <sstream> #include <string> #include <memory> #include <map> #include <cpp_interfaces/exception2status.hpp> #includ...
fujunwei/dldt
inference-engine/include/builders/ie_crop_layer.hpp
<gh_stars>0 // Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // /** * @file */ #pragma once #include <builders/ie_layer_decorator.hpp> #include <ie_network.hpp> #include <string> #include <vector> namespace InferenceEngine { namespace Builder { /** * @deprecated Use ngraph API...
fujunwei/dldt
inference-engine/thirdparty/mkl-dnn/src/cpu/ref_quantization.hpp
/******************************************************************************* * Copyright 2019 Intel Corporation * * 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 * * http://www.apache.o...
fujunwei/dldt
inference-engine/tests/functional/inference_engine/ngraph_reader/fusion_tests.cpp
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <string> #include "ngraph_reader_tests.hpp" TEST_F(NGraphReaderTests, ConvBiasFusion) { std::string model = R"V0G0N( <net name="ConvBias" version="10"> <layers> <layer id="0" name="data" type="Parameter" ver...
fujunwei/dldt
inference-engine/tests_deprecated/unit/builders/convolution_layer_test.cpp
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <gtest/gtest.h> #include <string.h> #include <ie_builders.hpp> #include <builders/ie_convolution_layer.hpp> #include "builder_test.hpp" using namespace testing; using namespace InferenceEngine; class ConvolutionLayerBuil...
fujunwei/dldt
inference-engine/src/inference_engine/builders/ie_prelu_layer.cpp
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <builders/ie_prelu_layer.hpp> #include <ie_cnn_layer_builder.h> #include <string> using namespace InferenceEngine; Builder::PReLULayer::PReLULayer(const std::string& name): LayerDecorator("PReLU", name) { getLayer()-...
fujunwei/dldt
inference-engine/src/legacy_api/src/ie_network.cpp
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <ie_network.hpp> #include <map> #include <memory> #include <string> using namespace InferenceEngine; IE_SUPPRESS_DEPRECATED_START PortData::PortData() { createData({}); } PortData::PortData(const SizeVector& shape, ...
fujunwei/dldt
inference-engine/thirdparty/clDNN/tests/test_cases/concatenation_gpu_test.cpp
<reponame>fujunwei/dldt /* // Copyright (c) 2016-2019 Intel Corporation // // 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless ...
fujunwei/dldt
inference-engine/thirdparty/mkl-dnn/src/cpu/jit_uni_x8s8s32x_dw_convolution.hpp
/******************************************************************************* * Copyright 2018 Intel Corporation * * 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 * * http://www.apache.o...
fujunwei/dldt
inference-engine/src/inference_engine/builders/ie_permute_layer.cpp
<reponame>fujunwei/dldt // Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <builders/ie_permute_layer.hpp> #include <ie_cnn_layer_builder.h> #include <string> #include <vector> using namespace InferenceEngine; Builder::PermuteLayer::PermuteLayer(const std::string& name):...
fujunwei/dldt
inference-engine/tests/functional/plugin/shared/src/subgraph_tests/split_conv_concat.cpp
<reponame>fujunwei/dldt // Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <memory> #include <tuple> #include <vector> #include <string> #include <ie_core.hpp> #include "common_test_utils/common_utils.hpp" #include "functional_test_utils/plugin_cache.hpp" #include "functi...