blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 10.5M | extension stringclasses 111
values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
63bcfe89512542f678a04c31c91e8a800d3295ad | 018e83709b0a00b7fc012a57259f21bf5e5deed9 | /dungeon_game/Solution.cpp | 0bb7a8a8d5c81684dbbf49a70faed0bdeb70fe87 | [] | no_license | lxyu0405/leetcode-pratice | 79daa472b6bbb96afad38e18deb6053b988052ae | 57eec096bd4de4c0a7afda7c699181ca5c2af3a0 | refs/heads/master | 2021-01-17T02:31:32.965245 | 2016-10-16T02:42:22 | 2016-10-16T02:42:22 | 52,575,038 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,230 | cpp | Solution.cpp | #include <iostream>
#include <vector>
using namespace std;
#define MIN(A,B) (A < B ? A : B);
class Solution {
public:
int calculateMinimumHP(vector<vector<int>>& dungeon) {
const int row = dungeon.size();
const int col = dungeon.front().size();
vector<vector<int>> minHealth(row, ... |
ebe4415f73d4440634e45983b8849653f817be80 | a8a716c471bde54937bb77f2bf6d4dbc03cf88ea | /src/Instruction.h | 3f701bcee24204a30e7754528c5aa37763896c7d | [] | no_license | jamielikeschickens/em3ulator | d8b0c99264d1cf76421ed5106e8e658257bf507d | 7508568f908e7359c7b994f388cb4560392356cf | refs/heads/master | 2021-09-01T05:18:27.432183 | 2017-12-25T02:34:31 | 2017-12-25T02:34:31 | 115,234,533 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 831 | h | Instruction.h | #ifndef EM3ULATOR_INSTRUCTION_H
#define EM3ULATOR_INSTRUCTION_H
#include <string>
#include <memory>
#include <iostream>
#include <Register.h>
namespace em3ulator {
namespace Instruction {
using Register::Register;
class Instruction {
public:
Instruction(const uint32_t repr);
virtual void execute() = 0;
... |
b96d78d6d127583a0f7e195ef19b895138c58887 | 90eeddeaf35a154dde3b4fc732b39cab2979cd90 | /blang/PseudoCodeGen.cpp | c4e7d66063e3825468cceed0a59bd1e95b3572fc | [] | no_license | andobence/blang | 655b74f17330422cd8f550bd90b577c17dc7195e | 4ffc6082d7974d75cab3a6e71de911542c46fb47 | refs/heads/master | 2020-04-11T20:52:59.397649 | 2018-12-17T16:24:13 | 2018-12-17T16:24:13 | 162,086,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,055 | cpp | PseudoCodeGen.cpp | #include "pch.h"
#include "PseudoCodeGen.h"
PseudoCodeGen::PseudoCodeGen()
{
}
PseudoCodeGen::~PseudoCodeGen()
{
}
void PseudoCodeGen::print(std::ostream &stream, const AssignmentStatement &statement)
{
stream << tabs() << "ASSIGN " << statement.variable << " <- ";
print(stream, *statement.expression);
}
void Pse... |
ba07bd9adf4e90530a206df3eb3e75cdd29325d9 | 21f7ad6af9e2b3b88015b4a9e676835bf47f348a | /EBUCoreProcessor/src/EBUCore_1_4/metadata/base/ebucoreAspectRatioBase.cpp | 0a16d2118e4b586c7b13746fedb00916b7d26530 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | ebu/ebu-mxfsdk | 363535382f0bb4f70411cfa282b7498e8848c500 | d66e4b05354ec2b80365f1956f14678c6f7f6514 | refs/heads/master | 2020-04-05T00:35:11.681563 | 2017-07-12T12:55:20 | 2017-07-12T12:55:20 | 11,311,536 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,699 | cpp | ebucoreAspectRatioBase.cpp | /*
* Copyright 2012-2013 European Broadcasting Union and Limecraft, NV.
*
* 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/LIC... |
6046ae33e59508d94d0cfd56232bb49909bc9234 | 6d84f31c0492bad1b5c9f3627b86d485de0ca123 | /Creature.cpp | 33cb9fc446c9546c3ff7ca6f7fa4cb296d75ffa6 | [] | no_license | ChaytonMoore/NEAEvolutionSimulator | 4ad4140fff8cdaf581c1f68b9313986bd5262228 | 1cb0dece3149cb7bbc7ed21f211cd3876d823be8 | refs/heads/master | 2023-03-18T22:24:40.024523 | 2021-03-06T17:27:06 | 2021-03-06T17:27:06 | 292,764,544 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,396 | cpp | Creature.cpp | #include "Creature.h"
#include <iostream>
//^If this doesn't work then just use a normal function
bool NearEqual(const float a, const float b)
{
float aUpper = a + a * 0.05;
float aLower = a - a * 0.05;
return (b > aLower && b < aUpper);
}
void Creature::MuscleMovement()
{
//For each of the muscles see what is ... |
58fe0e1f71e2fd11a86814cc96041d8b734a18d5 | 2df718a65be858e58d9d168e57ce87fc029491bd | /SCLT/Objects/Square.cpp | 7a1b17922f04c244cf0ff3e64e0c911bb91897e2 | [
"MIT"
] | permissive | chicio/Spectral-Clara-Lux-Tracer | c70fb4fc4d5864837bea8c1eb294f39fe1217245 | 553be79d3a4ddf7b9f48996f3bd60d5e2c8e4dcf | refs/heads/master | 2023-04-30T07:37:44.029930 | 2023-04-19T19:08:51 | 2023-04-19T19:08:51 | 44,126,872 | 103 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 2,725 | cpp | Square.cpp | //
// Square.cpp
// Spectral Clara Lux tracer
//
// Created by Fabrizio Duroni on 31/12/15.
// Copyright © 2015 Fabrizio Duroni. All rights reserved.
//
#include "pch.h"
#include "Constants.hpp"
#include "Square.hpp"
Square::Square(const std::vector<Point3D> vertexList,
const Point3D& pointOnPlane,... |
a54785a8e1dd04f4fa16b7f49779dcde3eea3022 | b356f184feb17365ba378550170d1a3fd07f6bce | /include/GenomeAlphabet.h | 445658e2ac5a02c95327a369be10c7341b19dc2c | [] | no_license | DeX77/CircalPP | bd8ad31846a1cb3f6851108a1667671a8e45160a | 009122ad3310e7d36d2c76335dba010df47a239c | refs/heads/master | 2020-04-05T02:02:09.149273 | 2012-10-26T21:34:54 | 2012-10-26T21:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,199 | h | GenomeAlphabet.h | /*
Circal++ - Calculates Multiple conservative Alignments of Circular Sequences
Copyright (C) 2007 Daniel Exner
<dex@dragonslave.de>
This program is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as published
by the Free Software Foundation; either ver... |
d275776817005719212e4596460154410ade3eff | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /contest/1542558215.cpp | f8a4ff911ae6f8231e6e51d6c08e8b9d7a4939ef | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,120 | cpp | 1542558215.cpp | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<string>
#include<cstring>
#include<algorithm>
#include<queue>
#include<vector>
#define N 1000
#define inf
#define mod
#define rg register
using namespace std;
typedef long long ll;
typedef double db;
int h,m,s,x,y;
int mk[N];... |
9e1fb38714af33b006e5c181879fbf194579896c | a2f0c3df1bd422d7dd84b8c512c525b9f98e9035 | /xlloption/fms_option.h | 99cbc14c45f0d53c4468c707be985debe29704a9 | [
"MIT"
] | permissive | GR6250-2019/hw6 | dd8897173c6c33aa27e06c9567b5f1ff32f10b90 | 13a78ed4474c5e37b82a3ded10eef95b706e382b | refs/heads/master | 2020-08-03T09:52:25.844768 | 2019-10-25T00:11:38 | 2019-10-25T00:11:38 | 211,707,882 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,655 | h | fms_option.h | // fms_option.h - General option pricing.
// See https://github.com/keithalewis/papers/blob/master/options.pdf
// F = f exp(sX - kappa(s)) where X has mean 0 variance 1.
// Note E[F] = f and Var(log(F)) = s^2.
// F <= k iff X <= (kappa(s) + log k/f)/s
#pragma once
#include <algorithm>
#include <cmath>
#include ... |
8e74527530e00b208382c5f86b4a795a287505a2 | 686a7ce0b37872bacaa4ebf6c394774e29d3a058 | /src/test/native/c++/CryptoTest.cpp | 926a362e78cba300603ef3daacacc5a394ca8518 | [
"MIT",
"Apache-2.0"
] | permissive | darcyg/boost-ext | 042e7cd6662ed5d7d3c8b37194675fd225cae125 | 443e3584778960a33422a61f398a6af2fa065beb | refs/heads/master | 2021-01-16T17:46:43.829411 | 2014-05-20T19:41:14 | 2014-05-20T19:41:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,449 | cpp | CryptoTest.cpp | // Use this include instead of "boost/test/unit_test.hpp"
#include "boost-ext/test/unit_test.hpp"
#include "boost-ext/crypto.hpp"
using namespace std;
using namespace boost;
using namespace boost_ext;
using namespace boost_ext::crypto;
// Set up our suite fixture
struct CryptoFixture {
CryptoFixture() { }
~C... |
b8ad3b89180814db0665857a63af295f64743222 | dba127f8a88db95386cbe21b221760d782cbdf67 | /JBasisSvr/JStreamPacket.cpp | 8a3506ae8e963576d51d51defa9318d2496f41a6 | [] | no_license | 15831944/DirectX_Study | c1bd6fe1b8eb891bf49a5a3954234adf59abdb46 | e4832a079936dc1aa893b098375a1d228c7cc02b | refs/heads/master | 2021-10-20T09:19:15.305146 | 2019-02-27T06:30:56 | 2019-02-27T06:30:56 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,457 | cpp | JStreamPacket.cpp | #include "JStreamPacket.h"
#include "JPacketPool.h"
void JStreamPacket::Put(WSABUF WSABuf, SOCKET sock)
{
// MAX_RECV_SIZE를 넘었을때 초기화 + 잔여량 보존
if (m_iWritePos + 256 > MAX_RECV_SIZE)
{
char temp[MAX_RECV_SIZE] = { 0, };
memcpy(temp, &m_szRecvBuf[m_iStartPos], m_iReadPos);
ZeroMemory(m_szRecvBuf, sizeof(char) * ... |
3371f31a88aa59bfcc94343d9e1d89e1ec8e202c | 8ac0dc86d4a94bf944037d4252946e97d5cdd803 | /Server/JoinCommand.h | fe384bf3814f078875c9bb989b06879c37c7a379 | [] | no_license | Gotesu/ex7 | da5b370174eb1f10579153da16d6d9b07bf195c9 | 45b1aac5c69a9286a2c033f17a8027b0d08bb497 | refs/heads/master | 2021-05-09T10:09:40.303162 | 2018-01-30T11:08:43 | 2018-01-30T11:08:43 | 118,953,576 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 776 | h | JoinCommand.h | #ifndef JOINCOMMAND_H_
#define JOINCOMMAND_H_
#include "MenuCommand.h"
class JoinCommand: public MenuCommand {
public:
/*******************
* Function name: execute
* @param socket - the client socket number
* @param gameName - a string with name of a game
* The function tries to find the game in the map (and... |
df332b8c7b8d3b1c9838f9c6b0c4a1980494d34b | 01955f89e11af270997231b8935d8b707c9c9668 | /src/Main.cpp | 26e92147cccd811afada437cf402892089738b12 | [
"MIT"
] | permissive | chorman0773/ENG4U-Shakespearience | a8bf097bc31a806b9c65fc693f3e47cc343e1058 | c19c471f29b1d632766f4458e95edda750919df3 | refs/heads/master | 2020-04-12T12:18:23.185860 | 2018-12-19T20:33:22 | 2018-12-19T20:33:22 | 162,487,503 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,960 | cpp | Main.cpp | /*
* Main.cpp
*
* Created on: Dec. 18, 2018
* Author: connor
*/
#include <QuizOption.hpp>
#include <lclib/Random.hpp>
#include <lclib/Text.hpp>
#include <map>
const Question questions[]{
Question{"Hamlet (the main character) is the _ of Denmark",0,"a) Prince","b) King","c) Fool","d) Who?"},
Question{"Ham... |
fb4061c5e08a619f91a8139fb695019bbed085d3 | 4784d3b299a27ca3e3c9fa92078a39f37f2aaca3 | /hw4/seatAss.cpp | e2ce7e66b7ad6fe6f937d870d9a1b3057e868c7f | [] | no_license | ychuang0310/SoCV | d468dba9e0b9a7a6f7829b87b5fcee36a6cd9a57 | ba5bcf1bdeed4710e6ad49ebb151b6f7f7044466 | refs/heads/master | 2023-08-26T14:07:55.078810 | 2021-11-08T13:59:36 | 2021-11-08T13:59:36 | 425,859,141 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 346 | cpp | seatAss.cpp | #include <iostream>
#include <vector>
#include "seater.h"
using namespace std;
int main(int argc, char** argv)
{
if(argc != 2){
cout << "Usage:\n\t" << argv[0] << " <inputfile>" << endl;
return 0;
}
Seater s(argv[1]);
s.InitCircuit();
s.genProofModel();
s.solve();
s.report... |
5b5e1d8fae13a5c7d3057a7d3bfd533b0a1b8933 | dff11aca23c7751657e0aa8cd972642f2cdd91dc | /leetcode/code/DiameterBinaryTree.t.cpp | a81f495a708f4f2cf8c65dd15d8086e38713fd9f | [] | no_license | daniel0412/coding | bb3f3d6e3a864e18a68ed95742b7695507864721 | 9a77f4b891e8c9f1cbf5db830d26171822e5e976 | refs/heads/master | 2021-01-22T22:09:11.382518 | 2018-05-02T04:54:09 | 2018-05-13T22:04:13 | 85,510,554 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 135 | cpp | DiameterBinaryTree.t.cpp | #include "gtest/gtest.h"
#include "DiameterBinaryTree.h"
TEST(DiameterBinaryTree, DiameterBinaryTree)
{
DiameterBinaryTree sol;
}
|
92350c4954810dc48742bc0938aeacbc63579b09 | 21e3967413f203348f0080a1d2cd4ce837184269 | /Common/Nv/cashednvdata.hpp | 3e9ae42e572f2497f76eabc39362bf3790d90674 | [
"MIT"
] | permissive | 100ker/CortexLib | c18301da94002bf892f66c3a8f2ebb997b53f9a2 | 1b3718b9288d94f3101af7868e01f47fcb7cc5b6 | refs/heads/master | 2023-08-19T06:12:48.235485 | 2021-10-23T04:24:32 | 2021-10-23T04:24:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 563 | hpp | cashednvdata.hpp | // Filename: cachednvdata.hpp
// Created by lamerok on 02.06.2021.
#pragma once
template<typename NvList, typename T, const T& defaultValue, const auto& nvDriver>
class CachedNvData
{
public:
ReturnCode Set(T value) const
{
constexpr auto address = NvList::template GetAddress<NvList, T, defaultValue, nvDriver>()... |
282873a8032aa35903bd9a0e62b0ba32785430e4 | e7bb742efcb042bbd552e222eef57b910d62316a | /Programming Guide/Headers/Siv3D/Pentablet.hpp | 221a5cb520a197b1b0b885c78cffdbb6023ced63 | [
"MIT"
] | permissive | nguyenluminhhang/Siv3D-Reference | 25d5a89dd79a23134d9e0b559c9e897e84d0f5d5 | d58e92885241d11612007fb9187ce0289a7ee9cb | refs/heads/master | 2021-06-10T17:56:24.672491 | 2016-08-12T13:40:45 | 2016-08-12T13:40:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,632 | hpp | Pentablet.hpp | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (C) 2008-2016 Ryo Suzuki
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
namespace s3d
{
/// <summary>
/// ペンタブレット
/// </summary>
/// <remarks>
... |
48b0f832b0aa8568df4015cf2c466c83a8fe097b | 24cf1aedb3fa8f73d7cba78d9e45064ea451d694 | /Websites/.aux/Project Euler/Solved/035 - Circular primes.cpp | c271980953e60e8aec21bf39d0bc9ceca6906293 | [] | no_license | zayle/Training | 9de9898bed219b8e95963da512d8ec2989c6409c | 8b6fe7b3bcb2a4c1c278bda42c07a410cff37f0c | refs/heads/master | 2021-01-19T01:53:25.744158 | 2016-07-12T16:09:38 | 2016-07-12T16:09:38 | 41,782,402 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,260 | cpp | 035 - Circular primes.cpp | #include <cmath>
#include <fstream>
#include <iostream>
#include <vector>
using namespace std;
// fstream fs("in.txt", fstream::in);
const int mx = 1000000;
vector<int >primes;
bool isPrime(int a) {
int i, sr = sqrt(a);
for (i = 0; i < primes.size(); i++) {
if (primes[i] <= sr) {
if ((a % primes[i]) == 0) {
... |
98d69f8434a37d15e6cf0118aa7ef60103995949 | 2b1b459706bbac83dad951426927b5798e1786fc | /src/ui/scenic/lib/flatland/engine/tests/display_compositor_unittest.cc | f37e63084c8509dad25a2808c78298cabf99a3a1 | [
"BSD-2-Clause"
] | permissive | gnoliyil/fuchsia | bc205e4b77417acd4513fd35d7f83abd3f43eb8d | bc81409a0527580432923c30fbbb44aba677b57d | refs/heads/main | 2022-12-12T11:53:01.714113 | 2022-01-08T17:01:14 | 2022-12-08T01:29:53 | 445,866,010 | 4 | 3 | BSD-2-Clause | 2022-10-11T05:44:30 | 2022-01-08T16:09:33 | C++ | UTF-8 | C++ | false | false | 67,176 | cc | display_compositor_unittest.cc | // Copyright 2020 The Fuchsia 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 <memory>
#include "src/lib/fsl/handles/object_info.h"
#include "src/ui/scenic/lib/allocation/buffer_collection_importer.h"
#include "src/ui/sceni... |
93d549796f14895e958df6adac40d097fee562c7 | e7e179097ea573fe0e5f2bc5153663908674a373 | /Documentacion/Logictracker/Dispositivos/Garmin/pc app/FMI_v2.70/CSpeedLimitAlertsDlg.h | 15d88d5d99fc185aa6f3546cf35f46966cc05706 | [] | no_license | jesumarquez/lt | 3ed91a067c86b766d38693487b8660c31d923b65 | 301456ad843903a2ad49d00926881947cce04273 | refs/heads/master | 2021-10-08T16:54:17.319961 | 2016-05-17T13:15:38 | 2016-05-17T13:15:38 | 161,826,229 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,983 | h | CSpeedLimitAlertsDlg.h | /*********************************************************************
*
* HEADER NAME:
* CSpeedLimitAlertsDlg.h
*
* Copyright 2011 by Garmin Ltd. or its subsidiaries.
*---------------------------------------------------------------------
* $NoKeywords$
********************************************************... |
bfff5ed43fc2fc1aace72240dd3a927fe0fecc66 | ffef5c3e6c3ddb681e0bb61d30970433f146c4b6 | /ds/Lab5/draftsheet.cpp | badc7c54998ff4e1b3fcd5373c3a391674bdc8d3 | [] | no_license | calebfaruki/school | 6c7c50630cedbd8340ac9eabfaca1635cf3acc52 | 6835fdec86dd6fb97f498e02191a2e007f4007b6 | refs/heads/master | 2021-01-23T18:10:00.628153 | 2013-12-09T06:31:54 | 2013-12-09T06:31:54 | 14,323,713 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,347 | cpp | draftsheet.cpp |
List::List(const List &aList): numNodes(aList.numNodes) { // Copy constructor
head = NULL; // Head pointer set to NULL initially
tail = NULL; // Tail pointer set to NULL initially
empty = true;
forward = true; // Copies head-to-tail by default.
numNodes = 0;
string flag; // Stores prompt val... |
34c8d7e09c0a0feb776ef9e315605ac6b410585e | 8a1871b177729fc63fe42893f53b246f54ef1505 | /GameEngine/Engine/FX/Particle.cpp | ccb47bde51f9eb0d86dfacf8f0ce5d04dfaee5d4 | [] | no_license | jasonpercival/GameEngine | 953e1164121e112317c2168e2bb5be2500a686ec | 1f518559e952dc725de0fc448f409ecdf2814d31 | refs/heads/master | 2023-01-08T12:17:45.788077 | 2020-11-13T00:46:36 | 2020-11-13T00:46:36 | 297,813,961 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,125 | cpp | Particle.cpp | #include "Particle.h"
#include "ParticleEmitter.h"
Particle::Particle(GLuint shaderID_, GLuint textureID_, ParticleEmitter* particleEmitter_)
: shaderID(shaderID_), textureID(textureID_), lifeTime(1.0f), particleSize(1.0f), pe(particleEmitter_)
{
// Generate plane for the particle
vertexList = {
{{ -0.5f, 0.5f},... |
6faa418d429641fe59ba631d5248a641f2f3c831 | 2b1b459706bbac83dad951426927b5798e1786fc | /src/ui/scenic/lib/gfx/resources/protected_memory_visitor.cc | 491677d579bd1140445bb0b9b83b7d3b176d18d6 | [
"BSD-2-Clause"
] | permissive | gnoliyil/fuchsia | bc205e4b77417acd4513fd35d7f83abd3f43eb8d | bc81409a0527580432923c30fbbb44aba677b57d | refs/heads/main | 2022-12-12T11:53:01.714113 | 2022-01-08T17:01:14 | 2022-12-08T01:29:53 | 445,866,010 | 4 | 3 | BSD-2-Clause | 2022-10-11T05:44:30 | 2022-01-08T16:09:33 | C++ | UTF-8 | C++ | false | false | 3,678 | cc | protected_memory_visitor.cc | // Copyright 2019 The Fuchsia 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 "src/ui/scenic/lib/gfx/resources/protected_memory_visitor.h"
#include <lib/syslog/cpp/macros.h>
#include "src/ui/scenic/lib/gfx/resources/camera... |
73ec99c6c204025e4ea1c025b072109e574dfedc | 86403996146861c8908bbd8fcea4afa4dbfc6b02 | /Part3/Job.cpp | b66be46aa949aa632ab8b9c5cb496ecba83569e3 | [] | no_license | anniepap/projject-1 | a009f5669f48b037c8e4e2b3f897a9b19dd41e9d | e93b5f4d74579d08a199453e316ec37fcadac4a3 | refs/heads/master | 2020-03-08T00:37:49.751230 | 2017-02-15T22:11:46 | 2017-02-15T22:11:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 248 | cpp | Job.cpp |
#include "Job.h"
Job::Job(long int (*func)(void*)) : func(func) {}
long int Job::execute()
{
return (*func)(arg);
}
void Job::Id(uint32_t id)
{
this->id=id;
}
void Job::Arg(void* arg)
{
this->arg=arg;
}
uint32_t Job::Id()
{
return id;
}
|
19fb7f7d75d4b6f1bac4e4ea5e89a56517ea6e3b | 1d8c7753be8d53213e37037cbdc4b89b66a65b93 | /mbed2/main.cpp | 3387b6883cf804c802b79b962b10692032b161e8 | [] | no_license | ESE519/PennBall | 9b8e7565a4127de84effacd84007ff68c0d6fb9a | f8dd3394a9d0ccdb9b0f9f64db685734765732ab | refs/heads/master | 2021-01-01T05:36:10.754161 | 2013-12-18T22:35:33 | 2013-12-18T22:35:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,013 | cpp | main.cpp | #include "mbed.h"
#include "Servo.h"
// speaker sound effect demo using PWM hardware output
int note;
unsigned short i = 0;
#define DEFAULT_WRITE_LEGNTH 0.5
#define STALL_TIME_MS_3 10
#define HALFWAY 50
#define STEPS 25
#define RANDOM_RANGE 100
#define OFF 0
#... |
5337615886e97f744d608e6c5e7f573b2f1557e8 | 1504d2dc7c1512e28e113f2187341a48afbebea2 | /updatethread.cpp | 5216f9cfb3b9559a91239bb181646aea9b54e068 | [] | no_license | defaultsamson/Gargoyle-Router-Usage-Checker | 66bb53231e58f835a0355748778f7884b0503bc5 | 82b666029eaf8dd732f4903881180c5b8e4620dd | refs/heads/master | 2022-12-04T14:40:10.103238 | 2020-09-03T01:53:21 | 2020-09-03T01:53:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,750 | cpp | updatethread.cpp | #include "mainwindow.h"
#include "settings.h"
#include "updatethread.h"
#include <QThread>
UpdateThread::UpdateThread(GargoyleParser *parser, MainWindow *mainWindow)
{
assert(parser);
assert(mainWindow);
this->parser = parser;
this->mainWindow = mainWindow;
}
void UpdateThread::startUpdateLoop()
{
... |
933691633c0320c645730ceea5616aef210cc1b8 | 1b8db6b3991c7f49ac180dca30c0f1e42069ab72 | /common/FileWatcher.h | 88c65a11a892e68f5489986d0c4c80b5c8057de5 | [] | no_license | jsandersr/Hydra | cf27de6c5fad35c1b49faa2b51320dcde453a15a | 0fd5f7b2e24a3ca75f3c135d996510d896330390 | refs/heads/master | 2020-06-29T04:47:27.474351 | 2020-01-01T11:35:39 | 2020-01-01T11:39:05 | 200,444,574 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,425 | h | FileWatcher.h | //---------------------------------------------------------------
//
// FileWatcher.h
//
#pragma once
#include <chrono>
#include <filesystem>
#include <functional>
#include <string>
#include <thread>
#include <unordered_map>
namespace Common {
//======================================================================... |
908ed0da2da6b9d5aaf535775026fd62b8c36beb | 3d56159929e962757dfe2d42f4d9d11233612486 | /T3E201706860/verificacao.cpp | 849d40f4557d470e3bce2b6060d2993b68d11114 | [] | no_license | TitanicThompson1/Prog | dddb61263e6d72971db9fe9e86d79455903cafd8 | a6fe88276930822c9f91de9239cc610d29f6e163 | refs/heads/master | 2020-05-07T18:40:30.039441 | 2019-05-21T09:32:24 | 2019-05-21T09:32:24 | 180,778,414 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 375 | cpp | verificacao.cpp | #include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <vector>
using namespace std;
/*
@Determina quantos digitos tem o nif
nif: numero de identificação fiscal
RETURN: numero de digitos do nif
*/
int verifica_NIF(int nif) {
int digitos = 0;
while (nif != 0) {
nif = n... |
e9db42049e4a81e8d52baf91eaf1b3999f5bf56d | ff4c28ed0c55f04187d4aa219097da84db95f19d | /calculator.cpp | f848ef39588fa1bf81139df405de1f7e5d3ef9b8 | [] | no_license | neugjl/PPP2 | 9a6045e803f268b41683cbb76d274a0837cedcd0 | 264cdf9820991f413f76f7ab3772f1d32afccac3 | refs/heads/master | 2023-01-02T04:21:17.340234 | 2020-10-24T03:23:00 | 2020-10-24T03:23:00 | 284,960,949 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,561 | cpp | calculator.cpp | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
class bad_input{
public:
bad_input(string s):message{s}{cout<<"bad_input constructor\n";}
~bad_input(){cout<<"~bad_input destructor\n";}
string what(){return message;}
private:
string message;
};... |
12fa37618dd6a2858804ec2c6631966ad5688638 | 559af4a8ec1c0c58331942c62cb12d4f8f71a400 | /synced_memory.hpp | 496c060a454c5796b791b19d207bfe4dcbb7b276 | [] | no_license | ivansong1988/dragon | c1a65da54bdf18cf3ae66045621fa0dc6ed1c8e5 | 2ee09d276f88b1717db8417956a1953f164928d8 | refs/heads/master | 2021-01-23T05:25:30.836993 | 2017-03-27T11:51:26 | 2017-03-27T11:51:26 | 86,306,997 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,156 | hpp | synced_memory.hpp | #ifndef __SYNCED_MEMORY_HPP__
#define __SYNCED_MEMORY_HPP__
#define NULL 0
inline void dragonMalloc(void **ptr, size_t size){
*ptr = malloc(size);
CHECK(*ptr) << "host allocation of size "<<size<<" failed";
}
inline void dragonFree(void *ptr){
free(ptr);
}
inline void dragonMemset(void *ptr, size_t size... |
36b13647a86b02e585aae52b24c22c69ab3b7b50 | 7305e644904db1c1e705303b00e2fc7a39d72d97 | /TAArithmetic.cpp | baba850cd636aae4da9e16c611d5eb99664e013e | [] | no_license | RyanSultanem/SwArch_Asst1 | d35c7e1b020331cdcfda12e966f8ef9ae6e201a9 | da49b323cc972474866241d4c3a76d2b544c6c7a | refs/heads/master | 2021-01-22T03:17:30.852864 | 2017-02-09T09:47:02 | 2017-02-09T09:47:02 | 81,109,367 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 98 | cpp | TAArithmetic.cpp | #include "TAArithmetic.h"
TAArithmetic::TAArithmetic()
{
}
TAArithmetic::~TAArithmetic()
{
}
|
783ff807ff51afe12ca4a29ad9de1e64dd738fe6 | 56f6eb0a7d89285154cb0fdf1289ea894b5c8592 | /plugins/cdbinrnk/vtest.cpp | 4a5a6b435db1e91a9755292c34dbb1ed9479d07d | [
"MIT"
] | permissive | ATetiukhin/QMathematics | 2f6e5914b880907328dbb283f7d95242fb4173d4 | 7db9084184c9a517a69358713a04de61b0bb40ef | refs/heads/master | 2021-01-15T11:11:57.060208 | 2015-01-20T06:09:06 | 2015-01-20T06:09:06 | 28,423,972 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,702 | cpp | vtest.cpp | /*
* vtest.cpp contains a set of routines for evaluating a p-value, the
* probability that a given test result was obtained IF the underlying
* random number generator was a "good" one (the null hypothesis), given a
* vector x of observed results and a vector y of expected results. It
* determines the p-value usi... |
50969dbbf60b6b0e1686e02e98137b56d44ad9d7 | cafa40ddfe3124dba8e6bc3fc706c2681dcfb6e6 | /Platform/common/VDK_API_Error.cpp | e6648af038fd54d03a717b5b3921d5123173c593 | [] | no_license | analogdevicesinc/VDK | 1c0fececcca89f10077ade97415bb9ed38f1db71 | b19ecfa313551dc6bf4a513c0ad868294e221484 | refs/heads/master | 2021-04-28T09:23:01.104008 | 2018-04-24T11:33:59 | 2018-04-24T11:33:59 | 122,038,147 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,212 | cpp | VDK_API_Error.cpp | /*******************************************************************
Copyright (C) 2001-2018 Analog Devices, Inc. All Rights Reserved
*******************************************************************/
/* =============================================================================
*
* $RCSfile$
*
* Descrip... |
542087a1e03d82dacafd737de173980d88fa44f1 | 7c9c0ee210f2291843e1bd843868da6f7e6d8285 | /c++/Contests/leetcode_algorithms/MinCostLowTree.cpp | ce72c397cb4ab4c3d53c68ab7b35a5ab0a90dbe0 | [] | no_license | ConstantTime/Algorival | b9496ddaa5271aaabd1acca041fc06a6d1632908 | ad9afd7530cfc366fcaac79e9faa3df6c8b4bf08 | refs/heads/master | 2020-07-20T03:54:11.435156 | 2019-11-05T13:12:44 | 2019-11-05T13:12:44 | 206,568,059 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,318 | cpp | MinCostLowTree.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair < int , pair < int , int > > mp;
#define rep(i , j , n) for(long long i = j ; i <= n ; i++)
#define per(i , j , n) for(long long i = j ; i >= n ; i--)
const ll N = 3534567;
const ll mod = 1e9 + 7;
const ld ep... |
c44c71fd4510222cfca5470d2797c2994d54d456 | 6d1c143787686870c2bd792b75836c5a707dad3f | /Server/CommonCPlus/CommonCPlus/ice/Ice/LocalObjectF.h | ba21feb1f1ce0a1eb455c93f31c383324c58259f | [] | no_license | jakeowner/lastbattle | 66dad639dd0ac43fd46bac7a0005cc157d350cc9 | 22d310f5bca796461678ccf044389ed5f60e03e0 | refs/heads/master | 2021-05-06T18:25:48.932112 | 2017-11-24T08:21:59 | 2017-11-24T08:21:59 | 111,915,246 | 45 | 34 | null | 2017-11-24T12:19:15 | 2017-11-24T12:19:15 | null | UTF-8 | C++ | false | false | 640 | h | LocalObjectF.h | // **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// ********************************************... |
da18cd85b7013140f8d0f6de2d68592fb307a289 | bdf909f1316ce79b1e004841a52d465bc3088bec | /SFGE/include/sfge/infrastructure/type_registration_impl.hpp | 731803ce88cd566483292cf193abf21847ce6060 | [
"MIT"
] | permissive | sheldonrobinson/sfge | d6d9e54405fa595ba8eee1cb2eb7fedbbca01167 | af0adbc3ea1509a20d7255d41c34fb1f8db83728 | refs/heads/master | 2021-01-10T03:48:42.311085 | 2019-04-22T06:28:30 | 2019-04-22T06:28:30 | 53,444,587 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 933 | hpp | type_registration_impl.hpp | #ifndef SFGE_INFRASTRUCTURE_TYPE_REGISTRATION_IMPL_HPP
#define SFGE_INFRASTRUCTURE_TYPE_REGISTRATION_IMPL_HPP
#include "sfge/infrastructure/type_registration.hpp"
#include "sfge/infrastructure/infrastructure_fwd.hpp"
#include <string>
#include <SFML/System/Vector2.hpp>
#include <SFML/Graphics/Color.hpp>
#i... |
e8f86cf9809816cb247ddecac3019ff0957ba0de | f2a3e64298f83ee0242789787aa6a45983135277 | /core/utility/cli.cpp | 3f8203d658f6a1e790b3145357f68ebdaaf0b690 | [
"MIT"
] | permissive | killvxk/mfcmapi | 4a4d8a2f89c3868cf6fcaf82e9965b1197898e6a | 0b3c95bfa62bb335f027944e92040d37b0b8115d | refs/heads/master | 2020-07-02T02:12:29.929080 | 2019-08-06T13:32:52 | 2019-08-06T13:32:52 | 201,382,324 | 1 | 0 | MIT | 2019-08-09T03:29:41 | 2019-08-09T03:29:40 | null | UTF-8 | C++ | false | false | 5,381 | cpp | cli.cpp | #include <core/stdafx.h>
#include <core/utility/cli.h>
#include <core/utility/strings.h>
#include <core/utility/output.h>
namespace cli
{
option switchUnswitched{L"", cmdmodeUnknown, 1, 1, OPT_NOOPT};
option switchInvalid{L"", cmdmodeHelpFull, 0, 0, OPT_NOOPT};
option switchHelp{L"?", cmdmodeHelpFull, 0, 0, OPT_INI... |
859455f643cec61ccf64571a95432c81033bbd3b | 41e7251063f265b98df8d612473068bec2465997 | /include/renderer/VideoRenderer/GLVRException.h | 57003d9b0815525f3cf773ffb2f8eb9dd55092d1 | [] | no_license | inbei/smf | fefd47a96559483aa396861fd23aca9e29e49d04 | 702f6a296d4db28bfeed88718d4da6d2f801023a | refs/heads/main | 2023-03-16T06:38:27.542161 | 2020-12-17T06:09:17 | 2020-12-17T06:09:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,103 | h | GLVRException.h | #ifndef GLVR_EXCEPTION_H
#define GLVR_EXCEPTION_H
#include "GLVRPrerequisites.h"
#include "GLVRLog.h"
#include <framework/SMFException.h>
namespace surveon
{
namespace glvr
{
class GLVR_API GLVRException : public Exception
{
public:
GLVRException(const String& typeName, const String& description, const String&f... |
6be9193a81a989b624a8f9a424b8c25bc3fc0f85 | e11ec5af9c878a032d96d32d00750aa93587380b | /vmt/src/objecteditdialog.cpp | e5f755a6b3c3a6cfac901a248e3087e6e3f61006 | [] | no_license | jefa/video-mapping-tool | f30e50c0182046b4ac469d3ae131be98d6981ac1 | ccf43fc6f5b0ab0ce036448ebb39e7c201da5f56 | refs/heads/master | 2020-05-30T22:47:54.439289 | 2012-09-03T15:28:12 | 2012-09-03T15:28:12 | 4,585,152 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,559 | cpp | objecteditdialog.cpp | #include "objecteditdialog.h"
#include "uiutils.h"
#include <QtGui>
using namespace gui;
//! [0]
ObjectEditorDialog::ObjectEditorDialog(VmtModel *modelobj, string idobj)
{
this->model = modelobj;
this->idobj = idobj;
Object3D *obj3d = this->model->getObject3D(idobj);
object3d = obj3d;
... |
55c3e39d2bf830c401696d811efd3345cc60423d | 20a6858aee02b0c85d68a8d8326c4f8d0231851b | /Arrays/C-Style-Array-Copy/main.cpp | 6d6754d25ed1d2eb2d9af2e4c1a5db2537f7db5c | [] | no_license | stungeye/Cpp-Code-Examples | 1d08e86b4723a5b06f51b0ba08c714f20795af28 | a7c70d95d52be39b5e77169a603836b16bd8fb51 | refs/heads/main | 2023-05-09T19:37:20.365957 | 2021-06-03T15:32:38 | 2021-06-03T15:32:38 | 373,548,565 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,202 | cpp | main.cpp | #include <iostream> // For std::cout
#include <algorithm> // For std::copy
#include <array> // For std::array
int main() {
// Two C-Style Arrays (Length: 4, Type: int)
double original[4]{2,4,6,8};
double duplicate[4];
duplicate = original;
// Manual copy from original to duplicate array:
std::copy... |
d4b1e6e0354e4810e6f5ab226b99be262f0aa991 | af85c19595f52e21628dff8bd873d8a936686be7 | /makeklein.cc | 74d71b0c40fb8676883b318aa83676250e7712c0 | [] | no_license | bhamrick/csl | da5b33c90593d081753de87575a345a6100faccc | 8f902121160dd4068d5cf4c836afc8e594f0c6ee | refs/heads/master | 2021-01-22T23:48:33.789022 | 2010-05-26T02:23:57 | 2010-05-26T02:23:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,986 | cc | makeklein.cc | #include<cmath>
#include<cstdio>
#include<cstdlib>
using namespace std;
int **id;
const double pi = 3.141592653589793238463;
int main(int argc, char **argv) {
if(argc < 2) {
printf("Usage: %s N\nThis program creates a klein bottle triangulated as an N by N square with opposite sides associated (thus it will conta... |
0cfcbe3a6a0f6190c4713404b4f1868d1c83f2ad | 73a94aa94482eb5155258bd25dcb01dc5402b96c | /include/js0n/traits/simple.hpp | 34bcadeff6b80a542baa06d23e31fca9907c6a0f | [] | no_license | metagoto/vrac0x | 36bde806076ce3c24316cb99e272f0260cf32f78 | a3617fe57fabeacd2b4f715a27189ba655b99a14 | refs/heads/master | 2021-03-12T23:44:37.722039 | 2011-11-06T05:09:55 | 2011-11-06T05:09:55 | 2,242,522 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 657 | hpp | simple.hpp | #pragma once
#include <string>
#include <vector>
namespace vrac0x { namespace js0n
{
namespace tag
{
struct simple {};
}
template<typename Self>
struct traits<Self, tag::simple>
{
typedef int int_type;
typedef double ... |
77aa7962730204733491519f75fa20cf712a464e | 391a2503af992339650bc7673b39b63d6748de4f | /libuvEx1/libuvEx1.cpp | a29d9f6399fb005993870526c7cf2dc33e2613d7 | [] | no_license | pdpdds/Win32OpenSourceSample | ccd8258a821b03118af45ef288d94c57aa43f41d | 17af141c72685698abe7f25182ab1dbb90f61f6e | refs/heads/master | 2021-01-25T07:27:35.405919 | 2015-12-11T07:44:10 | 2015-12-11T07:44:10 | 24,195,690 | 10 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 2,903 | cpp | libuvEx1.cpp | // libuvEx1.cpp : 콘솔 응용 프로그램에 대한 진입점을 정의합니다.
//
#include "stdafx.h"
#include <stdlib.h>
#include <string.h>
#include <uv.h>
#define TEST_PORT 9000
#pragma comment(lib, "libuv.lib")
#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "Psapi.lib")
#pragma comment(lib, "Iphlpapi.lib")
#define l... |
8f3c93c2a296172f53772c25c3a988b4ec6ae2e4 | 3076694aae465b2a13b69bf9d4dfef0101658f99 | /0107-Binary_Tree_Level_Order_Traversal_II/solution2.cpp | 7c8c1e2aa95915c960645c6406ecf019e1c4c89d | [] | no_license | Sinyu104/Leetcode-practice | 516a2c44b04258f86a21a7178c6a895c0e4d4cca | b9d982ac9ee240214d886af89611f0cb1d2e55c5 | refs/heads/master | 2020-07-15T08:55:07.164690 | 2020-01-10T10:48:05 | 2020-01-10T10:48:05 | 205,525,681 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 972 | cpp | solution2.cpp | #include <iostream>
#include <queue>
#include <vector>
#include <algorithm>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Solution {
public:
vector<vector<int>> levelOrderBottom(TreeNode* root... |
6e2f760dd8516321770e0ef3bce0b74a9c52624e | 1ad6914d80019b6f6c89e31a7a90860ce812b535 | /trikGui/batteryIndicator.h | 363907aa2ce61fd091a92df8641def1e04c4f48f | [
"Apache-2.0"
] | permissive | trikset/trikRuntime | 4158790fb7980fb0889a9c1f6713166a508dd7e8 | 29b4ecd8fa527fea8e3abbc719966f4e7a88b2fa | refs/heads/master | 2023-08-15T01:40:03.529273 | 2023-07-20T15:14:40 | 2023-07-20T15:14:40 | 12,588,131 | 17 | 56 | Apache-2.0 | 2023-09-11T18:40:59 | 2013-09-04T10:26:27 | C++ | UTF-8 | C++ | false | false | 3,048 | h | batteryIndicator.h | /* Copyright 2014 CyberTech Labs Ltd.
*
* 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 agree... |
2b37c2b1711d6e45e2c595286fae90fad35e56b8 | 022798ec2730334061e7a6985e7b046e86c65f37 | /SheYing_2/src/main.cpp | 7f2f64fe0693b0507ef70d0bcf966b1e5958ab05 | [] | no_license | YingShe/Pipeline-simulation-with-out-of-order-execution-based-on-MIPS | ec07c5b941ab002faf567370c96c3ebe859ef8eb | 1c9a140a7a710ee70546576be5afb44eec8abc23 | refs/heads/master | 2021-01-10T20:35:58.191810 | 2015-03-14T15:22:15 | 2015-03-14T15:22:15 | 32,218,222 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 951 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <stdio.h>
#include "global.h"
#include "disassemble.h"
#include "writedisassemble.h"
#include "init.h"
#include "writefile.h"
#include "issue.h"
#include "mem.h"
#include "alu.h"
#include "writeback.h"
#include "restore.h"
#include "fetchdecode.h"
using names... |
ede7cda2864e82718b4d936d244b24d54d6b13d1 | 67be25ae52336c6a2a06377677fe7289381db06f | /salim/mainwindow.cpp | aac47c316ad729c081c4cac14aa63281625ff965 | [] | no_license | SalimTR/9-11 | e102950357348e615a1e24fb67ff2be6b6cde015 | ca68fadf462b7c878121484b1d5451c27d39e0d8 | refs/heads/master | 2020-09-20T16:49:08.010227 | 2019-12-10T23:34:46 | 2019-12-10T23:34:46 | 224,540,695 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,162 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "employes.h"
#include "departement.h"
#include <QMessageBox>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
ui->listView->setModel(tmpEmployes.afficher());
}
MainWindo... |
95f7cd3868cc2fc90e8921a08b8c0d9f2edc5376 | fe61786e8b6152f28cd7195b6e7904f24401d13f | /hw4pr1.cpp | b78ae8cc7a2d87e25f9fce1f3c043b7aea129f70 | [] | no_license | Eric-Gonzalez-Portfolio/CSCE-121 | 8bf0d0f8ff26211d76e7bde9103def9ffaff9147 | 3aa969d440a27b62612eba0a9dc55a6de06bfcc9 | refs/heads/master | 2021-05-12T17:48:42.133073 | 2018-01-11T05:30:15 | 2018-01-11T05:30:15 | 117,054,002 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 940 | cpp | hw4pr1.cpp | //Eric E. Gonzalez
//CSCE-121-502
//Due: October 07, 2014
//hw4pr1.cpp
#include "std_lib_facilities_4.h"
double a;
double b;
double c;
int main(){
try{
//Receive input
cin >> a >> b >> c;
double quad_pos = (-b + sqrt(b*b - 4*a*c))/(2*a); //Quadratic Formula
double quad_neg = (-b - s... |
44fb2e279e0ff357e8b4d289899624dcf5312000 | 5e9f98aea9e0b098b906d286741c59346621316c | /First Term/LAB 1/Задание 3.cpp | 543275b995027a8797438d0351084ed78c7fe10c | [] | no_license | Osipchik/Cpp | 3f8966804f51250ebd8b2c2468bc2673e154b202 | 6c5f042b6cba29d0def436eba8dc9f1e383a8d4b | refs/heads/master | 2020-04-28T09:45:23.779389 | 2019-10-17T16:47:58 | 2019-10-17T16:47:58 | 175,179,026 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 490 | cpp | Задание 3.cpp | //---------------------------------------------------------------------------
#pragma hdrstop
#pragma argsused
#include <tchar.h>
#include <iostream.h>
#include <conio.h>
int _tmain(int argc, _TCHAR* argv[])
{
int a, b, z;
cout << "a=";
cin >> a;
cout << "\nb=";
cin >> b;
bool max = a>b;
... |
a9b8de26033b391100587b3edc315b76ef65c42d | 57858101e6baf28ff8fc08708d9750279feb44ed | /GameFiles/Intermediate/Build/Win64/UE4Editor/Inc/AdvGamesProgramming/AIManagerNM.generated.h | 157b34e88a9ed0692d6d6fa1bf9d866e710bd8f2 | [] | no_license | pog7776/AdvGamesProgramming | 0938ec37c8b928059c8eab3093190b00599d3fcd | 4d7ecd5c7e99a59fff9914cece9e6ff28fe38d9b | refs/heads/master | 2023-01-03T21:47:45.782567 | 2020-11-02T08:20:44 | 2020-11-02T08:20:44 | 292,988,360 | 0 | 0 | null | 2020-11-02T08:05:00 | 2020-09-05T02:41:58 | C++ | UTF-8 | C++ | false | false | 4,148 | h | AIManagerNM.generated.h | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
==============================================================... |
3c9de9ab6d6409b86f66bb80ac98fb4ee3befb8c | fe2836176ca940977734312801f647c12e32a297 | /Codeforces/Contest/Round 355/B/main.cpp | 8e40ec7e25e5ea97ee3122a337f3e0f11ab21acb | [] | no_license | henrybear327/Sandbox | ef26d96bc5cbcdc1ce04bf507e19212ca3ceb064 | d77627dd713035ab89c755a515da95ecb1b1121b | refs/heads/master | 2022-12-25T16:11:03.363028 | 2022-12-10T21:08:41 | 2022-12-10T21:08:41 | 53,817,848 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 847 | cpp | main.cpp | #include <bits/stdc++.h>
//LLONG_MIN LLONG_MAX INT_MIN INT_MAX
#ifdef _WIN32
#define lld "I64d"
#else
#define lld "lld"
#endif
typedef long long int ll;
using namespace std;
int main()
{
ll n, h, k;
scanf("%lld %lld %lld", &n, &h, &k);
ll inp[n];
for(int i = 0; i < n; i++)
scanf("%lld", &inp[i]);... |
42cc7b4facf513bc2b6419cbe45374faefdbfc80 | 1d9df1156e49f768ed2633641075f4c307d24ad2 | /tizen_src/ewk/unittest/utc_blink_ewk_security_origin_host_get_func.cpp | 60a3e5af29e8a74217da2499d9859fedbb4391d0 | [
"BSD-3-Clause",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | GSIL-Monitor/platform.framework.web.chromium-efl | 8056d94301c67a8524f6106482087fd683c889ce | e156100b0c5cfc84c19de612dbdb0987cddf8867 | refs/heads/master | 2022-10-26T00:23:44.061873 | 2018-10-30T03:41:51 | 2018-10-30T03:41:51 | 161,171,104 | 0 | 1 | BSD-3-Clause | 2022-10-20T23:50:20 | 2018-12-10T12:24:06 | C++ | UTF-8 | C++ | false | false | 1,158 | cpp | utc_blink_ewk_security_origin_host_get_func.cpp | // Copyright 2014 Samsung Electronics. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "utc_blink_ewk_notification_test_base.h"
class utc_blink_ewk_security_origin_host_get : public utc_blink_ewk_notification_test_base
{
protected:... |
2d8e36f3b5a53d5aa4e578b3e3f0a0bb97d015d0 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/admin/darwin/src/msitools/orca/otrace.cpp | 95d9402b887dea099ff0e7e24e64e8cd917be3e8 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 32 | cpp | otrace.cpp |
#include "..\common\trace.cpp" |
0da35ff999165652f3d075909f3bf60659ee8ffd | 7aa600dd14d319c88576f24b4a529e3e071c8589 | /compiler/src/Ast/AstTupleSpread.cpp | 0429907b7148206492319cfa840b3ac76e6b8faf | [
"BSD-3-Clause"
] | permissive | androiddevnotesforks/simpleLang | 5ff59b1df6819d0dd9cfdf69d184d39695ed527a | f39c490e5a41151d1d0d2f8c77c6ce524b7842f0 | refs/heads/master | 2023-04-06T19:06:49.378694 | 2021-04-01T11:59:07 | 2021-04-01T12:01:39 | 344,431,817 | 0 | 0 | BSD-3-Clause | 2021-04-08T15:29:53 | 2021-03-04T10:14:55 | null | UTF-8 | C++ | false | false | 1,506 | cpp | AstTupleSpread.cpp | #include "stdafx.h"
#include <llvm/ADT/ArrayRef.h>
#include "AstTupleSpread.h"
#include "AstContext.h"
#include "CodeGenerate/DefGen.h"
#include "CodeGenerate/TupleSpreadGen.h"
#include "../utility.h"
#include "../Type/TupleType.h"
void AstTupleSpread::draw(std::ostream & os) {
std::string x = "tuple resolve: ";
fo... |
9a1b86e43cd687a0027d69e13f85f60c21df7c76 | 490f20c0e75357d1be5f789f362273f1cdc0cfcb | /RcEngine/OpenGLRenderSystem/DllMain.cpp | dfe50b43cc8239b6917038bdba7aa49d794acbe7 | [] | no_license | cgkelei/cg-demos | 105639b46caed39127579e61340d25cb29b72a8c | 34048efae5dd0f3bf02bcd82881e5398b4fbf0e6 | refs/heads/master | 2021-01-10T13:34:31.184706 | 2014-07-25T03:06:01 | 2014-07-25T03:06:01 | 48,785,065 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 258 | cpp | DllMain.cpp | #include "OpenGLModule.h"
extern "C" void _OpenGLExport dllStartPlugin(RcEngine::IModule** pMoudle)
{
*pMoudle = new RcEngine::OpenGLModule();
}
extern "C" void _OpenGLExport dllStopPlugin(RcEngine::IModule** pMoudle)
{
delete (*pMoudle);
}
|
fd6b9970c28e3cd45d6a2bba788c43941b298609 | 1ae675815c4a537c64003bc33837cd967271e5da | /austinov.10.objects_and_classes/07.plorg.cpp | 3e42424911c87790b2e400a96b40a980be1da832 | [] | no_license | ustinov/cpp.fundamentals | 005c060e1e91dcbe2c433fefbe637d8c4f9523d7 | 6e780bd3bef753efde8edcbadf25f6cfaeb99d21 | refs/heads/master | 2021-01-18T15:38:46.580253 | 2013-07-02T08:32:10 | 2013-07-02T08:32:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,058 | cpp | 07.plorg.cpp | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* Betelgeusean plorg has these properties: */
/* */
/* Data ... |
f770b33dd6aa2db4009f8b502e342585138a3aec | db7ac399c9e8a52a090144968e603cf5d8161837 | /4,25/4,25/DFA.h | 207be33c72cffa2fbcdecf2b253db7240dd1add6 | [] | no_license | Z-Billy/Automata | f43cc29e1759f3743617e42e8c0b6e94f25a36bb | 6dd625007a1d14ed28deee66e50f3bee19a914b1 | refs/heads/master | 2022-01-16T21:57:16.474137 | 2019-07-30T09:50:02 | 2019-07-30T09:50:02 | 199,498,132 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 323 | h | DFA.h | #pragma once
#include "Creating.h"
#include<vector>
#include"State.h"
#include<string>
template <typename T>
class DFA :
public Creating
{
public:
DFA(std::vector<T>&, State*, State*, State*, char ,std::string &);
~DFA();
virtual void delete_state (State* ) override;
void ordering();
private:
std::string code;
}... |
75f5868785e8f65c1982ef259840b98d21ad83ff | 491ef641cc5a2dc48fbbb85a58de01c9f5caeb42 | /dipmodule/include/dip.h | fbee80e9476bec87c9907a8445721808c65a0f78 | [] | no_license | Fynn93/riivolution | 423cfb60165a443ce69670700c22374b68eb70ba | de533a25073a6e592f147230d2de9e3870e65495 | refs/heads/master | 2023-04-16T21:42:59.508301 | 2021-04-29T19:27:01 | 2021-04-29T19:27:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,405 | h | dip.h | #pragma once
#include <proxiios.h>
#include <diprovider.h>
#define MAX_OPEN_FILES 8
#define MAX_FOUND MAX_OPEN_FILES
namespace ProxiIOS { namespace DIP {
namespace Ioctl {
enum Enum {
Inquiry = 0x12,
ReadDiscID = 0x70,
Read = 0... |
b2374b55e4fc8ae5243928c6741c906fa26a75f1 | a80b1d9c01a8ea225911d83c8765196a189a8ff0 | /ch03/demo3.4.1.cc | 395eb43e3edb0b5ad07662467622616ea8a06010 | [] | no_license | maywuyi/cpp-primer | 66e920728f5cddb85727b179adf75dfff3a157c8 | fc7985445c3b2b691309fbf7579cb1a5202a7e13 | refs/heads/master | 2020-09-15T11:59:52.490325 | 2019-11-19T15:02:52 | 2019-11-19T15:02:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,691 | cc | demo3.4.1.cc | #include <iostream>
#include <vector>
using namespace std;
// 迭代器 iterator
int main() {
// vector<int> v1{1, 2, 3};
vector<int> v1;
auto b = v1.begin(), e = v1.end();
cout << (b == e) << endl; // 同样指向尾迭代器,相等
// 迭代器运算符
string s1("some thing");
if (s1.begin() != s1.end()) { // 不为空
... |
6a2f541bf76b4baeb4a652679e9cd131012f6b0e | fd84667b1b5304fde04cec53454d3dd07aad87d3 | /BoundedBuffer.h | 715abe4dd0154dc9c2fb0e727a57ae9f2b532b24 | [] | no_license | josiahhk/multithreaded-file-transfer | ccca0fcda45f229eafb5aeacb815f57c956a5d05 | 00b20fb9f7fa11ac9ff55d0a12fc43203e49bfc1 | refs/heads/master | 2020-09-04T23:05:41.710402 | 2019-11-06T05:29:39 | 2019-11-06T05:29:39 | 219,918,734 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,092 | h | BoundedBuffer.h | #ifndef BoundedBuffer_
#define BoundedBuffer_
#include <stdio.h>
#include <queue>
#include <string>
#include <pthread.h>
#include <vector>
#include "common.h"
using namespace std;
class BoundedBuffer
{
private:
int cap;
queue<vector<char>> q;
public:
pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER;
pthread_... |
f7ba31f9c51b116f94b812541a12b279572a3712 | 3ef1c5a4ad101073e9ea7d21cd0eecf26ea332a7 | /include/player.h | bf65bd00e709b64f4f5408ef10ee67028385f4fd | [] | no_license | jdowens/Runestone | fb61af095aa631e8fe85d80d04495aab8f9ad6f7 | 5dfe94c3ec51c0f208493e1995ea7787123fcda6 | refs/heads/master | 2021-01-10T08:57:36.889544 | 2017-06-22T04:33:18 | 2017-06-22T04:33:18 | 44,415,163 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,230 | h | player.h | /*
player.h
An abstraction of a player in the game. Has the ability to control deck and hand.
*/
#ifndef _PLAYER_H
#define _PLAYER_H
// c++ includes
#include<string>
#include<sstream>
#include<iostream>
#include<memory>
#include<algorithm>
// sfml includes
#include<SFML/Graphics.hpp>
// dtn includes
#include "pla... |
736ca493806aeafdb65a9b07f3b1258f5f8419dd | 8f0ff5aa31375bdb812d28fdf310a431bf87b86b | /tests/HILTester/HILTester.ino | 48b886db3716d2ba09133fab12fc7b261d73f1d2 | [
"MIT"
] | permissive | AleksanderLidtke/serialMonitor | 98ee16be184ad920c155384010c9b797cbb79e5d | ecc709453c493ea661437f8ac9f1806e115ef964 | refs/heads/master | 2021-01-22T18:57:49.044744 | 2020-06-10T07:53:07 | 2020-06-10T07:53:07 | 85,136,237 | 1 | 0 | MIT | 2019-06-23T12:19:30 | 2017-03-16T00:54:43 | Python | UTF-8 | C++ | false | false | 20,680 | ino | HILTester.ino | /* This Arduino code is supposed to run together with a corresponding
* SerialMonitor test script. The test script will send a command to the Arduino
* to execute a given test case (send certain data through the serial port).
* The test script will then compare the data that if received to the expected
* results in... |
68f27ec100df26e2987fe41288355c8ad3588655 | 710d410a530dd0072a27b13c850fb68caa7fbda5 | /src/UnitTestsAnimationGeneration.cpp | 78f091af7c4c64739ee463f3fc04f30587691322 | [] | no_license | swell-animations/swell-animations-algorithm | db1ca3cf357d24d6561c2a2ba6a5a40c01703b72 | 1b7df04cbcf8533e1c0a06267b0ff8c8bd7ef4bf | refs/heads/master | 2020-12-03T09:29:15.225819 | 2016-05-30T20:36:17 | 2016-05-30T20:36:27 | 45,352,882 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 712 | cpp | UnitTestsAnimationGeneration.cpp | #include "AnimationGeneration.cpp"
#include <gtest/gtest.h>
const double EPSILON = (double)1e-6;
TEST(animationGeneration_getSplineLength, can_get_spline_length) {
pt *point1 = createPoint(11, 6, 8);
pt *point2 = createPoint(-12, 5, -7);
pt *point3 = createPoint(1, 5, -10);
pt *point4 = createPoint(4, 8, 9);
vec... |
556fb1ebdf7db87db304b36e32d0962ae774fed7 | bfc1be2a633d3556527c9e5d634efe57049853a2 | /codeforces/545C.cpp | fa498a10544df206dbd80ad91e0307754e6e9c76 | [] | no_license | madaan-nikhil/competitive-programming | f4b2db7d3aff53c152da21e6bb0532ed84835d2d | 140beddee90c85e43c20e3b1752b4ceb4244873d | refs/heads/master | 2021-10-02T20:27:34.385505 | 2018-11-30T14:51:17 | 2018-11-30T14:51:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,029 | cpp | 545C.cpp | #include <vector>
#include <iostream>
#include <algorithm>
#include <queue>
#include <map>
#include <set>
using namespace std;
#define ll long long int
int main()
{
int n,ans=0;
cin >> n;
vector<pair<int,int> > v(n);
vector<pair<int,pair<int,int> > > v1(n);
for(int i=0;i<n;i++)
{
cin >> v[i].first >> v[i].se... |
f144df9e72cc0397615ad49005e607c54b7b300f | dd32a11ab9b17f6dfe3aa22acc75a55a3be04752 | /MFCApplication1/TCPMonitor.h | ede50c7c08590bedc56e81713c639c358e4a6499 | [] | no_license | imkcy9/windows-handle-catcher | 11dc709d4eeadde098e8af985c16227774b1a0ae | 96c68279fc3653cb98bdcce4d20f445d52e309f5 | refs/heads/master | 2023-07-10T02:59:29.147950 | 2023-06-24T16:20:56 | 2023-06-24T16:20:56 | 282,167,378 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 199 | h | TCPMonitor.h | #pragma once
#include <zmq.hpp>
class TCPMonitor : public zmq::monitor_t
{
public:
TCPMonitor();
~TCPMonitor();
virtual void on_event_connected(const zmq_event_t &event_, const char *addr_);
};
|
4becf436dee77e8e39721c49d568343041c5e5a0 | 0403ce9c09b0c8747f08848188b50d5895e34afe | /cxx/dbtest/EStatistic.cpp | 6a690471cd82204b0894b3197f6cd917824f4ae3 | [] | no_license | livefantom/mycode | f26873a1b67e4f4caf7fa5b183e4ac91e34ef79b | dbdebac31b9b3b96ac4a503a874ebe906078c772 | refs/heads/master | 2016-09-06T11:30:23.491983 | 2012-08-26T15:30:54 | 2012-08-26T15:30:54 | 435,793 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 10,878 | cpp | EStatistic.cpp | #include "EStatistic.h"
#include "OraCommon.h"
#include <SysConfig.h>
#include <sys/timeb.h>
extern std::string AGIPDecrypt(const std::string& src, const std::string& key_path);
//extern std::string AGIPEncrypt(const std::string& src, const std::string& key_path);
EStatistic::EStatistic(void)
{
}
EStatistic::~EStati... |
7fa1ec07ced32da2ae6e305ee15504c360f3a96a | 30ba250814fea9dc0a65440b45695bbb91c83d6c | /chrg-test/midea_decrpyt.cpp | cd837611c12ced8c72b95d9ed4ab894ba90576b7 | [] | no_license | qin215/AirohaRaceCmd | 5456d4601eae1ad52ab1a4102162a2ce36dd57e9 | 77fdd2283deee0310c2172a782bbf999e1bc9525 | refs/heads/master | 2023-07-16T18:24:50.148559 | 2021-08-25T08:44:51 | 2021-08-25T08:44:51 | 403,016,625 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 10,370 | cpp | midea_decrpyt.cpp | /*
* 美的license解密模块
*/
#include "stdafx.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "ServerCmd.h"
#include "mywin.h"
#include "ProductorErrorCode.h"
#include "ProductorDll.h"
#include "qcloud_iot_export_log.h"
#include "homi_common.h"
#include "common.h"
#define LIB_PRODUCT_DLL_NAME "Pr... |
09170ef14ba269db04633140c5dfc03a7fa6b71a | cccfb7be281ca89f8682c144eac0d5d5559b2deb | /chromeos/dbus/rmad/fake_rmad_client.cc | 4634ed8bac050f87ea9dbf10b914aa99d233e28f | [
"BSD-3-Clause"
] | permissive | SREERAGI18/chromium | 172b23d07568a4e3873983bf49b37adc92453dd0 | fd8a8914ca0183f0add65ae55f04e287543c7d4a | refs/heads/master | 2023-08-27T17:45:48.928019 | 2021-11-11T22:24:28 | 2021-11-11T22:24:28 | 428,659,250 | 1 | 0 | BSD-3-Clause | 2021-11-16T13:08:14 | 2021-11-16T13:08:14 | null | UTF-8 | C++ | false | false | 13,405 | cc | fake_rmad_client.cc | // Copyright 2021 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 "chromeos/dbus/rmad/fake_rmad_client.h"
#include "base/logging.h"
#include "base/threading/thread_task_runner_handle.h"
namespace chromeos {
na... |
42b9021fbe5efe1bd2c6ceb85d6fe8e9b37c5ef8 | 666c27fb014afcbf102a17e9408c3c951f6cc738 | /Assignment1/main.cpp | 654019b43f88fc1e50bc31e7a8979d1cecd29d66 | [] | no_license | ianrasmussen05/CPSC350 | f89da2d5afb168324f331769676c3d162aa246f2 | e26cfaca54c0e9d801b2091a3fdf51f5a5fa86da | refs/heads/master | 2021-01-03T00:50:01.392795 | 2020-05-12T16:31:47 | 2020-05-12T16:31:47 | 239,843,026 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,075 | cpp | main.cpp | // Ian Rasmussen
// 2317200
// irasmussen@chapman.edu
// CPSC 350-01
// Assignment 1
// main.cpp
#include "DNA.h"
int main(int argc, char** argv)
{
DNA *dna = new DNA(); // Create an instance of DNA object
string userInput = "\0";
// Checks to see if there was 2 parameters in the console. If no... |
c228ca1607d10a7ce09c0023b7076911890c9112 | 16ce4ebb1ee2605e0b3de5d3b59934df0e86dd36 | /tools/image.cpp | f1062cacb866f8fd72d30b4e27a61c909e88af90 | [
"IJG",
"Zlib",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rasata/OpenCTM | d86873336d58c39a0f91e8f8782c618771b2321b | 243a343bd23bbeef8731f06ed91e3996604e1af4 | refs/heads/master | 2020-05-09T14:45:41.391057 | 2018-03-14T20:56:40 | 2018-03-14T20:56:40 | 181,206,861 | 1 | 0 | Zlib | 2019-04-13T17:36:12 | 2019-04-13T17:36:12 | null | UTF-8 | C++ | false | false | 4,002 | cpp | image.cpp | //-----------------------------------------------------------------------------
// Product: OpenCTM tools
// File: image.cpp
// Description: Implementation of the Image class.
//-----------------------------------------------------------------------------
// Copyright (c) 2009-2010 Marcus Geelnard
//
// This... |
f33d04d7e910a9c8b6325f2d5fb185cfe53c5866 | 08f3737d0d8336a02941a651c36e3f45044014e3 | /game.hpp | 60c4299616d4899a92c042ebd77b2150f88bdd4d | [] | no_license | sutirtha8623/life | d9a306172b946c37b837a029563516ecddd95967 | 07c612a506280676c7c2ad9ca7b8733c36c69011 | refs/heads/master | 2022-07-10T00:34:05.175036 | 2020-05-18T06:27:30 | 2020-05-18T06:27:30 | 262,065,840 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 428 | hpp | game.hpp | #ifndef _GAME_H
#define _GAME_H
#include"cell.hpp"
#include"grid.hpp"
const int SCREEN_WIDTH = 1370;
const int SCREEN_HEIGHT = 700;
const int BLOCK_SIZE = 5;
class Game{
public:
Game();
void run();
void process_events();
void update();
void render();
void handle_player_input();
... |
80614e9c072bb6c91b974d520caa5e5c2a4a9a7e | 5efde9565b0f9651b917dd63e10fede1fce7c138 | /ips_07_16-master/hls_cropping/hls_cropping_vert/solution1/.autopilot/db/hls_design_meta.cpp | 9304e8def369f21a278429fb064919579c6464c2 | [] | no_license | sriharis304/camera_2_dmd- | c78f1dcff808915b88958b156b3878c658b381bf | e0d83c5046e062af6124d73fb90623b33c53673d | refs/heads/master | 2020-06-04T22:29:14.867639 | 2015-07-17T19:36:34 | 2015-07-17T19:36:34 | 39,271,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,464 | cpp | hls_design_meta.cpp | #include "hls_design_meta.h"
const Port_Property HLS_Design_Meta::port_props[]={
Port_Property("ap_clk", 1, hls_in, -1, "", "", 1),
Port_Property("ap_rst_n", 1, hls_in, -1, "", "", 1),
Port_Property("src_V_V_TDATA", 16, hls_in, 0, "axis", "in_data", 1),
Port_Property("src_V_V_TVALID", 1, hls_in, 0, "axis", "in_vld"... |
b643226e58805081dfcef1d4813002d5e9132567 | b480e050c5b34a31f90d0b5997ebdc4389f95cc9 | /620/c.cpp | e4f1e4455b325afb95219b245651ecd6c19f12fa | [] | no_license | bound1ess/codeforces-problemset | 4f4496ae3d1a4b783b3bd899f042cac1aeae0dbc | 0c38a810e59588d06bf4f38fb44261690687a7e8 | refs/heads/master | 2021-01-25T08:32:12.194160 | 2016-02-06T17:28:32 | 2016-02-06T17:28:32 | 35,603,023 | 3 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 630 | cpp | c.cpp | #include <cstdio>
#include <set>
using namespace std;
const int N = 1234567;
int a[N], l[N], r[N];
int main() {
int n, ans = 0, lpos = 0;
set <int> u;
scanf("%d", &n);
for (int i = 0; i < n; ++i) {
scanf("%d", a + i);
}
for (int i = 0; i < n; ++i) {
if (u.find(a[i]) != u.end()) {
u.clear();... |
db99a1d45ed86f8846ff1e0b3c0560e6eb533c55 | 723e20e050b829265d6092f60fcebd524bc950e4 | /华为OJ/百钱买百鸡.cpp | e4813a645cc794c2e6d48b0e48b7a3404eb96fd3 | [] | no_license | wlyw/HWOJ | d75f2cfaec3a2cfc93a6593b23ba99a811ebea39 | b94882bfc7f9f20991f411114fba46c4c1a58b24 | refs/heads/master | 2021-01-19T07:20:52.334745 | 2017-04-13T13:05:31 | 2017-04-13T13:05:31 | 87,537,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 380 | cpp | 百钱买百鸡.cpp | //#include<iostream>
//#include<vector>
//using namespace std;
//
//int main() {
// int n;
// while (cin >> n) {
// for (int i = 0; i <= 20; ++i) {
// for (int j = 0; j <= 33; ++j) {
// if (5 * i + 3 * j <= 100 && i + j + (100 - 5 * i - 3 * j) * 3 == 100) {
// cout << i << " " << j << " " << (100 - 5 * i - 3 ... |
0681dc12a89ebfd306db0a026c18e379d1c16675 | edb8583175255ff8b54812cb9d1a26151abd11b0 | /Yanity/BoxColider.h | 69335c835208d3a8c8e95020792e75e2b270304f | [] | no_license | egod1537/Yanity_SDL | f5145354f602238107170ca42681793795f7d7c7 | 81186d4ca25c896265a31f59a0d2ac0c44d2f3c6 | refs/heads/master | 2022-03-31T04:34:57.499088 | 2019-11-27T15:53:48 | 2019-11-27T15:53:48 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 431 | h | BoxColider.h | #pragma once
#include "Colider.h"
///@brief Box 형태의 Colider 컴포넌트 입니다.
class BoxColider : public Colider {
public:
Vector2 Scale, ///< BoxColider 중심을 시작인 크기
min, ///< BoxColider 시작점
max; ///< BoxColider 끝점
BoxColider(){ }
void Awake();
void Update();
bool isCollision(Vector2);
bool isCollision(BoxColi... |
f2ddeb83c1fa232f428bba51e35c8fdf275d8537 | 87eccce05e29d7dda3532fefb0049c95226aef09 | /数据结构/实验/ex2_1ExampleClass/main.cpp | 1404c6bf9bc80fc65c9ca1cbcaedfb4cc2fb113f | [] | no_license | guodongxiaren/ShiYan | ee993d35bafe7f8c1c2d96293fd04d944dc04871 | fd73caa7a49228de985045e33a00da1492cf4354 | refs/heads/master | 2020-05-16T08:00:30.376449 | 2016-01-10T09:24:50 | 2016-01-10T09:24:50 | 22,560,353 | 11 | 6 | null | null | null | null | GB18030 | C++ | false | false | 1,398 | cpp | main.cpp | #include <iostream>
using namespace std;
#ifndef MYEXAMPLECLASS_H
#define MYEXAMPLECLASS_H
#include "E:\wangwei\Test Include\MyExampleClass.h"
#endif
#ifndef EX2_1_TEST_H
#define EX2_1_TEST_H
#include "E:\wangwei\ex2_1ExampleClass\ex2_1_Test.h"
#endif
void main()
{
MyRectangle<float> rec;
int choose;
char continueYe... |
f7a89c94676bf945464290f58fb74d4d21293d82 | 0f93f77d3632c8c43a8f3f02fcacd140db9af04d | /src/education/testcase_loader.h | 4a6de52885cf9994f208cecc894a687e55fb6c33 | [
"Apache-2.0"
] | permissive | dragn/monster-bid | 5e4b367e9bcc146fe3c13ee3a95c472f7836cadf | a4df5205a59941fbae77393efa00a005f2ec96cc | refs/heads/master | 2020-12-24T17:35:50.470292 | 2015-01-02T08:49:06 | 2015-01-02T08:49:06 | 6,744,998 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,499 | h | testcase_loader.h | /*
* =====================================================================================
*
* Filename: testcase_loader.h
*
* Description: TestCaseLoader is a class containing routines for loading
* testcases from files and another sources
*
* Version: 1.0
* Created: 12/13/20... |
1d6c0f86e34e853b144a17bb1281ab221bf09ee4 | 9ebf0caa0d2b93a35ae5d513ab2cf50a16035feb | /src/InteractiveOpenGLDemo/Weapon.h | f284d145150a513a0a8c5304509672735c8a27e1 | [] | no_license | xchuki00/Bakalarska_prace | 54248ad7d5eed1f56c16320bf81594fc4a7311a8 | b5993760989fda9e07e239bd48e311b43a5d69ad | refs/heads/master | 2021-01-12T07:24:24.100017 | 2017-05-24T17:24:35 | 2017-05-24T17:24:35 | 76,950,864 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 637 | h | Weapon.h | #pragma once
#include "Model.h"
#include "misc.h"
#include "Projectil.h"
class Weapon :
public Model
{
Model* player;
Projectil *p = NULL;
void Angles();
double triggeredTime=0;
Projectil* toLoad = NULL;
bool fired=false;
glm::vec3 shift=glm::vec3(0.0f);
float LastDMG = 0;
public:
void setLastDmg(float f);
... |
61d39b869ed294c6b7de8eb6ced9fef735c05260 | e000dfb2e1ddfe62598da937d2e0d40d6efff61b | /venusmmi/app/Cosmos/CallLog/vapp_clog_usage.h | 3c20b225872cad1c9cfa410dbf733a2e95e133fd | [] | no_license | npnet/KJX_K7 | 9bc11e6cd1d0fa5996bb20cc6f669aa087bbf592 | 35dcd3de982792ae4d021e0e94ca6502d1ff876e | refs/heads/master | 2023-02-06T09:17:46.582670 | 2020-12-24T02:55:29 | 2020-12-24T02:55:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,110 | h | vapp_clog_usage.h | /*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or dis... |
aed6c93f9d5131a9df100b891dc6ba5538cb1fbe | c0f9a92121ac11a133d8b37b7a0d768ceff766c5 | /1063.cpp | f0bd99330866a31b1f247da32e5c51ca23eb06a5 | [] | no_license | 761357170/PAT | 9144f196233c7222e4fe03a8583072edec9faa82 | 6ca85a0473e9779e19155bc9485ddf9ff3bb7fda | refs/heads/master | 2016-09-09T23:36:20.047628 | 2013-12-22T07:26:02 | 2013-12-22T07:26:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 894 | cpp | 1063.cpp | #include<iostream>
#include<set>
#include<cstdio>
using namespace std;
set<int,less<int> > p[50];
set<int>::iterator it1,it2;
double cal(const set<int,less<int> > &a,const set<int,less<int> > &b)
{
int i=0;
double count;
count=a.size()+b.size();
it1=a.begin();
it2=b.begin();
while(it1!=a.end()&&it2!=b.end())
... |
d14e877c2b86fb3319dfc947b6a74fd7921b8dc7 | b7315f7ce2d46f9e43416ab3973d8f8bc29be5ae | /dinic.cpp | 4f019f9956945beff5f0b44b9199317ae8b09f4d | [] | no_license | KamilPiechowiak/CompetitionsLibrary | f9ad9f5400382ea0b28155b40f4fa10de795a23d | 1a4169f68aa8b290f4d9b12cb6bbd746d58b5d15 | refs/heads/master | 2020-07-04T14:19:49.056700 | 2019-10-03T18:05:05 | 2019-10-03T18:05:05 | 202,310,356 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,546 | cpp | dinic.cpp | #include<bits/stdc++.h>
/*
* Dinic's algorithm
* O(V^2*E)
*/
using namespace std;
typedef long long ll;
#define PB push_back
#define INF 1e9
int n;
const int maxn = 5010;
struct Edge {
int b, c, f, r;
Edge(int bb, int cc, int rr) : b(bb), c(cc), f(0), r(rr) {}
};
vector<Edge> v[maxn];
int d[maxn], st[max... |
ec702a3f1777e20a1dde8f538d9f8a153c3b0633 | 6bdd3f68b8ae79573ad5139c903661ebf80d0566 | /brush.h | 39b3a40373a528a5e252be197fac8fea893ab237 | [] | no_license | creonlevit/viewpoints | f3dc2744237711ded905d23d046f5098f006347a | f175a70ee2ba1855e9db9d73065263f054a1e692 | refs/heads/master | 2021-01-21T04:19:57.454174 | 2016-08-04T00:39:28 | 2016-08-04T00:39:28 | 35,932,542 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,379 | h | brush.h | // viewpoints - interactive linked scatterplots and more.
// copyright 2005 Creon Levit and Paul Gazis, all rights reserved.
//***************************************************************************
// File name: brush.h
//
// Class definitions:
// brush -- brush class
//
// Classes referenced:
// Plot_Window -... |
ab9075f1a00c88e3fe82ed733a583bcedd0e9024 | 78e8de1d9b24131d1ac5b85c1522fd33e40c18d7 | /shapemodel/lib/include/o_LabelImage.h | 069e8cfb49887cf8aee2f11ec36418c8af6f5cd3 | [] | no_license | HandongHCI/ModifiedHumanShape | af8b272c14c60951adeff3e0afde952308a12ad0 | 3e5800c6900226f40a820446be7c0200463a60cf | refs/heads/master | 2020-05-26T17:38:31.355469 | 2020-03-02T00:45:02 | 2020-03-02T00:45:02 | 188,322,476 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,544 | h | o_LabelImage.h | #ifndef __inc_o_LabelImage
#define __inc_o_LabelImage
//
// Oliver Grau, 12-APR-1996
// Jochen Wingbermhle 1997
// Sebastian Weik 28-Nov-1997
//
// $Id: o_LabelImage.h 474 2007-10-11 07:01:34Z rhys $
#include "o_Region.h"
#include "o_Picture.h"
#include "o_CPicture.h"
#include "o_HashTable.h"
#include "o_V... |
050337ad415128fdad3ef4bc0effc3a2f30fb31e | 3f7842602de5288df2d00a1316349e4c92262427 | /src/main.cpp | 5553ee1b8c87d1f0f63b9ef75be1fe3779eebc2b | [
"MIT"
] | permissive | EliasWatson/Graphics-Project | a15c0f524cf9eec0d88def3f807c13dcf8bcf9c4 | b319ddadb8c0467c2241e3d2121cd55540d452cf | refs/heads/main | 2023-04-12T16:09:05.092956 | 2021-05-01T22:10:28 | 2021-05-01T22:10:28 | 332,463,941 | 0 | 0 | MIT | 2021-03-02T11:48:22 | 2021-01-24T14:01:09 | C++ | UTF-8 | C++ | false | false | 8,653 | cpp | main.cpp | #include <iostream>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <string>
#include <fstream>
#include <stack>
#include <vector>
#include <cmath>
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <imgui.h>
#include <imgui_impl_opengl3.h>
#include <imgui_impl... |
1b5d081b24db592d48ffb438e2a4b34a5cdee3ea | b31f1e3f64dc49e46a7a2ca8097f3b34b57e3ea3 | /solutions/my_soln_lab09/include/script_game_object_methods.h | 8339b95364c0776dcaf03bb3eea1b4380b5882a6 | [] | no_license | ThomasMGilman/ETGG3802 | 3752f1960bc5d45ea3c81fad173725c08c0ca1b8 | 8d39e510fbbb05db5c26c18d39e30432cda08192 | refs/heads/master | 2020-12-12T16:44:13.530495 | 2020-05-20T16:41:35 | 2020-05-20T16:41:35 | 234,172,405 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,193 | h | script_game_object_methods.h | #pragma once
#include <stdafx.h>
#include <script_game_object.h>
// This file contains declarations for all methods of the python GameObject class.
namespace ssuge
{
namespace script
{
//@@@@@@@@@@@ SPECIAL METHODS (referenced from GameObjectType) @@@@@@@@@@@@@
/// Called internally by the python interpreter wh... |
b0ef3851a6c417a94c83197e65a56d483c76f13d | bba21a9bbd9a136ef7f38cad3233bf7a8e80f153 | /Main/Users/Reza/VRES/VRES/Light.h | 4a1a959255dc7d42578afc7abb4140046e4c6e13 | [] | no_license | rezanour/randomoldstuff | da95141b3eb7698a55c27b788b2bf3315462545c | f78ccc05e5b86909325f7f2140b18d6134de5904 | refs/heads/master | 2021-01-19T18:02:40.190735 | 2014-12-15T05:27:17 | 2014-12-15T05:28:41 | 27,686,761 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 925 | h | Light.h | #pragma once
#include "Scene.h"
namespace VRES
{
enum class LightType
{
Directional = 0,
Point,
};
class Light : NonCopyable<Light>, public SceneNode
{
public:
virtual ~Light();
LightType Type() const { return _type; };
const XMFLOAT3& Color() const { ... |
fb2b263c7b1363985f12f61f0114d6cf90cfd6b2 | c610d3e7125ae8ff03f38dbe26ab7989d4b93f31 | /cpp/libraries/binary_tree/unit_tests.cpp | 6303f1f2d59c4b355a20b764f65e944807b82715 | [] | no_license | nekofrozen/practice | d1bfe1450941f2fdfc1fac2775725350d9d4f917 | 7224c8b18daeba996a4d6ca517bf2544df412212 | refs/heads/master | 2020-09-22T09:22:00.391177 | 2014-08-28T04:21:33 | 2014-08-28T04:21:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,782 | cpp | unit_tests.cpp | #include <string>
#include <vector>
#include <gtest/gtest.h>
#include "binary_tree_node.hpp"
#include "binary_tree.hpp"
TEST(BinaryTreeNode, Constructor){
BinaryTreeNode* btn = new BinaryTreeNode(6);
bool is_not_null = false;
if (btn != NULL)
{
is_not_null = true;
}
E... |
dad904a05ddbf279657cd7496a70db64539b67b8 | 02f11d90691769f152a87da89ce932e64b37a77b | /FlappyEngine/Engine/GUI/GUI.cpp | ec6acf7fbcd3b8f0f12d98f06845a91d91111b40 | [] | no_license | Microhive/FlappyEngine | cfe5708b774cb3d7053fd64f6dd1703563110e6d | 896a42188bf0e111b908102889d40ef76e1d4028 | refs/heads/master | 2021-05-04T10:20:10.880831 | 2017-10-04T10:15:09 | 2017-10-04T10:15:09 | 55,368,198 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 921 | cpp | GUI.cpp | #include "GUI.h"
#include "../Renderer/Window.h"
GUI::GUI(std::string newIdentifier, Transform* transform, SpriteRenderer* spriteRenderer, Collider* collider, RigidBody* rigidBody) : Entity(newIdentifier, transform, spriteRenderer, collider, rigidBody)
{
input = Input::GetInstance();
}
bool GUI::IsClicked()
{
///... |
b00cfbf34b677365c82a929102fc4f9b1f5a1181 | 6f4a9d87c91b775078f3e1cf74f12b099c3f2269 | /Members.h | e292261b856ba1db80ddc9664596a4c7e4304fd2 | [] | no_license | wkhaliddev/ProjectManagementsystem | 28b30c71b3c2edea783bf361f3ed06078225d190 | aadb4e6ca318a1c3cfd6c7527352223a934486b9 | refs/heads/master | 2020-08-21T23:57:04.519511 | 2019-10-19T22:07:27 | 2019-10-19T22:07:27 | 216,276,211 | 1 | 0 | null | 2019-10-19T22:05:59 | 2019-10-19T22:05:59 | null | UTF-8 | C++ | false | false | 191 | h | Members.h |
class Members {
private:
int memName;
int memRoll;
public:
Members();
Members(int , int ); //initializing only doesnt require parameter variables
int addMem(int );
};
|
c4836b727439b15d373dc3759cdcceb015d9737f | 7b1dfe94d80bc90c5781db9150111f9fbab05d88 | /Common/pm/pm.cpp | aa790656450d18cc8cfc9f2cc9d2e897facdf26b | [] | no_license | wangscript007/RelayLive | 49f00dfab549098bb7f69513c5534a95b78a0748 | 21b502fb0f23343af80d2509e726de8f78b11e78 | refs/heads/master | 2022-11-30T01:29:40.838513 | 2020-08-15T09:15:52 | 2020-08-15T09:15:52 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 12,490 | cpp | pm.cpp |
#include "uv.h"
#include "cJSON.h"
#include "pm.h"
#include <thread>
class CPM : public CProcessMgr
{
public:
CPM();
~CPM();
virtual void Start();
virtual void AddTask(Options opt);
virtual void AddTasks(std::string path);
virtual void Stop();
virtual std::vector<Process> GetInfo();
... |
4035d39e070656b82cd4084694d61df003fb26ff | 7ed3150440f23e230434bf7669f4ea71745330a8 | /source/include/znn/opt/sgd.h | 4429d3e6f34499d059e5c6cfc1eab52638189f1f | [
"Apache-2.0"
] | permissive | zhiayang/znn | b44b90918428ef4a3a913db84fc94ff19679be1b | 476663f29b464e02433ff1b5fa47766b3a1688b5 | refs/heads/master | 2022-12-29T05:07:22.392004 | 2020-10-12T15:44:51 | 2020-10-12T15:44:51 | 273,947,541 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,087 | h | sgd.h | // sgd.h
// Copyright (c) 2020, zhiayang
// Licensed under the Apache License Version 2.0.
#pragma once
#include "gd.h"
namespace znn::optimisers
{
template <typename CostFn>
struct StochasticGD : GDDriver<CostFn, StochasticGD<CostFn>>, Optimiser
{
using Base = GDDriver<CostFn, StochasticGD<CostFn>>;
friend B... |
4ac3177bf942b9b49845f924f948c4bc8b0d130c | ab7716b69267cadd999a5a143d9c82a20b9e9c81 | /C++/datewise/dec15/templates.cpp | 8818385a76f57789e82098fc92de142ee1039e8c | [] | no_license | Shinimani/CompC | bf8735a01fee98fadf9ceb9a7d7ace8109e76137 | daeabe914bf94f8555c3826c6235fb39dfb5b49e | refs/heads/master | 2021-07-05T01:50:31.232948 | 2020-09-20T15:46:48 | 2020-09-20T15:46:48 | 179,996,758 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,502 | cpp | templates.cpp | // #include <bits/stdc++.h>
#include <iostream>
// using std::cout;
// using std::ios;
// using std::cin;
using namespace std;
template <typename T>
T maxx(T a, T b)
{
if (a>b) {return a;}
return b;
}
// void relationalOperation(string s1, string s2)
// {
// if (s1 != s2)
// cout << s1 << " is not ... |
7b8769c3fd9b406d6542174265ea01e3414b03d5 | 89d71656f1ba411c081f7e26258b498b7f10aaa2 | /AoJ/CGL/ConvexPolygon/ConvexHull/ConvexHull.cpp | f148a142e9359e7341dec49a63fe4ba318898162 | [] | no_license | noblesseoblige6/Algorithms | 4b06d01b7ca015c5b2b28398ae3142f10a281048 | ae8d1085009e0cd98e805795b4cc31a4e2e161ac | refs/heads/master | 2023-08-29T09:22:47.419651 | 2023-08-02T06:50:05 | 2023-08-02T06:50:05 | 51,254,943 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,681 | cpp | ConvexHull.cpp | #include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <iterator>
#include <cmath>
using namespace std;
class vec2
{
public:
double x;
double y;
vec2() : x(0.0), y(0.0){};
vec2(double val) : x(val), y(val){};
vec2(double x, double y) : x(x), y(y){};
vec2(const vec2 &v) : x(... |
1c25a01a81309dcf28c729fcf741f657bc6cf92f | 52470adf4048b94df79a6a18823d64b14db62912 | /Baum/mc 05.09.2010/instance_molten_core.cpp | 77b99bb336e246ab34b9e074b868580e3471585b | [] | no_license | Lennix/mcwowsql | 39e26c95d5cd25f56a4ff0aa7cc70ef746e5fc60 | c83dc9c05909cc7b76dd348fb63155500c70165c | refs/heads/master | 2021-03-27T15:09:19.606217 | 2010-10-06T22:48:20 | 2010-10-06T22:48:20 | 587,353 | 0 | 1 | null | null | null | null | ISO-8859-1 | C++ | false | false | 18,595 | cpp | instance_molten_core.cpp | /* Copyright (C) 2010 Marvin Cordes
/* ScriptData
SDName: Instance_Molten_Core
SD%Complete: 100%
SDComment: Place Holder
SDCategory: Molten Core
EndScriptData */
#include "precompiled.h"
#include "molten_core.h"
// RUNES
bool GOHello_go_runes_of_moltencore(Player* pPlayer, GameObject* pGo)
{
if (Scrip... |
81f1569a665e6597ef8a7e26f03626066baef78b | 7d5b01e5aa37dd76f716e96a1f6ffcf3825e0aa0 | /uri/2528.cpp | a1454cb25c10a9f1a66b8ca2eacefd2c02811258 | [] | no_license | thalyson004/solutions | de5f489250bdf2f8af46a4cf4290d2dd48eb9429 | c013b2aa0cd0c1649bd7dfa1293f154254f4b470 | refs/heads/master | 2021-12-06T04:29:20.120435 | 2021-11-25T10:06:17 | 2021-11-25T10:06:17 | 130,432,095 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,176 | cpp | 2528.cpp | #include <bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define MAXN 100005
#define oo 1000000005
#define ii pair<int,int>
#define EPS 0.000000001
//#define int long long
int n, m;
vector< int > G[MAXN];
int dist[MAXN];
int bfs(int a, int b, int c){
for(int i = 1; i <= n;... |
b96c4bd599a12ee7e8122cec954cc9f87c4f8534 | cbd55d69d7f3d08817209dfff8415a0d114a609e | /index.cpp | 5e3c01abadfcec1831bd8bb3b413df42aa3ca868 | [] | no_license | dtsd/table | ff8761b807d5098f4756ae5d049c6d3fcf72596a | 09fa39a8a945e30b7b18a71850aa8fdac53aa2a4 | refs/heads/master | 2020-12-24T15:13:54.873904 | 2015-04-09T06:48:26 | 2015-04-09T06:48:26 | 33,638,106 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,353 | cpp | index.cpp | /*
Copyright (C) 2015 Dmitry Teslenko
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope... |
8fef7d5fa082684ba9ca9db2fcce7fb6e34f54be | 6e8de6b748e1c43c2730c5888c09816c97a8aa6c | /aisd/4_powracanie/src/benchmark.cc | 09562cc8d8b0b61277309b5a13825b6df28b4e4a | [] | no_license | maxadamski/wiwiwi | 3f35e9c91430a69a8ad50c6b20efef2fb3cfbb9b | c0545dca29dc37f6e9b65920d8c36174e4b23793 | refs/heads/master | 2023-04-13T10:09:07.440602 | 2023-04-03T20:28:10 | 2023-04-03T20:28:10 | 115,282,771 | 38 | 18 | null | null | null | null | UTF-8 | C++ | false | false | 7,873 | cc | benchmark.cc | #include "testkit.hh"
using namespace std;
int edges(int V, double phi, bool undirected = true) {
double divisor = undirected ? 2 : 1;
return phi * (V*V - V) / divisor;
}
///////////////////////////////////////////////////////////////////////////////
// Macierz Sąsiedztwa == Adjacency Matrix
//////////////////////... |
69f01d2b1d863ec461590b3a37b6f3c3a05dc908 | 06a35238ad3aa9a04d4cfc4136489336a41383e6 | /include/rdp/RDPListener.h | 6298402a39082484fbbd2fb517489c581bb78bd1 | [
"Apache-2.0"
] | permissive | chedr/RDPMux | 7269ef013c3c6e6a646e3c54ea1be9b16d4339f2 | 09e70ba62489284f570af466707be9ec451e5c91 | refs/heads/master | 2020-12-24T10:23:07.210369 | 2016-06-02T18:24:15 | 2016-06-02T18:24:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,526 | h | RDPListener.h | /*
* Copyright 2016 Datto 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/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
1c11bc5932be97ac620b13b3c5bcf7277177f827 | 6db2daefa358fe4e21719d2544d130e7621d6e20 | /algoritmos_y_programacion/ejercicio2_ecp.cpp | c574e1032930521467fbba5dcfd956c46dedfdc9 | [] | no_license | Guillermocala/notas-de-clase | 61da93eb051f059efa47ab87512438a4d856e53e | a0bce98ff6b0beac166b76a737d842232e99672c | refs/heads/master | 2022-11-30T17:31:21.504377 | 2022-11-20T04:01:53 | 2022-11-20T04:01:53 | 149,884,015 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,150 | cpp | ejercicio2_ecp.cpp | //elabore un programa para encontrar el promedio de edad de un grupo de estudiantes
/*=================================ANALISIS===========================
salida: promedio estudiantes
proceso: solicitar al usuario el numero de estudiantes(NE)
NE controla el ciclo al compararlo con un controlador de edades proce... |
4c022cb6bba780e93bd9ed596f7898c323bac7a0 | dc8e32a44df4617e8f4eab58e95733846e0cad6e | /Implementation/src/view/gui/widgets/BenchmarkingWidget.hpp | 7ebd432b0ead1d418bec30bdf76bebf4df69e380 | [] | no_license | eBabiano/TegraK1_Performance | 33a4ee528bd4bc2d926d26eb11252b78b45b39c6 | 1b615c332fcf02c0cf8ed134a6574c83ac5a4eb3 | refs/heads/master | 2020-04-03T02:11:43.005908 | 2018-12-06T08:39:58 | 2018-12-06T08:39:58 | 154,949,685 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,362 | hpp | BenchmarkingWidget.hpp | #ifndef BENCHMARKINGWIDGET_HPP
#define BENCHMARKINGWIDGET_HPP
#include <src/view/gui/events/StartAVEvent.hpp>
#include <src/view/gui/container/Container.hpp>
#include <src/util/Observable.hpp>
#include <src/model/Benchmark.hpp>
#include <src/model/av/AVManager.hpp>
#include <QWidget>
#include <QVector>
#include <mutex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.