text stringlengths 5 1.04M |
|---|
/** Copyright (C) Nattan, Inc - All Rights Reserved
** Unauthorized copying of this file, via any medium is strictly prohibited
** Proprietary and confidential
** Written by Kam Lu <yingshulu@gmail.com>, July 2019
**/
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <std... |
// Assignment 4 Program 1
// Shashi Kant | 2021PGCACA050
#include <iostream>
#include <climits>
#define MAXSIZE 6
using namespace std;
class CircularQueue
{
private:
int q[MAXSIZE];
int front;
int rear;
int maxSize;
public:
CircularQueue()
{
front = -1;
rear = -1;
ma... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The SocialTraders developers
// Distributed under the MIT/X11 software license, see the accompanying
// file C... |
class Solution {
public:
/**
* @param A: Given an integer array
* @return: void
*/
void heapify(vector<int> &A) {
// write your code here
int n = A.size();
if (n == 0)
{
return;
}
for (int i = n / 2 - 1; i >= 0; --i)
{
... |
/*
* MediaStream.cpp
*/
#include <cstdio>
#include <map>
#include <algorithm>
#include <string>
#include <cstring>
#include <vector>
#include <cstdlib>
#include <ctime>
#include "./MediaStream.h"
#include "./SdpInfo.h"
#include"./WebRtcConnection.h"
#include "rtp/RtpHeaders.h"
#include "rtp/RtpVP8Parser.h"
#includ... |
#include <curses.h>
#include <chrono>
#include <string>
#include <thread>
#include <vector>
#include "format.h"
#include "ncurses_display.h"
#include "system.h"
using std::string;
using std::to_string;
// 50 bars uniformly displayed from 0 - 100 %
// 2% is one bar(|)
std::string NCursesDisplay::Progre... |
/* Author: Manuel Bonilla
This code implements a simulator for a robot UR10. However it is parameterized to be used in all mUR models
*/
#include "hw_mb/robot_definition.h"
float curr_time;
float desired_time_for_traj;
hw_mb::JointPoseRef des_refs;
std::vector<float> position;
void cbJointStates(const sensor_msgs... |
// Copyright (c) 2019-2020, NVIDIA CORPORATION. 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 ... |
/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All con... |
/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm/gm.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkImage.h"
#include "include/... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
#include "fstream"
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignor... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
/*
* Copyright (c) 2017-2018, The Alloy Developers.
*
* This file is part of Alloy.
*
* This file is subject to the terms and conditions defined in the
* file 'LICENSE', which is part of this source code package.
*/
#include "TransactionUtils.h"
#include <unordered_set>
#include "crypto/crypto.h"
#include "Cr... |
/*
-------------------------------------------------------------------------
This source file is a part of OGRE-Next
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person o... |
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <boost/statechart/custom_reaction.hpp>
#include <boost/statechart/event.hpp>
#include <boost/statechart/simple_state.hpp>
#include <boost/statechart/state.hpp>
#include <boost/statechart/state_machine.hpp>
#include <cmn/agent_cmn.h>
#incl... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <memory>
#include <vector>
#include <algorithm>
#include <transformations_visibility.hpp>
#include "ngraph/coordinate_diff.hpp"
#include "ngraph/op/op.hpp"
namespace ngraph {
namespace op {
class TRANSFORM... |
#include <Chart.hpp>
#include <Event.hpp>
Chart::Chart() :
packages(),
keysounds()
{
}
void Chart::AddPackage(Package pkg)
{
packages.push_back(pkg);
}
void Chart::AddKeysound(std::string name)
{
keysounds[name] = keysounds.size() + 1;
}
std::vector<Package> Chart::GetPackages()
{
return package... |
//
// MSLocalSocket.hpp
// MSSocket
//
// Created by Mihail Shevchuk on 15.01.18.
// Copyright © 2018 Mihail Shevchuk. All rights reserved.
//
#ifndef MSLocalSocket_hpp
#define MSLocalSocket_hpp
#include "MSSocket.hpp"
class MSLocalSocket: public MSSocket {
public:
MSLocalSocket(pChar serverPath, uint32_t si... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
/* Copyright (c) 2018 PaddlePaddle Authors. 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 law or... |
#include "LevelManipulator.h"
#include "../Random.h"
const LevelTiles &LevelManipulator::getLevelTiles() const {
return levelTiles;
}
void LevelManipulator::setMinimumWallHeight() {
for (int y = 0; y < levelTiles.height() - 1; y++) {
for (int x = 1; x < levelTiles.width() - 1; x++) {
setV... |
#include <OmegaWTK.h>
using namespace OmegaWTK;
static OmegaWTK::Core::SharedPtr<Composition::Brush> brush;
static SharedHandle<Composition::Font> font;
class RectWidget : public Widget {
public:
RectWidget(const Core::Rect &rect,Widget *parent):Widget(rect,parent){
};
void render() override {... |
// Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... |
/**
* Copyright (c) 2013, Ford Motor Company
* 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 ... |
#include <iostream>
#include <vector>
#include <algorithm>
#include "Utility.h"
using namespace std;
vector<string> n_gram::getArray() const
{
return words_;
}
ostream& operator<<(ostream& out, const n_gram& ng){
out << "(";
for (int i=0; i<ng.n_-1; i++)
o... |
/* Copyright 2001, 2019 IBM Corporation
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
* following d... |
#include <chrono>
#include "utils.h"
//#define __ANDROID__
#ifdef __ANDROID__
#include "net.h"
#if NCNN_BENCHMARK
#include "benchmark.h"
#endif // NCNN_BENCHMARK
#if NCNN_VULKAN
#include "command.h"
#endif // NCNN_VULKAN
#include "datareader.h"
#endif
#ifdef WIN32
#include <io.h>
#endif
std::string get_timestamp(... |
#include <szen/System/SceneManager.hpp>
#include <szen/System/AssetManager.hpp>
#include <szen/System/Window.hpp>
using namespace sz;
namespace
{
ScenePtr m_currentScene;
Core* p_core;
ScenePtr m_overlayScene;
bool m_toggle = false;
}
////////////////////////////////////////////////////
void SceneManager::i... |
// This file has been generated by Py++.
#ifndef _ref_ptr_less__osgAnimation_scope_Channel__greater___value_traits_pypp_hpp_hpp__pyplusplus_wrapper
#define _ref_ptr_less__osgAnimation_scope_Channel__greater___value_traits_pypp_hpp_hpp__pyplusplus_wrapper
namespace boost { namespace python { namespace indexing {
temp... |
//
// Copyright 2019 Google LLC
//
// 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 law or agreed to ... |
/******************************************************************************
* Copyright (c) 2018(-2021) STMicroelectronics.
* All rights reserved.
*
* This file is part of the TouchGFX 4.17.0 distribution.
*
* This software is licensed under terms that can be found in the LICENSE file in
* the root directory of thi... |
#pragma once
#include <pykebc/object.hpp>
namespace pykebc::types
{
class Int : public Object
{
public:
explicit Int(long value) noexcept;
long get_value() const noexcept;
void set_value(long value) noexcept;
static Object* get_type_object();
// Holy shit! I've never even thought Python had s... |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2015 Pivotal Inc.
//
// @filename:
// CXformGbAggWithMDQA2Join.cpp
//
// @doc:
// Transform a GbAgg with multiple distinct qualified aggregates (MDQAs)
// to a join tree with single DQA leaves
//-----... |
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
//------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI Limited
//
// 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
//
// ... |
#include "celero/Celero.h"
#include <iostream>
constexpr int number_of_samples = 10;
constexpr int number_of_operations = 1;
#ifdef __APPLE__
const std::string find_cmd = "gfind ";
#else
const std::string find_cmd = "find ";
#endif
const std::string fast_find("../commands/fast-find ");
const std::string tmp_file = "... |
#include "CGBL_dmesh.h"
#include "Cmdline.h"
#include "janelia.h"
#include "File.h"
#include "CAffineLens.h"
#include "Debug.h"
/* --------------------------------------------------------------- */
/* Constants ----------------------------------------------------- */
/* --------------------------------------------... |
#include "../map_editor_controller.h"
#include <range/v3/to_container.hpp>
#include <range/v3/view/concat.hpp>
namespace lmeditor
{
map_editor_controller::command delete_selected_command{
[](map_editor_controller::command_args const &args) {
if (args.controller.have_selection())
{
auto selected... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
#include "extern/beatsaber-hook/s... |
#include <cstdio>
#include <cuda_runtime.h>
int main() {
int deviceCount, device;
int gpuDeviceCount = 0;
struct cudaDeviceProp properties;
cudaError_t cudaResultCode = cudaGetDeviceCount(&deviceCount);
if (cudaResultCode != cudaSuccess)
deviceCount = 0;
/* machines with no GPUs can sti... |
/* file: kmeans_dense_lloyd_batch_fpt_dispatcher_v1.cpp */
/*******************************************************************************
* Copyright 2014-2020 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... |
class Solution
{
public:
bool hasGroupsSizeX(vector<int> &deck)
{
if (deck.size() < 2)
{
return false;
}
sort(deck.begin(), deck.end());
int x = -1, cnt = 1;
for (int i = 0; i < deck.size() - 1; i++)
{
if (deck[i] == deck[i + 1])
... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <pup.h>
#include "Domain/BoundaryConditions/BoundaryCondition.hpp"
namespace RelativisticEuler::Valencia {
/// \brief Boundary conditions for the relativistic Euler system
namespace BoundaryConditions {
/// \brief The base c... |
/*
* Copyright (C) 2014 The Android Open Source Project
*
* 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 app... |
#include <limits.h> /* PATH_MAX */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
int main(void) {
char buf[PATH_MAX]; /* PATH_MAX incudes the \0 so +1 is not required */
char *res = realpath("text.txt", buf);
if (res) { // or: if (res != NULL)123
printf("This source... |
#include "obfuscation.h"
#include "masternodeman.h"
#include "masternode.h"
#include "activemasternode.h"
/*
Global
*/
int RequestedMasterNodeList = 0;
void ThreadBitPool()
{
if(fMNLiteMode) return; //disable all Darksend/Masternode related functionality
// Make this thread recognisable as the wallet flushi... |
/*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: java.sql.ParameterMetaData
================================================================================*/
#ifndef J2CPP_INCLUDE_IMPLE... |
/*******************************************************************************
* Copyright 2020-2021 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.apa... |
// $Id: Codecs.cpp 91813 2010-09-17 07:52:52Z johnnyw $
#include "ace/Codecs.h"
#include "ace/Log_Msg.h"
#include "ace/OS_Memory.h"
#include "ace/OS_NS_ctype.h"
namespace
{
// Just in case ...
#undef alphabet
#undef pad
#undef max_columns
// Symbols which form the Base64 alphabet (Defined as per RFC 2045)
ACE_... |
/**
BSD-3-Clause
Copyright 2019 Alliance for Sustainable Energy, LLC
Redistribution and use in source and binary forms, with or without modification, are permitted provided
that the following conditions are met :
1. Redistributions of source code must retain the above copyright notice, this list of conditions
and the f... |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Serial peripheral interface/Inter-IC sound
namespace Spi1Cr1{ ///<control register 1
using Addr = Register::Address<0x40013000,0xffff0000,0x00000000,unsigned>;
///Bidirectional data mode enable
constexpr ... |
/**
** \file Ipv4Address.cpp
** \date 2006-09-21
** \author grymse@alhem.net
**/
/*
Copyright (C) 2007-2011 Anders Hedstrom
This library is made available under the terms of the GNU GPL, with
the additional exemption that compiling, linking, and/or using OpenSSL
is allowed.
If you would like to use this library... |
#include "CitoyenBase.hpp"
CitoyenBase::CitoyenBase() : Citoyen(50, 0.15f){
setScale(2,2);
}
|
#include <ncurses.h>
int main(void) {
initscr();
int c, y, x, cmax;
getmaxyx(stdscr,y,x);
cmax = (x * y) / 5;
for(c = 0; c < cmax; c++)
addstr("blah ");
refresh();
getch();
clear();
refresh();
getch();
endwin();
return 0;
}
|
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
int di[] = { 1, 0, -1, 0 };
int dj[] = { 0, -1, 0, 1 };
bool done[50][50];
class MountainWalk {
public:
int cellsVisited(vector... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2007,2008, 2009 INRIA, UDcast
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This pro... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
# include "Flat.h"
Flat::Flat()
: Material(){
}
Flat::Flat(const RGBColor& c)
: Material(c){
}
const RGBCo... |
#include "../content/Context.hpp"
#include "../view/View.hpp"
#include "./Toast_Callback.hpp"
#include "../../JString.hpp"
#include "./Toast.hpp"
namespace android::widget
{
// Fields
jint Toast::LENGTH_LONG()
{
return getStaticField<jint>(
"android.widget.Toast",
"LENGTH_LONG"
);
}
jint Toast::LENGTH_S... |
// Copyright (c) 2018 The PIVX developers
// Copyright (c) 2018-2019 The Zenon developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "invalid.h"
#include "invalid_outpoints.json.h"
#include "invalid_serials.json.h"... |
// Copyright 2010-2016, Google Inc.
// 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 condit... |
#include "force.h"
int main() {
Force f;
return 0;
}
|
#include "utility.h"
#include <cstring>
#include <sstream>
#include <QRgb>
#include <QFileInfo>
#include <cmath>
namespace utils {
QString getFileName(const QString& filepath)
{
QFileInfo fileInfo(filepath);
return fileInfo.baseName();
}
QString replaceExt(const QString& filepath, const QString& newExt)
{... |
#pragma once
#include "../../JObject.hpp"
class JByteArray;
namespace android::content
{
class Context;
}
namespace android::graphics
{
class Bitmap;
}
namespace android::media
{
class MediaDataSource;
}
namespace android::media
{
class MediaMetadataRetriever_BitmapParams;
}
namespace android::net
{
class Uri;
}... |
/*
* Copyright 2014-present IVK JSC. 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 appl... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/signin/about_signin_internals.h"
#include "base/debug/trace_event.h"
#include "base/hash.h"
#include "base/i18n/time_formatt... |
/**********************************************************************
Audacity: A Digital Audio Editor
ExportMP3.cpp
Joshua Haberman
This just acts as an interface to LAME. A Lame dynamic library must
be present
The difficulty in our approach is that we are attempting to use LAME
in a way it was no... |
#include "editor_ui_factory.h"
#include "halley/core/resources/resources.h"
#include <halley/file_formats/config_file.h>
#include "scroll_background.h"
#include "select_asset_widget.h"
#include "src/assets/animation_editor.h"
#include "src/assets/asset_editor_window.h"
#include "src/assets/metadata_editor.h"
#include "... |
// Benchmark for integer sorting speed across parallel threads.
//
// Copyright Steven Ross 2014
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/sort fo... |
class Solution {
public:
int fib(int n) {
//声明n+1+1大小的vector(第一个+1是要存储0至n共n+1个数据;第二个+1是考虑n==0的情况,保证v[1]不越界)
vector<int> v(n + 1 + 1, 0);
v[1] = 1;
for(int i = 2; i <= n; i++)
v[i] = (v[i - 1] + v[i - 2]) % 1000000007;//注意别忘记取余
return v[n];//直接返回最后一个数,即最终结果
}
... |
// MIT License
//
// Copyright (c) 2020 Mechatronics and Haptic Interfaces Lab - Rice University
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without l... |
#include "R3D/Water/ShallowWaterEngine/ShallowWaterEngine.h"
namespace r3
{
} |
// (C) Copyright Gennadiy Rozental 2001.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// See http://www.boost.org/libs/test for the library home page.
//
// File : $RCSfile$
//
// Version : ... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
/* /////////////////////////////////////////////////////////////////////////
* File: src/util/be.parse.cpp
*
* Purpose: Utility functions for use in Pantheios back-ends.
*
* Created: 19th August 2007
* Updated: 17th December 2016
*
* Home: http://www.pantheios.org/
*
* Copyright (c) ... |
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <cstring>
#include <iomanip>
#include <climits>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <stack>
#include <functional>
#include <iterator>
#define SIZE 1005
using namespace std;
int d... |
#include <deque>
#include <vector>
#include <algorithm>
#include <assert.h>
#include "Entry.h"
std::vector<bool> map;
std::vector<int> visited;
std::vector<xyLoc> succ;
int width, height;
void GetSuccessors(xyLoc s, std::vector<xyLoc> &neighbors);
int GetIndex(xyLoc s);
void ExtractPath(xyLoc end, std::vector<xyLoc> ... |
/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*/
#include <cstdint>
#include <cstring>
#include <iostream>
#include <stdexcept>
#include <adios2.h>
#include <gtest/gtest.h>
#include "../SmallTestData.h"
std::string engineName; // comes f... |
//
// Integer number functions.
//
// Copyright (C) 2001-2007 Peter Johnson
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this... |
#include <okui/applications/Native.h>
#include <okui/applications/SDL.h>
#include <okui/StateMachine.h>
class Application : public okui::applications::Native<okui::applications::SDL> {
public:
virtual std::string name() const override { return "StateMachine Example"; }
virtual std::string organization() const ... |
#include "Renderer.hpp"
#include "Singleton.hpp"
#include "GlobalShaderParams.hpp"
#include "Config.h"
#include "Scene.hpp"
#include "Model.hpp"
#include "Material.hpp"
#include "Transform.hpp"
#include "Mesh.hpp"
#include "CGL.h"
namespace CpuRasterizer
{
Renderer::Renderer() : gizmos(true)
{}
Renderer::Renderer(... |
#include "pch.h"
#include "sybil.h"
#include "content/d2dmisc.h"
#include "internet.h"
#include "httputil.h"
using namespace V4;
namespace sybil {
DLLEXPORT bool WINAPI CreateTextFromat(IDWriteFactory* wfac, LPCWSTR fontname, float height, int weight, IDWriteTextFormat** tf )
{
auto hr =
wfac->CreateTextForma... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chain.h>
#include <clientversion.h>
#include <core_io.h>
#include <crypto/ri... |
//////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the ... |
/**
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you ... |
/* vi:set ts=8 sts=4 sw=4 noet:
*
* VIM - Vi IMproved by Bram Moolenaar
*
* Do ":help uganda" in Vim to read copying and usage conditions.
* Do ":help credits" in Vim to see a list of people who contributed.
*/
#if defined(FEAT_OLE) && defined(FEAT_GUI_MSWIN)
/*
* OLE server implementation.
*
* See os_mswin... |
//===- LoopExtractor.cpp - Extract each loop into a new function ----------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/**
* @file subscribe.hpp
* @author Jichan (development@jc-lab.net / http://ablog.jc-lab.net/ )
* @date 2019/07/08
* @copyright Copyright (C) 2019 jichan.\n
* This software may be modified and distributed under the terms
* of the Apache License 2.0. See the LICENSE file for details.
*/
#pr... |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Analog to digital converter
namespace Adc1Sr{ ///<status register
using Addr = Register::Address<0x40012400,0xffffffe0,0x00000000,std::uint32_t>;
///Regular channel start flag
constexpr Register::FieldLocation<Addr,Registe... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkVolumeMapperNode.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softw... |
#include <cstdio>
#include <cstdlib>
using namespace std;
struct rec
{
int sum, inc;
};
rec tree[1 << 21];
int m, n, i;
int u, v, w;
bool finish;
inline void read(int &x)
{
x = 0;
char ch = getchar();
while (ch < '0' || ch > '9') ch = getchar();
while (ch <= '9' && ch >= '0') x = x * 10 + ch - '0', ch = getchar... |
#ifndef SPHERE_HPP
#define SPHERE_HPP
// Generate a sphere with a precision level of n
// The total number of triangles is 20*pow(4, n)
struct SphereVertex {
}
class Sphere {
public:
Sphere();
virtual ~Sphere();
// set precision level
void setPrecision(n);
// increase precision by one level... |
/**
* @file scrnmng_dd.cpp
* @brief Screen Manager (DirectDraw2)
*
* @author $Author: yui (modified by SimK)$
* @date $Date: 2011/03/07 09:54:11 $
*/
#include <compiler.h>
#include <ddraw.h>
#ifndef __GNUC__
#include <winnls32.h>
#endif
#include "resource.h"
#include <np2.h>
#include <np2mt.h>
#i... |
/////////////////////////////////////////////////////////////////////////////
// DosEditListDialog.cpp
//
// Copyright (c) 1992-2020, Robert McNeel & Associates. All rights reserved.
// DOSLib is a trademark of Robert McNeel & Associates.
//
// THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
// A... |
// -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2021, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2021, Knut Reinert & MPI für molekulare Genetik
// Copyright (c) 2020-2021, deCODE Genetics
// This file may be used, modifie... |
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QApplication>
#include "bitcoingui.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#... |
#ifndef MATRIX_MM_HH_
#define MATRIX_MM_HH_
#include <cstdlib>
#include <cassert>
#include "deepgreen/matrix.hh"
namespace deepgreen {
/**
\brief Naive matrix multiplication (A_mk * B_kn = C_mn)
*/
template<typename T>
auto naive_mm(matrix<T> const& a, matrix<T> const& b) -> matrix<T> {
size_t const m = a.rows(... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/browser_sync/profile_sync_components_factory_impl.h"
#include <utility>
#include "base/debug/dump_without_crashing.h"
#include ... |
#include <limits>
#include "Conversion.hpp"
#include "Depth.hpp"
#include "Serialize.hpp"
using namespace std;
// Depth 1 is -50 feet (under ground, positive depth).
// Depth -1 is 50 feet (above ground, negative depth).
int Depth::DEPTH_MULTIPLIER = -50;
const string Depth::DEPTH_INFINITE = "inf";
Depth::Depth()
: ... |
// Copyright (c) 2012-2013 The Bitcoin Core developers
// Copyright (c) 2017 The SOMBE developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "pubkey.h"
#include "key.h"
#include "script/script.h"
#include "scri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.