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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bd49fc54bd80b2bd88046c5e0fb9c031d7711945 | bb6ebff7a7f6140903d37905c350954ff6599091 | /third_party/WebKit/Source/web/win/WebFontRendering.cpp | f5a02fd4c0748cf414c60ba942c82813671bd17f | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f | ccadf4e63dd34be157281f53fe213d09a8c66d2c | refs/heads/master | 2022-12-23T18:07:04.568931 | 2016-04-11T16:03:36 | 2016-04-11T16:03:36 | 53,677,925 | 0 | 1 | BSD-3-Clause | 2022-12-09T23:46:46 | 2016-03-11T15:49:07 | C++ | UTF-8 | C++ | false | false | 907 | cpp | WebFontRendering.cpp | // 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 "config.h"
#include "public/web/win/WebFontRendering.h"
#include "platform/fonts/FontCache.h"
namespace blink {
// static
void WebFontRenderin... |
29167360a94751d494610c77dee3f9b7de3d50e9 | f8517de40106c2fc190f0a8c46128e8b67f7c169 | /AllJoyn/Samples/MyLivingRoom/Models/org.alljoyn.Control.Volume/VolumeServiceEventArgs.cpp | 9da491951e2c48b2fb2c2e7942ba067427fd53a6 | [
"MIT"
] | permissive | ferreiramarcelo/samples | eb77df10fe39567b7ebf72b75dc8800e2470108a | 4691f529dae5c440a5df71deda40c57976ee4928 | refs/heads/develop | 2023-06-21T00:31:52.939554 | 2021-01-23T16:26:59 | 2021-01-23T16:26:59 | 66,746,116 | 0 | 0 | MIT | 2023-06-19T20:52:43 | 2016-08-28T02:48:20 | C | UTF-8 | C++ | false | false | 21,157 | cpp | VolumeServiceEventArgs.cpp | //-----------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
// Tool: AllJoynCodeGenerator.exe
//
// This tool is located... |
a011e7a0fdb53511d142de1178c4f2208479d384 | 7fea4ad59786056397a0cf6b872dd77366d436bc | /lap.cpp | d87f6d36866dfb570f595dd475e257caaf201daf | [] | no_license | anmolp14/summer17_codes | 6dadc636904a958cdc5f425bb31beadeae70336e | ac098b5598ba793c3a60a53fbc9c31d89e9eb835 | refs/heads/master | 2021-01-20T13:45:20.775469 | 2017-11-06T19:40:54 | 2017-11-06T19:40:54 | 90,524,744 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 321 | cpp | lap.cpp |
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t; cin >> t;
for(;t>0;t--)
{
int n,a; cin >> n;
vector <int> c(101,0);
for( int i=0;i<n;i++)
{
cin >> a; c[a]++;
}
//for( int i=1; i<101;i++)
//cout << c[i] << ' ' ;
a = c[1];
int j=1;
while( a != 1 )
{
j++;
a = c[j];
}
cout << j << endl;
}
return 0;
}... |
325f0cefcc0a2830af63eef30413b970e83b0bcd | 603abbd229e8751ca39b54de2bd7aed470987035 | /BOJ/ForCodingTest-CPP/Mathematics1/NumberOfCombination0.cpp | aa0ca4c99a499dd7ecf82fcdf2cbba6a5105b05d | [] | no_license | SeonJongYoo/Algorithm | 869661f5e0c23eedb40b1e8f017bba5501b0519a | e672287c5d6b6c19c146bb59cf73064bda9b4fe2 | refs/heads/main | 2023-08-11T02:33:25.679790 | 2021-09-20T15:00:25 | 2021-09-20T15:00:25 | 310,283,160 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,183 | cpp | NumberOfCombination0.cpp | // 조합 0의 개수
#include <iostream>
using namespace std;
pair<long long, long long> ZeroInFac(int N) {
pair<long long, long long> p;
long long two = 0, five = 0;
long long n2 = 2, n5 = 5;
// 이 부분이 핵심!!
// N을 n2로 나눈 몫이 의미하는 바 - 1 ~ N까지 n2를 인수로 가지는 숫자의 개수 -> N!을 소인수분해 했을 때 2의 개수!
while (n2 <= N) {
... |
700fca6b208c5f0c9713a34a83b4db4b92a8b55d | 635c344550534c100e0a86ab318905734c95390d | /wpilibc/src/main/native/include/frc/event/BooleanEvent.h | 745a53c09596b03e7d2eef0cf4aa42f42ae79821 | [
"BSD-3-Clause"
] | permissive | wpilibsuite/allwpilib | 2435cd2f5c16fb5431afe158a5b8fd84da62da24 | 8f3d6a1d4b1713693abc888ded06023cab3cab3a | refs/heads/main | 2023-08-23T21:04:26.896972 | 2023-08-23T17:47:32 | 2023-08-23T17:47:32 | 24,655,143 | 986 | 769 | NOASSERTION | 2023-09-14T03:51:22 | 2014-09-30T20:51:33 | C++ | UTF-8 | C++ | false | false | 3,989 | h | BooleanEvent.h | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#pragma once
#include <frc/filter/Debouncer.h>
#include <functional>
#include <memory>
#include <units/time.h>
#inclu... |
8ed995f0ff584a4e0f408879cfd3a433f44914ac | ca6a0c4eb6fabc5a3b778c60759e476beb3614e8 | /Common/math/src/Types.cpp | be5627e666868261fbc9c6368e4993c0f0d5337e | [] | no_license | vansten/Renderers | 75e5f06eb473e824c6bbac2bb2468190ac1eccfb | 5409a3785a307440c2c30b3aaea52f9f37cd862d | refs/heads/master | 2021-01-11T04:10:12.389414 | 2016-11-22T17:17:10 | 2016-11-22T17:17:10 | 71,240,165 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,484 | cpp | Types.cpp | #include "../include/Types.h"
uint32 make(uint8 r, uint8 g, uint8 b, uint8 a)
{
return (a << 24) | (r << 16) | (g << 8) | (b);
}
void getRGBA(uint32 color, uint8& r, uint8& g, uint8& b, uint8& a)
{
b = (color & 0x000000ff);
g = (color & 0x0000ff00) >> 8;
r = (color & 0x00ff0000) >> 16;
a = (color & 0xff000000) >... |
7a8dbf625cd49860046ee27d6471cf6b13e57396 | d84852c821600c3836952b78108df724f90e1096 | /exams/2558/02204111/1/final/2_2_715_5820502914.cpp | 5cda87315e536a7e21d642d539cd99dde53eb6dc | [
"MIT"
] | permissive | btcup/sb-admin | 4a16b380bbccd03f51f6cc5751f33acda2a36b43 | c2c71dce1cd683f8eff8e3c557f9b5c9cc5e168f | refs/heads/master | 2020-03-08T05:17:16.343572 | 2018-05-07T17:21:22 | 2018-05-07T17:21:22 | 127,944,367 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 82 | cpp | 2_2_715_5820502914.cpp | #include<iostream>
using namespace std;
char CountThe(char a,char b)
{
char
|
da875dab0c5fa5864b82bc9f51e9eccbbd776e4c | 44eeb51b4b7a58c2c6fb2332457a1fb04674569b | /src/work_queue.cc | 494cd0b4d9dfdf683727dbe5a6bc579ad71f2bc3 | [
"BSD-2-Clause"
] | permissive | robertu94/libdistributed | bb44cf6858c4e670dae9c2b61f592c7f1e117033 | de64a76bb153e3517d0afa920cd66b9d01db239d | refs/heads/master | 2023-08-29T00:35:01.997408 | 2023-08-10T15:22:54 | 2023-08-10T15:22:54 | 234,158,547 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 192 | cc | work_queue.cc | #include <libdistributed_comm.h>
distributed::comm::serializer::type_registry&
distributed::comm::serializer::get_type_registry()
{
static type_registry registery;
return registery;
}
|
925938cf2f97c0ec65aa22f8606f54e9b866a82e | 5cbd4644c2ce895d54954ff6184ac13b1a07332e | /Application/Parsing/AST.h | 3648bb6aad53abc42a82ec2bdb7610ca9434e342 | [] | no_license | nayaknishant/Nome3 | bd727a969074f916da4ae748850fc37404680a0c | 854a1a7de6bcf4b910d4925d06d2e1dcf4ac2a07 | refs/heads/master | 2020-09-01T20:59:22.968667 | 2019-10-31T22:28:00 | 2019-10-31T22:28:00 | 219,055,747 | 0 | 0 | null | 2019-11-01T20:12:35 | 2019-11-01T20:12:35 | null | UTF-8 | C++ | false | false | 6,840 | h | AST.h | #pragma once
#include "ASTContext.h"
#include "SourceManager.h"
#include <map>
#include <type_traits>
#include <vector>
namespace Nome
{
enum class EClassId
{
Expr,
Keyword,
Ident,
Number,
UnaryOp,
BinaryOp,
Transform,
ExprList,
CommandArgument,
Command
};
class AExpr
{
public... |
024630d542d853314db7687ae99eff160fe7f178 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_3852.cpp | a67768f6770ee2cbc7a4de3b221dd63d180f423f | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 49 | cpp | Kitware_CMake_repos_basic_block_block_3852.cpp | f(!hoststr) {
free(buf);
return NULL;
} |
466c614b18c8f9c0fb83b2908e9f98868d2aac8e | 127f913b2f7e31b562d4aadebde89e1987424ead | /include/ignition/physics/SphereShape.hh | ee57847f5e79dd1ae46742bd148f9f0976e086c0 | [
"Apache-2.0"
] | permissive | Tobias-Fischer/ign-physics | 6f43d66cf52dd9adbd0a72dce2449cf2555721d1 | 42d232088f719d4a65d8f443f5df56dd837367a2 | refs/heads/main | 2023-08-22T07:15:53.120269 | 2021-09-21T17:02:42 | 2021-09-21T17:02:42 | 414,787,410 | 0 | 0 | NOASSERTION | 2021-10-07T23:37:34 | 2021-10-07T23:37:34 | null | UTF-8 | C++ | false | false | 4,448 | hh | SphereShape.hh | /*
* Copyright (C) 2018 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
26ea81a30955aed0e23105c17361f0ea3688e576 | cd419581c4712024f85e1cc30d4b0299284ea506 | /GameState.h | 8ff1ab8934339da9fc7bad9060a34c425ac70bde | [] | no_license | log4me/SDLFlappyBird | d09343ff9363f5882a87d9a3c2e43390794a15fc | 87db9b123f899e001617eb58258fdd3ce27789de | refs/heads/master | 2021-01-11T14:39:00.016707 | 2017-01-27T06:51:50 | 2017-01-27T06:51:50 | 80,186,996 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463 | h | GameState.h | //GameState.h
#ifndef GAMESTATE_H
#define GAMESTATE_H
#include "WorldState.h"
class GameState : public WorldState{
public:
virtual ~GameState();
virtual void update();
virtual void render();
virtual bool onEnter();
virtual bool onExit();
virtual string getStateID() const{return s_GameID; }
private:
bool m_loa... |
e71496ad26ec225f6e8bb61721b90f8dfcbe8a0a | d82fb53af96a06408d777d008bc1da95574c1274 | /WindowLayout/main.cpp | 8f9633f589748e3f78722e2fff3ab43dd778a786 | [
"MIT"
] | permissive | blacknaml/Qt-Work-Experiments | 49da1d0afbd70ddddcf900bd81057582f25d6466 | 6d02726e6ea57a60f5b98b049b5c90c4ad52a4fc | refs/heads/master | 2020-12-02T16:00:14.909713 | 2016-08-23T15:52:01 | 2016-08-23T15:52:01 | 66,380,468 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 589 | cpp | main.cpp | #include "widget.h"
#include <QApplication>
#include <QLabel>
#include <QLineEdit>
#include <QHBoxLayout>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
Widget window;
QLabel *label = new QLabel(QApplication::translate("windowlayout", "Name:"));
QLineEdit *lineedit = new QLineEdit();
... |
f5202f8cfe68e0c7ffc3e1c04209d8aaa5dc9e7f | 55fa93532e1377d3dc7b77833fb024e6d1bda62e | /libs/ossia/include/ossia/editor/curve/curve_segment/linear.hpp | be7b0254852f2c24b450d485f949b6cf12a8ef95 | [] | no_license | avilleret/ofxOSSIA | 14293f0d762748b77fc646d9807874b807719a31 | 86474907447004ba0db98ff04c527215378cf50a | refs/heads/master | 2021-01-18T11:20:03.269109 | 2016-08-17T19:41:25 | 2016-08-17T19:41:30 | 67,735,146 | 0 | 0 | null | 2016-09-08T19:47:37 | 2016-09-08T19:47:37 | null | UTF-8 | C++ | false | false | 190 | hpp | linear.hpp | #pragma once
namespace ossia
{
template <typename Y>
struct curve_segment_linear
{
Y operator()(double ratio, Y start, Y end) const
{
return start + ratio * (end - start);
}
};
}
|
55c84b25e86d1453244287450c3b92ab709166eb | 58b5ca0ad9d0db45bc4c47ea0c62e6424b779ba2 | /project_week_4/tests/image_geometry_test.cpp | 88c409669fa46f78d72eb3588b0807aa8704642a | [] | no_license | green-fox-academy/znemeth | b72f48f4621c9434b1ae114c5b1c368cc21f87c1 | eda20c847143812f77d3e5d44614be49cc6dcbbc | refs/heads/master | 2020-04-16T18:51:54.696643 | 2019-07-25T14:27:37 | 2019-07-25T14:27:37 | 165,837,872 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,386 | cpp | image_geometry_test.cpp | #include "gtest/gtest.h"
#include "../opencv/image_geometry.cpp"
class TestGeometryImage : public testing::Test
{
protected:
cv::Mat originalImage;
virtual void SetUp()
{
originalImage = cv::imread("../../../img/speed_sign.jpg");
}
};
TEST_F(TestGeometryImage, fileRead) {
cv::Mat resultImage = resizerotateIm... |
e915945d53f093fd8886db1b9d4f79ae43dfcc92 | 2f0bf6328564b46399b90bad96f5415df8024fd9 | /Banking_Project/Banking.cpp | a5e79378dfd6b988a95252280ddeaf9aa9530cfd | [] | no_license | Tejesh-Raut/Banking-Application | 8b17d8ee775a430840ad9d21ded62e72b5959997 | cd284ddc098e9d1c53794eca48a7d6bcc7e4f14f | refs/heads/master | 2021-01-10T15:11:44.653675 | 2016-01-11T21:40:01 | 2016-01-11T21:40:01 | 49,455,085 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,199 | cpp | Banking.cpp | //______________________________________________________________________________________________________
//______________________________________________________________________________________________________
//Header files used in our project
//_________________________________________________________________________... |
030b55354290bb2fbca42f0a0341a552d9522122 | fa31838af133b6ed23355cdf6f10f64b7e2874de | /include/operator.hh | bc4daeefd38f1b5c17977a68949293f4eef775da | [] | no_license | grasingerm/calgebra | d128ef9ebc9cf580e8e5687011440c73d99c53e9 | 8f70643909b048bb3c4f2c271216cb9fcc1c6db3 | refs/heads/master | 2021-05-03T11:21:31.791023 | 2016-11-23T07:46:36 | 2016-11-23T07:46:36 | 65,251,982 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,454 | hh | operator.hh | #ifndef __OPERATOR_HH
#define __OPERATOR_HH
#include "token.hh"
#include <stdexcept>
#include <iostream>
#include <memory>
namespace scalc {
enum class Associativity { LEFT, RIGHT };
class AbstractOperator : public AbstractToken {
private:
int precedence;
Associativity associativity;
virtual void _parse(Token... |
5061250fa134cb1a8b1ed0055a0128ce4bf93557 | e2f8e283f9d4ff283cc066c22913b50acd93302d | /CodeChef/Dynamic Programming/Flash vs QuickSilver.cpp | d96b0e3b1a36eea5b71af4b8ca1137e472c0f5ac | [] | no_license | kenneth-kho/cp | e57771b1c3f967946011b4f356299a00ab92ad97 | 6639d15bc5b658862b6c95c66a714a3875fb887b | refs/heads/master | 2020-09-02T19:51:04.061805 | 2020-01-09T02:41:41 | 2020-01-09T02:41:41 | 219,286,602 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 509 | cpp | Flash vs QuickSilver.cpp | //https://www.codechef.com/problems/FLAASH
//Calculate and memoize the minimum time between going down 1 step, down to n/2, or down to n/3 (when possible)
#include<iostream>
using namespace std;
long long dp[1000002]={0,0};
int main(){
for(int i=2;i<1000001;i++){
if(i%6==0)dp[i]=min(min(dp[i/2],dp[i/3]),dp[i-1])+1;
... |
581a5042c00631b48570f7ba46d7f1e7bb301fa8 | 624f1e7153cfdce4433af562d86b4821d27762a7 | /klondike/src/Option.h | 2c30e4c6fd5f76f18dcbff28ad3da1504a5e7bfb | [] | no_license | sarroutbi/pexpupm | 284c6a8417efa778c322572286fa30f234e2aa48 | 5259a4184868770c07ed79a9f87b17679746e804 | refs/heads/master | 2020-06-06T08:30:19.312664 | 2019-02-13T15:31:17 | 2019-02-13T15:31:17 | 34,008,495 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 236 | h | Option.h | #ifndef OPTION_H
#define OPTION_H
#include <string>
#include "GameAction.h"
class Option
{
public:
Option() {};
virtual ~Option() {};
virtual void Display() = 0;
virtual GameAction* GetGameAction() = 0;
};
#endif // OPTION_H
|
e65ac4e924e4a2fcc4b536204c32ec5dc1108f44 | b09de87297dde13c874d24db2541817d788b2594 | /directX/manager.h | 13c5b2a1c2ed71205287a69cc2b7d9bb7ce84bd1 | [] | no_license | tnbmi/TGS_20150327 | f28e84aa846594c5753f249147376b350e916011 | 5e4f4ab119648207b6fe05c5819102f4a907845e | refs/heads/master | 2020-03-31T02:13:59.268880 | 2015-03-29T15:38:51 | 2015-03-29T15:38:51 | 31,594,249 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,450 | h | manager.h | //*****************************************************************************
//
// CManagerクラス [manager.h]
// Author :MAI TANABE
//
//*****************************************************************************
#ifndef _MY_MANAGER_H
#define _MY_MANAGER_H
//==========================================================... |
cba2c03802b71c6fa11b308353894eacb8eedc98 | 4b2a43128f60c39aecfd54b4b2df75dd8fdb3f33 | /include/xcspp/core/xcsr/xcsr_repr.hpp | 9a8209bdfa46ce7a86e9be4a7a91176a28011e97 | [
"MIT"
] | permissive | m4saka/xcspp | 3348f7dfbcd4c6a018373dad540bbb4076183ccf | a383170c1dece7d233e91ca64fd8a62968b967f9 | refs/heads/master | 2023-07-08T07:20:53.040917 | 2021-08-11T13:22:40 | 2021-08-11T13:22:40 | 290,694,867 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 973 | hpp | xcsr_repr.hpp | #pragma once
#include <cmath>
#include "xcspp/util/random.hpp"
namespace xcspp::xcsr
{
// XCSR representation
enum class XCSRRepr
{
kCSR, // Center-Spread Representation [ c - s , c + s )
kOBR, // Ordered-Bound Representation [ l , u )
kUBR, // Unordered-Bou... |
8032d371f762e6f44e54a6e78511e38a95864cb5 | dec18c88baf887f176afb8b9597d21d1c1d56e52 | /mainwindow.cpp | ffb0ef352ec15cec704839f03327327c4af3f1f5 | [
"MIT"
] | permissive | plenarius/cleanmodels-qt | 04fb6b7487e5e661f4fdbe3631a937a8ddeb0496 | 22de0b75fbc50b2eb57f98b75506ea13b06c131b | refs/heads/main | 2023-02-15T15:45:03.573142 | 2021-01-09T07:28:18 | 2021-01-09T07:28:18 | 321,256,290 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 48,902 | cpp | mainwindow.cpp | #include "fsmodel.h"
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QApplication>
#include <QClipboard>
#include <QCompleter>
#include <QDebug>
#include <QFile>
#include <QFileDialog>
#include <QFileInfo>
#include <QMessageBox>
#include <QProgressBar>
#include <QScreen>
#include <QScrollBar>
#include <QS... |
fb139df85ab9b8a0fc1e1ab62ef9b5af32eba50c | dd8143ea97146890ed3c2383f2c671843a134823 | /attack_test.cpp | a8e4b7333f9f2e3368e179b1b070fe77e4fe8232 | [] | no_license | benjaminshu2001/TextBasedRPG | 2d67770feafd16cf6e3e94c20b6cb32435b6a107 | 5585de074438627d0aca5809d000d0d40a003650 | refs/heads/master | 2023-01-27T22:42:15.026245 | 2020-12-10T21:01:05 | 2020-12-10T21:01:05 | 320,450,134 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 712 | cpp | attack_test.cpp | #include "player.h"
#include "item.h"
#include "inventory.cpp"
#include "iterator.h"
#include <iostream>
#include <string>
#include "armor.h"
#include "weapon.h"
#include "equip.h"
#include "bubble_sort.cpp"
class Iterator;
using std::cout;
using std::cin;
int main() {
string name = "Test Name";
int h = 10;
... |
dd5c9158fb1edaa33c40f8dbead613a6816e2922 | 59b9c701c25a384d48e65835bdaf1180680f64d2 | /problems/667.II beautiful-arrangement-ii.cpp | 08964dcc1a0f5fed4c28beb1445ae3a73ca0358a | [
"MIT"
] | permissive | bigfishi/leetcode | 4d5b661baf7f2845051c85a080a2dbfc894b20e3 | 3e512f2822a742349384a0bdd7954696f5867683 | refs/heads/master | 2020-07-23T21:25:01.121104 | 2019-10-10T10:31:54 | 2019-10-10T10:31:54 | 207,710,508 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 653 | cpp | 667.II beautiful-arrangement-ii.cpp | // 刚开始想参考全排列的实现,发现做不出来
// 改为直接参考
// 这题可以理解为数学题,脑洞题。通过例子得出规律,[1]是1,[2]是[1]+k,[3]是[2]-(k-1),[4]是[3]+(k-2),以此类推,k为0时,[k]是k
class Solution {
public:
vector<int> constructArray(int n, int k) {
vector<int> list;
list.push_back(1);
bool flag = true;
int size = 1;
while (size<n)
{
if (k == 0) {
list.push_ba... |
b0f66adb2e4498c201b3fa36e71c7d1b6712e35e | ff443629c167f318d071f62886581167c51690c4 | /src/index/base.h | 9b2a41dc92b13f143fbf63acdced89f3f41cf368 | [
"MIT"
] | permissive | bitcoin/bitcoin | a618b2555d9fe5a2b613e5fec0f4b1eca3b4d86f | 6f03c45f6bb5a6edaa3051968b6a1ca4f84d2ccb | refs/heads/master | 2023-09-05T00:16:48.295861 | 2023-09-02T17:43:00 | 2023-09-02T17:46:33 | 1,181,927 | 77,104 | 33,708 | MIT | 2023-09-14T20:47:31 | 2010-12-19T15:16:43 | C++ | UTF-8 | C++ | false | false | 6,286 | h | base.h | // Copyright (c) 2017-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_INDEX_BASE_H
#define BITCOIN_INDEX_BASE_H
#include <dbwrapper.h>
#include <interfaces/chain.h>
#include <uti... |
ab6fc1f1e41f129e55681ae9a898e1e9e28494de | f2339e85157027dada17fadd67c163ecb8627909 | /Server/EffectServer/Src/EffectContinuePositionAddBuff.h | 6e4eb24f3f2137996ff9e7747bf1428c0ba8f00e | [] | no_license | fynbntl/Titan | 7ed8869377676b4c5b96df953570d9b4c4b9b102 | b069b7a2d90f4d67c072e7c96fe341a18fedcfe7 | refs/heads/master | 2021-09-01T22:52:37.516407 | 2017-12-29T01:59:29 | 2017-12-29T01:59:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,174 | h | EffectContinuePositionAddBuff.h | /*******************************************************************
** 文件名: EffectContinuePositionAddBuff.h
** 版 权: (C) 深圳冰川网络技术有限公司 2008 - All Rights Reserved
** 创建人: 彭政林
** 日 期: 2/24/2016
** 版 本: 1.0
** 描 述: 效果-持续位置增加Buff
http://172.16.0.120/redmine/issues/1651
http://172.16.0.120/redmin... |
7a0a8d23488a5f348649a43b0119aadf6830cf69 | 297497957c531d81ba286bc91253fbbb78b4d8be | /security/sandbox/chromium/base/memory/unsafe_shared_memory_region.h | 36ad96dfccef1ec46a2fdb58e76cbc418b1e1ef0 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | C++ | false | false | 1,909 | h | unsafe_shared_memory_region.h |
#ifndef BASE_MEMORY_UNSAFE_SHARED_MEMORY_REGION_H_
#define BASE_MEMORY_UNSAFE_SHARED_MEMORY_REGION_H_
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/platform_shared_memory_region.h"
#include "base/memory/shared_memory_mapping.h"
namespace base {
class BASE_EXPORT U... |
fa49949007bc2517d83fa9347dffa81b1fb40cab | ea2737d56bd2016edd3761f1bdc71449008cea10 | /src/TeensyQuadcopter.cpp | 16ba4581a10a4e0f236904c833a6bdbd56da3e08 | [] | no_license | michaellangford99/STM32Quadcopter | 285db516245ad15e51e98b357bc56fb054e0cc64 | 5e188198f1f47db57f1ac6d43376d30d81fddf14 | refs/heads/master | 2020-04-13T06:49:33.894296 | 2020-01-11T20:57:03 | 2020-01-11T20:57:03 | 163,031,815 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,963 | cpp | TeensyQuadcopter.cpp | /*
Name: TeensyQuadcopter.cpp
Created: 5/3/2017 9:52:41 PM
Author: Michael Langford
*/
/*
prop1 prop2
| |
[][] front [][]
[][] | [][]
\ | /
{[[[]]}-----microcontroller
{[[[]]}
/ \
[][] [][]
[][] [][]
| |
prop3 prop4
*/
#i... |
efdfbfd16d938b933629497397c6e6f462720414 | f248a1f0c1a1c798b89605471cd32f82e8305ecc | /NewYear 2/NewYear.ino | 44f16ec9dda3be40949ac3aec7fb09881974ddb0 | [] | no_license | AlexPaskal/My-Arduino | 9f99a1137bba690af490e097d8d0f124fe157f26 | 2fbeccbcccf3cd9a242832a5155da2c78343e6f3 | refs/heads/master | 2020-04-02T04:44:25.857985 | 2016-06-12T14:59:20 | 2016-06-12T14:59:20 | 60,867,024 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 898 | ino | NewYear.ino | int rL = 13;
int yL = 12;
int gL = 8;
int bL = 7;
int pV = 2;
void setup(){
Serial.begin(9600);
pinMode(rL, OUTPUT);
pinMode(yL, OUTPUT);
pinMode(gL, OUTPUT);
pinMode(bL, OUTPUT);
}
void loop(){
int val = analogRead(pV);
if (val<200) //1
{
digitalWrite(rL, HIGH);
digitalWrite(yL, LOW);
digitalWr... |
f667a82124e59132a6e0f3900e52c0c824742566 | 2433aee9c9c66fca796900c86146354ffacfbc68 | /Tutorial/episode1.hpp | ac179ec7e3404b0e87b703fdce5bc4ecd758e6e2 | [] | no_license | adamandreas565/SDL2onXcode | d5a3d0950abc175cd7841f374bf8c21f0790b5a0 | 2025194a407c9d954962574d610bde2a5839c1e0 | refs/heads/main | 2023-02-22T13:04:28.632651 | 2021-01-24T01:13:37 | 2021-01-24T01:13:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 271 | hpp | episode1.hpp | //
// episode1.hpp
// SDL_Tutorial
//
// Created by Rongqing Ye on 4/25/20.
// Copyright © 2020 Rongqing Ye. All rights reserved.
//
#ifndef episode1_hpp
#define episode1_hpp
#include "engine.hpp"
class Episode1: public GameEngine {
};
#endif /* episode1_hpp */
|
54cadc102b6757f9d07b830e4c08beea514c1085 | 21a880dcdf84fd0c812f8506763a689fde297ba7 | /src/cme/market/status_manager.h | 81e5556c85b341f3f47ac743eac17650bfd1d38c | [] | no_license | chenlucan/fix_handler | 91df9037eeb675b0c7ea6f22d541da74b220092f | 765462ff1a85567f43f63e04c29dbc9546a6c2e1 | refs/heads/master | 2021-03-22T02:07:39.016551 | 2017-08-01T02:02:20 | 2017-08-01T02:02:20 | 84,138,943 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,547 | h | status_manager.h | #ifndef __FH_CME_MARKET_STATUS_MANAGER_H__
#define __FH_CME_MARKET_STATUS_MANAGER_H__
#include "core/global.h"
#include "cme/market/message/mdp_message.h"
#include "cme/market/message/message_parser_f.h"
#include "core/market/marketlisteneri.h"
#include "cme/market/definition_manager.h"
namespace fh
{
na... |
cc3ee1c519d42f09e6f73634ca76d2a71ad7218d | 6400ecfbff42fd8d717a34f14f1b8e80ec9b070f | /log.cpp | f5b3bc4bd01dd126008459f26f4db0c9955c3ba5 | [] | no_license | skyitachi/kv_engine | a4ccc347f808e8754e8b7eb3cbbf618d0bb08a61 | 6b78dc0da6ad62870f6184df05be303b1523db7d | refs/heads/master | 2020-04-08T15:46:27.265633 | 2018-12-22T13:40:56 | 2018-12-22T13:40:56 | 159,491,222 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 531 | cpp | log.cpp | //
// Created by skyitachi on 2018/11/29.
//
#include "log.h"
#include "util.h"
namespace polar_race {
RetCode Log::AddRecord(const PolarString &key, const PolarString &v) {
char buf[32];
auto keyLen = key.size();
auto valueLen = v.size();
// TODO: 尽量一次调用
WriteUnsignedLong(keyLen, buf);
writ... |
88826852152a96f08ce8562070e1e6e8402a65fa | da1237f75c380da2bd06b15976206d02b1883c5e | /cgv-develop/build/vs14/cg_icons/open32.png.cxx | 974f363953403665abbe1b359bdc6b37053a7393 | [] | no_license | Cgironalas/cgv-hdp-cr | 7b5e989c4fd0e0695ad179aa30f15fe8434b1f15 | f858119674e551ac6777fa9a5072c615a5225670 | refs/heads/master | 2021-09-24T03:44:29.568892 | 2018-10-02T16:44:45 | 2018-10-02T16:44:45 | 109,702,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,805 | cxx | open32.png.cxx | #include <cgv/base/register.h>
//D:\Users\CGiron\Documents\Project\cgv-develop\plugins\cg_icons\open32.png ==> open32.png
static char resource_file[] = { 10,111,112,101,110,51,50,46,112,110,103,
-1,-1,-1,-1, -85,4,0,0,
-119,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,0,0,0,32,
0,0,0,32,8,2,0,0,0,-4,24,-19,-93,0... |
83df7ce62a537296c3c636776068a4f2a1681a3d | e790af34145ed2b5483fd548352f82aaf59f0e86 | /src/array/two_sum_ii_input_array_is_sorted.cpp | cd8d34efb21663c52a1638d36c296b75009e8c73 | [
"MIT"
] | permissive | dankondr/leetcode-solutions | 8d160bb3f912d584884109f987f4c6ece530f02b | 9d8424710ed35afd371edeafa1fb89653654fb64 | refs/heads/main | 2023-03-09T02:34:35.919645 | 2021-02-18T17:18:40 | 2021-02-18T17:18:40 | 339,167,199 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 816 | cpp | two_sum_ii_input_array_is_sorted.cpp | #include <iostream>
#include <vector>
#include <string>
using namespace std;
class Solution {
public:
vector<int> twoSum(vector<int>& numbers, int target) {
int i = 0, j = numbers.size() - 1;
while (i < j) {
int sum = numbers[i] + numbers[j];
if (sum == target) {
... |
8fb05a90c25205d8e455584ff59deffe623f3c35 | c47f85f33897c32b41dfd79eb9ecc34fcc0fe2c6 | /Modules/SlicerWelcome/.svn/text-base/vtkMRMLSlicerWelcomeNode.cxx.svn-base | 9c5f18b60b212dd8d663185f631846ceaef17c92 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-3dslicer-1.0",
"BSD-3-Clause"
] | permissive | pieper/ModelDraw | 1193b716209fdac6a38d48d42a8b9ffcf067a43c | 2ec77974b2c1a8f666704957be854877238e0f0c | refs/heads/master | 2020-05-21T00:19:35.884629 | 2015-06-25T08:42:14 | 2015-06-25T08:42:14 | 2,093,941 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,229 | vtkMRMLSlicerWelcomeNode.cxx.svn-base | #include <string>
#include <iostream>
#include <sstream>
#include <fstream>
#include "vtkObjectFactory.h"
#include "vtkMRMLSlicerWelcomeNode.h"
//------------------------------------------------------------------------------
vtkMRMLSlicerWelcomeNode* vtkMRMLSlicerWelcomeNode::New()
{
// First try to create the obj... | |
da8e94c222542a861fd2814c00f3692ccbb58849 | 6693c202f4aa960b05d7dfd0ac8e19a0d1199a16 | /COJ/eliogovea-cojAC/eliogovea-p2840-Accepted-s615523.cpp | 38fbedf7be4dc16e087de0911486de4a2177aebb | [] | no_license | eliogovea/solutions_cp | 001cf73566ee819990065ea054e5f110d3187777 | 088e45dc48bfb4d06be8a03f4b38e9211a5039df | refs/heads/master | 2020-09-11T11:13:47.691359 | 2019-11-17T19:30:57 | 2019-11-17T19:30:57 | 222,045,090 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 290 | cpp | eliogovea-p2840-Accepted-s615523.cpp | #include <cstdio>
int n, dp[1000];
int main() {
scanf("%d", &n);
int sum = n * (n + 1) / 2;
if (sum & 1) printf("0\n");
else {
dp[0] = 1;
for (int i = 1; i <= n; i++)
for (int j = sum; j >= i; j--)
dp[j] += dp[j -i];
printf("%d\n", dp[sum / 2] / 2);
}
}
|
34d45efb0ee6419882922c9271cc104179dcabe0 | 1c08bf5f5188daef7d19010de248f4506bb87987 | /NewIterator.hpp | 720b322c9bc1a0c4c9c912612251db27441712f5 | [] | no_license | PolyubinAI/oop_exercise_6 | b8047c95e4ed4ddc48e2552296eb945d7fe6b3d5 | ab823e88df1b24079f0e023c302df67f4845df79 | refs/heads/main | 2023-02-05T17:49:10.715111 | 2020-12-25T06:52:38 | 2020-12-25T06:52:38 | 324,305,915 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,361 | hpp | NewIterator.hpp | //
// Created by Ars Polybin on 20.11.2020.
//
#ifndef LAB5_NEWITERATOR_HPP
#define LAB5_NEWITERATOR_HPP
#include <cstddef>
#include <cstdio>
#include <iterator>
//Структура итерарора для последовательного контейнера
template <typename T>
struct iterator
{//iteraor traits
using iterator_category = std::forward_... |
928df64ef7f4b55bdb9bb2aefb37d8e07c19e84f | 537de3cced1db446036ab97b7bfddcbd8a700446 | /Sketches/SlotControl/src/VB_Stucts.h | 0aa3bbfa27fa18d0fd4a5643ee8862ab1363b15a | [] | no_license | nicoleyimessier/VolumeControlFun | c893d7114ff6cec4b1f8d56898bffadf85393d69 | 61aa6570260eddbabaa5a595718e092aaca87395 | refs/heads/master | 2021-01-24T02:47:50.879369 | 2018-02-25T22:40:51 | 2018-02-25T22:40:51 | 122,863,085 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | h | VB_Stucts.h | //
// VB_Stucts.h
// SlotControl
//
// Created by Nicole Messier on 2/25/18.
//
//
#include "ofMain.h"
namespace VB{
}
|
4336836e5db5adf466653984518b72d2705b2ee6 | 5f6c9b9a98270440de605bdc75e0bdb706937c0e | /btap lap 7/bai4_lap7_timchuoisoduongcotonglonnhat.cpp | a3f47ea2189ed12118a5cd43f5e9c32332c8f316 | [] | no_license | hoa2405/btap-t1911e | e6777ade04a7106fa4da704ab2b306c61c78f248 | 677b0ce3b8d66d3e29e0fe667cbf6de93e443621 | refs/heads/master | 2020-09-22T00:37:12.773573 | 2020-03-27T11:43:21 | 2020-03-27T11:43:21 | 224,988,515 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 376 | cpp | bai4_lap7_timchuoisoduongcotonglonnhat.cpp | #include <stdio.h>
int main (){
int n;
printf ("nhap n= \n");
scanf ("%d",&n);
printf ("nhap cac phan tu cua n: \n");
int ary[n],count = 0,max_count=0;
for (int i = 0; i < n; ++i){
scanf ("%d",&ary[i]);
if(ary[i]>0){
count+=ary[i];
if(count > max_count){
max_count = count;
}
}else{
count =0;
... |
b9c45ac84754329c06ad1da58e27129764dbffe8 | 9c960db52f0e4867157aec7661406712b49d2e1c | /vegtelen3.cpp | 01d30439346e59cdf3ce74fe98ba9018beea448b | [] | no_license | Mizumikara/Prog1 | 53e97830cb3c639a575d134ffdd4be4cb2a5e4db | 4d6b6fa615d166e99e6afde665f0d943a4e83822 | refs/heads/master | 2020-04-28T01:49:49.590338 | 2019-04-03T08:56:08 | 2019-04-03T08:56:08 | 174,874,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 118 | cpp | vegtelen3.cpp | #include <stdio.h>
#include <omp.h>
int main()
{
#pragma omp parallel //minden cpu 100%
while(1)
{
}
return 0;
}
|
c8b416b794099bd0b7e032eae7172402ff295f40 | 668b27adf2037d4589b386f67234c6bbb13957f1 | /open_procress/open_procress/open_procress.cpp | bdc3184862c88388868aad0f59ee6ccac0cdb958 | [
"MIT"
] | permissive | 15608447849/cppCode | cda7f3569e8a795ba184878784f16a5df793449d | e94956968ac0e620320114407f7893480e0676b8 | refs/heads/master | 2021-07-22T08:00:55.894110 | 2017-11-01T08:09:33 | 2017-11-01T08:09:33 | 109,070,078 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,866 | cpp | open_procress.cpp | #pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"") //设置入口地址 - 不显示控制台
#include "stdafx.h"
#include <windows.h>
#include <iostream>
#include <string.h>
#include <direct.h>
#include <io.h>
#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
using namespace std;
//文件路径处理
string&... |
0cb40f815414f1a76f919b23fc1f5678d942c7c5 | 4ad2ec9e00f59c0e47d0de95110775a8a987cec2 | /_Codeforces/Round 199/E/main.cpp | 5048f2726660567c914f3b20174bd8348b5749b1 | [] | no_license | atatomir/work | 2f13cfd328e00275672e077bba1e84328fccf42f | e8444d2e48325476cfbf0d4cfe5a5aa1efbedce9 | refs/heads/master | 2021-01-23T10:03:44.821372 | 2021-01-17T18:07:15 | 2021-01-17T18:07:15 | 33,084,680 | 2 | 1 | null | 2015-08-02T20:16:02 | 2015-03-29T18:54:24 | C++ | UTF-8 | C++ | false | false | 2,816 | cpp | main.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
#define mp make_pair
#define pb push_back
#define ll long long
#define maxN 100011
#define inf 1000000000;
int n, m, i, x, y, op;
vector<int> list[maxN];
int cnt[maxN];
int R;
vecto... |
45f07d45b2610d55c06f209a817ac7821f245eb3 | bfe1b0a690083adbef4b3569d06b93a7f24bb380 | /uva 332 - Rational Numbers from Repeating Fractions/main.cpp | 00c0b22e8f75fecffff115183f3c68b9e8322aa5 | [] | no_license | tajimiitju/UVA_solves_by_tajim | e5a080b6167dee605bc57de8461b707c95a0864a | e9513c6fe7c68567eea489133bb8a990d1582448 | refs/heads/master | 2021-05-13T12:25:47.384402 | 2017-12-03T20:48:44 | 2017-12-03T20:48:44 | 116,672,900 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 980 | cpp | main.cpp | //accepted :)
#include <iostream>
#include <sstream>
#include <string>
#include <stdio.h>
#include <cmath>
#include <algorithm>
#include<bits/stdc++.h>
#define ll long long
using namespace std;
char s[100000005];
ll GCD(ll a, ll b)
{
if(b==0)
return a;
return GCD(b, a%b);
}
int main()
{
ll c,j;
... |
bb34cdb5fe4d16fa717b877527946dafd220b0a4 | 51e80c2a9300281777982cf6d4f9eec3014cec05 | /Lab_1_Simple_objects/CoffeMachine/CoffeMachine/coffe_machine.cpp | 89aff314e9323ae317dd110bff2d28a41ef5bab5 | [] | no_license | VladyslavShch/OOP | ef4602ec1b5bc1c09c6be3f9ab5ae75c93d0cf9d | c8da3d535d055143e4e13b3fbce2007ae8aa3ebe | refs/heads/master | 2020-07-29T09:06:55.954409 | 2017-02-20T22:40:39 | 2017-02-20T22:40:39 | 73,677,276 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,365 | cpp | coffe_machine.cpp | #include "coffe_machine.hpp"
#include <cassert>
//Out of information about state of our Coffe Machine
//in next format: count of seeds, count of water, count of portions
std::ostream & operator << ( std::ostream& _o, const CoffeMachine & _cm)
{
_o << _cm.SeedsInfo() << ' ' << _cm.WaterInfo() << ' ' << _cm.PortionsInf... |
137ed46033e556adbd11743161b7a2fcb8c2e1df | 42ab733e143d02091d13424fb4df16379d5bba0d | /third_party/libassimp/code/X/XFileImporter.h | 7d12b6fdf6dd2d9e34aaa05c9e7073ec89173bfa | [
"Apache-2.0",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LGPL-2.0-or-later"
] | permissive | google/filament | 11cd37ac68790fcf8b33416b7d8d8870e48181f0 | 0aa0efe1599798d887fa6e33c412c09e81bea1bf | refs/heads/main | 2023-08-29T17:58:22.496956 | 2023-08-28T17:27:38 | 2023-08-28T17:27:38 | 143,455,116 | 16,631 | 1,961 | Apache-2.0 | 2023-09-14T16:23:39 | 2018-08-03T17:26:00 | C++ | UTF-8 | C++ | false | false | 5,590 | h | XFileImporter.h | /*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2019, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following condition... |
b0d02de47b2b491200fc5f4af3290f03fe992750 | 07dc7eef0569fc05e47461d35f452f2b1693b0ed | /1.print_palindrome/1.print_palindrome.cpp | ec5e7b24cc466b772cce0982a60c7503c54364b3 | [] | no_license | ZaitsevaPOLINA/Homework | 33d2c7d02460fd79dd33f4f7a11b9469f6ed5cd6 | 8c26d8e6d529020a7f7730382e29b9cf4146060b | refs/heads/master | 2021-01-17T17:37:05.808475 | 2017-12-10T17:41:57 | 2017-12-10T17:41:57 | 70,506,726 | 0 | 0 | null | 2017-01-15T19:42:39 | 2016-10-10T16:25:23 | C++ | UTF-8 | C++ | false | false | 557 | cpp | 1.print_palindrome.cpp | #include <iostream>
#include <cmath>
using namespace std;
void povorot(int k)
{
while (k>0)
{
cout << k % 10;
k = k / 10;
}
}
void print_palindrom(int n)
{
cin >> n;
if (n % 2 == 0)
{
int k = pow(10, n / 2 - 1);
k=k-k%9+9;
while (true)
{
k+=9;
if (k> pow(10,n/2)-1) break;
cout << k;
po... |
1d4f67d053868ae4008ac61dc1bfbd1652e321d9 | a0f8610bcb61463ef9982007dfb877408c3b1a78 | /STRJOIN/STRJOIN/main.cpp | e98f2a7d28277799136c4211f53892f6bf195c00 | [] | no_license | kiswiss777/Algorithm-SourceCode | 75669371f5e9a9a6895543c398bf4a9bfe76c99d | 08f01aa3bb1a524e687677a2c8723f1682516dd5 | refs/heads/master | 2020-04-30T20:50:29.569344 | 2019-06-14T07:11:15 | 2019-06-14T07:11:15 | 177,079,486 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 532 | cpp | main.cpp | #include<vector>
#include<iostream>
#include<algorithm>
using namespace std;
vector<int> str;
int get_answer()
{
int answer = 0;
while (str.size() != 1) {
sort(str.begin(), str.end());
answer += str[0] + str[1];
str[0] = str[0] + str[1];
str.erase(str.begin() + 1);
}
return answer;
}
int main()
{
int t... |
57330505796fe246f8efb22bfaf4ec8dd0c8280b | b12c8bedabab93fd03df9dd300f66ce85d269ad2 | /Source/Vect2.cpp | 501270f078f1998d62abffb5c5c5909513b9db50 | [] | no_license | olegp/v3d | 114de0dbc4702f4ca7e388d648ab32bef135d6f6 | a09df4398e402d19405fddc7ebfc52bbf13e8aca | refs/heads/master | 2020-12-24T16:50:12.760019 | 2010-07-14T12:48:35 | 2010-07-14T12:48:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 935 | cpp | Vect2.cpp | // by Oleg Podsechin
#include "Vect2.h"
void Vect2::operator *= (float scaler)
{
x *= scaler; y *= scaler;
}
void Vect2::operator += (const Vect2 &p)
{
x += p.x; y += p.y;
}
void Vect2::operator -= (const Vect2 &p)
{
x -= p.x; y -= p.y;
}
void Vect2::Zero()
{
x = y = 0.f;
}
... |
a39b9e6dd8807696acee6e08bfbbdbd38c7ebe5a | a548e33c7c894423aecb92277eebdb62fd18a7d6 | /adapter/include/BaseShared.h | 7b28be388c8ff0c3d015fb25e1e601dd071ebefa | [] | no_license | underbek/Common | 0204aca1d5bf80a1484bd8d35535f61c44d4f638 | ddddc48f5cbae3c9fa95b457d6962f5dd45aeda6 | refs/heads/master | 2022-07-19T15:01:07.784817 | 2019-03-11T11:58:55 | 2019-03-11T11:58:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 403 | h | BaseShared.h | //
// Created by Andrey on 2019-01-02.
//
#ifndef ADAPTER_BASESHARED_H
#define ADAPTER_BASESHARED_H
#include <memory>
template<typename T>
struct BaseShared {
protected:
template<typename F, typename ... V>
auto call(F f, V && ... v) {
return f(*shared_, std::forward<V>(v)...);
}
private:
std... |
15dadb35241f44213fe0b1c89111fae63a7369d8 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/shell/services/hdsrv/shhwdtct/regnotif.cpp | 5f5a13110750c671d075650d105a3d079153a00d | [] | 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 | 35,104 | cpp | regnotif.cpp | #include "regnotif.h"
#include "svcsync.h"
#include "mtpts.h"
#include "vol.h"
#include "namellst.h"
#include "users.h"
#include "sfstr.h"
#include "tfids.h"
#include "dbg.h"
#include <shpriv.h>
#include <strsafe.h>
#define ARRAYSIZE(a) (sizeof((a))/sizeof((a)[0]))
#define MAGICTOKENOFFSET ((DWO... |
f2ed5a203df31ad91dd08bd49f12650408dece15 | 0916323d0197c6032f5971b86b5a24d3bc13678f | /VE3OOI_AD9850_Controller_v1.0/AD9850_v1.cpp | 558c040ecc629f82ddcfbf5e27215a1bdbbde866 | [
"Apache-2.0"
] | permissive | drajnauth/AD9850_Jack-Knife | e6dbc211274d1968ffccf55f9c1350006dc12087 | 2512d5566117b5223afbb55dea92825e1e6422f0 | refs/heads/master | 2017-12-06T11:26:38.992636 | 2017-11-27T04:35:11 | 2017-11-27T04:35:11 | 112,143,998 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,811 | cpp | AD9850_v1.cpp | /*
These routines are used to configure and control the AD9850 Module which includes a crystal clock that drives the DDS
The AD9850 datasheet describes how to communicate with the AD9850 DDS chip. The module does not change this information.
The following pins are used to control/configure the AD9850 chip (regardless... |
6027a7eb8c59bb29c0e2f982c26860f9ada6dd2a | 2c97fc62eab1f78c4a5d1a83826a75209ebb6d39 | /1比赛题目/edu codeforces round 51/B.cpp | 19946d2af7e35b7424903c8b38314c96f46301ff | [] | no_license | GaisaiYuno/My-OI-Code-1 | f32932f1004e593ffee0b0e97cffd25d9e2851bf | c57ec4e2aaa1d770ee9490a42710d1cf71a153f2 | refs/heads/master | 2020-12-31T23:13:46.913582 | 2020-02-08T01:09:46 | 2020-02-08T01:09:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 291 | cpp | B.cpp | #include<iostream>
#include<cstdio>
#define maxn 300005
using namespace std;
long long l,r;
long long a[maxn];
int main(){
scanf("%I64d %I64d",&l,&r);
for(long long i=l;i<=r;i++){
a[i-l+1]=i;
}
printf("YES\n");
for(int i=1;i<=r-l+1;i+=2){
printf("%I64d %I64d\n",a[i],a[i+1]);
}
}
|
6fc9688c786127acc207e5e63e207116690d4e76 | b20408e6f916aa08785b7cd331e3fc7bff24369b | /src/InverseMouseArea.h | 0d19e0f1b7b07ee0fc855558a72a4048301681d4 | [
"MIT"
] | permissive | ethereum/mix | 305c981fa0cda867ba875a35ac2a131baec407f7 | b2f4994d63015ad3386281d51e36771492c5aca5 | refs/heads/develop | 2023-08-31T10:57:24.332834 | 2016-08-11T15:26:37 | 2016-08-11T15:26:37 | 40,892,643 | 214 | 255 | null | 2016-08-11T15:26:37 | 2015-08-17T12:24:30 | JavaScript | UTF-8 | C++ | false | false | 1,427 | h | InverseMouseArea.h | /*
This file is part of cpp-ethereum.
cpp-ethereum 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.
cpp-ethereum is distributed in the... |
1cfeefa4f1549ee5759a5987bad4056d75e4a019 | 3b0e3159e3327ffe1e025febe149ee67648cdcef | /2.cpp | a3f3a2c83407905a8ef65f4eccb0335dd5646e81 | [] | no_license | LeezhiWen/NETEASE_ProgrammingTest-2017-autumn | 16d65dd3530ab99aa43dc4ddb508d4eb554cc97c | c9ad929ad52c1673bf7d7315a0b147564bdb112a | refs/heads/master | 2021-01-18T13:16:38.801022 | 2017-08-15T14:15:04 | 2017-08-15T14:15:04 | 100,373,682 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 536 | cpp | 2.cpp | #include<iostream>
#include<string.h>
using namespace std;
int main()
{
char s[50];
cin >> s;
int len = strlen(s), j = 0;
int maxnum = 0, num = 0, block[50] = { 0 };
if (len == 1) maxnum = 1;
else
{
for (int i = 0; i<len-1; i++)
{
if ( s[i] != s[i+1]) num++;
else
{
if (num !=... |
e5cb990a19ab040090c5f65bf9ad1bd118787cb4 | fdbfbcf4d6a0ef6f3c1b600e7b8037eed0f03f9e | /systems/primitives/test/vector_log_test.cc | aa68de58f447c36ed598b66706eb22f7d7f39746 | [
"BSD-3-Clause"
] | permissive | RobotLocomotion/drake | 4529c397f8424145623dd70665531b5e246749a0 | 3905758e8e99b0f2332461b1cb630907245e0572 | refs/heads/master | 2023-08-30T21:45:12.782437 | 2023-08-30T15:59:07 | 2023-08-30T15:59:07 | 16,256,144 | 2,904 | 1,270 | NOASSERTION | 2023-09-14T20:51:30 | 2014-01-26T16:11:05 | C++ | UTF-8 | C++ | false | false | 1,842 | cc | vector_log_test.cc | #include "drake/systems/primitives/vector_log.h"
#include <gtest/gtest.h>
#include "drake/common/default_scalars.h"
namespace drake {
namespace systems {
namespace {
template <typename T>
class VectorLogFixture : public testing::Test {
protected:
static constexpr int64_t kDefaultCapacity = VectorLog<T>::kDefault... |
4dac6c6e3589b2f13a61056fefd93f1f6a5c2998 | dceeae4b5d254744ac2293f905ed7ddff186722b | /Code_Cpp/Cpp_Single/chapter-8/ConstReturnValues.cpp | a71cc2a0ea1677436164983f9cceb2776765fe39 | [] | no_license | robot007num/Cpp_Study | 3694a8bc8e2cbe8a45d1047727d3c7098b1dc2e4 | ef3d754cb752ae4b5b50ccfe4557e8909f924f40 | refs/heads/master | 2023-07-08T18:42:50.000301 | 2021-08-09T03:51:57 | 2021-08-09T03:51:57 | 390,266,532 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 372 | cpp | ConstReturnValues.cpp | //Const return by value
//Result cannot be used as an lvalue
class X
{
private:
int i_;
public:
X(int ii = 0);
void modify();
};
X::X(int ii) { i_ = ii;}
void X::modify() { i_++;}
X f5() { return X();}
const X f6() { return X();}
void f7(X&x) { x.modify();}
int main01()
{
f5() = X(1); // ok --... |
89086a371d8d8fffedfe0b29ca646082c50438a9 | c4eaa3e6cdca0ef6eea9487735369fb4d215949f | /2DAE07_Geers_Pieter_digdug/Minigin/TextureRenderComponent.cpp | 33e88722464688d8ed7670083b51fc41be4c31d1 | [] | no_license | PieterGeers/DigDug | 483fc09f6425501aea7e690831517d695c56bea2 | b69e05ca025558a089d1d10bda1ee01677292a54 | refs/heads/master | 2022-02-26T02:42:53.016532 | 2019-10-31T15:37:02 | 2019-10-31T15:37:02 | 175,878,736 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,782 | cpp | TextureRenderComponent.cpp | #include "MiniginPCH.h"
#include "TextureRenderComponent.h"
#include "ResourceManager.h"
#include "Renderer.h"
#include "GameTime.h"
TextureRenderComponent::TextureRenderComponent(const std::shared_ptr<dae::Texture2D>& text)
: m_IsSprite(false)
, m_Texture(std::move(text))
{
}
TextureRenderComponent::TextureRender... |
5144f794db88d180f7508a46d570b1f052f370b5 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/a7/d94bb5ec9750fa/main.cpp | 55a3a649c4d8dca237fb4f7a474b5273ea8cef99 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 408 | cpp | main.cpp | #include <cstdlib>
#include <iostream>
int simpleMemLeak()
{
//dynamic memory allocation
int* pint = new int;
//assign value by dereference
*pint = 10;
//return value by dereference
//allocated memory is lost in every function call
return *pint;
}
int main()
{
//it will cause bad_alloc exception because ... |
499d575fb802cee1f2d4207977a0cde75e04f3e3 | 7b8a91034de5176cd851cd32f02101e020944ed8 | /SoftwareTriangleRasterizer/MathStuff.h | 8031583155b9e3b4e18ee86b894f7d80261fa03b | [] | no_license | LouisMayor/SoftwareRasterizer | ee1186e5d378e7e4ffce2b5311f8ea9154edecc5 | 8c86b6150dba943eb42c341a2140a5d6a4ab2e32 | refs/heads/master | 2020-03-20T02:11:55.831961 | 2018-07-10T19:10:21 | 2018-07-10T19:10:21 | 137,103,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 375 | h | MathStuff.h | #pragma once
#define _USE_MATH_DEFINES
#include <math.h>
#include <cfloat>
namespace math {
static constexpr double _pi = M_PI;
static constexpr float _epsilon = FLT_EPSILON;
inline float radians_to_degrees( const float& _rads ) {
return (_rads * 180.0f) / _pi;
}
inline float degrees_to_radians( const float... |
fa48b960b76ca6cf30d767872324546e6736b249 | 213fa55d526ffa2c70c6230e9f93d73a2fa806ed | /Stereoscopic_3D_Vita/Build/CourseWork/main.cpp | 658948ff4859922538dd06c4c10b7d4c0a1618be | [] | no_license | petmac/CourseWork | 7987ba17493ea4a97f022a7bdc4a7552eeafb106 | 48df4f5467680cb893c8249a6e7364690015e594 | refs/heads/master | 2020-03-12T00:36:40.735555 | 2015-06-03T13:48:26 | 2015-06-03T13:48:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 291 | cpp | main.cpp | #include <system/d3d11/platform_d3d11.h>
#include "s3d.h"
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pScmdline, int iCmdshow)
{
// initialisation
abfw::PlatformD3D11 platform(hInstance, 960, 544, false, true);
S3D myApp(platform);
myApp.Run();
return 0;
} |
687f1f5f8e4a30e06f2fe638097e543904944621 | 93d1fb0f9b13abc322935befb9c3fe43c6ff245e | /Towerdefense/paint/mybutton.cpp | c4ce021e83df42dcf191dca08369955c025c96cb | [] | no_license | ZizhenWei/TowerGame | 780042decfb28b681cefd64de22168265be3f17b | 74db224fb1674a697756e59af6b48bffebdef17c | refs/heads/master | 2022-11-09T14:39:24.721731 | 2020-06-28T13:37:39 | 2020-06-28T13:37:39 | 269,600,113 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 419 | cpp | mybutton.cpp | #include "mybutton.h"
#include <QPixmap>
#include <QBitmap>
MyButton::MyButton(QString pix) : QPushButton (0){
QPixmap pixmap(pix);
// pixmap.fill(QColor(0,0,0,0));
pixmap.setMask(pixmap.mask());
this->setFixedSize(pixmap.width(),pixmap.height());
this->setStyleSheet("QPushButton{border.Opx;}... |
34ca611b270bc09e11e26a786d1b3dcc61f1721e | 8a1f5a8d6b603042e52a10f4153b3d5d3c696867 | /sources/source.cpp | 1a7388ed943957705972570f73b372716531df31 | [
"MIT"
] | permissive | kirill050/lab-03-shared-ptr | cad4d8b5387fb84b49be49e395bf3ac7292356d1 | ffd239ff95c23ee96d1c59cc97a682bd8bc9f291 | refs/heads/master | 2020-10-01T20:36:13.773848 | 2019-12-20T14:09:43 | 2019-12-20T14:09:43 | 227,620,657 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 61 | cpp | source.cpp | // Copyright 2019 Kirill <your_email>
#include <header.hpp>
|
500962b3aa2474e39ae9c4419cafce64b88cd22b | 9dcfb99b63845a99b8823dd6c72e3933f4b95a27 | /BigMod.cpp | b7096ef4f7a34418f13d5963082268f0c42712cb | [] | no_license | ismail102/Algorithm | a2e5983d2e3d65c57f5f44f82df2fced853f16ad | 1a8f36dad284b384b44b0ff623a746060a81d5f1 | refs/heads/master | 2020-03-25T19:03:18.049868 | 2019-10-24T20:38:45 | 2019-10-24T20:38:45 | 144,062,362 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,748 | cpp | BigMod.cpp | /// Author: Ismail Hossain(Mukul)
/// Univarsity: Chittagong University of Engineering Annd Technology(Bangladesh)
/// Uva:ISMAIL_HOSSAIN
/// Codeforces: ISMAIL_HOSSAIN
/// SPOJ:ismail_102
/// HackerRank: ismail_102
/// csacademy: ISMAIL_HOSSAIN
/// Facebook: Smily Mukul
//BISMILLAHIR RAHMANIR... |
dd054f7e1109064de825caebac2c95b9ab248e8d | f96ce3c28e5bf6ffa4e3301f090f30d6be912365 | /ListiniSet.cpp | e71bb2ba63723628845f7ee196cf22e2fc312751 | [] | no_license | simonecalamai/WinSigma | 2d210f5ab04c6d4005e4dff66380133e8db53039 | 2aa40830103e64efba736576601480debc57da97 | refs/heads/master | 2021-07-15T05:15:43.610892 | 2021-03-09T12:27:20 | 2021-03-09T12:27:20 | 54,917,808 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,620 | cpp | ListiniSet.cpp | // ListiniSet.cpp : implementation file
//
#include "stdafx.h"
#include "winsigma.h"
#include "ListiniSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CListiniSet
IM... |
4299ccf607899a1524727b3d5c7b2aab0f14ffe2 | e5c4cc27ac9f80341990714d4401e6568cb85a6d | /Source/RibRenderLib/include/RRL_Net_RenderBucketsServer.h | ff88e8cdb3e4de3a6e86e7ae0e40bc4eb686d225 | [
"BSD-3-Clause"
] | permissive | wubugui/RibTools | 42f606ef6963a62a6539da9fc4b5c84c0d158043 | fd917920069ab73d6fa4091cb32b9e3ca6a81494 | refs/heads/master | 2020-12-26T01:12:07.895683 | 2014-05-22T06:51:28 | 2014-05-22T06:51:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,394 | h | RRL_Net_RenderBucketsServer.h | //==================================================================
/// RRL_Net_RenderBucketsServer.h
///
/// Created by Davide Pasca - 2009/8/6
/// See the file "license.txt" that comes with this project for
/// copyright info.
//==================================================================
#ifndef RRL_NET_REN... |
aa8563ce22d64ddd56172b859e023729e5e7fd93 | 72ee22c4cfbb7f011cb88e8f96cc8c7da4a707f5 | /phonelog queue.cpp | 99d03748818747155ba276d5f550b820bf4351bc | [] | no_license | tmoynandy/DataStructure-C | 51500d7d97f9b85a754600de4a0645e81f1e3274 | 4f69234613e2063aed3da8d35c75f4eae2718016 | refs/heads/master | 2023-08-15T08:47:07.312566 | 2021-10-03T05:46:53 | 2021-10-03T05:46:53 | 100,859,637 | 1 | 20 | null | 2022-04-03T22:07:37 | 2017-08-20T12:23:10 | C | UTF-8 | C++ | false | false | 1,521 | cpp | phonelog queue.cpp | #include<iostream>
#include<ctime>
#include<cstdlib>
using namespace std;
struct Node
{
string data;
string name;
string t;
struct Node *next;
};
struct Node*front=NULL;
struct Node *rear=NULL;
void enqueue(string y,string w,string x)
{
struct Node *temp;
temp=new Node;
if(temp==NULL)
cout<<"Queue is FUll\n";
... |
96b41a09a3e983aa63b7ab09b75fd8ff39dd1e6d | e371c4f4f5b1d4812fdbd50ab27eb767eba6faaf | /RayTracer - Rasterization/Cameras/PinHole.cpp | dd9077460f9497e2b7a2c8927cf04ca5a480caaa | [] | no_license | tsargs/Ray-tracer | ce01baba0e2175f25bec97d74a0681e2ebab7934 | b069aa16fbf0e3d2a77bd42e589382dbae4d408c | refs/heads/master | 2021-03-22T04:59:53.057456 | 2018-02-12T01:40:07 | 2018-02-12T01:40:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,088 | cpp | PinHole.cpp | // =============================================================================
//
// Created by Shyam Prathish Sargunam on 02/05/15.
// Copyright © 2015 Shyam Prathish Sargunam. All rights reserved.
//
// =============================================================================
#include "PinHole.h"
//Default ... |
5469017660a1bde0faf3edaccd4549bcb576d6c8 | 29f98a758c63c30afba852f52921f08f0d705258 | /src/shared/flags.cc | 892e4de9433a5afff6c1e993b255ea56236c30a1 | [
"BSD-3-Clause"
] | permissive | lukechurch/fletch | ff4ba589d73efb6e653559de7579206d20c6e551 | f3e1769d3ac26900e7e15028d07bb1211ff30ff6 | refs/heads/master | 2021-01-22T12:17:23.618221 | 2015-06-28T07:08:49 | 2015-06-28T07:08:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,976 | cc | flags.cc | // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE.md file.
#include "src/shared/flags.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
namespac... |
6b0e3b166d8b5615ada1b3e3132fcec85be1af4a | 408b7c5c45d0e27e53a7dd9602088525abc3ef30 | /prefix/PREFIX_Trie.cpp | 8a9dc0d1454ab9f4eb3583c9b75b7343cef51076 | [] | no_license | JMistral/Large_Scale_Data_Structure | 1d0e22dd54307b1c03f5341076ee4990f55d53f6 | 93cc84f611d599476c626063748637f104fb76e5 | refs/heads/master | 2020-05-21T06:20:30.944050 | 2017-04-28T00:29:17 | 2017-04-28T00:29:17 | 84,587,572 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,035 | cpp | PREFIX_Trie.cpp | //
// PREFIX_Trie.cpp
//
//
// Created by Jiaming CHEN on 4/5/17.
//
//
#include "PREFIX_Trie.hpp"
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#define MAXIMUM 5
using namespace std;
int value(char g){
if (g == 'A'){
return 0;
}
else if (g == 'C'){
return... |
284cc5e3722ab3721554c71d5f21d13d016097e8 | 661b5874c1b132d632ee5278a39c61229116cf1b | /player.cpp | b4070ed0f6b3fa3f2f7fd98cb8398a45c6234685 | [] | no_license | SilentSib/tictactoecpp | b7f96a37befbc13af0399526719d750a116abc2d | 2e16c1460777f382c69a13c69e7f00efb59d535a | refs/heads/master | 2020-04-23T11:10:09.633239 | 2019-02-17T13:46:05 | 2019-02-17T13:46:05 | 171,127,094 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 108 | cpp | player.cpp | #include "player.h"
using namespace std;
void Player::setPlayerName(string name)
{
playerName = name;
}
|
1404482a4e58ebd198c20e43d5a96c6c78c33302 | 370188c6d1515da7d7784db002fd4c558678441a | /src/ShaderSourceBuilder.cpp | 4cb287d5272e15d873b97ca2f77969b96fe4e4e0 | [
"MIT"
] | permissive | fernandomv3/post3D | 8dcd1b912bdc44783a8af7e85351e25e8d5f521c | f97e4e092f7e47a964d2420681e6c282e0dcb868 | refs/heads/master | 2021-01-22T11:38:08.183355 | 2015-09-04T17:13:03 | 2015-09-04T17:13:03 | 32,222,847 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,320 | cpp | ShaderSourceBuilder.cpp | #include "post3D/ShaderSourceBuilder.h"
#include <fstream>
#include <streambuf>
#include <cerrno>
namespace material{
ShaderSourceBuilder::ShaderSourceBuilder(){
this->attribute = {
//inputs from vertex shader (attributes)
{"normal","layout(location = 0)in vec3 normal;\n"},
{"position","layout(locatio... |
4d7c00dec355ced17bf1fad090d9616cae85295d | a5e3fbdf73ad3a361bf3723dc514516896d1907b | /code/ray_tracing/src/core/base.cpp | 8bd1beaf6a1ed2aa7f0a01fabb95abc4380dd3bc | [
"MIT"
] | permissive | kmfu/ray_tracing_tutorial | 0ed0740215f9916446996b1b6352c1383fb23877 | a2d9c5596334d45e5937b33d87b4b8f5db9cd4b5 | refs/heads/master | 2022-07-01T22:47:32.167795 | 2020-05-08T07:16:14 | 2020-05-08T07:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,447 | cpp | base.cpp | #include<core.h>
ray_tracing::ray::ray(const vec::vec3 &origin,const vec::vec3 &direction):origin_(origin),direction_(direction.normalized()){}
ray_tracing::ray::ray(const ray &r):origin_(r.origin()),direction_(r.direction()){}
const vec::vec3& ray_tracing::ray::origin()const{return origin_;}
const vec::vec3& ray_trac... |
38cac6282aca0e3f5889efe0efa73fbc5da20209 | 624d28b7da6b547d64706f59e336c99f92d5a26e | /Caravel/DRODLib1.5/Files.h | 3259c7cfe390355a919a92a734ccd8b608c00ae6 | [] | no_license | anderssonn/drod | 543828e11956bc56dca631ad3371cc430098e432 | 48f99a4c261824f41694cfa446daccb09228598a | refs/heads/master | 2020-12-01T11:38:34.588601 | 2013-10-20T19:44:24 | 2013-10-20T19:44:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,704 | h | Files.h | /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
* Software distr... |
a08e4a994d869fcbc18b6f2ec5934d913c57c101 | 1741984c3681edca8cdf26cc4412d73c0a8c9646 | /source/engine/rendering.cpp | 9dfd4a4c239b588505ed08d138bada5dcfecdd24 | [] | no_license | kochol/DiceInvaders | f4ced344c5cdc792c257bf0739e5c7ad97775c9f | bfe5e679a1b39c3ae67f67f552fd2633fd246c5d | refs/heads/master | 2020-04-09T06:09:46.863915 | 2016-06-24T15:26:18 | 2016-06-24T15:26:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,497 | cpp | rendering.cpp | /* ---------------------------------------------------------------------------
**
** rendering.cpp
** Rendering stuff, implemented as a part of "Model" component
**
** Author: Ali Salehi
** -------------------------------------------------------------------------*/
#include "engine.h"
namespace Engine
{
static void ... |
ec7342f2fe9be234812c3ce8934827c521e68cb2 | 96d0ade155d33078d4a1c848e4d929b39aed173e | /src/problem.cc | 991053d6661bc3277e686af3a9ecca45e02fc9cd | [] | no_license | maxencedb/plam2 | 7f45c8dd827dbffab7e33d5fdee2a01e18e591a0 | b2a4f37c40374bba90a8170ad3fd24c15c49ec18 | refs/heads/master | 2020-06-30T02:56:58.426189 | 2018-10-07T08:59:50 | 2018-10-07T08:59:50 | 40,079,774 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,660 | cc | problem.cc | #include <iostream>
#include <glpk.h>
#include "problem.hh"
Problem::Problem()
: lp(glp_create_prob())
, smcp()
, iocp()
, c0(0.0)
, obj_coefs()
, row_index()
, col_index()
, values()
, variables()
, constraints()
, var_indexes()
{
}
Problem::~Problem()
{
glp_delete_pro... |
87a35a472e690877f58194fab25a069296f35b8a | 4b62774fb7958d8917ff0eca29b105c160aa3408 | /Contest Programming/Codes/Codeforces/831B. Keyboard Layouts.cpp | ab8ca49cd05c0ee6625b015006e01b9869bc9707 | [] | no_license | talhaibnaziz/projects | 1dd6e43c281d45ea29ee42ad93dd7faa9c845bbd | 95a5a05a938bc06a65a74f7b7b75478694e175db | refs/heads/master | 2022-01-21T08:00:37.636644 | 2021-12-30T01:58:34 | 2021-12-30T01:58:34 | 94,550,719 | 0 | 0 | null | 2021-12-26T02:01:24 | 2017-06-16T14:16:24 | Java | UTF-8 | C++ | false | false | 452 | cpp | 831B. Keyboard Layouts.cpp | #include <bits/stdc++.h>
using namespace std;
map <char, char> mp;
int main()
{
string a, b, input;
cin>>a>>b>>input;
for(int i=0; i<26; i++)
{
mp[a[i]] = b[i];
}
for(int i=0; i<input.size(); i++)
{
if(input[i]>='a' && input[i]<='z') input[i] = mp[input[i]]... |
4159d7e4fc291c1834cfafc3ec665cfd883f888a | 25034d16145cf69dd6d8df778af0de1f4b0046d5 | /src/Main.h | 64283d3236f598ecb3c0e4c21c2459e27347a3b6 | [] | no_license | FeldrinH/Densiotropic-Universe | 20b1cf5deeec63e9ebf334ce19d2a337bf213ad5 | f90701e82cf6fc0c1b9d5c1430664c533c8b69c1 | refs/heads/master | 2020-04-16T23:35:58.813180 | 2016-08-09T18:14:59 | 2016-08-09T18:14:59 | 46,986,968 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 138 | h | Main.h | #pragma once
#include <ppl.h>
#include <concurrent_queue.h>
#include "SDL.h"
extern concurrency::concurrent_queue<std::string> cmdQueue; |
a1ab9080f7c0767dd142f82a47ab2bf36b952fc1 | 880d2da6a66b63fe88b1f334504a2386e17feb2e | /integrationtest/WordMapLayout/WordMapLayout/WordMapLayoutDriver.cpp | dd6254163e1971a3af4393bb1403c82371d1f670 | [] | no_license | firesidedata/WordMap | 7e0335db7816ab0f485d8df175bacb9d31cf022f | 98061e6fb84dbc5dcee4fdbc695fdc33f569686c | refs/heads/master | 2020-04-10T17:53:04.680409 | 2018-12-10T14:34:42 | 2018-12-10T14:34:42 | 161,187,272 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,178 | cpp | WordMapLayoutDriver.cpp | #include "ColumnLayout.h"
#include "WordMapMaker.h"
#include "DocList.h"
#include "FreqList.h"
#include "WordCount.h"
#include "WordMap.h"
#include "MapItem.h"
#include "Rectangle.h"
#include "FontSize.h"
//#include "LatexFactory.h"
#include "IRenderFactory.h"
#include "latexutil.h"
#include "LatexMaker.h"
... |
0792d7f7f8b7a77bb975d5ef156d8641af27e70d | 9ee974fc2bbfbd85a8530d7e986a39ad35ceb15c | /Geometric_shapes_inheritance/Rhombus.cpp | ef07b869ca13ef13cba29fdc5e65e37a241a077e | [] | no_license | Pulkit219/Cpp-projects | 5d9619462eab0076a2bae6f98fc8b7c4d274b83f | a3eea595aeedc27fc25c722fd846e0ce93cc2e13 | refs/heads/master | 2022-12-10T18:33:24.131387 | 2020-09-06T00:57:16 | 2020-09-06T00:57:16 | 269,184,892 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,822 | cpp | Rhombus.cpp | #include "Rhombus.h"
Rhombus::Rhombus(int diag, string name, string desc):Shape{name,desc},d{diag}
{
d = diag % 2 == 0 ? diag + 1 : diag; // if d is even then make it d+1 else store d
}
int Rhombus::get_height() const
{
return this->d;
}
int Rhombus::get_width() const
{
return this->d;
}
void Rhombus::set_d(int ... |
d81d1fbc4767a9ce6b819dae156a7f0f08da3c29 | 8bcb75e4fa8fe4e0557c17417f2b53ed2dce6bbd | /TxtCopyMacro/simplification.cpp | 8113b193695b7d73ffed0ec3f8b20a2a9d86ac61 | [] | no_license | scdoit22/Projects | ec8120545bbdfe707e917727770803c108176f46 | dc94e4dcc16d23d0da5835be21db2dc55c56144f | refs/heads/main | 2023-03-08T02:42:07.790334 | 2021-02-26T14:00:36 | 2021-02-26T14:00:36 | 342,250,141 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,955 | cpp | simplification.cpp | #include <fstream>
#include <string>
#include <iostream>
#include <regex>
#include <vector>
class simplification
{
private:
char chapter[1];
std::regex chapterRegex; // 챕터 찾는 정규표현식
std::regex wordRegex;
std::vector<std::string> output;
const std::string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
... |
18242868d20c84b08f3b9e5cdfe99bc519501baf | 5e3ba38ab7cc72cafb31e9d2f0dc763cbd2ac3e3 | /tlg-wic-codec/libtlg/slide.cpp | be8f03a5dedc108c03612ae7e7dcef8d17f47f9d | [
"MIT"
] | permissive | SegaraRai/tlg-wic-codec | 262715bd4fa2904f1244d9df7582c440976472d6 | 4dd7b3f2e3a2c674083140b7b9a61ea9dc0d8017 | refs/heads/master | 2022-11-27T20:20:32.014939 | 2020-08-10T17:38:09 | 2020-08-10T17:38:09 | 283,404,546 | 1 | 0 | null | 2020-07-29T05:12:29 | 2020-07-29T05:12:29 | null | UTF-8 | C++ | false | false | 4,609 | cpp | slide.cpp | //---------------------------------------------------------------------------
#include "slide.h"
//---------------------------------------------------------------------------
SlideCompressor::SlideCompressor() {
for (int i = SLIDE_N - 1; i >= 0; i--) {
AddMap(i);
}
}
//----------------------------------------... |
3579914643cf35e94b72b1c05ddff84a6c2ebf46 | 7ea1e4c7eda6ee1ba4ed3a98a4d513c68e6b715f | /src/main.cpp | 7a31d3bdf13e02168bfd28d35844571cbb8680de | [] | no_license | addisgithub/graph | 3ef28f3dc649bba1e5c37e576a6f7324881b4a48 | cfa5a64f2aba1cd6310286f076b21a5813f2be08 | refs/heads/main | 2023-06-05T22:19:48.609592 | 2021-06-29T19:16:12 | 2021-06-29T19:16:12 | 355,223,477 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,212 | cpp | main.cpp | /*
* @author Addis Bogale
* @date 4/2/2021
*/
#include <iostream>
#include <vector>
using namespace std;
class Graph {
private:
int n;
public:
int Matrix[10][10] = { 0 };
Graph(int input) {
n = input;
}
void addEdge(int i, int j) {
Matrix[i][j] = true;
}
void removeEdge(int i, int j) {
... |
9b84da4672ee3d3f098fb2ce4dda49dd55abf656 | 002c0b330b5a154aa2e4c638bd6e5618c77ff810 | /pieces.cpp | 336bdd7c9ae7c60b1625af09da656b947bf41e8d | [] | no_license | emilyws27/tictactoebase | 63d77d21a7b5edefcb19964e22c8026d257dda29 | d95427b931e025e498f17e92cf040c16ea46248d | refs/heads/main | 2023-08-30T17:11:43.641907 | 2021-11-05T16:55:02 | 2021-11-05T16:55:02 | 425,020,772 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 188 | cpp | pieces.cpp | #include "pieces.h"
game_pieces::game_pieces() : name(" "), appearance(" ") {}
game_pieces::game_pieces(std::string name, std::string appearance) :name(name), appearance(appearance) {
}
|
457e2e6d89e4290713ea1b8d9ec1e20923006281 | b676cf48543e03726ced5f6fff0400f32b71ef13 | /PongGame/src/game.cpp | 4740cee5b1c9267048bdd2a0039391399dd3cf0a | [] | no_license | Xysar/PongGame | f8d84f8d9c422e4d17d04d6928841f481b9c7d7f | a8362997de1e0ba480ab96005d1ebfb0a48bd76f | refs/heads/main | 2023-03-18T13:04:23.487393 | 2021-03-18T04:38:44 | 2021-03-18T04:38:44 | 348,942,120 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,210 | cpp | game.cpp | #define is_down(b) input->buttons[b].is_down
#define pressed(b) (input-> buttons[b].is_down && input->buttons[b].changed)
#define released(b) (!input-> buttons[b].is_down && input->buttons[b].changed)
float player1P, player1V;
float player2P, player2V;
float ballXP = 0, ballXV = 75, ballXA = 0.f;
float ballYP = 0, b... |
cd11e87949ff69fdbfe96ea3a7344360bef08af3 | 6f6a88ba519d9569b8bf17a1dd87537c24f28098 | /Filters/src/VetoIncorrectHits_module.cc | b2b9d4d00d80ea9ba43c443af7dc0c8e52610084 | [
"Apache-2.0"
] | permissive | Mu2e/Offline | 728e3d9cd8144702aefbf35e98d2ddd65d113084 | d4083c0223d31ca42e87288009aa127b56354855 | refs/heads/main | 2023-08-31T06:28:23.289967 | 2023-08-31T02:23:04 | 2023-08-31T02:23:04 | 202,804,692 | 12 | 73 | Apache-2.0 | 2023-09-14T19:55:58 | 2019-08-16T22:03:57 | C++ | UTF-8 | C++ | false | false | 11,340 | cc | VetoIncorrectHits_module.cc | // Reject events with incorrect hits (initially, outside the given detector volume)
// Heavily based on ReadBack_module
// Krzysztof Genser, 2015
#include <string>
#include <iostream>
#include <cmath>
// art includes.
#include "fhiclcpp/ParameterSet.h"
#include "art/Framework/Core/EDFilter.h"
#include "art/Framework/... |
3d2a75d9ba4259262b507998c8a0d8c672b99883 | a35b30a7c345a988e15d376a4ff5c389a6e8b23a | /boost/type_erasure/detail/macro.hpp | 77b8f55d877cd405804de082f93b38a6605f7e0b | [] | no_license | huahang/thirdparty | 55d4cc1c8a34eff1805ba90fcbe6b99eb59a7f0b | 07a5d64111a55dda631b7e8d34878ca5e5de05ab | refs/heads/master | 2021-01-15T14:29:26.968553 | 2014-02-06T07:35:22 | 2014-02-06T07:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 71 | hpp | macro.hpp | #include "thirdparty/boost_1_55_0/boost/type_erasure/detail/macro.hpp"
|
80cbd9cd7f5bc33efe080186fbd94b80b761146f | db400f68d15e2af8ea2a499816fb63de320fadf4 | /binary_trans/backend/main.cpp | 65e36d672a15209f14a15066158c6e776185b55e | [] | no_license | Arv1k/2_sem | 6803a737695981902de58af52e0e7ce75ad30f74 | 8c359f77d54539cfafba5a19505c608c1a24897c | refs/heads/master | 2021-07-17T11:38:03.740943 | 2020-07-17T20:28:34 | 2020-07-17T20:28:34 | 185,005,386 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 599 | cpp | main.cpp | #include "backend.h"
int main(int argc, char* argv[]) {
FILE* max = fopen(argv[1], "rb");
long num_symbols = Size(max);
char* buffer = (char*) calloc(num_symbols + 1, sizeof(char));
fread(buffer, sizeof(char), num_symbols, max);
fclose(max);
Function funcs[10] = {};
make_std(buffer, fun... |
3bd177c31cb8c2e3789cef7cb000679f4e226ab2 | 7d3c0c3718fbd433e9f1614aec34903200bfb112 | /lista5/zad1/Structures.h | 8bdb26cfbeb7c059a16a2f56b8f9396bfad44c94 | [] | no_license | mateuszkochanek/algorithms-and-data-structures | aed7d1430f7e27ee47d338bba11d06a309171577 | 35be67a2bbeb8bc164353738db9be9c79d48b83f | refs/heads/main | 2023-01-13T00:56:02.506502 | 2020-11-18T09:34:55 | 2020-11-18T09:34:55 | 306,346,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 899 | h | Structures.h | //
// Created by erthax on 06.06.2020.
//
#ifndef ZAD1_STRUCTURES_H
#define ZAD1_STRUCTURES_H
#include <iostream>
#include <vector>
#include <cmath>
struct Node{
Node(int index, int val): index(index), val(val) {}
int index;
int val;
};
struct Element{
Element(int val, int p): value(val), p(p) {}
i... |
c50cc1fe0c09be1e4a60b28fe70dcc81b71935fd | 904441a3953ee970325bdb4ead916a01fcc2bacd | /src/sys/misc/static_node_array.h | 6a72ba10f1695a4c438c6cd82535b187fafa6f65 | [
"MIT"
] | permissive | itm/shawn | 5a75053bc490f338e35ea05310cdbde50401fb50 | 49cb715d0044a20a01a19bc4d7b62f9f209df83c | refs/heads/master | 2020-05-30T02:56:44.820211 | 2013-05-29T13:34:51 | 2013-05-29T13:34:51 | 5,994,638 | 16 | 4 | null | 2014-06-29T05:29:00 | 2012-09-28T08:33:42 | C++ | UTF-8 | C++ | false | false | 3,010 | h | static_node_array.h | /************************************************************************
** This file is part of the network simulator Shawn. **
** Copyright (C) 2004-2007 by the SwarmNet (www.swarmnet.de) project **
** Shawn is free software; you can redistribute it and/or modify it **
** under the terms of t... |
944b5670a31afe847537b0be96da5d9256d2e9c8 | f51e79184a877c0d207b93fa6cc415b7d4afc151 | /pr_10/Huffman.cpp | 4af91dbf26503e527ab8606da8ef684708e2baf6 | [] | no_license | UDQD/Cpp_MIREA | 8c3acc2479c49a418d6a3fcbef010740221bd60b | 4127b11662d166e3f1affa2de4dad6aebc45f150 | refs/heads/master | 2023-01-24T11:28:18.109259 | 2020-12-13T15:35:10 | 2020-12-13T15:35:10 | 294,608,273 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,521 | cpp | Huffman.cpp | #include "Huffman.h"
#include <string>
void Huffman::set_string(string s) {
name = s;
for (int i = 0; i < name.length(); i++) {
if (los.find_ell(name[i]) == NULL) {
los.add_ell(name[i]);
} else {
los.inc_ell(los.find_ell(name[i]));
}
}
}
void Huffman::make... |
a90b59acfca5027686642de345bfe3a33b931b24 | 73c7fe37bf6af775cac65f58b81d2284dae117f2 | /LeetCode/79. Word Search.cpp | 062a92073543ee80e64b6b0d111805608aabe8f2 | [] | no_license | atique7465/Competetive_programming | 9ad03427682270e889f751b8a8e2e9ab3b309be2 | 840b8b9133f5b993730ecde186ef4d4fdfca9c46 | refs/heads/master | 2023-08-03T15:16:47.582253 | 2023-07-25T04:07:01 | 2023-07-25T04:07:01 | 186,138,178 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,124 | cpp | 79. Word Search.cpp | class Solution {
int r,c;
public:
bool exist(vector<vector<char>>& board, string word) {
r = board.size(); c = board[0].size(); bool res = false;
for(int i = 0; i < r; i++){
for(int j = 0; j < c; j++){
if(board[i][j] == word[0]){
... |
b96ffb10f38664abbec9d2c98e049291fa9a66ea | 92531c6349e1dca29adfbc4ad3de62d8ea8475ec | /9_semestre/POO_II/Ex_UdpSocket/FTP_Server/pacote.h | 4bbaa5e9d126b713318ce1bdefbb23e535411f6d | [] | no_license | fhgrings/College | 9856441afe084f0ceb5b2ff5287968686916acaf | 7a5139063ed24867b36149bb95f7dc3a6e9ded9d | refs/heads/master | 2021-07-07T23:08:04.323000 | 2020-08-02T03:48:59 | 2020-08-02T03:48:59 | 155,631,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 704 | h | pacote.h | #ifndef PACOTE_H
#define PACOTE_H
#pragma once
#include <QString>
class pacote
{
public:
// construtores e destrutores
pacote();
~pacote();
void setNomeArquivo(QString nomeArquivo);
QString getNomeArquivo();
void setConteudoArquivo(QString conteudoArquivo);
QString getConteudoArquivo();
... |
ada90bee0c3845099212031de9a0291e9742fbda | 170ff0c2065c2b907891a4bff305063d491adfcc | /matching/copmem/Hashes.h | d526948b1703e915f33dd24f7678a8901b041eef | [] | no_license | kowallus/PgRC | 0c8bb0cc22a4272aaee89abf96adb404f3ff1dd8 | 668b4b2555893ebe8055e7a6bade96edc8916eea | refs/heads/master | 2021-06-07T04:25:54.864486 | 2021-05-27T11:08:26 | 2021-05-27T11:08:26 | 144,006,868 | 9 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,861 | h | Hashes.h | #pragma once
#ifndef _HASHES_H
#define _HASHES_H
#include <cstdint>
#define XXH_INLINE_ALL
#define XXH_PRIVATE_API
#include "xxhash.h"
#include "metrohash64.h"
#include "city.h"
template <size_t K>
inline std::uint32_t xxhash32(const char* key) {
XXH32_hash_t result = XXH32((const void*)key, K, (uint32_t) 9876543210U... |
38141ba9c7e612fb4250defcfdb1e1b4a146bc70 | bdd1f460bdeb99a1f6d1a2d5173dc10a4970739d | /snow_logger/snow_logger.ino | 1db465497b4b1cbf7651dd0d9de166e1979f6d6a | [
"MIT"
] | permissive | caternuson/Snow-Temperature-Profiler | 90fb0933ccf21ef6fd43767afcd2dd556ab8af34 | 3eab5304a122c77c0abaebe01c2481d728ad56db | refs/heads/master | 2021-08-30T05:12:26.314360 | 2017-12-16T01:42:30 | 2017-12-16T01:42:30 | 114,318,640 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,628 | ino | snow_logger.ino | //--------------------------------------------------------------------------------------
// Snow Logger
//
// 2017-12-14
// Carter Nelson
//--------------------------------------------------------------------------------------
#include <SD.h>
#include <SPI.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include... |
1ae985d2ce4f270509bed96a7018458e570d13c5 | 79ad09b0d27ca0f825bcb54dc9e7a455926c6f57 | /SVFEngine/SVFEngine/mathematics.h | a883ef918a9bbe56c0c5be534847751ba12eb5ce | [
"Apache-2.0"
] | permissive | safiar/SVFEngine | a9f0cbed517c50028e16536b0ffb3e47de8a28f9 | 5038143a0f369e88dd4fab364a0c22f7729217b3 | refs/heads/master | 2021-06-29T23:59:35.291815 | 2020-09-12T12:36:31 | 2020-09-12T12:36:31 | 131,051,362 | 1 | 0 | Apache-2.0 | 2019-06-24T09:58:18 | 2018-04-25T19:02:18 | C++ | UTF-8 | C++ | false | false | 111,237 | h | mathematics.h | // ----------------------------------------------------------------------- //
//
// MODULE : mathematics.h
//
// PURPOSE : Вспомогательные математические функции и определения
//
// CREATED : SavF. ⚡ Savenkov Filipp A. (2017)
//
// ----------------------------------------------------------------------- //
... |
9ab3a9ef234fef0b67ff66d223b4897fd26f40e3 | 09b8fd2258b2092b1d25c9ba2af3797f88d904fd | /include/DX10/System.Drawing.Texture.h | 1f85ac530b391a9cad87b994f85cd62f4cf4b0b4 | [] | no_license | playercd8/cppFramework | 4fa9f1a4ae8bdbad7028ce7780741f37e4524e98 | 5b0524f2bd8d0e38b8d199a2244e792988883881 | refs/heads/master | 2021-01-10T19:39:17.987843 | 2015-06-17T13:07:21 | 2015-06-17T13:07:21 | 37,526,854 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,260 | h | System.Drawing.Texture.h | /*
* System.Drawing.Texture.h
*
* Created on: Taiwan
* Author: player
*/
#include "../stdafx.h"
#if (_DRAWING_MODE == _DRAWING_MODE_DX10)
#ifndef SYSTEM_DRAWING_TEXTURE_H_
#define SYSTEM_DRAWING_TEXTURE_H_
#if _MSC_VER > 1000
#pragma once
#endif
#include "DX10.h"
#include "System.Drawing.Graphics.h"
#in... |
97a8a47d17a822ff5af52ae1381823a7f64eec1e | 52b28b80e514bccd0e9506a2a9b83adbb83320ad | /WPFLib/include/AVUIImageSource.h | 714b21428ce0a325868ee6ab7560d82fcbca9f35 | [] | no_license | RobinKa/wpfg | 8bb3e9e433bc7d3deae888189cf7961d8fc27023 | 0986c0cb277d55d7ddb50401f167abf9740e90d9 | refs/heads/master | 2023-01-03T02:54:09.452491 | 2020-10-26T18:50:11 | 2020-10-26T18:50:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 72 | h | AVUIImageSource.h | namespace AVUI {
class ImageSource : public DependencyObject
{
};
};
|
cef377b032d99805d330fa27269ca69f9d2251e5 | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/squid/hunk_5729.cpp | ccfdb8b1bc4fd88def2f9c91bc8f7ff35eed4042 | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,836 | cpp | hunk_5729.cpp | tt->rn_b = -1 - off;
*ttt = *tt;
ttt->rn_key = rn_ones;
- rnh->rnh_addaddr = rn_addroute;
- rnh->rnh_deladdr = rn_delete;
- rnh->rnh_matchaddr = rn_match;
- rnh->rnh_lookup = rn_lookup;
- rnh->rnh_walktree = rn_walktree;
+ rnh->rnh_addaddr = squid_rn_addroute;
+ rnh->rnh_deladdr = sq... |
defe90c415dc05646d27f24e4423307698d2c304 | 8d52a45ccb7606a1565e92fddd70bee1aa39e41a | /extensions/common/xwalk_external_instance.cc | 7b3b158afd5d70e8912564add859f6e17e66ada8 | [
"BSD-3-Clause"
] | permissive | ks32/crosswalk | 78e32e5336df6c8fed473fabe148a67d9024e31a | 6a212832e0d55f88eb9390619b1d91c73c5551f5 | refs/heads/ks_chromium_58 | 2023-07-08T20:31:05.252833 | 2019-07-11T10:28:34 | 2019-07-11T10:28:34 | 147,612,423 | 41 | 38 | NOASSERTION | 2020-08-12T20:51:57 | 2018-09-06T03:27:34 | C++ | UTF-8 | C++ | false | false | 3,330 | cc | xwalk_external_instance.cc | // Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/extensions/common/xwalk_external_instance.h"
#include <string>
#include "base/logging.h"
#include "xwalk/extensions/common/xwalk_externa... |
c369640fea3701de09f9ae2209b606e6405c5614 | 802ef2010da89d12e2ecde7cdee229fca50814d1 | /Code/Engine/Renderer/DeviceManager/DeviceObjects.h | 7794c1f6d5273bcc137c8ad024db1d2f0138345c | [
"MIT"
] | permissive | fromasmtodisasm/BlackBox | 1fd20cbb7aa9ac8a575d17523592d05727a8db03 | ef2fc9cb09100a4b0a5f59e69fd5c4edb5009d6e | refs/heads/master | 2022-07-22T10:16:54.983156 | 2022-01-25T19:35:11 | 2022-01-25T19:35:11 | 173,405,446 | 4 | 3 | MIT | 2020-02-17T21:14:32 | 2019-03-02T05:02:09 | C++ | UTF-8 | C++ | false | false | 7,514 | h | DeviceObjects.h | #pragma once
#include "DeviceResources.hpp"
struct SInputLayoutCompositionDescriptor
{
const InputLayoutHandle VertexFormat;
const uint8_t StreamMask; // EStreamMasks
const uint8_t ShaderMask;
const bool bInstanced;
static uint8_t GenerateShaderMask(const InputLayoutHandle VertexFormat, D3DShaderReflection* pSh... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.