repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
fffnerwork/FFF_Protocol_Core | src/structs/amountf.cpp | <reponame>fffnerwork/FFF_Protocol_Core<filename>src/structs/amountf.cpp
// Copyright (c) www.fff.network
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "structs/amount.h"
#include "utils/tinyformat.h"
CFeeRate::CFeeRate(const CAmount& nFeePaid, size_t nSize)
{
if (nSize > 0)
... |
fffnerwork/FFF_Protocol_Core | src/wallet/walletcoinsf.cpp | <reponame>fffnerwork/FFF_Protocol_Core
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2014-2016 The FFF Core developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "wal... |
fffnerwork/FFF_Protocol_Core | core/main_test.cpp | <reponame>fffnerwork/FFF_Protocol_Core<gh_stars>10-100
一种点对点超媒体协议,使网络更快、更安全、更开放。
###What is FFF?
FFF is a decentralized blockchain based on IPFS/RIPPLE, which integrates lua virtual machine-based smart contracts. It is also a software platform designed to help coordinate voluntary free market operations amongst a ... |
fffnerwork/FFF_Protocol_Core | src/wallet/dbflatfff.cpp | // Copyright (c) 2014-2016 The FFF Core developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "wallet/dbflat.h"
#include <boost/filesystem.hpp>
#include <boost/thread.hpp... |
fffnerwork/FFF_Protocol_Core | src/v8/callbacks_win.cpp | <gh_stars>10-100
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "v8/callbacks.h"
#include "v8/v8engine.h"
#include "v8/v8utils.h"
#include "v8/v8ubjson.h"
#include "v8/v8blob.h"
#include <cassert>
namespace mc_v8
{
/**
* Call an RPC funct... |
fffnerwork/FFF_Protocol_Core | src/v8_win/v8_win.cpp | <filename>src/v8_win/v8_win.cpp
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "v8_win/v8_win.h"
#include "v8_win/v8blob.h"
#include "v8_win/v8engine.h"
#include "v8_win/v8filter.h"
#include "v8_win/v8utils.h"
using namespace mc_v8;
const... |
fffnerwork/FFF_Protocol_Core | src/rpc/rpcpermissionsf.cpp | // Copyright (c) 2010 <NAME>
// Copyright (c) 2014-2016 The FFF Core developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "rpc/rpcwallet.h"
#include "miner/miner.h"
st... |
fffnerwork/FFF_Protocol_Core | src/v8_win/v8utils.cpp | <filename>src/v8_win/v8utils.cpp
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "v8_win/v8utils.h"
#include "spdlog/sinks/stdout_color_sinks.h"
#include "spdlog/sinks/basic_file_sink.h"
namespace mc_v8
{
void CreateLogger()
{
auto cons... |
fffnerwork/FFF_Protocol_Core | src/rpc/rpclist-cold.cpp | // Copyright (c) 2010 <NAME>
// Copyright (c) 2014-2016 The FFF Core developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#if defined(HAVE_CONFIG_H)
#include "config/FFF-config.h"... |
fffnerwork/FFF_Protocol_Core | src/community/licensef.cpp | // Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "community/license.h"
void CLicenseRequest::Zero()
{
m_Data.clear();
}
bool CLicenseRequest::IsZero()
{
return (m_Data.size() == 0);
}
void CLicenseRequest::SetData(mc_Script *script... |
fffnerwork/FFF_Protocol_Core | src/custom/customf.cpp | <filename>src/custom/customf.cpp
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "custom/custom.h"
using namespace std;
int custom_version_info(int version)
{
return 0;
}
void custom_set_runtime_defaults(int exe_type)
{
}
|
fffnerwork/FFF_Protocol_Core | src/version/version.cpp | <gh_stars>10-100
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "FFF_Core/FFF_Core.h"
#include "version/version.h"
#include "custom/custom.h"
int mc_State::VersionInfo(int version)
{
int custom_version=custom_version_info(version);
... |
fffnerwork/FFF_Protocol_Core | src/filters/filtercallback.cpp | // Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "filters/filtercallback.h"
#include "rpc/rpcserver.h"
#include "utils/util.h"
#include "json/json_spirit_ubjson.h"
#include "json/json_spirit_writer.h"
const int MAX_DEPTH = 100;
#define CALLB... |
fffnerwork/FFF_Protocol_Core | src/rpc/rpcchunksf.cpp | // Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "core/init.h"
#include "wallet/chunkcollector.h"
#include "rpc/rpcutils.h"
#include "wallet/wallettxs.h"
Value getchunkqueueinfo(const Array& params, bool fHelp)
{
Object result;
mc_C... |
fffnerwork/FFF_Protocol_Core | src/v8/v8blobfff.cpp | <filename>src/v8/v8blobfff.cpp
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "v8blob.h"
#include <cstring>
namespace mc_v8
{
BlobPtr Blob::Instance(std::string name)
{
auto it = m_instances.find(name);
if (it == m_instances.end())... |
fffnerwork/FFF_Protocol_Core | src/rpc/rpcfilters.cpp | <gh_stars>10-100
// Copyright (c) 2010 <NAME>
// Copyright (c) 2014-2016 The FFF Core developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "rpc/rpcwallet.h"
#include "fi... |
fffnerwork/FFF_Protocol_Core | src/v8/v8enginef.cpp | <filename>src/v8/v8enginef.cpp<gh_stars>10-100
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "v8/v8engine.h"
#include "utils/define.h"
#include "utils/util.h"
#include "v8/v8filter.h"
#include "v8/v8utils.h"
#include <libplatform/libplatfo... |
fffnerwork/FFF_Protocol_Core | src/rpc/rpcexchange.cpp | // Copyright (c) 2014-2016 The FFF Core developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "rpc/rpcwallet.h"
#include "script/sign.h"
bool AcceptExchange(const CTrans... |
fffnerwork/FFF_Protocol_Core | src/multichain/fffcored-cold.cpp | // Copyright (c) 2014-2016 The FFF Core developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "version/clientversion.h"
#include "rpc/rpcserver.h"
#include "core/init.h"
#... |
fffnerwork/FFF_Protocol_Core | src/rpc/rpccache.cpp | <gh_stars>10-100
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "rpc/rpcutils.h"
Value createbinarycache(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 0)
throw runtime_error("Help message not found\n");
... |
fffnerwork/FFF_Protocol_Core | src/rpc/rpcmiscf.cpp | <reponame>fffnerwork/FFF_Protocol_Core
// Copyright (c) 2010 <NAME>
// Copyright (c) 2014-2016 The FFF Core developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "structs/... |
fffnerwork/FFF_Protocol_Core | src/rpc/rpcwalletf.cpp | <gh_stars>10-100
// Copyright (c) 2010 <NAME>
// Copyright (c) 2014-2016 The FFF Core developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "structs/amount.h"
#include "st... |
fffnerwork/FFF_Protocol_Core | src/v8/v8filter.cpp | // Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "v8/v8filter.h"
#include "chainparams/state.h"
//#include "utils/define.h"
#include "utils/tinyformat.h"
#include "utils/util.h"
#include "v8/callbacks.h"
#include "v8/v8engine.h"
#include "v8/... |
fffnerwork/FFF_Protocol_Core | src/rpc/rpcminingf.cpp | <reponame>fffnerwork/FFF_Protocol_Core
// Copyright (c) 2010 <NAME>
// Copyright (c) 2014-2016 The FFF Core developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "structs/... |
fffnerwork/FFF_Protocol_Core | src/utils/utility.cpp | <filename>src/utils/utility.cpp
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "FFF_Core/FFF_Core.h"
#ifndef WIN32
#include <termios.h>
#include <sys/ioctl.h>
#include <ctype.h>
#endif
#define MC_DCT_BUF_ALLOC_ITEMS 256
#define MC... |
fffnerwork/FFF_Protocol_Core | src/rpc/rpcupgrades.cpp | <gh_stars>10-100
// Copyright (c) 2010 <NAME>
// Copyright (c) 2014-2016 The FFF Core developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "rpc/rpcwallet.h"
bool AddPara... |
fffnerwork/FFF_Protocol_Core | src/wallet/wallettxdbf.cpp | <gh_stars>10-100
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "FFF_Core/FFF_Core.h"
#include "wallet/wallettxdb.h"
#include "community/community.h"
#define MC_TDB_MAX_TXS_FILE_SIZE 0x8000000 // Maxima... |
fffnerwork/FFF_Protocol_Core | src/rpc/rpcrawdata.cpp | // Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2014-2016 The FFF Core developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "rpc/rpcutils.h"
#include "filters/FFF_Core... |
fffnerwork/FFF_Protocol_Core | src/utils/utilparsef.cpp | // Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "utils/utilparse.h"
#include "version/clientversion.h"
using namespace std;
const unsigned char* GetAddressIDPtr(const CTxDestination& address)
{
const CKeyID *lpKeyID=boost::get<CKeyID>... |
fffnerwork/FFF_Protocol_Core | src/filters/watchdog.cpp | // Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "watchdog.h"
#include "core/init.h"
//#include "protocol/filter.h"
#include "utils/define.h"
#include "utils/util.h"
void WatchdogState::Set(WatchdogState::State state)
{
if (m_state != st... |
fffnerwork/FFF_Protocol_Core | src/v8_win/v8filterfff.cpp | <gh_stars>10-100
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "v8_win/v8filter.h"
#include "v8_win/callbacks.h"
#include "v8_win/v8engine.h"
#include "v8_win/v8utils.h"
namespace mc_v8
{
// clang-format off
static std::string jsFixture =... |
fffnerwork/FFF_Protocol_Core | src/protocol/fffcoretx.cpp | <gh_stars>10-100
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2016 The FFF developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "core/main.h"
#include "utils/u... |
fffnerwork/FFF_Protocol_Core | src/rpc/rpcwalletutilsf.cpp | <gh_stars>10-100
// Copyright (c) 2010 <NAME>
// Copyright (c) 2014-2016 The FFF Core developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "rpc/rpcwallet.h"
int VerifyNe... |
fffnerwork/FFF_Protocol_Core | src/v8/v8ubjson.cpp | // Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "v8/v8ubjson.h"
#include "utils/define.h"
#include "v8/v8blob.h"
#include "v8/v8utils.h"
#include <cstring>
const int MAX_FORMATTED_DATA_DEPTH = 100;
extern void _v8_internal_Print_Object(void... |
fffnerwork/FFF_Protocol_Core | src/rpc/rpclibrariesfff.cpp | // Copyright (c) 2010 <NAME>
// Copyright (c) 2014-2016 The FFF Core developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "rpc/rpcwallet.h"
#include "filters/filter.h"
... |
fffnerwork/FFF_Protocol_Core | src/filters/filtercallback_coldfff.cpp | <reponame>fffnerwork/FFF_Protocol_Core<gh_stars>10-100
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "filters/filtercallback.h"
#ifdef WIN32
void FilterCallback::UbjCallback(const char *, Blob_t*, Blob_t*)
{
}
#else
void FilterCallback::J... |
fffnerwork/FFF_Protocol_Core | src/filters/fffcorefilter.cpp | // Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "filters/FFF_Corefilter.h"
#include "filters/filter.h"
using namespace std;
int mc_FFF_CoreFilterParams::Zero()
{
m_MaxShownData=-1;
m_Compatibility=MC_VCM_NONE;
return MC_ERR_NOE... |
fffnerwork/FFF_Protocol_Core | src/chainparams/chainparamsbase.cpp | // Copyright (c) 2010 <NAME>
// Copyright (c) 2009-2014 The FFF developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "chainparams/chainparamsbase.h"
#include "utils/util... |
fffnerwork/FFF_Protocol_Core | src/entities/assetf.cpp | // Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "FFF_Core/FFF_Core.h"
#define MC_AST_ASSET_REF_TYPE_OFFSET 32
#define MC_AST_ASSET_REF_TYPE_SIZE 4
#define MC_AST_ASSET_SCRIPT_TYPE_OFFSET 44
#define MC_AST_ASSET_SCRIPT_T... |
fffnerwork/FFF_Protocol_Core | src/rpc/rpcfeedsf.cpp | // Copyright (c) 2010 <NAME>
// Copyright (c) 2014-2016 The FFF Core developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "rpc/rpcserver.h"
#include "json/json_spirit_ub... |
fffnerwork/FFF_Protocol_Core | src/utils/utilwrapper.cpp | <filename>src/utils/utilwrapper.cpp<gh_stars>10-100
// Copyright (c) 2014-2016 The FFF Core developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "FFF_Core/FFF_Core.h"
#in... |
fffnerwork/FFF_Protocol_Core | src/chainparams/chainparamsfff.cpp | <gh_stars>10-100
// Copyright (c) 2010 <NAME>
// Copyright (c) 2009-2014 The FFF developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "chainparams/chainparams.h"
#includ... |
fffnerwork/FFF_Protocol_Core | src/protocol/handshake.cpp | // Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2016 The FFF developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "core/init.h"
#include "core/main.h"
#include "u... |
fffnerwork/FFF_Protocol_Core | src/protocol/fffcoreblock.cpp | <reponame>fffnerwork/FFF_Protocol_Core
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2016 The FFF developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "core/mai... |
fffnerwork/FFF_Protocol_Core | src/rpc/rpcstreamsfff.cpp | // Copyright (c) 2010 <NAME>
// Copyright (c) 2014-2016 The FFF Core developers
// Original code was distributed under the MIT software license.
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "rpc/rpcwallet.h"
#include "json/json_spirit_ub... |
fffnerwork/FFF_Protocol_Core | src/v8_win/v8blobf.cpp | <gh_stars>10-100
// Copyright (c) 2014-2019 Coin Sciences Ltd
// FFF_Core code distributed under the GPLv3 license, see COPYING file.
#include "v8_win/v8blob.h"
#include <cstring>
#include <iomanip>
#include <sstream>
namespace mc_v8
{
std::map<std::string, BlobPtr> Blob::m_instances;
BlobPtr Blob::Instance(std::str... |
airen3339/cef | libcef_dll/sandbox/sandbox_win.cc | <reponame>airen3339/cef
// Copyright 2013 The Chromium Embedded Framework Authors. Portions Copyright
// 2011 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 "base/logging.h"
#include "sandbox/win/src/process_mitig... |
airen3339/cef | libcef_dll/ctocpp/request_context_handler_ctocpp.cc | <reponame>airen3339/cef<gh_stars>0
// Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// This file... |
airen3339/cef | libcef/browser/chrome/chrome_browser_host_impl.cc | // Copyright 2020 The Chromium Embedded Framework 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 "libcef/browser/chrome/chrome_browser_host_impl.h"
#include "libcef/browser/browser_platform_delegate.h"
#include "libcef/bro... |
airen3339/cef | tests/ceftests/navigation_unittest.cc | // Copyright (c) 2011 The Chromium Embedded Framework 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 <algorithm>
#include <list>
#include "include/base/cef_callback.h"
#include "include/cef_callback.h"
#include "include/ce... |
airen3339/cef | libcef/browser/printing/print_dialog_linux.cc | <filename>libcef/browser/printing/print_dialog_linux.cc
// Copyright (c) 2014 The Chromium Embedded Framework Authors.
// Portions 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 "libcef/brows... |
airen3339/cef | libcef/browser/alloy/chrome_browser_process_alloy.cc | <filename>libcef/browser/alloy/chrome_browser_process_alloy.cc<gh_stars>0
// Copyright (c) 2013 The Chromium Embedded Framework Authors.
// Portions (c) 2011 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 "libc... |
airen3339/cef | libcef/browser/native/browser_platform_delegate_native_linux.cc | // Copyright 2015 The Chromium Embedded Framework 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 "libcef/browser/native/browser_platform_delegate_native_linux.h"
#include "libcef/browser/browser_host_base.h"
#include "libc... |
airen3339/cef | libcef/browser/main_runner.cc | // Copyright 2020 The Chromium Embedded Framework Authors.
// Portions copyright 2014 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 "libcef/browser/main_runner.h"
#include "libcef/browser/browser_message_loop... |
amoulis/Chessy | src/Board.hpp | <reponame>amoulis/Chessy<gh_stars>0
/******************************************************************************
Board.hpp
State of the board empty/used square on the board by player
It means it has to have one instance for white and one for black
*********************************************************************... |
amoulis/Chessy | src/Game.cpp | #include "Game.hpp"
namespace game {
std::vector <std::vector <int> >
Game::is_not_out_of_the_board(std::vector < std::vector <int> >& data_in)
{
for(int i = 0; i < data_in.size(); i++)
{
std::vector<int> vec = data_in[i];
if( vec[0] < 0 || vec[0] > m_board_size)
{
if( vec[1] < 0 || vec[1] > m_... |
amoulis/Chessy | src/Piece.hpp | <reponame>amoulis/Chessy
/*******************************************************************************
Piece.hpp
Classes used for piece movements and any move 'possible'. It does not have any
data about the board, that means another class would have to check if the moves are 'legit' (i.e: not out of the board...).
P... |
amoulis/Chessy | src/Board.cpp | <filename>src/Board.cpp
#include "Board.hpp"
namespace board {
Board::Board()
{
for(int i = 0; i < 8; i++)
for(int j = 0; j < 8; j++)
m_board_state[i][j] = false;
}
bool
Board::is_square_empty(int i, int j)
{
return m_board_state[i][j];
}
void
Board::change_square_state(int i, int j, bool n_state)
{
... |
amoulis/Chessy | src/Printer.cpp | <filename>src/Printer.cpp
#include "Printer.hpp"
#include <iostream>
namespace printer{
Printer::Printer()
: m_length(8)
, m_width(24)
{};
void
Printer::print_screen(char board[8][24])
{
for(int i = 0; i < m_length; i++)
{
for(int j = 0; j < m_width; j++)
{
std::cout << board[i][j];
}
... |
amoulis/Chessy | src/Game.hpp | <reponame>amoulis/Chessy<gh_stars>0
/******************************************************************************
Game.hpp
All the game 'mechanic' : legit move checking, check (mate) detection,
piece captures detection...
******************************************************************************/
#ifndef GAME_HP... |
amoulis/Chessy | src/Piece.cpp | #include "Piece.hpp"
namespace piece {
Piece::Piece()
: m_x(0)
, m_y(0)
{}
Piece::Piece(int i, int j)
: m_x (i)
, m_y (j)
{}
std::vector <int>
Piece::get_current_pos()
{
std::vector <int> curr_pos(2);
curr_pos[0] = m_x;
curr_pos[1] = m_y;
return curr_pos;
}
void
Piece::change_current_pos(int i, ... |
amoulis/Chessy | src/Printer.hpp | /***************************************************************************
Printer.hpp
Prints data on screen (board display with the pieces)
***************************************************************************/
#ifndef PRINTER_HPP
#define PRINTER_HPP
namespace printer{
class
Printer {
public:
Printer();
... |
grigM/ofxVelodyneLidar | src/ofxVelodyneLidar.cpp | <gh_stars>1-10
#include "ofxVelodyneLidar.h"
//using namespace "ofxVelodyneLidar;
VelodyneCapture::VelodyneCapture()
{
};
VelodyneCapture::~VelodyneCapture()
{
close();
};
/*
VelodyneCapture::VelodyneCapture(int _port )
{
port = _port;
//open(port);
};
*/
const bool VelodyneCapture... |
grigM/ofxVelodyneLidar | example_ofxVelodyneNetworkTest/src/ofApp.cpp | #include "ofApp.h"
#include "ofUtils.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetVerticalSync(true);
ofSetFrameRate(60);
cam.setNearClip(0.0);
cam.setFarClip(60000.0);
cam.setAutoDistance(true);
capturePtr = ofPtr<HDL32ECapture>(new H... |
jspark311/Arduino-ADG2128 | src/ADG2128.cpp | <reponame>jspark311/Arduino-ADG2128
/*
File: ADG2128.cpp
Author: <NAME>
Date: 2014.03.10
Copyright 2019 Manuvr, Inc
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/li... |
Myi64/Mouse-Tracking | Mouse-Tracking.cpp | <reponame>Myi64/Mouse-Tracking<gh_stars>0
// Mouse-Tracking.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML works!");
sf::CircleShape shape(100.f);
... |
wiremod/advdupe2-native | ad2filestream.cpp | #include "GarrysMod/Lua/Interface.h"
#include <stdio.h>
#include<iostream>
#include<fstream>
using namespace GarrysMod::Lua;
char tempChar;
short tempShort;
double tempDouble;
std::string tempString;
std::ofstream file;
int Open( lua_State* state )
{
file.open("garrysmod/data/ad2temp.txt", std::ios::out | std::ios:... |
kira-96/FFmpeg-tutorial | examples/2.PlayVideo/PlayVideo.cpp | <gh_stars>0
/**
* Copyright(c) 2021 kira-96
* FFMpeg-tutorial is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at :
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS... |
kira-96/FFmpeg-tutorial | examples/1.SaveFrame/SaveFrame.cpp | /**
* Copyright(c) 2021 kira-96
* FFMpeg-tutorial is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at :
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT W... |
wwojtas/My-functions-for-working-with-dates | main.cpp | <reponame>wwojtas/My-functions-for-working-with-dates<gh_stars>0
#include <iostream>
#include <time.h>
#include <sstream>
using namespace std;
bool czyRokPrzestepny( int rok );
int wpiszRok();
int wpiszMiesiac();
int wpiszDzien();
int wpiszDateNaTypInt();
int obliczLiczbaDniWMiesiacu( int miesiac, int rok ... |
aaronhma/CompetitiveProgramming | codechef/MUFFINS3.cpp | <gh_stars>0
/**
* @file MUFFINS3.cpp
* @problem Packaging Cupcakes
* @author <NAME> (aaronhma)
* @result Correct Answer
* @stat Time: 0.00 seconds
* @submitted 7/01/2020
* @url https://www.codechef.com/viewsolution/34916765
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(0)... |
aaronhma/CompetitiveProgramming | codechef/FCTRL.cpp | /**
* @file FCTRL.cpp
* @problem Factorial
* @author <NAME> (aaronhma)
* @result TODO: Not Submitted
* @stat Time: 0.00 seconds
* @submitted 7/01/2020
* @url
*/
#include <bits/stdc++.h>
using namespace std;
int factorial(int n)
{
int ans = 1;
for (int i = 1; i <= n; i++)
{
ans = ans * i;
}
retu... |
aaronhma/CompetitiveProgramming | codechef/FLOW007.cpp | // /**
// * @file FLOW007.cpp
// * @author <NAME> (aaronhma)
// * @result Correct Answer
// * @stat Time: 0.15 seconds
// * @submitted 7/01/2020
// * @url https://www.codechef.com/viewsolution/34916428
// */
// #include <bits/stdc++.h>
// using namespace std;
// int main()
// {
// ios::sync_with_stdio(0);
// ... |
aaronhma/CompetitiveProgramming | codechef/CVOTE.cpp | // /**
// * @file CVOTE.cpp
// * @author <NAME> (aaronhma)
// * @result Correct Answer
// * @stat Time: 0.00 seconds
// * @submitted 7/01/2020
// * @url https://www.codechef.com/viewsolution/34916303
// */
// #include <bits/stdc++.h>
// using namespace std;
// int main()
// {
// ios::sync_with_stdio(0);
// ... |
aaronhma/CompetitiveProgramming | codechef/INTEST.cpp | /**
* @file INTEST.cpp
* @author <NAME> (aaronhma)
* @result Correct Answer
* @stat Time: 0.15 seconds
* @submitted 7/01/2020
* @url https://www.codechef.com/viewsolution/34916428
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
int n, k;
cin >> n >> k;... |
aaronhma/CompetitiveProgramming | codechef/FSQRT.cpp | /**
* @file LUCKFOUR.cpp
* @problem Finding Square Roots
* @author <NAME> (aaronhma)
* @result Correct Answer
* @stat Time: 0.01 seconds
* @submitted 7/02/2020
* @url https://www.codechef.com/viewsolution/34919610
*/
#include <bits/stdc++.h>
using namespace std;
int findsqrt(int i)
{
if (i <= 2)
return i... |
aaronhma/CompetitiveProgramming | codechef/TLG.cpp | // /**
// * @file TLG.cpp
// * @problem The Lead Game
// * @author <NAME> (aaronhma)
// * @result Wrong Answer
// * @stat Time: 0.00 seconds
// * @submitted 7/02/2020
// * @url https://www.codechef.com/viewsolution/34919491
// */
// #include <bits/stdc++.h>
// using namespace std;
// int main()
// {
// ios::... |
aaronhma/CompetitiveProgramming | codechef/FLOW017.cpp | <reponame>aaronhma/CompetitiveProgramming
/**
* @file FLOW017.cpp
* @problem Second Largest
* @author <NAME> (aaronhma)
* @result Correct Answer
* @stat Time: 0.00 seconds
* @submitted 7/01/2020
* @url https://www.codechef.com/viewsolution/34919666
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
... |
aaronhma/CompetitiveProgramming | codechef/FLOW006.cpp | /**
* @file FLOW006.cpp
* @problem Sum of Digits
* @author <NAME> (aaronhma)
* @result Correct Answer
* @stat Time: 0.00 seconds
* @submitted 7/02/2020
* @url https://www.codechef.com/viewsolution/34919510
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
... |
aaronhma/CompetitiveProgramming | codechef/START01.cpp | <reponame>aaronhma/CompetitiveProgramming
/**
* @file START01.cpp
* @problem Number Mirror
* @author <NAME> (aaronhma)
* @result Correct Answer
* @stat Time: 0.00 seconds
* @submitted 7/02/2020
* @url https://www.codechef.com/viewsolution/34919491
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
... |
aaronhma/CompetitiveProgramming | codechef/FCTRL2.cpp | /**
* @file FCTRL2.cpp
* @problem Small Factorials
* @author <NAME> (aaronhma)
* @result Wrong Answer
* @stat Time: 0.00 seconds
* @submitted 7/02/2020
* @url https://www.codechef.com/
*/
#include <bits/stdc++.h>
using namespace std;
int factorial(int n)
{
int dp[n + 1];
dp[0] = 1;
for (int i = 1; i <= ... |
aaronhma/CompetitiveProgramming | codechef/LUCKFOUR.cpp | /**
* @file LUCKFOUR.cpp
* @problem Lucky Four
* @author <NAME> (aaronhma)
* @result Correct Answer
* @stat Time: 0.01 seconds
* @submitted 7/02/2020
* @url https://www.codechef.com/viewsolution/34919568
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
i... |
aaronhma/CompetitiveProgramming | codechef/LAPIN.cpp | // /**
// * @file LAPIN.cpp
// * @problem Lapindromes
// * @author <NAME> (aaronhma)
// * @result Correct Answer
// * @stat Time: 0.00 seconds
// * @submitted 7/01/2020
// * @url https://www.codechef.com/viewsolution/34916765
// */
// #include <bits/stdc++.h>
// using namespace std;
// bool sameFrequency(strin... |
aaronhma/CompetitiveProgramming | codechef/ATM.cpp | /**
* @file ATM.cpp
* @author <NAME> (aaronhma)
* @result Correct Answer
* @stat Time: 0.00 seconds
* @submitted 7/01/2020
* @url https://www.codechef.com/viewsolution/34916303
*/
#include <iostream>
#include <string>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
int to_be_withdr... |
aaronhma/CompetitiveProgramming | codechef/FLOW004.cpp | <reponame>aaronhma/CompetitiveProgramming
/**
* @file FLOW004.cpp
* @problem First and Last Digit
* @author <NAME> (aaronhma)
* @result Correct Answer
* @stat Time: 0.00 seconds
* @submitted 7/02/2020
* @url https://www.codechef.com/viewsolution/34919559
*/
#include <bits/stdc++.h>
using namespace std;
int mai... |
aaronhma/CompetitiveProgramming | codechef/TSORT.cpp | /**
* @file TSORT.cpp
* @problem Turbo Sort
* @author <NAME> (aaronhma)
* @result Correct Answer
* @stat Time: 0.17 seconds
* @submitted 7/02/2020
* @url https://www.codechef.com/viewsolution/34919541
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
int ... |
aaronhma/CompetitiveProgramming | codechef/TEST.cpp | /**
* @file TEST.cpp
* @problem Life, the Universe, and Everything
* @author <NAME> (aaronhma)
* @result Correct Answer
* @stat Time: 0.00 seconds
* @submitted 7/01/2020
* @url https://www.codechef.com/viewsolution/34916765
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
ios::sync_with_stdio(0)... |
gasparfm/simplepool | test.cpp | #include <iostream>
#include "simplepool.h"
#include <chrono>
#include <thread>
#include <mutex>
#include <cstdlib>
unsigned testid = 100;
int usos = 0;
std::mutex usosmutex;
class Test
{
public:
Test():id (testid++)
{
std::cout << "Creo un objeto" << std::endl;
}
virtual ~Test()
{
}
void uso()
... |
Wayne-Morgan/BufferLib-cpp | BufferLib/Buffer.cpp | #include "Buffer.h"
#include "BufferFragment.h"
#include "IMemoryBlock.h"
#include <sstream>
extern std::ostringstream gDebug;
Buffer::Buffer(std::shared_ptr<IMemoryBlock> pMemoryBlock)
{
BufferFragment frag(pMemoryBlock, 0, pMemoryBlock->getLength());
_fragments.push_back(frag);
}
Buffer::Buffer(const Buffer & sr... |
Wayne-Morgan/BufferLib-cpp | BufferLib/BufferFragment.cpp | <reponame>Wayne-Morgan/BufferLib-cpp
#include "BufferFragment.h"
//using namespace BufferLib;
#include "IMemoryBlock.h"
BufferFragment::BufferFragment(std::shared_ptr<IMemoryBlock> pMemoryBlock, size_t offset, size_t length) :
_memoryBlock{pMemoryBlock},
_offset{ getInitialOffset(pMemoryBlock, offset) },
_length{... |
Wayne-Morgan/BufferLib-cpp | BufferLibTest/TestBuffer.cpp | <reponame>Wayne-Morgan/BufferLib-cpp<filename>BufferLibTest/TestBuffer.cpp
#include "stdafx.h"
#include "CppUnitTest.h"
#include "Buffer.h"
#include "IMemoryBlock.h"
#include <iostream>
#include <sstream>
#include <algorithm>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
std::ostringstream gDebug;
//... |
Quiremedas/RepositorioBlabla | pruebas/pruebas/main.cpp | <filename>pruebas/pruebas/main.cpp
#include <algorithm>
#include <queue>
//#include <concurrent_priority_queue.h>
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
priority_queue<int> q;
q.push(1);
q.push(9);
q.push(10);
cout << q.top();
q.pop();
cout << endl;
cout << q.top();
q.pop()... |
sarang2dan/git-coan2 | src/formal_parameter_list.cpp | <reponame>sarang2dan/git-coan2
/***************************************************************************
* Copyright (C) 2007-2014 <NAME>, <EMAIL> *
* All rights reserved. *
* *
* R... |
sarang2dan/git-coan2 | src/fs_nix.cpp | /***************************************************************************
* Copyright (C) 2007-2014 <NAME>, <EMAIL> *
* All rights reserved. *
* *
* Redistribution and use in source... |
sarang2dan/git-coan2 | src/integer.cpp | /***************************************************************************
* Copyright (C) 2007-2014 <NAME>, <EMAIL> *
* All rights reserved. *
* *
* Contributed originally by <NAME>... |
sarang2dan/git-coan2 | src/expression_parser.cpp | <reponame>sarang2dan/git-coan2
/***************************************************************************
* Copyright (C) 2007-2014 <NAME>, <EMAIL> *
* All rights reserved. *
* *
* C... |
sarang2dan/git-coan2 | src/fs_win.cpp | /***************************************************************************
* Copyright (C) 2007-2014 <NAME>, <EMAIL> *
* All rights reserved. *
* *
* Redistribution and use in source... |
sarang2dan/git-coan2 | src/help.cpp | /***************************************************************************
* Copyright (C) 2007-2014 <NAME>, <EMAIL> *
* All rights reserved. *
* *
* Contributed originally by <NAME>... |
sarang2dan/git-coan2 | src/syserr.cpp | /***************************************************************************
* Copyright (C) 2007-2014 <NAME>, <EMAIL> *
* All rights reserved. *
* *
* Contributed originally by <NAME>... |
sarang2dan/git-coan2 | src/expansion_base.cpp | /***************************************************************************
* Copyright (C) 2007-2014 <NAME>, <EMAIL> *
* All rights reserved. *
* *
* Contributed originally by <NAME>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.