repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
adrian-tech-enthusiast/Bot | src/tasks/do_say_hello.c | /**
* Author : <NAME>.
* Version : 1.0.0
* Copyright : © 2021 <NAME>, All Rights Reserved.
* Title : do_say_hello.c
* Description : Bot Task - Say Hello.
*/
#include "do_say_hello.h"
#include "../messenger/messenger.h"
/**
* {@inheritdoc}
*/
task_response do_say_hello() {
success("_> Hello... |
adrian-tech-enthusiast/Bot | src/tasks/do_sample_data.h | /**
* Author : <NAME>.
* Version : 1.0.0
* Copyright : © 2021 <NAME>, All Rights Reserved.
* Title : sample_data.h
* Description : Bot Task - sample data.
*/
#ifndef BOT_TASK_SAMPLE_DATA_H
#define BOT_TASK_SAMPLE_DATA_H
#include "task_response.h"
/**
* Sample data callback-function.
*/
task_r... |
adrian-tech-enthusiast/Bot | src/tasks/task_response.c | /**
* Author : <NAME>.
* Version : 1.0.0
* Copyright : © 2021 <NAME>, All Rights Reserved.
* Title : task_response.h
* Description : Task response struct and helper functions implementation.
*/
#include <stdlib.h>
#include "task_response.h"
/**
* {@inheritdoc}
*/
task_response task_response_cr... |
adrian-tech-enthusiast/Bot | src/tasks/task_list.h | #include "do_fetch_data.h"
#include "do_sample_data.h"
#include "do_say_hello.h"
#include "do_show_messages.h"
#include "do_exit.h" |
adrian-tech-enthusiast/Bot | src/tasks/do_exit.h | <filename>src/tasks/do_exit.h
/**
* Author : <NAME>.
* Version : 1.0.0
* Copyright : © 2021 <NAME>, All Rights Reserved.
* Title : do_exit.h
* Description : Bot Task - Do Exit.
*/
#ifndef BOT_TASK_EXIT_H
#define BOT_TASK_EXIT_H
#include "task_response.h"
/**
* Exit callback-function.
*/
task_... |
adrian-tech-enthusiast/Bot | src/tasks/do_fetch_data.h | <gh_stars>0
/**
* Author : <NAME>.
* Version : 1.0.0
* Copyright : © 2021 <NAME>, All Rights Reserved.
* Title : fetch_data.h
* Description : Bot Task - fetch data.
*/
#ifndef BOT_TASK_FETCH_DATA_H
#define BOT_TASK_FETCH_DATA_H
#include "task_response.h"
/**
* Fetch data from the server callba... |
adrian-tech-enthusiast/Bot | src/tasks/do_show_messages.c | <gh_stars>0
/**
* Author : <NAME>.
* Version : 1.0.0
* Copyright : © 2021 <NAME>, All Rights Reserved.
* Title : do_show_log_messages.c
* Description : Bot Task - Show dummy messages.
*/
#include "do_show_messages.h"
#include "../messenger/messenger.h"
/**
* {@inheritdoc}
*/
task_response do_s... |
adrian-tech-enthusiast/Bot | src/messenger/messenger.c | <reponame>adrian-tech-enthusiast/Bot
/**
* Author : <NAME>.
* Version : 1.0.0
* Copyright : © 2021 <NAME>, All Rights Reserved.
* Title : messenger.c
* Description : Messenger helper functions, sends formatted messages to stdout.
*/
#include <stdio.h>
#include "messenger.h"
/**
* {@inheritdoc}
... |
adrian-tech-enthusiast/Bot | src/bot/bot.h | /**
* Author : <NAME>.
* Version : 1.0.0
* Copyright : © 2021 <NAME>, All Rights Reserved.
* Title : bot.h
* Description : Bot function definitions.
*/
#ifndef BOT
#define BOT
/**
* Create a new bot instance.
*/
int bot_init();
#endif
|
adrian-tech-enthusiast/Bot | src/tasks/do_exit.c | /**
* Author : <NAME>.
* Version : 1.0.0
* Copyright : © 2021 <NAME>, All Rights Reserved.
* Title : do_exit.c
* Description : Bot Task - Do Exit.
*/
#include "do_show_messages.h"
#include "../messenger/messenger.h"
/**
* {@inheritdoc}
*/
task_response do_exit() {
success("_> Bye!");
r... |
adrian-tech-enthusiast/Bot | src/tasks/task_response.h | <reponame>adrian-tech-enthusiast/Bot
/**
* Author : <NAME>.
* Version : 1.0.0
* Copyright : © 2021 <NAME>, All Rights Reserved.
* Title : task_response.h
* Description : Task response struct definition and helper functions.
*/
#ifndef BOT_TASK_RESPONSE_H
#define BOT_TASK_RESPONSE_H
/**
* The ta... |
adrian-tech-enthusiast/Bot | src/tasks/task_manager.h | /**
* Author : <NAME>.
* Version : 1.0.0
* Copyright : © 2021 <NAME>, All Rights Reserved.
* Title : task_manager.h
* Description : Task manager helper functions and structs definitions.
*/
#ifndef BOT_TASK_MANAGER_H
#define BOT_TASK_MANAGER_H
#include "task_list.h"
#include "task_response.h"
/... |
adrian-tech-enthusiast/Bot | src/tasks/task_manager.c | /**
* Author : <NAME>.
* Version : 1.0.0
* Copyright : © 2021 <NAME>, All Rights Reserved.
* Title : task_manager.h
* Description : Task manager helper functions implementation.
*/
#include <stdlib.h>
#include <string.h>
#include "task_manager.h"
#include "../messenger/messenger.h"
/**
* {@inhe... |
adrian-tech-enthusiast/Bot | src/bot/bot.c | /**
* Author : <NAME>.
* Version : 1.0.0
* Copyright : © 2021 <NAME>, All Rights Reserved.
* Title : bot.c
* Description : Bot function definitions.
*/
#include "bot.h"
#include <stdlib.h>
#include <string.h>
#include "../tasks/task_manager.h"
#include "../question/choice_question.h"
/**
* {@in... |
ryandancy/cellular-automata | src/GraphicsProperties.h | <reponame>ryandancy/cellular-automata
#ifndef GAME_OF_LIFE_GRAPHICSPROPERTIES_H
#define GAME_OF_LIFE_GRAPHICSPROPERTIES_H
#include <QColor>
// A singleton to hold Qt graphics constants, but changeable.
class GraphicsProperties {
public:
static GraphicsProperties& instance();
GraphicsProperties(const GraphicsPr... |
ryandancy/cellular-automata | src/AutomatonScene.h | <reponame>ryandancy/cellular-automata<filename>src/AutomatonScene.h<gh_stars>1-10
#ifndef GAME_OF_LIFE_AUTOMATONSCENE_H
#define GAME_OF_LIFE_AUTOMATONSCENE_H
#include <QGraphicsRectItem>
#include <QGraphicsScene>
#include <QGraphicsSceneMouseEvent>
#include <QWidget>
#include "Automaton.h"
// The QGraphicsScene subc... |
ryandancy/cellular-automata | src/Topology.h | #ifndef GAME_OF_LIFE_TOPOLOGY_H
#define GAME_OF_LIFE_TOPOLOGY_H
// A Topology represents how Chunks are related to each other in space. It defines valid chunks and allows
// transformation of invalid chunk coordinates into their equivalent valid ones - i.e. which chunk a chunk with
// invalid coordinates should behave... |
ryandancy/cellular-automata | src/util.h | #ifndef GAME_OF_LIFE_UTIL_H
#define GAME_OF_LIFE_UTIL_H
#include <utility>
#include <functional>
// template hash function for std::pair for use in maps, works with all types defined in <functional>
struct pair_hash {
template<typename A, typename B>
std::size_t operator()(const std::pair<A, B>& pair) const {
... |
ryandancy/cellular-automata | src/RulesDialog.h | #ifndef GAME_OF_LIFE_RULESDIALOG_H
#define GAME_OF_LIFE_RULESDIALOG_H
#include <vector>
#include <QCheckBox>
#include <QDialog>
#include <QGridLayout>
#include <QWidget>
#include "Ruleset.h"
namespace Ui {
class RulesDialog;
}
// A dialog which allows the user to change the automaton's rules. It has two groups o... |
ryandancy/cellular-automata | src/Neighbourhood.h | <gh_stars>1-10
#ifndef GAME_OF_LIFE_NEIGHBOURHOOD_H
#define GAME_OF_LIFE_NEIGHBOURHOOD_H
#include "Side.h"
// we only have references to ChunkArray so it's safe to forward declare it without including Chunk.h
// this resolves a circular dependency chain: Neighbourhood->ChunkArray->Chunk->Neighbourhood
class ChunkArra... |
ryandancy/cellular-automata | src/Automaton.h | #ifndef GAME_OF_LIFE_AUTOMATON_H
#define GAME_OF_LIFE_AUTOMATON_H
#include <memory>
#include "Chunk.h"
#include "Ruleset.h"
#include "Neighbourhood.h"
// An Automaton encapsulates the entire cellular automaton. It owns a Topology*, a Ruleset, and
// a ChunkArray. It can advance the generation of the automaton by cal... |
ryandancy/cellular-automata | src/Ruleset.h | <reponame>ryandancy/cellular-automata
#ifndef GAME_OF_LIFE_RULESET_H
#define GAME_OF_LIFE_RULESET_H
#include "Neighbourhood.h"
// A Ruleset represents the rules of the current cellular automaton, including the neighbourhood type and whether
// a dead cell is born (becomes alive), and whether a live cell survives, wit... |
ryandancy/cellular-automata | src/ChunkGraphicsItem.h | #ifndef GAME_OF_LIFE_CHUNKGRAPHICSITEM_H
#define GAME_OF_LIFE_CHUNKGRAPHICSITEM_H
#include <QBrush>
#include <QGraphicsItem>
#include <QObject>
#include "Chunk.h"
// TODO a singleton to hold graphics preferences (colours of background, live/dead cells)
// This GraphicsItem paints a Chunk's cells.
class ChunkGraphic... |
ryandancy/cellular-automata | src/Side.h | <filename>src/Side.h<gh_stars>1-10
#ifndef GAME_OF_LIFE_SIDE_H
#define GAME_OF_LIFE_SIDE_H
// Transforms coordinates relative to bottom to those relative to any side.
// This class is like an enum; use Side::TOP, Side::BOTTOM, Side::LEFT, and Side::RIGHT
class Side {
public:
enum Value : unsigned int {
BOTTOM, ... |
ryandancy/cellular-automata | src/mainwindow.h | <reponame>ryandancy/cellular-automata<filename>src/mainwindow.h
#ifndef GAME_OF_LIFE_MAINWINDOW_H
#define GAME_OF_LIFE_MAINWINDOW_H
#include <unordered_map>
#include <utility>
#include <QActionGroup>
#include <QGraphicsItem>
#include <QMainWindow>
#include <QSlider>
#include <QTimer>
#include <QWidget>
#include "Aut... |
ryandancy/cellular-automata | src/Chunk.h | <reponame>ryandancy/cellular-automata<gh_stars>1-10
#ifndef GAME_OF_LIFE_CHUNK_H
#define GAME_OF_LIFE_CHUNK_H
#include <memory>
#include <unordered_set>
#include <unordered_map>
#include <utility>
#include <QDebug>
#include <QObject>
#include "Neighbourhood.h"
#include "Ruleset.h"
#include "Side.h"
#include "Topolog... |
ryandancy/cellular-automata | src/TopologyDialog.h | <gh_stars>1-10
#ifndef GAME_OF_LIFE_TOPOLOGYDIALOG_H
#define GAME_OF_LIFE_TOPOLOGYDIALOG_H
#include <QDialog>
#include <QWidget>
#include "Automaton.h"
#include "AutomatonScene.h"
namespace Ui {
class TopologyDialog;
}
// A dialog which can change the topology of the field.
class TopologyDialog : public QDialog {... |
ryandancy/cellular-automata | src/NeighbourhoodDialog.h | <filename>src/NeighbourhoodDialog.h
#ifndef GAME_OF_LIFE_NEIGHBOURHOODDIALOG_H
#define GAME_OF_LIFE_NEIGHBOURHOODDIALOG_H
#include <QButtonGroup>
#include <QDialog>
#include <QWidget>
#include "Automaton.h"
#include "Neighbourhood.h"
namespace Ui {
class NeighbourhoodDialog;
}
// A dialog in which the user can ch... |
poke19962008/Machine-Laerning-Projects | XOR Problem/Model 3/xor.h | /* -*- C++ -*- */
#include <iostream>
#include <array>
#include <ctime>
using namespace std;
const int tSetLen = 4;
class XOR {
private:
int testSet[tSetLen][3] = {{0, 0, 0}, {0, 1, 1}, {1, 0, 1}, {1, 1, 0}};
public:
int stepFunction(int x) {
return (x >= 0)? 1:0;
}
int nandNeuron(int x1, int x2){
... |
ismailbozkurt77/ZendeskUIKit | ZendeskUIKit/ZendeskUIKit/ZendeskUIKit.h | //
// ZendeskUIKit.h
// ZendeskUIKit
//
// Created by Ismail on 04/01/2017.
// Copyright © 2017 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for ZendeskUIKit.
FOUNDATION_EXPORT double ZendeskUIKitVersionNumber;
//! Project version string for ZendeskUIKit.
FOUNDATION_EXPORT c... |
phraemer/Celero | include/celero/Console.h | <reponame>phraemer/Celero
#ifndef H_CELERO_CONSOLE_H
#define H_CELERO_CONSOLE_H
///
/// \author <NAME>
///
/// \copyright Copyright 2015-2021 <NAME>
///
/// 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 ... |
phraemer/Celero | include/celero/UserDefinedMeasurementTemplate.h | #ifndef H_CELERO_USERDEFINEDMEASUREMENTTEMPLATE_H
#define H_CELERO_USERDEFINEDMEASUREMENTTEMPLATE_H
///
/// \author <NAME>, <NAME>
///
/// \copyright Copyright 2015-2021 <NAME>
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/... |
JuliaPackageMirrors/Gallium.jl | src/Hooking/callback.c | // clang -fPIC -c callback.c
// clang -shared -o hooking.so elfjump.o elfhook.o callback.o
void *hooking_jl_callback = 0;
void __attribute__ ((visibility ("default"))) hooking_jl_set_callback(void *fptr)
{
hooking_jl_callback = fptr;
}
void test()
{
((void(*)())hooking_jl_callback)();
}
|
walbourn/directxtktest | PrimitivesTest/Game.h | //--------------------------------------------------------------------------------------
// File: Game.h
//
// Developer unit test for DirectXTK Geometric Primitives
//
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
//
// http://go.microsoft.com/fwlink/?LinkId=248929
//-------------... |
walbourn/directxtktest | ShaderTest/Game.h | //--------------------------------------------------------------------------------------
// File: Game.h
//
// Developer unit test for DirectXTK - HLSL shader coverage
//
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
//
// http://go.microsoft.com/fwlink/?LinkId=248929
//-----------... |
walbourn/directxtktest | SimpleMathTest/SimpleMathTest.h | //-------------------------------------------------------------------------------------
// SimpleMathTest.h
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR ... |
vakuras/moleculardynamics | cpu/equi/Host.h | ///
/// Host Header
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#ifndef HOST_HEADER
#define HOST_HEADER
#include "..\..\common\Global.h"
#include "..\..\common\NeighborList.h"
#include "..\common\Device.h"
#include "..\..\common\ConfigParser.h"
#include "..\.... |
vakuras/moleculardynamics | ui/ui/PlotWindow.h | <filename>ui/ui/PlotWindow.h
///
/// Plot window controller definition.
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#pragma once
#ifndef PLOTH
#define PLOTH
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
... |
vakuras/moleculardynamics | ui/ui/AboutWindow.h | <gh_stars>0
///
/// About window definition.
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#ifndef ABOUTWIN
#define ABOUTWIN
#pragma once
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace Syst... |
vakuras/moleculardynamics | ui/NovaFX/NovaFX.h | <gh_stars>0
///
/// NovaFX GL Header
///
/// Written by <NAME>. 2010.
///
#ifndef NOVAFX_H
#define NOVAFX_H
#include <vector>
#include "NovaCamera.h"
using namespace std;
namespace NovaFX
{
class NovaFX
{
private:
HWND m_hWnd;
int m_Bits;
HDC m_hDC;
HGLRC m_hRC... |
vakuras/moleculardynamics | ui/NovaFX/NovaCamera.h | ///
/// NovaCamera Header
///
/// Written by <NAME>. 2010.
///
#ifndef NOVACAMERA_H
#define NOVACAMERA_H
#include "NovaVariables.h"
namespace NovaFX
{
namespace NovaCamera
{
class Camera
{
private:
Nfloat3 m_Position;
Nfloat3 m_ViewDirection;
Nfloat3 m_RightVector;
Nflo... |
vakuras/moleculardynamics | cpu/cpumd/Host.h | <filename>cpu/cpumd/Host.h
///
/// Host Header
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#ifndef HOST_HEADER
#define HOST_HEADER
#include "..\..\common\Global.h"
#include "..\..\common\ConfigParser.h"
#include "..\..\common\NeighborList.h"
#include "..\..\co... |
vakuras/moleculardynamics | common/Global.h | <gh_stars>0
///
/// Global Header
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#ifndef GLOBAL_HEADER
#define GLOBAL_HEADER
#include <cmath>
#include <iostream>
#include <string>
#include <windows.h>
#include <fstream>
#include <vector>
#include <iomanip>
#i... |
vakuras/moleculardynamics | ui/NovaFX/NovaVariables.h | <reponame>vakuras/moleculardynamics
///
/// NovaFX Variables Header
///
/// Written by <NAME>. 2010.
///
#ifndef NOVAVARS_H
#define NOVAVARS_H
#include <Windows.h>
#include <gl\GL.h>
#include <gl\GLU.h>
#include <cmath>
namespace NovaFX
{
struct Nfloat3
{
GLfloat x;
GLfloat y;
GLfloat z;
... |
vakuras/moleculardynamics | ui/ui/global.h | <reponame>vakuras/moleculardynamics
///
/// Global definitions.
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#ifndef GLOBALH
#define GLOBALH
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <msclr/marshal.h>
using namespa... |
vakuras/moleculardynamics | ui/ui/ResultsWindow.h | ///
/// Result window controller definition.
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#pragma once
#ifndef RESULTH
#define RESULTH
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System... |
vakuras/moleculardynamics | cpu/common/LennardJones.h | <reponame>vakuras/moleculardynamics<filename>cpu/common/LennardJones.h
///
/// CPU Device Lennard Jones Function
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
///
/// Lennard-Jones potentional
///
void lennardJones(real3 & force, real dist, real3 ij, real sig, real ... |
vakuras/moleculardynamics | cpu/equi/Statistics.h | <filename>cpu/equi/Statistics.h
#include <cmath>
#include <limits>
#include <cerrno>
double erf(double x);
double erfc(double x);
double inverfc(const double z);
double inverf(const double z);
|
vakuras/moleculardynamics | common/Getters.h | ///
/// Getter Funtions Definitions
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#ifndef GF_HEADER
#define GF_HEADER
#include "global.h"
#include "constants.h"
template <typename T>
T getMass(int id);
template <typename T>
T getRE(int ti, int tj);
template... |
vakuras/moleculardynamics | cuda/cudamd/Host.h | ///
/// Host Header
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#ifndef HOST_HEADER
#define HOST_HEADER
#include "..\..\common\Global.h"
#include "..\..\common\ConfigParser.h"
#include "..\..\common\Constants.h"
#include "..\..\common\Loader.h"
#include "..\.... |
vakuras/moleculardynamics | ui/ui/stdafx.h | <reponame>vakuras/moleculardynamics<gh_stars>0
///
/// Stdafx.h
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#pragma once
#include <windows.h>
#include "global.h"
#include "MainWindow.h"
#include "TitleBar.h"
|
vakuras/moleculardynamics | common/ConfigParser.h | <reponame>vakuras/moleculardynamics
///
/// Configuration Parser Definitions
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#ifndef CFGPARSER_H
#define CFGPARSER_H
#include <string>
#include <unordered_map>
#include <sstream>
#include <fstream>
#include <iostrea... |
vakuras/moleculardynamics | common/DebugCalculations.h | ///
/// Output Header
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#ifndef DEBUGCALCULATIONS_HEADER
#define DEBUGCALCULATIONS_HEADER
#include "results.h"
#include "Global.h"
#include "Constants.h"
#include "arvdwfc.h"
#include "getters.h"
void PerformCalcul... |
vakuras/moleculardynamics | common/arvdwfc.h | ///
/// Attractive, Repulsive, van der Waals & Cutoff Definitions
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#ifndef ARVDWFC_HEADER
#define ARVDWFC_HEADER
#include "global.h"
#include "constants.h"
template <typename T>
inline void attractive(T & va, T & dv... |
vakuras/moleculardynamics | cpu/common/Device.h | ///
/// Device Header
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#ifndef DEVICE_HEADER
#define DEVICE_HEADER
#include "..\..\common\Global.h"
#include "..\..\common\Constants.h"
#include "..\..\common\arvdwfc.h"
#include "..\..\common\getters.h"
#define __... |
vakuras/moleculardynamics | ui/ui/resource.h | <filename>ui/ui/resource.h
///
/// Resource.h
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 102
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL... |
vakuras/moleculardynamics | cuda/cudamd/NeighborList.h | <filename>cuda/cudamd/NeighborList.h
///
/// Neighbor List Header
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#ifndef NEIGHBORLIST_HEADER
#define NEIGHBORLIST_HEADER
#define H1 2971215073
#define H2 433494437
#define H3 1073807359
int * buildNeighbo... |
vakuras/moleculardynamics | common/Loader.h | ///
/// Loader Header
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#ifndef LOADER_HEADER
#define LOADER_HEADER
#include "Global.h"
#include "ConfigParser.h"
#ifdef UI
using namespace System::Windows::Forms;
#endif
void readConfiguration(string filename, c... |
vakuras/moleculardynamics | common/Constants.h | <reponame>vakuras/moleculardynamics
///
/// Constants Header
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#ifndef CONSTANTS_H
#define CONSTANTS_H
//Particles index
#define N 0
#define O 1
#define NG 2
//UI particle radii
#define radN 0.71f
#define radO 0.6... |
vakuras/moleculardynamics | cpu/common/BondOrderFuncs.h | <gh_stars>0
///
/// CPU Device Bond Order Functions
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
///
/// Bond Order 1
///
void bondOrder1(real4 * posArray, real re, real rij, int NumberOfParticles, int nlargestsize, int nlistsize, int * list, int i, int j, real3 ij... |
vakuras/moleculardynamics | ui/ui/TitleBar.h | <filename>ui/ui/TitleBar.h
///
/// Title Bar definition.
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#ifndef TITLEBAR_H
#define TITLEBAR_H
#pragma once
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
usin... |
vakuras/moleculardynamics | common/NeighborList.h | ///
/// Neighbor List Header
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#ifndef NEIGHBORLIST_HEADER
#define NEIGHBORLIST_HEADER
#include "Global.h"
#define H1 2971215073
#define H2 433494437
#define H3 1073807359
//list settings structure
struc... |
vakuras/moleculardynamics | common/Results.h | ///
/// Results Header
///
/// Molecular Dynamics Simulation on GPU
///
/// Written by <NAME>. 2009-2010.
///
#ifndef RESULTS_HEADER
#define RESULTS_HEADER
#include "Global.h"
//result structure
struct results
{
double time;
double temperature;
double e; //total energy
double ek; //kinetic en... |
omerlux/OS-Task1 | xv6-public/myprog.c | <reponame>omerlux/OS-Task1
#include "types.h"
#include "stat.h"
#include "user.h"
//passing command line arguments
int main(int argc, char *argv[])
{
printf(1, "HelloXV6\n");
exit(0);
} |
omerlux/OS-Task1 | xv6-public/tee.c | #include "types.h"
#include "stat.h"
#include "user.h"
#include "fcntl.h"
//passing command line arguments
int main(int argc, char *argv[])
{
if(argc == 2){
char buf_read[512]; // creates a buffer
if (open(argv[1], 0)>=0) // a file already exists
unlink(argv[1]); // delete t... |
omerlux/OS-Task1 | xv6-public/sh.c | <reponame>omerlux/OS-Task1<gh_stars>0
// Shell.
#include "types.h"
#include "user.h"
#include "fcntl.h"
// Parsed command representation
#define EXEC 1
#define REDIR 2
#define PIPE 3
#define LIST 4
#define BACK 5
#define MAXARGS 10
char env_path[10][100];
struct cmd {
int type;
};
struct execcmd {
int t... |
omerlux/OS-Task1 | xv6-public/getpinfo.c | #include "types.h"
#include "stat.h"
#include "user.h"
#include "fcntl.h"
//passing command line arguments
int main(int argc, char *argv[])
{
getpinfo();
exit(0);
}
|
coin3d/simage | src/simage_tiff.c | /*
* Copyright (c) <NAME> & Gas Technologies
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D... |
coin3d/simage | src/simage_rgb.c | /*
* Copyright (c) <NAME> & Gas Technologies
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D... |
coin3d/simage | src/simage13.c | <filename>src/simage13.c
/*
* Copyright (c) <NAME> & Gas Technologies
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED... |
coin3d/simage | src/resize.c | <reponame>coin3d/simage
/*
* Copyright (c) <NAME> & Gas Technologies
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED ... |
steven-michaud/SandboxMirror | mig/sm_reportServer.c | <gh_stars>10-100
/*
* IDENTIFICATION:
* stub generated Wed Sep 7 11:48:19 2016
* with a MiG generated by bootstrap_cmds-93
* OPTIONS:
* KernelUser
*/
/* Module sm_report */
#define __MIG_check__Request__sm_report_subsystem__ 1
#include <string.h>
#include <mach/ndr.h>
#include <mach/boolean.h>
#include <mach... |
steven-michaud/SandboxMirror | mig/sm_report.h | #ifndef _sm_report_user_
#define _sm_report_user_
/* Module sm_report */
#include <string.h>
#include <mach/ndr.h>
#include <mach/boolean.h>
#include <mach/kern_return.h>
#include <mach/notify.h>
#include <mach/mach_types.h>
#include <mach/message.h>
#include <mach/mig_errors.h>
#include <mach/port.h>
#if (__MigKerne... |
steven-michaud/SandboxMirror | mig/sm_reportUser.c | <filename>mig/sm_reportUser.c
/*
* IDENTIFICATION:
* stub generated Wed Sep 7 11:48:19 2016
* with a MiG generated by bootstrap_cmds-93
* OPTIONS:
* KernelUser
*/
#define __MIG_check__Reply__sm_report_subsystem__ 1
#include "sm_report.h"
#ifndef mig_internal
#define mig_internal static __inline__
#endif /* m... |
erneson/watersheds | watershed_FBC.c | <filename>watershed_FBC.c<gh_stars>1-10
// gcc -O3 -o watershed watershed.c
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
#include <string.h>
#include <stdbool.h>
struct NEIGHBORHOOD
{
int64_t NNZV; // Compressed Row "Binary" Storage (CRBS)
int64_t *IV; // Compressed Row "Binary" Storage (CRBS)
... |
oliverkurth/pmd | privsep/netmgmtrpcapi.c | /*
* Copyright © 2016-2017 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
oliverkurth/pmd | server/rolemgmt/rolemgmt_restapi.c | <reponame>oliverkurth/pmd
/*
* Copyright © 2019 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... |
oliverkurth/pmd | server/security/apisecurity.c | <filename>server/security/apisecurity.c
/*
* Copyright © 2016-2017 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICE... |
oliverkurth/pmd | server/rolemgmt/rolemgmt_rpcapi.c | /*
* Copyright © 2019 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
oliverkurth/pmd | python/utils.c | /*
* Copyright © 2016-2019 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
oliverkurth/pmd | tools/cli/pkgmgmt/pkg_main.c | <filename>tools/cli/pkgmgmt/pkg_main.c
/*
* Copyright © 2016-2019 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICEN... |
oliverkurth/pmd | idl/fwmgmtrpctypes.h | <reponame>oliverkurth/pmd<filename>idl/fwmgmtrpctypes.h
/*
* Copyright © 2016-2017 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.o... |
oliverkurth/pmd | tools/cli/pkgmgmt/prototypes.h | <gh_stars>1-10
/*
* Copyright © 2016-2017 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... |
oliverkurth/pmd | idl/rpmostreerpctypes.h | /*
* Copyright © 2019 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
oliverkurth/pmd | client/pkgmgmt_api.c | <gh_stars>0
/*
* Copyright © 2016-2019 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
oliverkurth/pmd | tools/cli/netmgmt/net_main.c | <filename>tools/cli/netmgmt/net_main.c
/*
* Copyright © 2016-2017 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICEN... |
oliverkurth/pmd | python/netmgmt_py.c | <filename>python/netmgmt_py.c
/*
* Copyright © 2016-2017 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*... |
oliverkurth/pmd | python/rolemgmt_py.c | <reponame>oliverkurth/pmd
/*
* Copyright © 2019 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... |
oliverkurth/pmd | common/strings.c | /*
* Copyright © 2016-2019 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
oliverkurth/pmd | idl/rolemgmtrpctypes.h | /*
* Copyright © 2016-2019 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
oliverkurth/pmd | include/pmd_netmgr.h | <reponame>oliverkurth/pmd
/*
* Copyright © 2016-2017 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* ... |
oliverkurth/pmd | server/rolemgmt/rolemgmt_api.c | /*
* Copyright © 2019 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
oliverkurth/pmd | client/rpc.c | /*
* Copyright © 2016-2019 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
oliverkurth/pmd | include/pmd_pkgmgmt.h | /*
* Copyright © 2016-2017 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
oliverkurth/pmd | server/demo/demorestapi.c | <gh_stars>1-10
/*
* Copyright © 2016-2017 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... |
oliverkurth/pmd | python/pkgmgmt_package_py.c | <reponame>oliverkurth/pmd
/*
* Copyright © 2016-2017 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* ... |
oliverkurth/pmd | idl/usermgmtrpctypes.h | /*
* Copyright © 2016-2017 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
oliverkurth/pmd | server/restutils/prototypes.h | /*
* Copyright © 2016-2017 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
oliverkurth/pmd | server/pkgmgmtrestapi.c | <reponame>oliverkurth/pmd<gh_stars>1-10
/*
* Copyright © 2016-2017 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICE... |
oliverkurth/pmd | common/utils.c | <reponame>oliverkurth/pmd
/*
* Copyright © 2016-2019 VMware, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.