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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d48e99e7f5afd662a06c0746e749b491f6c38e4d | cfc99437b085afa7304ed5a4eab2a90072c7e50e | /pintools/source/tools/ToolUnitTests/set_fp_context_xmm_regs.cpp | 180f6d0449c06ab4ba45b7aae7c03a4243bc4508 | [
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"Intel"
] | permissive | moraispgsi/pin-bootstrap | 95498b63f88c311e4fe446259214266130aece3f | 7315b4e1709f63f018781456f9c745fc6f020f22 | refs/heads/master | 2021-09-07T18:09:11.568374 | 2018-02-27T05:16:32 | 2018-02-27T05:16:32 | 122,972,429 | 0 | 1 | MIT | 2018-02-26T14:31:18 | 2018-02-26T13:17:08 | C++ | UTF-8 | C++ | false | false | 15,449 | cpp | set_fp_context_xmm_regs.cpp | /*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2017 Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyright noti... |
b13005107dcad0c6e3b75772c3c402e0dfd87ff9 | fa55d8ed32564195f2687d1e18b99f80c5683073 | /lbc_usaco/1.3-crypt1.cc | 596c2fa9c90f2792317d725d661733fc0c38efad | [] | no_license | TenFifteen/SummerCamp | 1841bf1bd212938cee818540658185cd3e429f0c | 383b9321eee9e0721772f93a897c890f737f2eff | refs/heads/master | 2020-04-05T23:48:01.393256 | 2018-03-11T12:37:38 | 2018-03-11T12:37:38 | 38,595,086 | 9 | 4 | null | 2016-07-18T14:21:15 | 2015-07-06T03:15:55 | C++ | UTF-8 | C++ | false | false | 1,671 | cc | 1.3-crypt1.cc | /*
ID: libench1
PROG: crypt1
LANG: C++11
*/
#include <iostream>
#include <fstream>
#include <string>
#include <unordered_set>
#include <vector>
using namespace std;
bool is_valid(unordered_set<int> &us, int x) {
while (x) {
int cur = x % 10;
x /= 10;
if (us.find(cur) == us.end()) {
... |
8fdb97a0c4ac27e42d3258036c2ba7d939bfca9f | 4c455000b67a09fbe9b4b50f62acf87108b8118d | /include/jogada.hpp | 4f0800e6c5acf5aeebceffdf1e32a4a6997564dd | [] | no_license | israelfontes/QuebrandoBixo | 4d194d6ced4fcb87894855be00a0c5549f50e671 | ce7372583e3c8e71be0c64a1e3eeaba8114cffe3 | refs/heads/master | 2021-04-05T23:28:31.543719 | 2018-03-17T16:16:57 | 2018-03-17T16:16:57 | 124,967,663 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 864 | hpp | jogada.hpp | #ifndef _JOGADA_HPP_
#define _JOGADA_HPP_
#include <iostream>
#include <string>
using namespace std;
struct Date{
u_short dia;
u_short mes;
u_short ano;
};
class Jogada{
//public:
private:
u_int chave; // Chave do jogo
Date data; // Data do jogo
u_short horario; // Horário do jogo
u... |
c0875f266711c845c660a7f645a2c04053f19975 | 1dbed0f84a670c787d2217d97ae3984401c7edb3 | /tioj/1887/1887-log.cpp | c530ec7cd0f3d4f2982aa2071ce010255b04d642 | [] | no_license | prprprpony/oj | 311d12a25f06e6c54b88bc2bcd38003f7b6696a9 | 84988be500c06cb62130585333fddd1a278f0aaa | refs/heads/master | 2021-07-13T16:03:54.398841 | 2021-03-27T14:19:52 | 2021-03-27T14:19:52 | 46,796,050 | 9 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,097 | cpp | 1887-log.cpp | #include <bits/stdc++.h>
using namespace std;
// nichijou
#define REP(i,a,b) for (int i(a), _B(b); i < _B; ++i)
#define RP(i,n) REP(i,0,n)
#define PER(i,a,b) for(int i((a)-1), _B(b); i >= _B; --i)
#define PR(i,n) PER(i,n,0)
#define REP1(i,a,b) REP(i,a,(b)+1)
#define RP1(i,n) REP1(i,1,n)
#define PER1(i,a,b) PER(i,(a)+1,... |
d4f3f59e2f123e96f1a75a18f681d3150c536e20 | c18e3cba4f445613b2ed7503061cdfe088d46da5 | /docs/mfc/codesnippet/CPP/cscrollview-class_6.cpp | 6854ecc6d22190c60939530698ccc8cbdf588494 | [
"CC-BY-4.0",
"MIT"
] | permissive | MicrosoftDocs/cpp-docs | dad03e548e13ca6a6e978df3ba84c4858c77d4bd | 87bacc85d5a1e9118a69122d84c43d70f6893f72 | refs/heads/main | 2023-09-01T00:19:22.423787 | 2023-08-28T17:27:40 | 2023-08-28T17:27:40 | 73,740,405 | 1,354 | 1,213 | CC-BY-4.0 | 2023-09-08T21:27:46 | 2016-11-14T19:38:32 | PowerShell | UTF-8 | C++ | false | false | 298 | cpp | cscrollview-class_6.cpp | void CMyScrollView::OnInitialUpdate()
{
CScrollView::OnInitialUpdate();
// The GetMyDocSize() member function is implemented in
// your document class. The return type is CSize.
CMyScrollDoc* pMyDoc = (CMyScrollDoc*)GetDocument();
SetScrollSizes(MM_TEXT, pMyDoc->GetMyDocSize());
} |
7799c2c3dd06452765e3b2955c970b8bd25afbf0 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_log_638.cpp | 82f8e5da6b6eac4a37a339220b375f2483d49ff0 | [] | 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 | 91 | cpp | Kitware_CMake_repos_log_638.cpp | archive_set_error(&a->archive, ARCHIVE_ERRNO_MISC,
"Path is a physical drive name"); |
0917302aaea79b7064027027a235141c499e2914 | 3043c56ceea6129ebf19c112818191c6050170fb | /include/Download.h | f333472052b994d805353ca9884f44d24c0d7caa | [] | no_license | rodrigovs/LASSO-Regression | c67c09df7b40d1b965bfb47287cea197103ab853 | 8534918f535f9037e40e1caa170cb1342ce5b8fb | refs/heads/master | 2023-06-14T00:38:04.469221 | 2021-07-12T14:33:08 | 2021-07-12T14:33:08 | 360,307,966 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,295 | h | Download.h | /**
* @file Download.h
* @author Vinicius de Sá (vinicius@vido-la.com)
* @brief
* @version 0.1
* @date 16/04/2020
*
* @copyright Copyright (c) 2020
*
*/
#pragma once
#include <Arduino.h>
#include <iostream>
using namespace std;
/////////////////////////////////////////////////////////////////////////
/... |
dd754627ee8a2f96137d1e80fea394f174111783 | cde978564fcfed0df9f442be8ae4b1d5c518b8d5 | /Travail Final/Travail Final/CHealthPack.h | 50788b8ad2916888108460e47e70a2e51ca25c5a | [] | no_license | JulienDuf/Travail-Pratique-Final | d90d5fe48c61d657ae9d336d0cae45ef436368e2 | 3156018fe3832f407d3c1e187769d93ace518511 | refs/heads/master | 2020-07-07T10:31:17.523653 | 2015-03-08T19:30:56 | 2015-03-08T19:30:56 | 25,658,635 | 1 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,172 | h | CHealthPack.h | //Classe qui gere les packs de santé.
//crée le 13 novembre par SAmuel Rambaud (Sam.Rambaud@outlook.com)
// Terminer par Julien Dufresne le 19 décembre 2014.
class CHealthPack: public CPack{
private:
SDL_Rect m_RectDestination; //Position du pack sur la map
SDL_Texture* m_pTexture; //Texture du pack
SDL_Surface* ... |
960a0dde000684d55e67735b5d4e704a1060fd3b | b313fff57c6f545203c9586982b9429e81cfccc6 | /main.cpp | 74215ac97899c93e8b768ffb674e5e48d7fd85f1 | [] | no_license | garrappachc/vulkan-playground | 5eab2348d7493237e64ee267c87f7b94e5bdd7f4 | 441f78c79d5de804b7a1c1542c6f0e3c5863f48a | refs/heads/master | 2020-04-28T15:46:30.920874 | 2019-03-14T15:52:11 | 2019-03-14T15:52:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 165 | cpp | main.cpp | #include "application.h"
int main() {
Application app;
Object* falcon = new Object("falcon");
app.scene()->addObject(falcon);
return app.run();
}
|
ac65292c817a524d63db24e3ed4b20675db1861b | 430bccc0e345a42f8bdf23a8788d47e2f2fd0801 | /real_time.cpp | 0950f63bdede577d6b960e3f33cfe98aeeb4ec6a | [] | no_license | lanlvyijing/fall_detection | 5bce8f0e2ceb15293ba3a365bd30a0ef6a433fff | 7eeffa73a3ae6d9921da7039de3b3142cc719beb | refs/heads/master | 2021-01-10T08:06:46.736133 | 2016-03-15T14:12:15 | 2016-03-15T14:12:15 | 52,713,595 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,082 | cpp | real_time.cpp |
extern "C" {
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
}
#include "real_time.h"
#include "Arduino.h"
// Initialize Class Variables
datetimeInfo real_time::rel_time;
datetimeInfo real_time::preset_time = {2016,1,18,14,25,40};
int real_time::set_time_flag = 0;
// Public Methods ///////... |
667a6c49e765ea3cc014da94ab3beb3415d3787b | 90ca75b30cc72c23d1819f3c80664c3f60270462 | /src/scene/RenderContext.cpp | 9c5e5bd50cbcf927cd59b3634ca2f15e4a8a83b2 | [] | no_license | yuriks/Bloody3D | fc2ed2a814fb255e865791e632f730873e73879f | c3424b5933a299e6fd085cebee1a0813caeaa07c | refs/heads/master | 2021-01-25T08:54:49.256846 | 2014-03-12T14:03:07 | 2014-03-12T14:03:07 | 973,761 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 602 | cpp | RenderContext.cpp | #include "RenderContext.hpp"
RenderContext::RenderContext()
: screen_width(-1), screen_height(-1), aspect_ratio(1.0f)
{
system_ubo.bind(GL_UNIFORM_BUFFER);
glBufferData(GL_UNIFORM_BUFFER, sizeof(SystemUniformBlock), 0, GL_STREAM_DRAW);
glBindBufferBase(GL_UNIFORM_BUFFER, 0, system_ubo);
material_ubo.bind(GL_UNIF... |
f0e12c50145854e89dba4753ba736dada62a18ef | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /ash/components/arc/test/fake_chrome_feature_flags_instance.cc | ee69d14255ebb1ae2174bc1ef2d1657210cc5478 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 593 | cc | fake_chrome_feature_flags_instance.cc | // Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/components/arc/test/fake_chrome_feature_flags_instance.h"
#include "base/functional/callback_helpers.h"
namespace arc {
FakeChromeFeatureFlagsInstance::FakeChro... |
1a94aace609f829be9f9640e0f7f953c4af403db | 95570ae3de9febfe81989751982f6a6eafe080ff | /Examples/3D/CharacterController/example_scene_cache.cpp | 17c0936566328024289921dde6e225a24b9501e8 | [
"Zlib"
] | permissive | kyelin/ClanLib | a552f224c2007598a1ab8acaf4e2caa967908851 | 2558aba725e6866a81d50b13178cbd5c60ab6edc | refs/heads/master | 2021-01-24T21:36:07.499397 | 2014-11-18T02:09:39 | 2014-11-18T02:09:39 | 19,273,763 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,505 | cpp | example_scene_cache.cpp |
#include "precomp.h"
#include "example_scene_cache.h"
using namespace clan;
ExampleSceneCache::ExampleSceneCache()
{
}
std::shared_ptr<ModelData> ExampleSceneCache::get_model_data(const std::string &name)
{
if (name == "plane")
return create_plane();
else if (name == "box")
return create_box();
else
throw ... |
b8c29bdebcb61867b107f306019871774af219ab | e141cea3be01bbe42b7bbd486133e8901f63a123 | /aie_vectorize_tests/scalar_fixed_sin/scalar_fixed_sin.cc | 73d3b300e0845bc3504c3c51aa0277e660f156ea | [] | no_license | systemviewinc/vsi-examples | 9eb208aea00cfd963752f817cc57c26ad06a8617 | 1217f5eb7da415582888bb4ff65961af09641c8f | refs/heads/master | 2023-07-04T23:47:08.264806 | 2023-06-27T00:17:36 | 2023-06-27T00:17:36 | 84,593,429 | 2 | 2 | null | 2017-03-16T16:34:40 | 2017-03-10T19:24:20 | C++ | UTF-8 | C++ | false | false | 280 | cc | scalar_fixed_sin.cc | #include <stdint.h>
#include <ap_int.h>
void scalar_fixed_sin(ap_int<1,15> * __restrict__ A,
ap_int<1,15> * __restrict__ C) {
#pragma clang loop vectorize(disable) //interleave_count(1)
for (int i = 0 ; i < 1024; i++) {
C[i] = A[i].sin(); // fixed sin
}
}
|
767a29e4991c78247cec1a85b0994ec8910f232d | d2bb671cef1678f8e6370da97f5e9ae161ef1c86 | /suil/http/wsock.cpp | 8f1b258c549976a3c37ffa8031a27bc403aaa059 | [
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | suilteam/suil | f964539566d5dd5138e828e2631f2c08511c14dd | 5cc143891147cb9bec1448d3f319cead9b4ccad9 | refs/heads/master | 2021-09-28T10:48:00.736081 | 2021-09-17T19:28:37 | 2021-09-17T19:28:37 | 283,538,168 | 0 | 0 | MIT | 2021-09-17T19:28:38 | 2020-07-29T15:39:37 | C++ | UTF-8 | C++ | false | false | 15,596 | cpp | wsock.cpp | //
// Created by dc on 28/06/17.
//
#include <openssl/sha.h>
#include <suil/base64.h>
#include <suil/http/wsock.h>
#define WS_FRAME_HDR 2
#define WS_MASK_LEN 4
#define WS_FRAME_MAXLEN 16384
#define WS_PAYLOAD_SINGLE 125
#define WS_PAYLOAD_EXTEND_1 126
#define WS_PAYLOAD_EXTEND_2 127
#define WS_OPCODE_MASK 0x0f... |
0544ba74ffab0ed009e4dc9658f8a6b382966a09 | 7a3b10f24a0731375db76946e4a2e99e7d9cd087 | /src/app/skin.cc | d0f003ca9185dee245ccbeec8cc0ebbe4194fbb1 | [] | no_license | ufouser/jil | e9264827b3445f3ebde3aaccd9990e5aefdc26f5 | dc95860ecf70d0ed2ece19a7ffb06093af367978 | refs/heads/master | 2021-01-23T13:59:52.412575 | 2013-06-27T08:09:51 | 2013-06-27T08:09:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 873 | cc | skin.cc | #include "app/skin.h"
#include "wx/mstream.h"
#include "wx/image.h"
#include "wx/stdpaths.h"
#include "wx/filename.h"
#include "wx/log.h"
namespace jil {
namespace skin {
static wxBitmap GetIconFromMemory(const unsigned char* data, size_t len) {
wxMemoryInputStream is(data, len);
wxImage icon(is, wxBI... |
af8e133b3f5e89929938d5ed13928f3e48e1e435 | 5f975169aeb67c7cd0a08683e6b9eee253f84183 | /algorithms/hard/0269. Alien Dictionary.h | fd47fe55ccb08d96643978ded1834e8d1e708bf8 | [
"MIT"
] | permissive | MultivacX/leetcode2020 | 6b743ffb0d731eea436d203ccb221be14f2346d3 | 83bfd675052de169ae9612d88378a704c80a50f1 | refs/heads/master | 2023-03-17T23:19:45.996836 | 2023-03-16T07:54:45 | 2023-03-16T07:54:45 | 231,091,990 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,524 | h | 0269. Alien Dictionary.h | // 269. Alien Dictionary
// https://leetcode.com/problems/alien-dictionary/
// Runtime: 8 ms, faster than 55.75% of C++ online submissions for Alien Dictionary.
// Memory Usage: 10.3 MB, less than 14.17% of C++ online submissions for Alien Dictionary.
class Solution {
// a < {b}
unordered_map<char, unorde... |
3ec394b43692025d4a97df32cd7672a1bf8a7d86 | 793c8848753f530aab28076a4077deac815af5ac | /src/dskphone/ui/xwin/imagecache/src/imagecachebase.cpp | e64c20062724a9aff6281055a496c0f39430ecc7 | [] | no_license | Parantido/sipphone | 4c1b9b18a7a6e478514fe0aadb79335e734bc016 | f402efb088bb42900867608cc9ccf15d9b946d7d | refs/heads/master | 2021-09-10T20:12:36.553640 | 2018-03-30T12:44:13 | 2018-03-30T12:44:13 | 263,628,242 | 1 | 0 | null | 2020-05-13T12:49:19 | 2020-05-13T12:49:18 | null | UTF-8 | C++ | false | false | 7,977 | cpp | imagecachebase.cpp | #include "imagecachebase.h"
#ifdef _WIN32
#include "commonapi/stringhelperapi.h"
#endif
#include "commonapi/systemhelperapi.h"
#include "imagecachemanager.h"
#include "imagefileinfo.h"
namespace
{
#define FILE_EXTENSION_NAMES "png,jpg,jpeg,bmp,gif"
}
CImageCacheBase::CImageCacheBase(int nType/* = IMG_CACH... |
ff15d71172c6e9e84874c88d912edd0383c732c3 | 816d49ef2e5c578d2da85e7c950c000a08c6881e | /Origin/SoundManager.cpp | 1c613b5500fa0a586d5a52151445a65158fc11b0 | [] | no_license | OHeroJ/Origin | 0b23dc060a64018fba542c0901d60d8a73f937a2 | 78e9a48da199cd450a010f7f15841d3836635ca0 | refs/heads/master | 2023-03-11T09:52:36.324721 | 2021-03-02T09:30:44 | 2021-03-02T09:30:44 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 4,462 | cpp | SoundManager.cpp | #include "SoundManager.h"
#include "EffectBase.h"
#include "SoundBase.h"
#include "Track.h"
#include "Wave.h"
#define MAX_SYSTEM_VOL 0x5F
namespace Main {
SoundManager* SoundManager::mInst = 0;
SoundManager* SoundManager::inst( void )
{
return mInst;
}
void SoundManager::create( HWND& hwnd )
{
if( mInst == 0) {
... |
8c216f63b0ec980d7bdec8de5a8cfa8ec1dd52ab | 08fce2b715a6299e06f513217e0385927db14fcf | /processing/cbp/src/Utility.h | 307fb1162de5a4169cf605f11f96b86ac153db40 | [
"MIT"
] | permissive | samquinan/WeaVER | 0e551fed1fe6db349c62ee9c62977e0918903b9b | 158622f46398050026b697fc645287915d88134e | refs/heads/master | 2021-01-21T09:43:28.513812 | 2016-09-23T20:16:12 | 2016-09-23T20:16:12 | 68,653,590 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,529 | h | Utility.h | #ifndef UTILITY_H
#define UTILITY_H
#include <sstream>
#include "Matrix.h"
#include "itkImage.h"
#include "itkImageFileReader.h"
#include "itkConnectedComponentImageFilter.h"
#include "itksys/SystemTools.hxx"
#include <sstream>
#include <iomanip>
#define _USE_MATH_DEFINES
// #define ESIZE 21
#define ESIZE 26
#defi... |
4249146c425bd6dc0b2979821faf7ec75836d1ce | 804f4c2ffdc392b268069d88a120c4e674d11f80 | /cpp/Matrix/TestMatrix.cpp | fbe9277b6a0d4a2c634b6dd555420a53c241d0fc | [] | no_license | qubey/Machine-Learning | 3a9834c12706381e9c84700427de018680143184 | c6636287271ac977144a1fe796edf7c8854e8d3f | refs/heads/master | 2020-06-04T08:34:34.921904 | 2015-09-01T01:28:21 | 2015-09-01T01:28:21 | 7,981,943 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,631 | cpp | TestMatrix.cpp | #include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include "Matrix.h"
#include "Utils.h"
int main(int argc, char **argv) {
/*
if (argc != 3) {
std::cerr << "Error: wrong number of arguments" << std::endl;
return -1;
}
int size = atoi(argv[1]);
int multiplier = atoi(argv[2]);
if (size <... |
bc35452b0fb13a1c045fedb7177bf50ffbf9090a | 28369d32673f399b8b51694e21cebc98809ec478 | /Classes/startScene.cpp | 41332494f6d7c8e09578d9f030ca169d28561a04 | [] | no_license | 631064249/memorycard | 9a0055d010e3cf270fe496656ab227902cb18080 | 3dedffc6fcde9ba065b98ef773d110cc802d678a | refs/heads/master | 2021-01-01T09:46:13.403051 | 2015-07-04T04:19:12 | 2015-07-04T04:19:12 | 38,379,654 | 5 | 1 | null | 2015-07-04T04:19:12 | 2015-07-01T15:41:57 | Makefile | UTF-8 | C++ | false | false | 2,025 | cpp | startScene.cpp |
#include "StartScene.h"
#include "MemoryCardScene.h"
#include "ScoreStrategy.h"
#include "memory"
#include "SceneMediator.h"
#include "SimpleAudioEngine.h"
StartScene::StartScene():
_background(nullptr),
_logo(nullptr),
_startBtn(nullptr),
_chartBtn(nullptr),
_exitBtn(nullptr)
{
}
StartScene::~StartScene()
{
... |
b3fcab55c817883b7b02df6d119efada1c60263c | eb10639165f817a2cd302fcd67bd10ea275afde9 | /hw_toc/Tasksheet_09/src/vecSub.cpp | ab5a9033e203cece9cf486636854a375bcce18f3 | [] | no_license | GoByMark/math4610-1 | 10cee6c72664a638664b420c7433e2538256e547 | a12d31eaeacf1a4bc9e2ecce44c8d69f1372eac4 | refs/heads/master | 2023-02-12T12:25:59.209945 | 2020-12-23T17:42:29 | 2020-12-23T17:42:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 201 | cpp | vecSub.cpp | #include "all.hpp"
Vect vecSub()
{
double a = 2, b = 4, c = 9; // [2 4 9]
double d = 3, e = 5, f =0; // [3 5 0]
Vect v1(a, b, c), v2(d, e, f);
Vect v3 = v1 - v2;
return v3;
} |
12fceda10ec884710021b3cd5ccfcd72bb0e4168 | 4f74a1d00e8253d229907d5c640e1a2eb5fd589a | /Accepted Code/UVA/147 - Dollars.cpp | b4b53defae553b1d41def6b5ed1edbf20ff4e38c | [] | no_license | sunkuet02/problem-solving | 012ea9d94412bf0400223e2af73c95bff049d0c9 | 49b24477acdf2bdffa9c78a907c9e06532403d40 | refs/heads/master | 2022-02-20T12:39:54.573009 | 2019-09-29T03:58:59 | 2019-09-29T03:58:59 | 63,452,400 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 544 | cpp | 147 - Dollars.cpp | #include<stdio.h>
#include<string.h>
int coin[11] = {1,2,4,10,20,40,100,200,400,1000,2000};
long long int value[6010];
int main()
{
int i,j;
memset(value,0,sizeof(value));
value[0] = 1;
for(i=0;i<11;i++)
for(j = coin[i];j<6001;j++)
value[j] = value[j] + value[j-coin[i]];
... |
d3804a244fb3bac7cce5c79a518efd7d21a679d7 | a696f85332d0f85f06bfdc47b32d427491160eb3 | /admin/backup_state_machine.cc | 24d78698e77ab947207200dc40065574cf2c1596 | [
"BSD-3-Clause"
] | permissive | cnangel/hyperdex | 1abdac27db819c74db0f7052f307e13a08963f09 | b272e85b08d232993baf6105a4beba833deadfe3 | refs/heads/master | 2020-04-06T03:34:50.419075 | 2016-05-30T09:27:54 | 2016-05-30T09:27:54 | 59,998,894 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,940 | cc | backup_state_machine.cc | // Copyright (c) 2013, Cornell University
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list ... |
2f71833c22cb8113dfd2dde0ba8e2b191a96bdd0 | 23e422f8a94b5d8ab846a88a08e99ff7d264f755 | /class_check.h | 9e81ef91ac38a9b66fba97d56459210833a58122 | [] | no_license | chenguoguowen/dictionary | 4d956e9f3761a333c7aebdddc9a4ac5fd4ff69e1 | dc9cc1bce32fc4c879b0b9513628db3ae8a02dfe | refs/heads/master | 2021-01-19T09:25:05.154030 | 2017-04-10T02:34:32 | 2017-04-10T02:34:32 | 87,758,113 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 599 | h | class_check.h | #ifndef __class_check__
#define __class_check__
#include "class_newword.h"
#include "class_addword.h"
#include <QApplication>
#include <QtGui>
class Mycheck : public QWidget
{
Q_OBJECT
private:
QPushButton *btnSearch;
QTextEdit *editText;
QLineEdit *editSearch;
QPushButton *btnAddNewWord;
QPushBu... |
578c1002057d45201ca44c2e56f6d563dc88917d | b99eec146f34035fd40ccc16e39ab6c7dcbfe9ff | /zengine/module/mod_console/module_console_dll.h | 759f3bbd114fdd443e83d2900bf73dc1bc17e295 | [
"Apache-2.0"
] | permissive | cctvbtx/GameServceEngine-zengine | 635024102f0ece28c9d3436e2f2cd74e2de5d834 | 2c6f942c4b79a42c8b19c850579f25bb7e78e0d7 | refs/heads/master | 2023-03-19T13:21:59.265315 | 2015-03-12T02:39:33 | 2015-03-12T02:39:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 496 | h | module_console_dll.h | // Copyright (C) 2012 by wubenqi
// Distributable under the terms of either the Apache License (Version 2.0) or
// the GNU Lesser General Public License, as specified in the COPYING file.
//
// By: wubenqi<wubenqi@gmail.com>
//
#ifndef MOD_CONSOLE_MODULE_HTML_DLL_H_
#define MOD_CONSOLE_MODULE_HTML_DLL_H_
#pragma once... |
b6340e7f739eab9b9011c434f144ea312e345753 | b8c5ece4c7b234498960761391621ed54bb1e9c6 | /include/model/sqlite.hpp | 26b6dd62bcbc28f6e27148fb4f562e20e82a623b | [
"MIT"
] | permissive | jimages/library | f6cff33a5abde912656f7f30ce8eecf94e27e19e | 028b17236e07a3ce28d33c898cb249df2a26d6c0 | refs/heads/master | 2020-03-21T06:32:05.307751 | 2018-07-02T15:32:29 | 2018-07-02T15:32:29 | 138,226,387 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 930 | hpp | sqlite.hpp | #ifndef LI_SQLITE_CLASS_H_
#define LI_SQLITE_CLASS_H_
#include "sqlite3.h"
#include <stdexcept>
#include <string>
#include <vector>
#include <list>
#include <iostream>
class Sqlite {
sqlite3 *con;
static Sqlite *sql;
public:
using QueryR = std::pair<int , std::list<std::vector<std::string>>>;
int exec_all(const std... |
c148d4b0376134884187bb33d958c3f88e9f18b3 | ac773e41565fcc7ccd95c5b813bf260cf8b780de | /EffectsRendering/Renderer/PostFX.h | 93aa46334147480cf7b402405b90e788155a0f01 | [] | no_license | HeikkiLi/EffectsRendering | bc0f60be1b73cbea84ea184284bedc413c0ca804 | ffc05ba5acd28d0bd47dcf21c549eef45e638f03 | refs/heads/master | 2023-06-11T20:57:28.659520 | 2021-07-04T11:26:14 | 2021-07-04T11:26:14 | 365,321,782 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,702 | h | PostFX.h | #pragma once
#include "Util.h"
class Camera;
class PostFX
{
public:
PostFX();
~PostFX();
bool Init(ID3D11Device* device, UINT width, UINT height);
void Release();
// do post processing
void PostProcessing(ID3D11DeviceContext* pd3dImmediateContext, ID3D11ShaderResourceView* pHDRSRV, ID3D11ShaderResourceView* ... |
ac4f2f559c0247da9c3861d5512b9a8de7000416 | 191d6cd6c8b1de291f894a36c658dd52d6ff7216 | /Airconditioner_Server/mainwindows.cpp | 545f285d2f8b67166c6ec2b295030bf4ab42947e | [] | no_license | VisionaryKai/Airconditioner | ae8549bdcc4e5b84426c78bcc2aa48dc22308b1d | b5aaa504625ee9010e7e21a8131f7f73350c1d40 | refs/heads/master | 2020-03-21T19:32:49.456016 | 2018-06-28T02:27:09 | 2018-06-28T02:27:09 | 138,899,379 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 439 | cpp | mainwindows.cpp | #include "mainwindows.h"
#include "ui_mainwindows.h"
#include <total.h>
mainwindows::mainwindows(QWidget *parent) :
QWidget(parent),
ui(new Ui::mainwindows)
{
ui->setupUi(this);
MainChoice *m=new MainChoice(ui->in_and_out);
m->show();
ac_mainwindow *a=new ac_mainwindow(ui->ac);
a->show();
... |
a8dd280e2b9af0c373c7c14e50669810c89c3968 | 56b0c908ef9a8eb51a9cf516f43001cb424d0906 | /holdem/test/LYHoldemDealer_tests.cpp | d05acd2e37a613d5f30b62e549f121e6f904d830 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | vforks/libpoker | 46f81d3a8b41aed8c14f692e6e8bdfee8807bcff | a2c60884fc5c8e31455fb39e432c49e0df55956b | refs/heads/master | 2021-09-25T02:41:10.010549 | 2018-10-17T09:36:09 | 2018-10-17T09:36:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 130 | cpp | LYHoldemDealer_tests.cpp | /*
* LYHoldemDealer_tests.cpp
*
* Created on: 2013-7-5
* Author: caiqingfeng
*/
//#include "holdem/LYHoldemDealer.h"
|
68b615532cb88900225ec4f44e9a798aca87957b | f214e7da5c2b80641346c1911685465d9018b02d | /Client/headers/hud.h | 013bcbcc55c69dc6307ea05487b03aa58077d797 | [] | no_license | Loqaritm/meat-arena | edd2e766dbf1259159638db8392949bd2fdbd293 | 53bb247524c121c69d47fbb0f5a8fade05c4b316 | refs/heads/master | 2020-04-09T06:01:40.691830 | 2019-01-19T22:27:31 | 2019-01-19T22:27:31 | 160,093,694 | 1 | 0 | null | 2019-07-18T22:13:08 | 2018-12-02T20:51:48 | C++ | UTF-8 | C++ | false | false | 298 | h | hud.h | #ifndef HUD_H
#define HUD_H
#include "SDL2/SDL_ttf.h"
#include <sprite.h>
class Hud : public Sprite{
public:
Hud();
void draw(Graphics &graphics, float x, float y);
void draw(Graphics &graphics, std::string animationName);
private:
TTF_Font* sans;
SDL_Color color;
};
#endif |
e1032a5c5744dac5467941ab3253f6bd7477cf54 | b07ec76fbfe10a8a7af66f9e939ed45c60aa5021 | /headers/storablevectorvector2.h | 6751c4de6120c982023c0170458c7104d7ddf3df | [] | no_license | Jonesey13/CatandMouse | 1511a4acd4c9130389e781161d6abdfefe30a595 | 0f54f8659d7e259dcfbf17bf3f9d656e6172f906 | refs/heads/master | 2020-04-13T07:53:48.081653 | 2015-06-01T22:11:37 | 2015-06-01T22:11:37 | 23,020,855 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,310 | h | storablevectorvector2.h |
#ifndef STORABLEVECTORVECTOR2_H
#define STORABLEVECTORVECTOR2_H
#include <vector>
template <typename T>
using Vector2=sf::Vector2<T>;
template <typename T>
class StorableVectorVector2 : public Storable {
public:
~StorableVectorVector2()=default;
StorableVectorVector2()=default;
StorableVectorVector2(st... |
1875a1d819eee62578639c70a7cb40e4d2eb42df | e91e67d67e3c870ed0168442c6aba555e4832c70 | /Myhttpd/Http0.1/urls.cpp | 7aaaef0915198e84bd153b0e0eb938691e8556d6 | [] | no_license | conch2/filec | 69e53bd53de5813dbd037907a5faf0da75bd8e7c | a6736a79a58682f605fcdde9899a7f1a0b40e9a5 | refs/heads/main | 2023-04-06T06:00:07.917741 | 2021-04-17T18:18:03 | 2021-04-17T18:18:03 | 312,138,869 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,066 | cpp | urls.cpp | /* 分配路由
* 请将要分配的路由和路由处理方法按格式写好 */
#include "myhd.h"
std::vector<UrlFunction> urlpatterns =
{
UrlFunction("/", home),
UrlFunction("/favicon.ico", ico),
UrlFunction("/home", home),
};
void home(SOCKET client, std::string request, ...)
{
clear_client(client, false);
hreaders(client);
sendFile(client, GET_TEMPL... |
94f4d25ea5a38509b4b7e710b4078f2d8c716b19 | bc952d7c5dcf39876d5b1b1ad46a9ede8c84e1df | /mindspore/lite/src/ops/deconvolution.cc | effcef756ad273d665f39eadb956478fe009bc7b | [
"Apache-2.0",
"Libpng",
"LGPL-2.1-only",
"MIT",
"IJG",
"Zlib",
"BSD-3-Clause-Open-MPI",
"AGPL-3.0-only",
"MPL-2.0-no-copyleft-exception",
"MPL-1.0",
"MPL-1.1",
"MPL-2.0",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"Unlicense",
"LicenseRef-scancode-proprietary-lice... | permissive | dilingsong/mindspore | f69c88ebc773bb6eaf88162bd038e807f84633bc | 4276050f2494cfbf8682560a1647576f859991e8 | refs/heads/master | 2022-12-01T12:23:13.490558 | 2020-08-10T09:16:27 | 2020-08-10T09:16:27 | 286,463,866 | 1 | 0 | Apache-2.0 | 2020-08-10T12:06:08 | 2020-08-10T12:06:07 | null | UTF-8 | C++ | false | false | 2,530 | cc | deconvolution.cc | /**
* Copyright 2019-2020 Huawei Technologies Co., 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 applicabl... |
48fccaa8d1730bb0a11fd1b7ff04cc056b46dcea | 5aae4f681596730ddbe9985a6231f4b37db48bbc | /Test/Rational.cpp | b6e47e398d0f488b2f059e5ab0d446476f7135b5 | [] | no_license | IlyaKram/study_rep | bfa285d8a6a4959166f98b49e7da78cf1a2fc927 | a4c86842ca244a0d8c8b56780b1a3d76ffcbbf32 | refs/heads/master | 2021-01-01T17:16:56.680981 | 2013-10-21T08:44:31 | 2013-10-21T08:44:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,747 | cpp | Rational.cpp | #include "Rational.h"
#include "AlgoHelper.h"
#include "stdio.h"
Rational::Rational(int nNum, int nDen) : m_nNum(nNum),
m_nDen(nDen)
{
}
Rational operator+ (Rational& A, Int& B)
{
Rational Res = Rational(B.m_nVal, 1);
Res += A;
return Res;
}
Rational& Rational::operator+= (Rational& B)
{
Sum(B);
retu... |
45c4c8cf04e97a7a812f8ffff566cbedf45d6ae4 | 751bdc3d365a64b18d78e8c2fb9f6ea00452764f | /aura/graphics/draw2d/fwd.h | 390e332dd03adc6ca1bd9e389d9658afa3a46e02 | [] | no_license | ca2/app | b1de035566d9664aa7c5c9a94378cc352b1836ec | afdedd20df2f6dce81c63bc8a9db6de14503076e | refs/heads/main | 2023-08-27T07:19:45.584624 | 2023-08-26T12:28:28 | 2023-08-26T12:28:28 | 98,031,531 | 19 | 7 | null | 2017-08-14T11:13:14 | 2017-07-22T12:59:27 | C++ | UTF-8 | C++ | false | false | 195 | h | fwd.h | #pragma once
//class task;
namespace draw2d
{
class object;
class pen;
class graphics;
class bitmap;
class brush;
class palette;
class region;
} // namespace draw2d
|
1736e2e1ecf1c028f538bb44b37b7793bc90ff39 | 05313594a744e3cc629c891b23f04b14bc174cf9 | /code/2147.cpp | a899aa2bb66df3da3215b2a02365ce209c74dfa5 | [] | no_license | TulioAbreu/uri-online-judge | 36aef4f41f2e2f7d10d1c3e614c0b10a3902a06d | ae3f6c935a44c2de202278400fcd0ee680ef5c29 | refs/heads/master | 2021-01-03T09:49:22.526001 | 2020-02-14T16:11:13 | 2020-02-14T16:11:13 | 240,028,310 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 539 | cpp | 2147.cpp | #include <iostream>
#include <cstring>
#include <iomanip>
using namespace std;
int main(){
int n;
cin >> n;
for(int i = 1; i <= n; i ++){
//char palavra[10000];
string palavra;
if(i == 1){
getline(cin, palavra);
getline(cin, palavra);
}
else{
getline(cin, palavra);
}
double counter = 0;
//coun... |
3b35f69db8464840e238d3fb60295f70cfe7a22d | 056ae268420830db7c7839aba69ffab802e1a9e4 | /mainwindow.cpp | e6f980d59e17601624ff5a6b89667f12f2c643ae | [] | no_license | jjzhang166/TCP-UDP-transferrer | df70468d326acfaa5445863356fea2623cd9545a | f7806085d930187eca69f0b97176f1fee255c6a8 | refs/heads/master | 2021-01-15T12:02:18.040562 | 2014-02-20T09:26:58 | 2014-02-20T09:26:58 | 99,642,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,454 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include <QMessageBox>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent), ui(new Ui::MainWindow)
{
ui->setupUi(this);
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
msgBox.setDefaultButton(QMessageBox::No);
settings = new QSettings(CONFIG_FILE, Q... |
aed5bc036b31dc6f03e400a1f20dbdddc3638b01 | 9f6f7035bae7bab7082a692a98edc3b06b293d27 | /1 OIG/sum.cpp | a8c1434d665f633bc1fbea73f4f1a30bcbf7bdfc | [] | no_license | igorjoz/oij | 4567bf8b4cdf1f4b7714b187e1064b963ac1b006 | 69a7aeaadb4dc0daa84050b89ba38695a4aec103 | refs/heads/master | 2023-06-05T07:17:52.094345 | 2021-06-25T20:16:30 | 2021-06-25T20:16:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,140 | cpp | sum.cpp | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int n;
int const maxDigitsNumber = 100;
int leftDigitsPositive[maxDigitsNumber]{};
int rightDigitsPositive[maxDigitsNumber]{};
int leftDigitsNegative[maxDigitsNumber]{};
int rightDigitsNegative[maxDigitsNumber]{};
int transitionPositiv... |
8e3609895174b1f0780e21ac381221d565a2653f | d569de1ec79431670dc2d4edec169d7e42fafdb0 | /LeetCode/23. Merge k Sorted Lists.cpp | 536bcbd24e33fa146ae24640318ada4b2d6d474d | [] | no_license | peter0749/OnlineJudge | 469026b3f6a6d810668e03d1b93a7055af990b8e | d60759cf53acaa58e34345b261640a1069bcda2a | refs/heads/master | 2023-01-29T08:12:27.615260 | 2023-01-14T10:06:15 | 2023-01-14T10:06:15 | 81,049,761 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,076 | cpp | 23. Merge k Sorted Lists.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
struct cmp {
bool operator()(const ListNode *a... |
e21e7eedafa1801f2984421355543288d56f18bc | 4bbd6c2626c2e47745c42114f2254d1890529707 | /개인프로젝트/xngin/xngin/stdafx.h | ce1e4590601732625129753010913fcbc6db5f4a | [
"MIT"
] | permissive | sunrinjh/2020GamPuSojeon | def168984a3a5142123990369413a48583f61da9 | 5d8e7e2739273a965c1a60675a29bc44c54679e6 | refs/heads/master | 2022-12-02T02:47:42.287478 | 2020-08-14T08:01:03 | 2020-08-14T08:01:03 | 286,414,602 | 4 | 0 | null | null | null | null | UHC | C++ | false | false | 1,304 | h | stdafx.h | #pragma once
//프로그램 세팅
#define CONSOLE_ON true // 디버그 할 콘솔 켤건지 끌건지
#define SCREEN_WIDTH 1024
#define SCREEN_HEIGHT 768
#define BG_COLOR D3DCOLOR_ARGB(255,255,255,255)
#define PROGRAM_NAME TEXT("Xngin")
#define CONSOLE_NAME TEXT("Xngin Console")
// 윈도우 헤더
#include <Windows.h>
#include <XAudio2.h>
// 다이렉트 X 헤더
#includ... |
20134371858e590c3572141a37434582367b7ab3 | 36af236af806468bb9b64f6f3b7904ec65da3b2e | /hw4/HW2a.cpp | c527378bbbd5367195db31e5ca30b6eec6e94da6 | [] | no_license | dongliang3571/csc472_graphics | 0f9aed56a9e8475a1971cb0f01f4ada311cf4d34 | 4a361f2ff4bd4596f247e8e536a19a122a536367 | refs/heads/master | 2021-05-04T11:28:05.339687 | 2016-08-23T23:43:51 | 2016-08-23T23:43:51 | 44,998,100 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,658 | cpp | HW2a.cpp | //
// HW2a.cpp
// hw
//
// Created by dong liang on 10/13/15.
//
//
#include "HW2a.h"
HW2a::HW2a(QWidget *parent): HW(parent)
{
}
void HW2a::initializeGL(){
initializeGLFunctions();
// init vertex and fragment shaders
initShaders();
// initialize vertex buffer and write positions to vertex sha... |
f0721e6002b91f65f6245ede9a0f76e01b5f8f43 | e3f8537e483a0354afc5d5f11e6e1176bb6a1a06 | /ada_4sys/MGEN/OKMODEL.CPP | fd79163676c6a3b474015c1ab9a06336842efc1a | [] | no_license | freeduke33/old_ada4sys | dd2ab614800a895151498f0dab0fd2cb5233813b | 542e76d15aceaebcc34ab6f35ab41eaeaa3327ef | refs/heads/master | 2021-01-19T13:21:29.149216 | 2017-02-18T10:21:34 | 2017-02-18T10:21:34 | 82,378,753 | 0 | 0 | null | null | null | null | IBM866 | C++ | false | false | 4,875 | cpp | OKMODEL.CPP | #include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <io.h>
#include <fcntl.h>
#include <sys\stat.h>
#include <malloc.h>
#define Uses_gen_Volume
#define Uses_gen_Sinus
#define Uses_gen_Template
#define Uses_gen_DatFile
#define Uses_NilBuffer
#define Uses_mdlTest
#include <adaptive.hpp... |
ceaed12c2ba982756c1969255368311b951a69be | e9832f7fba750d2bfccc50492bb94cd7d8c66aaa | /Les 1/Opdracht 1 & 2/HelloWorld/Student.cpp | cde7fc9b0f0dcffb218fb0b15f2e93e5a7ef50dd | [] | no_license | MaxWillekes/Keuzemodule-OOP | f3fd031361a69e8c004ec31e5cc5ca37284a5613 | a84fd4c9d53e1774e7233eb29b7a75f6c1412bb7 | refs/heads/master | 2020-07-31T10:40:40.719348 | 2019-10-13T14:34:55 | 2019-10-13T14:34:55 | 210,576,863 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 250 | cpp | Student.cpp | #include "pch.h"
#include "Student.h"
using namespace std;
Student::Student(const string name, int leeftijd, int studentNr) : Persoon(name, leeftijd), studentNr(studentNr) {}
Student::Student() {}
int Student::getStudentNr() {
return studentNr;
} |
0453867ad1dbaef1486b2fe9105d8cddbcff30d1 | 11f462871e9655afb2b62b6bf6eb1cb31bdf928f | /Programmers/level1/level1_자릿수-더하기.cpp | 335e4d14eee3140daa5b967fe485a30851c30877 | [] | no_license | gashe-soo/Algorithm | e1ebfad4a00bbb3652c999322d9695cf182d9328 | 087932cf96b621e325ae71aa7e5a734012f1d079 | refs/heads/master | 2023-05-01T10:47:14.974113 | 2021-05-15T13:24:55 | 2021-05-15T13:24:55 | 263,251,573 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 242 | cpp | level1_자릿수-더하기.cpp | #include <iostream>
//프로그래머스 level1_자릿수-더하기
using namespace std;
int solution(int n)
{
int answer = 0;
int x = 10;
while(n>=1){
answer += n%x;
n /= x;
}
return answer;
} |
21a16502220053f9df00a6560bf0b3a7a67fafa9 | 072b89518267b298c53b93e5841de42ffe5d72a8 | /unit_tests/Cameras.test.cpp | 7fd0eda2322ca2937681b03a43d06587b702b2a9 | [
"MIT"
] | permissive | ciechowoj/master | cdc42b58389a3d6815165d2ce4e45ac8adc98570 | 90117e76c001fd105fec47d5d2b0ccc4dc09c07e | refs/heads/master | 2021-01-24T06:32:16.073525 | 2018-04-03T19:30:18 | 2018-04-03T19:30:18 | 54,417,785 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,127 | cpp | Cameras.test.cpp | #include <gtest>
#include <Cameras.hpp>
#include <iostream>
using namespace glm;
using namespace haste;
TEST(CamerasTest, basic_tests) {
Cameras cameras;
size_t id = cameras.addCameraFovX(
"dummy",
vec3(0.0f, 0.0f, 0.0f),
vec3(0.0f, 0.0f, -1.0f),
vec3(0.0f, 1.0f, 0.0f),
... |
f5dfd00268f6ae9984c28d3c29c130740e78db4c | b04e71b13e659929815c64282e1a56928e2b355b | /Black/fifth_week(final_project)/SpreadSheet/sheet.h | 7f356f9214e28882d0fb88449d61f16c941659a8 | [] | no_license | momsspaghettti/coursera-c-plus-plus-modern-development | 98f0ef39dcec90cc96b3178d1fec492fe87be1c7 | f38464dc422e2e6891972dff5a0e576d7a41bc9f | refs/heads/master | 2020-05-26T03:00:58.262528 | 2019-11-06T18:51:04 | 2019-11-06T18:51:04 | 188,082,349 | 86 | 70 | null | null | null | null | UTF-8 | C++ | false | false | 1,249 | h | sheet.h | #pragma once
#include "cell.h"
#include "common.h"
#include <functional>
class Sheet : public ISheet {
public:
~Sheet();
void SetCell(Position pos, std::string text) override;
const ICell *GetCell(Position pos) const override;
ICell *GetCell(Position pos) override;
void Clear... |
7bedacba9d3061391e8198c4e839d30685670767 | 26551769200eafa5bdd72ea5a51f87e61dbd8d6d | /codeforces/193div2/2.cpp | 15f66944e24ce9c1e081ecce51770f819b37ec0e | [] | no_license | kalachand/codes | f894945a2cdc4c7868fd1f24c3b7727f32cf5ba1 | ed45d7ffe380e4e5d52f95e9542a108e4ceeceb7 | refs/heads/master | 2021-01-15T12:44:29.552598 | 2015-11-03T21:02:36 | 2015-11-03T21:02:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,015 | cpp | 2.cpp | /*******************
Akash Agrawall
IIIT HYDERABAD
***********************/
#include<bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for(i= a ; i < b ; ++i)
#define rep(i,n) FOR(i,0,n)
#define INF INT_MAX
#define ALL(x) x.begin(),x.end()
#define LET(x,a) __typeof(a) x(a)
#define IFOR(i,a,b) for(LET(i,a);i!... |
30351b45ae9b983c8cf274df5acd071ac5d08301 | 0d1dca69aee5f69322d9d879752588ce01c56448 | /OmniFrame3/Omnimagnet.cpp | 81702d50a89191d7d8bb9e48e8f436d91b3ef47a | [] | no_license | lanpham09/OmniFrameExecutable | a6224baa2d4f6e2d8fd1f49e4ae4e924e0d6b627 | b0707ae46716e8c483546e18665192f7323918c0 | refs/heads/master | 2020-12-07T15:30:29.122677 | 2017-08-07T18:08:55 | 2017-08-07T18:08:55 | 95,498,830 | 0 | 0 | null | 2017-08-07T18:08:56 | 2017-06-26T23:42:45 | C++ | UTF-8 | C++ | false | false | 19,312 | cpp | Omnimagnet.cpp | #include "Devices/Omnimagnet.h"
#include "Utilities/utilities.h"
#include <iostream>
#define NUM_POINTS 2000
//inputs: (core radio, dipole/amp, Math::Vector(coil resistance), pointers to vector current output deivces, channel #, Configuration, name, ostream output)
Omnimagnet::Omnimagnet(Distance coreRadius, const Ve... |
8883ad4e6c424182f68651fc0c869a354ea72055 | 29aa395a077dbbb67ce4554afaa8ebb338c6a4ee | /EpgTimerSrv/TunerCtrl.h | 2a282e0a6a9b8a592574d87003a09ed264ac4837 | [] | no_license | Z774M/EDEN | c7c1a56d007938c7baf4b70551384fc8ab8f6f7a | 9ab0022ab712e3c3be7e5e9cc8f7c4be6db0dd60 | refs/heads/master | 2021-01-18T09:24:19.477117 | 2013-08-12T12:29:43 | 2013-08-12T12:29:43 | 12,032,368 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 858 | h | TunerCtrl.h | #pragma once
#include "../Common/Util.h"
#include "../Common/EpgTimerUtil.h"
#include "../Common/PathUtil.h"
#include "../Common/StringUtil.h"
#include "../Common/SendCtrlCmd.h"
class CTunerCtrl
{
public:
CTunerCtrl(void);
~CTunerCtrl(void);
void SetExePath(wstring exePath);
BOOL OpenExe(wstring bonDriver, DWORD... |
e482acf79608186cde6b0f0f73760bab4143fd5a | d3d06862f7dd855ea555c6f67e5c42aa0a64204d | /src/tests/test_floodevent.h | ea7e9a5eaa672b7a66f58ddc2b4723b72ae53bdd | [] | no_license | arendjr/FoggyText | ef5c80f7962419aad5e7ecee38e1cc744caf25f0 | 9ac1cdde8797485b034cb91ff0ac533d6a0765b4 | refs/heads/master | 2021-01-10T18:31:55.535981 | 2013-06-09T16:29:38 | 2013-06-09T17:52:34 | 6,307,962 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,715 | h | test_floodevent.h | #ifndef TEST_FLOODEVENT_H
#define TEST_FLOODEVENT_H
#include "testcase.h"
#include <cmath>
#include <QDateTime>
#include <QDebug>
#include <QTest>
#include "character.h"
#include "floodevent.h"
#include "portal.h"
#include "realm.h"
#include "room.h"
#include "util.h"
class FloodEventTest : public TestCase {
... |
e7fa33ce8a2fba8bae0245949eb59e521c31e68b | 5e8d200078e64b97e3bbd1e61f83cb5bae99ab6e | /main/source/src/protocols/environment/AutoCutData.cc | b4dda8b7a04200e898c93a2536a33f3768b0608d | [] | no_license | MedicaicloudLink/Rosetta | 3ee2d79d48b31bd8ca898036ad32fe910c9a7a28 | 01affdf77abb773ed375b83cdbbf58439edd8719 | refs/heads/master | 2020-12-07T17:52:01.350906 | 2020-01-10T08:24:09 | 2020-01-10T08:24:09 | 232,757,729 | 2 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 2,380 | cc | AutoCutData.cc | // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
// vi: set ts=2 noet:
//
// (c) Copyright Rosetta Commons Member Institutions.
// (c) This file is part of the Rosetta software suite and is made available under license.
// (c) The Rosetta software is developed by the co... |
a7c34c2b5552ee6d63dc49249cf6a102b46d16c2 | 8727d1a506114c2bbab2f74db9bdaf68b5a6c83e | /7/test3.cpp | 64ff0fdf315f0d3732de9843cef94d7e8eab40f1 | [] | no_license | BaiXious/Accelerated-cpp | 5c5525eb9678ad98475208f82ea63b1606e31a86 | 26ad13fe83aa36c8d3ca1caf89b04e90f441d7d7 | refs/heads/master | 2022-01-13T08:11:14.337940 | 2018-08-28T04:06:10 | 2018-08-28T04:06:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 290 | cpp | test3.cpp | #include <iostream>
#include <string>
#include <map>
int main()
{
std::map<std::string, int> ret;
ret["nihao"];
std::map<std::string, int>::const_iterator it = ret.begin();
std::cout << it->first << std::endl;
std::cout << "second: " << it->second << std::endl;
return 0;
}
|
e7a5bc4929a0103071a84e774207ea7dbf6de3e8 | 5b87464ac0df49f6fc0fe2c9138438d6aa81a950 | /src/tests/network/EchoUDPServerClient.cpp | b9d3aa6cfe0c3e3399246df809d4eb3d11868da3 | [
"MIT"
] | permissive | andreasdr/tdmecpp | 517531e6e431586f051bc62015aba4311e2921ea | 62b1492e878565d5559741f849138688c0c5e91d | refs/heads/master | 2016-08-12T05:34:08.612210 | 2016-04-17T08:18:59 | 2016-04-17T08:18:59 | 48,372,206 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,389 | cpp | EchoUDPServerClient.cpp | #include "EchoUDPServerClient.h"
#include <iostream>
#include <typeinfo>
#include <libtdme/globals/Logger.h>
#include <libtdme/globals/RTTI.h>
EchoUDPServerClient::EchoUDPServerClient(const uint32_t clientId, const std::string& ip, const unsigned int port) :
NIOUDPServerClient(clientId, ip, port) {
}
EchoUDPServer... |
604f9ac50be17435f55726b217c195641735de84 | 84c174a930ecdef71b89b6337d35e6493745ba25 | /test/print/vector3.cc | 39f8ad98ec333859fd7ccea1df08b943286b1211 | [] | no_license | pauek/minicc | 906366d60d86ec05e7ca8b9b5a9cfce678bfad5b | dc8f27670ac496ecba97b817c374468e794544ac | refs/heads/master | 2021-01-17T08:30:55.130550 | 2018-12-22T22:30:07 | 2018-12-22T22:30:07 | 21,771,103 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 132 | cc | vector3.cc | int f ( ) {
vector<int> v(1, 3);
}
[[out]]--------------------------------------------------
int f() {
vector<int> v(1, 3);
}
|
22e01719fcfa9dc781a279f3042e00a0934c19ec | 7aaafbb769c6a6d9f0d10dac4e0a35c54c84fb24 | /2019/July/Servo_Degree_Control/Servo_Degree_Control.ino | 38434ad96637c364313fe27d61937f1169108964 | [] | no_license | mxTuhin/Arduino | e40dde74f2138386e633782f24941c0f122d985d | 99971441ee1973ffbcb6d7ac99e4eea2eed7dc79 | refs/heads/master | 2023-03-09T09:37:52.602595 | 2021-02-24T21:36:29 | 2021-02-24T21:36:29 | 342,041,987 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 664 | ino | Servo_Degree_Control.ino | /* Sweep
by BARRAGAN <http://barraganstudio.com>
This example code is in the public domain.
modified 8 Nov 2013
by Scott Fitzgerald
http://www.arduino.cc/en/Tutorial/Sweep
*/
#include <Servo.h>
Servo f1; // create servo object to control a servo
Servo f2; // create servo object to control a servo
Servo f3; /... |
b320c64238c11ab5458a33355337b5e0e441bb06 | bda95cba302a2a608080f620ee34656e01489316 | /lab3_submission/lab3/src/Error.cpp | 99506811bdcc31dd5190283a3b3cdf5d120f44d6 | [] | no_license | shengtia/Embedded_Systems_Projects | 512fcd1f2d593d2f855b8243f435a74d08eb4d1c | 829fe495ec143b4caa859c45224f561012d9557a | refs/heads/master | 2020-03-18T11:16:46.275774 | 2018-05-24T04:58:31 | 2018-05-24T04:58:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,133 | cpp | Error.cpp | #include <iostream>
#include <cstdlib>
#include "../header/Storage.h"
#include "../header/Error.h"
using namespace std;
// prints an error message in the console when stack overflows
void checkStackOverflow(){
if(SP >= 16){
cerr << "Error : Stack overflow, Stack Pointer cannot be larger than or equal to 16!" << "\n... |
7bec3b764ed40a0f45661f356e166dfa3fe762dc | 8801277eb8abbf4627b35f4cb3d9a29a9809c344 | /homework/07_graphs/GraphType.cpp | bd441a427892b26dccab9f83a220fd6bf660afb4 | [] | no_license | fairka/Parallel-Data-Structures-and-Algorithms | 3bc7fb5f064be361c20b340ede0e1eb2af3614da | 8003ef22c9d8b902b50eeec4fc455a96bd0518e4 | refs/heads/master | 2023-09-01T00:21:39.417081 | 2021-06-08T02:47:08 | 2021-06-08T02:47:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,764 | cpp | GraphType.cpp | /*************************************************************************
*
* Assignment 5: BFS Algorithm, vertex
*
* File Name: GraphType.cpp
* Course: CPTR 242
*
*/
#include "GraphType.h"
// Post: Arrays of size 50 are dynamically allocated for
// marks and vertices. numVertices is set t... |
478d4d27db9417643a572a3859aaaf9d5a259c0e | 066f2bdea45c919dda9c0041ec5fdcd18befa500 | /EngineOfEvil-Core/src/Window.h | 2ae290990b6a6f8fc51e66b6f239b5090d6dc827 | [] | no_license | tmf7/EngineOfEvil-Core | 465a67f70b8edc3d9f3144a2b786362a5955f0d2 | c10df04ede4ec21995fcb0599a06628c72e189f7 | refs/heads/master | 2021-08-26T09:10:17.095885 | 2017-11-22T18:10:11 | 2017-11-22T18:10:11 | 111,489,584 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 835 | h | Window.h | #ifndef EOECORE_WINDOW_H
#define EOECORE_WINDOW_H
#include <string>
#include <glew.h>
#include <SDL.h>
#include "ErrorLogger.h"
//--------------------------------------------
// eoeWindow
// wrapper class for a single window
// and its associated opengl rendering context,
// polls events that occur within is area
/... |
1d42aa6c0a7c1ce0b5f214a78f0a8208b49fbccd | fc46f453934837ed3f3567653c64ef88a2b3884c | /HW2/problem_2_2/Interchange.cpp | 513d60bfc2d9ec37e6367b1a2ab7646aa52ce527 | [] | no_license | loserking/Multimedia-System-on-chip-Design- | e38992ba4833d0e610767016bfffaff047178647 | b128f3c8a7818b4f914e8148d6593fb79ece54c1 | refs/heads/master | 2021-05-01T23:49:41.626673 | 2017-01-22T04:06:01 | 2017-01-22T04:06:01 | 77,977,589 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,350 | cpp | Interchange.cpp | #include <iomanip>
#include <systemc.h>
#include "interchange.h"
interchange::interchange(sc_module_name _name) : sc_module(_name){
//allocate memory
mem_inter = new int*[8];
for (int i = 0; i < 8; i++){
mem_inter[i] = new int[8];
}
SC_THREAD(interchange_thread);
}
void interchange::interchange_... |
253511826fb0253b0c6f1a872a75c457dc5c4ed6 | a23e630d6d2ab16cdece54d11224cf950b2d65f6 | /Main.cpp | 2016849b424f285c2750ff071cfb30c436ba929e | [] | no_license | Maz-lab/Loot-Generator | 6e525b807cbf59c913b79a9bc9f65db1548982c8 | 5c83405b725e8f46851942c3e9b715c314079d83 | refs/heads/master | 2020-12-24T19:04:05.043054 | 2016-05-08T17:06:28 | 2016-05-08T17:06:28 | 58,322,220 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 462 | cpp | Main.cpp | /*
* This loot generator will create gear with randomized names, types and affixes.
* We will use txt files that contain the possible names types and affixes and
* have the code read from them.
* We will accomplish the random part by using the random function from the math library.
* When an item is created we will pr... |
712c91ed8bf676a48d0828f8de9d05c6f84a5c88 | 773f5ab093bac6da0a15af745eb1c2201795bb0d | /SCInfor/source/Universe/Galaxy/Galaxy.h | f9b40392568ecb6b538e7db461e3941b61dd3792 | [] | no_license | jackflower/SCInfor | a5dda83e12f012c94fb3c633b0d3695951815f97 | a54191183cc0a6455795d0bc41fd3bb0a2c2972c | refs/heads/master | 2021-09-27T15:02:06.098582 | 2021-09-23T11:16:18 | 2021-09-23T11:16:18 | 169,047,909 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,015 | h | Galaxy.h | // ___________________________________
// | Galaxy.h - classs definition |
// | Jack Flower - May 2014 |
// |___________________________________|
//
#ifndef H_GALAXY_JACK
#define H_GALAXY_JACK
#include <map>
#include <string>
#include "../../RTTI/RTTI.h"
#include "Star/Star.h"
#include "../Interacti... |
cd1b2efe036e0a6f8b84390934bca860b17dbc74 | c7d84c821083614da92dbb59f7355e795e9ecf0b | /PerfectActivator/Biscuit.h | 97862722793089fd77eec5c7b17a22a1cb6108d6 | [] | no_license | LoLDaveChappelle/PerfectActivator | 0c67ddc40757704e3bd15e70089dbb9b30888e0e | 9d606b563d34533e9c938a68bba180e19a0956ac | refs/heads/master | 2021-01-13T11:59:48.529725 | 2017-02-09T20:21:24 | 2017-02-09T20:21:24 | 81,163,847 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 641 | h | Biscuit.h | #include "PluginSDK.h"
#include "BuildMenu.h"
class Biscuit
{
public:
IMenu* BuscuitMenu;
IMenuOption* UseBiscuit;
IMenuOption* BiscuitHealthPercent;
int HealthPotionID = 2033;
IInventoryItem* pItem = GPluginSDK->CreateItemForId(2010, 100);
void Menu()
{
BuscuitMenu = ItemMenu->Consumables... |
3a10c44a510897f6b8404d9933132423602071db | b2cde1f7df4d6166dabbf6f12969d9f8b1b3a2ba | /StringReverser.h | 52eecdc19e4424bc0ba9dc634708c1122046b14b | [] | no_license | NoamCohen1/ServersProject | cc5affde086aac022540f3110f23d5760b042335 | b39b4d2780d801024f44847f2349fd9085a3daae | refs/heads/master | 2020-04-14T17:11:07.643966 | 2019-01-16T19:15:38 | 2019-01-16T19:15:38 | 163,971,994 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 283 | h | StringReverser.h | #ifndef SERVERSPROJECT_STRINGREVERSER_H
#define SERVERSPROJECT_STRINGREVERSER_H
#include "Solver.h"
#include <string>
using namespace std;
class StringReverser : public Solver<string, string> {
public:
string solve(string origin);
};
#endif //SERVERSPROJECT_STRINGREVERSER_H
|
cfcd1fa4f02ce9881a89b6137ed10fefa44d89a3 | a9ca1e42ad706bc58ce6add7459b74108e9a0ec8 | /Factorial.cpp | 035ea9eaf0eed122ca2815507f2fa50da1c975dd | [] | no_license | mahi0507/Hacktoberfest2021-Task4 | f9fcd0cd4ba54d304865d275b89d02d32c4ecf82 | f8db969279c8795ef506403b13b2d1a345bc95e6 | refs/heads/main | 2023-08-26T14:15:45.241355 | 2021-10-20T10:52:45 | 2021-10-20T10:52:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 262 | cpp | Factorial.cpp | #include <iostream>
using namespace std;
int main(void)
{
int no;
long fac;
cout << "Enter a Number : ";
cin >> no;
fac = 1;
for (int r=no; r >= 1; r--)
{
fac = fac * r;
}
cout << "Factorial of " << no <<" is " << fac <<endl ;
return 0;
}
|
b2bc9d82487cac217573688666a2fbfa46382b64 | 1e605b4dea25b0d952c51fdcfd6f22b513923a94 | /43.cpp | d2c6220429954e580129f1bf76ee1046602d20b3 | [] | no_license | jinlll123/pat | b73465bcf0409ef9023d2e6d89541782deac55cc | bcb5ecc0bf9039af57925486211011e427339266 | refs/heads/main | 2023-08-24T09:09:40.199420 | 2021-10-07T03:25:46 | 2021-10-07T03:25:46 | 410,798,191 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,089 | cpp | 43.cpp | #include<iostream>
#include<vector>
using namespace std;
struct node{
node* left;
node* right;
int val;
node(node* a=nullptr, node* b=nullptr, int v=0) :left(a), right(b), val(v) {}
};
int n;
vector<int> pre;
bool flag = true;
node* bst(int l, int r, bool isM) {
if(!flag || l==-1 || r==-1 || l>r) r... |
f8e26a41e646d5e2596cc9a20296e0cc567fcfdd | 6c996ca5146bd307a062f38819acec16d710656f | /workspace/iw8/code_source/src/cgame_sp/cg_ents_sp.cpp | aa5d7eddcc80749608b3f1cf5f3a665ea8ecd31b | [] | no_license | Omn1z/OpenIW8 | d46f095d4d743d1d8657f7e396e6d3cf944aa562 | 6c01a9548e4d5f7e1185369a62846f2c6f8304ba | refs/heads/main | 2023-08-15T22:43:01.627895 | 2021-10-10T20:44:57 | 2021-10-10T20:44:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 126,849 | cpp | cg_ents_sp.cpp | /*
==============
CG_EntitySP_InterpolateEntityOrigin
==============
*/
void __fastcall CG_EntitySP_InterpolateEntityOrigin(LocalClientNum_t localClientNum, centity_t *cent)
{
?CG_EntitySP_InterpolateEntityOrigin@@YAXW4LocalClientNum_t@@PEAUcentity_t@@@Z(localClientNum, cent);
}
/*
==============
CG_EntitySP_SaveEn... |
8a96df7f6bd7424858980428c5cd7772dc35a153 | 7f3b3cfc8505fe8ca485d35b3956caf5704c70dd | /TrapMgr.cpp | 9d09dfcba8bb0803e2dd718b620a6e3fbc4e699e | [] | no_license | jollywing/girl-sword | 04cedf3454269590fc391881dc7dd30b2d86cd2a | 40770d90aafceed5e8c63c2c015774f9b4fd35d7 | refs/heads/master | 2021-01-19T21:28:25.687924 | 2013-08-01T08:57:01 | 2013-08-01T08:57:01 | 11,651,106 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,739 | cpp | TrapMgr.cpp |
#include <iostream>
#include <string.h> // for memset
#include "TrapMgr.h"
using namespace std;
TrapMgr::TrapMgr()
{
clear_traps();
cout << sizeof(traps) << endl;
cout << sizeof(visible) << endl;
cout << sizeof(automatic) << endl;
cout << sizeof(TrapMgr) << endl;
}
void TrapMgr::clear_traps()
{... |
f7e3b1de0272e761ee3851008f5803bb8ed9cffa | 25735fdf5b0b1368114d36b7daebc2e4de22505e | /Arduino/MQ4/MQ4.ino | 3b0f0959ca44aae2e485e9b6a1c2605980fe8eea | [] | no_license | comu2e/HackU-Untilet | f60242e72e4f794638c32ff21459cf9814c63ed5 | 2c00e2d242a2c9d1eeed141b751e3012ed3c5fd0 | refs/heads/master | 2021-06-07T12:18:01.519641 | 2016-10-29T11:05:14 | 2016-10-29T11:05:14 | 72,279,956 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 360 | ino | MQ4.ino | float sensorValue;
void setup()
{
Serial.begin(9600); // sets the serial port to 9600
}
void loop()
{
sensorValue = analogRead(A5); // read analog input pin 0
// Serial.println(5*sensorValue/1024, DEC); // prints the value read
Serial.println(5*sensorValue/1023,DEC);
delay(100); ... |
cb5c785b410b5a7e9b61930df20868f18a31fc3a | 2927dcbbb0723e8e76710040407c5561fb6b0121 | /65536/windows/vaahtokarkit/sorsat/WinVideo.cpp | 3afe5b294c02af26f951cc3cfaa14d70d8ab1f7d | [] | no_license | cafferta10/hardcode | 9583599825010c16d46e199aaff9b15834730c65 | 2033e906d3a7850f88dda431f15a70f0981729b9 | refs/heads/master | 2021-05-22T01:06:19.072005 | 2019-10-26T03:28:44 | 2019-10-26T03:28:44 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,316 | cpp | WinVideo.cpp | #include "Video.h"
#include "Error.h"
#include "Timer.h"
#include <string.h>
Bitmap *screen;
int quitrequest=0;
int keydown=0;
#include "DD.h"
void videoInit(int w,int h)
{
screen = new Bitmap(w,h*2/4);
ddInit(w,h);
}
void videoDeinit()
{
if(screen) delete screen;
screen = 0;
ddDeinit... |
47a9b0587234fffe7d5d95c56341b5d351986100 | 1e2d4e355f72e1a532fe7b1cde28e83d9022c7cf | /hui/hgsplitter.h | 545ef9dcfcb691311a6a964905b2b4ba9c22983b | [] | no_license | huqiuyun/qt.project | 99170a75e18264d1a786c146a611eb10e56559bf | 07a319be509f0ba16e482819844c97420a392dcd | refs/heads/master | 2016-09-06T14:23:02.962215 | 2014-06-08T14:03:32 | 2014-06-08T14:03:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 399 | h | hgsplitter.h | #ifndef HGSPLITTER_H
#define HGSPLITTER_H
#include "hgwidget.h"
class HGSplitterPrivate;
class H_API HGSplitter : public HGWidget
{
Q_OBJECT
Q_DISABLE_COPY( HGSplitter )
Q_DECLARE_PRIVATE( HGSplitter )
public:
explicit HGSplitter(const HObjectInfo& objinfo, QGraphicsItem* parent = NULL);
~HGSplitt... |
4cf64facdc2ced160265b3a4019ef82f79bb97da | 2b9e516e3927786fbe390533c03713cc7b893b5c | /improved_euler_method.cpp | 68c00f739681101d49d62aea497c0c7651b57a52 | [] | no_license | Zgorozhankin/DE_Practicum | cccf09be08752f1d443f4020dc5a3d545c77ff03 | d0178ee0f825d8b8d0fd2f94c93531250f3e0f70 | refs/heads/main | 2023-01-13T00:12:38.312329 | 2020-11-02T17:47:20 | 2020-11-02T17:47:20 | 307,636,847 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 311 | cpp | improved_euler_method.cpp | #include "improved_euler_method.h"
double Improved_Euler_Method::local_formula(double x, double y) {
double h = (X - x0) / N;
double y1 = y + h * f(x, y);
return y + h / 2 * (f(x, y) + f(x + h, y1));
}
Improved_Euler_Method::Improved_Euler_Method(){
set_data();
}
|
8cd6ff0afd8215ab3a1739f668689f06cd7b50d2 | 6732898fd55e5897446811daed151beb3a49d7d0 | /src/View.cpp | 25154deeb70a387251fc69c9a81ebdf9dd2ad70a | [
"MIT"
] | permissive | BoscoSuen/SQL-Database-Management-System | 39cc94986761588b9dd7464c0683b85e07df26f8 | 5630001e891a4b11bdc8fdf7673d3cc84743eabe | refs/heads/master | 2022-11-04T22:21:15.825600 | 2020-06-11T17:59:13 | 2020-06-11T17:59:13 | 262,896,942 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,619 | cpp | View.cpp | //
// View.cpp
// Assignment3
//
// Created by Hongxiang Jiang and Zhiqiang Sun on 2020/4/20.
// Copyright © 2020 Hongxiang Jiang and Zhiqiang Sun. All rights reserved.
//
#include "View.hpp"
#include <stdio.h>
#include <unordered_map>
#include <cstdio>
namespace ECE141 {
static const std::string CornerSep = "+... |
bc99e6712669ff6dbbcf0ca3ed8c7d2fae6d98a3 | 53a9c1e7716e407b1cb7904ee7be8114c4713a4f | /affine_transformation.cpp | ed49a0f2de4c07d8b76dedc07488b21508fd44c8 | [] | no_license | nbansal90/Image-Processing | b3b3dcebcd0bfde50fe6120d133dc78608e7327c | 11dbce50fd7cab6f6d000aa4c681fa28cc59b6c5 | refs/heads/master | 2021-06-09T12:06:03.744184 | 2016-11-06T20:31:00 | 2016-11-06T20:31:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,730 | cpp | affine_transformation.cpp | /*
* Project 6
* By Nitin Bansal
*/
#include <cstdlib>
#include <iostream>
#include <GL/glut.h>
#include <fstream>
#include <cassert>
#include <sstream>
#include <string>
#include <cmath>
#include <vector>
#include <iterator>
using namespace std;
class Vector3D
{
public:
float x, y, z;
... |
0f49d4626672d4227455e8f9249ed913a36b3b48 | 05bc4b80da30cae703afb0408fdd77a571faa6bf | /checkingAccount.cpp | 3fa2391b334ecb8276937aba93b63902e44e93b9 | [] | no_license | AlexanderAlava/Bank-Simulator | 097971f32ef429ea3ac78cdca40b5cdbe17f8e5b | 4e97bec431e75f02395d18c28079a47dcf9d1733 | refs/heads/master | 2021-01-11T18:57:26.054950 | 2017-01-18T00:19:20 | 2017-01-18T00:19:20 | 79,281,338 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,112 | cpp | checkingAccount.cpp | //===============================================================================================================//
//=09/21/2016 Alexander Alava=//
//=checkingAccount.cpp ... |
d745081696c4e3bf876bd9c2d2360aa80c7e59d7 | 227762382eabdf753466e218c9b0361d3a1c3b41 | /source/bin/terminal/framebuffer.h | c31de9a4613f8891484edd51f36e9fc325c5ab5c | [
"ISC"
] | permissive | aejsmith/kiwi | c9b6835b933c87cd6a099d053cce0db12432f93c | c4a2af6680fcaeb866b52de674fd05fa45740484 | refs/heads/main | 2023-08-16T18:29:25.257616 | 2023-08-09T19:09:42 | 2023-08-09T19:09:42 | 13,698,734 | 17 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,693 | h | framebuffer.h | /*
* Copyright (C) 2009-2023 Alex Smith
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DIS... |
d7650532e4d7b8ee06538431ba48807a07306685 | 163dc8d3c9be4e2c3cf713b1ca6e1bd3993bcac6 | /include/mixr/models/player/SpaceVehicle.hpp | 4e326db40d0048868f8c24d1e760970660d6165d | [] | no_license | azcbuell/mixr | 3091c75d0d4f489ee8385ea38612d7b4bfe5550c | b1ccf3166f1feb0c4c8822a18adb83e8d2ceee8a | refs/heads/master | 2021-01-20T05:34:39.662113 | 2017-09-08T23:03:00 | 2017-09-08T23:03:00 | 101,452,440 | 0 | 0 | null | 2017-08-26T00:44:34 | 2017-08-26T00:44:34 | null | UTF-8 | C++ | false | false | 3,030 | hpp | SpaceVehicle.hpp |
#ifndef __mixr_models_SpaceVehicle_H__
#define __mixr_models_SpaceVehicle_H__
#include "mixr/models/player/Player.hpp"
namespace mixr {
namespace models {
//------------------------------------------------------------------------------
// Class: SpaceVehicle
// Description: Generic Space Vehicles
// Fac... |
3c9dd25774e302ab2310922295e59310cd62543f | 0483b97f464f479f8cc76c81a466160accd2a96e | /src/zobrist.h | aa3dee3276a506491dd4e9fdd4d96a0febb069a9 | [] | no_license | ClementChouteau/Ultimate-Tic-Tac-Toe | 548ae8cd6356ed65842a37fdc1ef481f15b30ec3 | 1e154d40138166add871b8246efc2211cb9b0a74 | refs/heads/master | 2021-06-08T16:06:03.674555 | 2021-04-10T16:16:42 | 2021-04-10T16:16:42 | 132,011,369 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 750 | h | zobrist.h | #pragma once
#include <array>
#include <random>
#include <algorithm>
#include <cstdint>
#include "common/ttt.h"
using hash_t = std::uint32_t;
std::random_device dev;
std::mt19937 rd(dev());
std::uniform_int_distribution<hash_t> dist;
/** This is a class to generate automatically a high quality hash function.
* ... |
c4ff07c0aee8331890c9a605f7386c38574adb7a | 6a060ed7ca2cf942e0a2cbd410e3877b10a6132b | /player/yuv2/yuv/rgb_utility.cpp | d342f13b473054c0b587896886df601577b1c061 | [
"MIT"
] | permissive | y38y38/yuv | 730ebfbe129e5ea9593b29449eaa490df976c216 | 3a09ba6a785f1c54a43abac4f63a4f0149af9741 | refs/heads/master | 2022-08-31T12:01:38.497492 | 2022-08-15T09:41:51 | 2022-08-15T09:41:51 | 73,189,086 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,788 | cpp | rgb_utility.cpp | #include "stdafx.h"
#include "stdint.h"
#include "stdlib.h"
#include "rgb_utility.h"
RgbUtility::RgbUtility(void)
{
return;
}
RgbUtility::~RgbUtility(void)
{
return;
}
void RgbUtility::RgbCombine(uint32_t width, uint32_t height, int image_num, uint8_t *img[], uint8_t *output_rgb)
{
if (image_... |
2895c7a9b72278bb79b9e02a33632f47f9394462 | 395d1860e82bc75ccc04b91c4b9a8fa46276d9bb | /Source/Behavior/Physics2012Bridge/Deprecated/Modifier/Target/hkbpMoveBoneTowardTargetModifier.h | 4067ab7f3e36e290d9348653d83de4975a63f7df | [] | no_license | Hakhyun-Kim/projectanarchy | 28ba7370050000a12e4305faa11d5deb77c330a1 | ccea719afcb03967a68a169730b59e8a8a6c45f8 | refs/heads/master | 2021-06-03T04:41:22.814866 | 2013-11-07T07:21:03 | 2013-11-07T07:21:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,451 | h | hkbpMoveBoneTowardTargetModifier.h | /*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Product and Trade Secret source code contains trade secrets ... |
dd20b72b2dbed53888ecb936c3838a2a1cd3eb17 | d3ceaee2818b19ad3a41ec01cf5752bb8c408e4f | /photon/src/state.h | b7c908e16196e7936c4719c2ca30cd2634e66ee5 | [] | no_license | chrisgervang/21days | d5d81a61969ca69118c0e76742c067821515daa4 | bafcdb4d2f46048656c39737a1f8351eb56540a8 | refs/heads/master | 2020-06-13T17:31:09.376883 | 2017-05-09T04:54:07 | 2017-05-09T04:54:07 | 75,574,669 | 8 | 2 | null | 2016-12-19T07:47:13 | 2016-12-05T00:44:03 | C++ | UTF-8 | C++ | false | false | 668 | h | state.h | #pragma once
#ifndef _STATE
#define _STATE
#define DAYS 22
namespace state {
struct HabitState {
long previousMillis;
int brightness;
int history [DAYS];
int doneTime;
};
extern HabitState sweets;
extern HabitState murder;
extern HabitState brush;
extern HabitState sleep;
extern HabitS... |
19f356cd7f873641db4f1082be4a32ae82fa06a8 | feabe7edf3537dc2f002bcdecbc35c621be86333 | /Birdnest/box.cpp | 13e568f732efd40aafcdac67e1111f7aabf401ad | [] | no_license | h8672/Birdnest | b9ed93a5628cd75ef7fc9798505b4c0e6a37fba8 | 623e5aa80dabd45129247f5d4451178dfccf4191 | refs/heads/master | 2021-01-20T06:52:35.512923 | 2017-05-01T16:17:34 | 2017-05-01T16:17:34 | 89,938,964 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 2,749 | cpp | box.cpp | #include "box.h"
Box::Box()
{
this->Position = glm::vec3(0);
this->Rotation = glm::vec3(0);
glGenVertexArrays(1, &VAO);
glGenBuffers(1, &VBO);
glGenBuffers(1, &EBO);
glBindVertexArray(VAO);
GLfloat code = 1.0f;//Currently not using it at all in shaders...
GLfloat vertices[4][8] = {
// Position // Colors... |
ca8a2f9d2209a3be68f94686c1108af015c2d5c5 | 3de2a746243ad1cb000994a06a0f9699db9a901f | /arc131d.cpp | b05cfe78062289f5537d95cdb3c171d1195c1098 | [] | no_license | takumi152/atcoder | 71d726ffdf2542d8abac0d9817afaff911db7c6c | ebac94f1227974aa2e6bf372e18605518de46441 | refs/heads/master | 2022-10-30T12:14:41.742596 | 2022-09-29T19:49:32 | 2022-09-29T19:49:32 | 181,502,518 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,790 | cpp | arc131d.cpp | #include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <utility>
#include <string>
#include <queue>
#include <bitset>
using namespace std;
typedef long long int ll;
typedef pair<int, int> Pii;
const ll mod = 1000000007;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
ll ... |
f6e019fdeaad4bede236af1c5906e305db0b1ea7 | d5fcf387792697f98469ffb1e16f50a9ffe79961 | /poj/poj2948(简单递推DP).cpp | dbb49ef5f6491f1ba0bc85196be8ca72f193d252 | [] | no_license | siludose/ACM-ICPC | 8f0b58c693976fe67007ea56a0c93c585334c66b | 9194efe47f5ad7749c9c5012f213c07ed896e752 | refs/heads/master | 2020-07-04T12:25:13.646093 | 2016-08-22T12:35:44 | 2016-08-22T12:35:44 | 66,267,833 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 988 | cpp | poj2948(简单递推DP).cpp | #include<iostream>
#include<cstdio>
#include<algorithm>
#include<string.h>
using namespace std;
#define maxn 600
int n,m;
int zuo[maxn][maxn],shang[maxn][maxn];
int dp[maxn][maxn];
int main()
{
freopen("input.txt","r",stdin);
while(scanf("%d%d",&n,&m),n+m)
{
memset(dp,0,sizeof(dp));
... |
f0c7c052d1cf485e470932ea3980962040672d02 | 87f38210d9a528c888b312779633b2ac6afa6e55 | /include/ordered_list.h | 7ed8726d3984a350bb6267a9669ff591ad634a4c | [] | no_license | xuansan915/test | e2c50c268a60012038c1fb69a0e50984bcd1cb88 | b7aaf3d3b7aad3ddf3faa1b46845a6598a0ba85c | refs/heads/master | 2021-10-11T07:16:13.294486 | 2019-01-23T05:44:57 | 2019-01-23T05:44:57 | 108,625,787 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,769 | h | ordered_list.h | #ifndef ORDERED_LIST_H
#define ORDERED_LIST_H
#include <string>
#include <iostream>
typedef void (*TimeFunc)() ;
struct TimeItem
{
int nTimeID; //id
int nEndTime; //终止时间
int nCount; // 累计定时次数
int nElapse; //每次间隔时间
TimeFunc fTimeFunc;
std::string Print()
{
... |
f8acb8108200a8cf180d68640b8442dd97df2102 | ce8075eecd3d3658f73f480ae9711c7a9988d16e | /Interpreteur/traitement_fichier.cpp | 1710d40fa469d7c54cb65a2eaffb4c102e2aa163 | [] | no_license | jibaient/Interpreteur1 | 23fa5b38a1c082e4f26e3433c4c14d5df1f1cede | b83a2655e993c3e854764d0ab84d7e8ca9dbda1a | refs/heads/master | 2023-09-02T20:55:04.154000 | 2021-10-28T13:50:23 | 2021-10-28T13:50:23 | 422,222,838 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 6,273 | cpp | traitement_fichier.cpp | #include "traitement_fichier.h"
#include <iostream>
#include <string>
#include <cstdlib>
#include <vector>
#include <map>
#include <fstream>
using namespace std;
/*
* Permet de traiter le fichier .stpnc avec des fonctions de bases pour récupérer, le numéro; le nom, la chaine de caractères et les attributs des entité... |
33f2e69fff6340a35f24772a7f3136670afc486e | 1dbf007249acad6038d2aaa1751cbde7e7842c53 | /cbr/include/huaweicloud/cbr/v1/model/BackupSync.h | 220d7490155caf7462bb23bee7014aaaccabc856 | [] | permissive | huaweicloud/huaweicloud-sdk-cpp-v3 | 24fc8d93c922598376bdb7d009e12378dff5dd20 | 71674f4afbb0cd5950f880ec516cfabcde71afe4 | refs/heads/master | 2023-08-04T19:37:47.187698 | 2023-08-03T08:25:43 | 2023-08-03T08:25:43 | 324,328,641 | 11 | 10 | Apache-2.0 | 2021-06-24T07:25:26 | 2020-12-25T09:11:43 | C++ | UTF-8 | C++ | false | false | 3,155 | h | BackupSync.h |
#ifndef HUAWEICLOUD_SDK_CBR_V1_MODEL_BackupSync_H_
#define HUAWEICLOUD_SDK_CBR_V1_MODEL_BackupSync_H_
#include <huaweicloud/cbr/v1/CbrExport.h>
#include <huaweicloud/core/utils/ModelBase.h>
#include <huaweicloud/core/http/HttpResponse.h>
#include <string>
namespace HuaweiCloud {
namespace Sdk {
namespace Cbr {
nam... |
f052fb744ad0234fbc7ae05d50ee3e1aafd5762f | db7ffb184efb3b9d83c65066b0fa11e4c8c034d5 | /bitmap/main.cpp | 91a7dc83335d35abf2b1e1d2ca83bda08eabf810 | [] | no_license | sakishum/My_Algorithm | ef17e85c6303b074030f14f492791356636dfb8a | 7a00f5eeef22ba9feb85c9fdba77ad1c04728fc7 | refs/heads/master | 2021-01-22T08:10:35.923075 | 2017-02-13T23:51:00 | 2017-02-13T23:51:00 | 81,883,503 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,010 | cpp | main.cpp | /**
* @file main.cpp
* @Synopsis i
* URL: http://blog.csdn.net/hackerwin7/article/details/17585257
* @author Saki Shum, sakishum1118@gmail.com
* @version 0.0.1
* @date 2015-09-19
*/
#include <cstdio>
#include <cstdlib>
#include <cstdint>
#include <iostream>
#define BITSPERWORD 32
#define SHIFT 5
#define MASK 0... |
f0f94e42ca7efce82e05ffdd49783519e36b5246 | be2a50b5688c1bd421564f9ba4a252d53b118ef5 | /Codeforces/1374/1374-MoveBrackets.cpp | de1db9bedabe7315259594e98af2a435aec50ce8 | [] | no_license | pcsanchez/CompetitiveProgramming | 5713ccd1adec3534aaa10fa999fe0db2f3af251c | a54778cdb9ce935503010240e62da14cdc0af717 | refs/heads/master | 2020-11-29T16:49:19.914449 | 2020-06-28T20:55:04 | 2020-06-28T20:55:04 | 230,171,987 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 573 | cpp | 1374-MoveBrackets.cpp | #include <iostream>
#include <string>
using namespace std;
int main() {
int n,t;
string s;
int count, ans;
cin >> t;
while(t--) {
cin >> n;
cin >> s;
count = 0;
ans = 0;
for(const char& c : s) {
if(c == '(') {
count++;
... |
8238dc1382cf9ff88de40158f02ab4aaecf035ea | 4bfbd3525cb17d141395fdac176bdd83564525f8 | /se3control/src/trajectory_standalone.cpp | adb2a6fdf521323da42a495a4aa34d1afcfecf16 | [] | no_license | takkumagae/nanoplus | da5a790a9472342cc876f06a54bb243740ebe2d4 | 5e373a03183e10562a5deed80fb0a289affebba4 | refs/heads/master | 2020-12-24T17:26:42.481084 | 2013-04-23T20:20:37 | 2013-04-23T20:20:37 | 10,011,455 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,124 | cpp | trajectory_standalone.cpp | #include <ros/ros.h>
#include <opticalflow_msgs/OpticalFlowCommand.h>
#include <Eigen/Geometry>
#include <quadrotor_msgs/OutputData.h>
#include <opticalflow_msgs/Traj.h>
int mode=1;
float des_t=0,des_vx=0,des_vy=0;
float rc_vx,rc_vy,rc_z;
double init_t=0;
void rcCallback(const quadrotor_msgs::OutputData::ConstPtr& rc... |
1d45bf4275bbe82b5a45c14f1ce924a00d17f300 | e2a6bb5c82206e34e28b5891bf02066a2fa844f2 | /scheduler.h | f226597632b3459cc730a73bb209b0581feaf11c | [] | no_license | AmerGong/oslab2 | df988941ca926d9964adf5ed9d9948bc9e5b0f9c | 6de7fb9634f1d2be5ac4bed63a1ab26b14d7c803 | refs/heads/main | 2023-04-18T21:09:06.102315 | 2021-05-02T17:53:10 | 2021-05-02T17:53:10 | 363,713,620 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,500 | h | scheduler.h | #ifndef __SCHEDULER_H__
#define __SCHEDULER_H__
#include <queue>
#include <stack>
#include <string>
#include "event.h"
#include "process.h"
class scheduler {
public:
scheduler(int quantum, int max_prio, const std::string& name);
virtual ~scheduler();
virtual void add_pcb(PCB* pcb) = 0;
virtual PCB... |
be551e2575baca586ab24d90f48555718d73f813 | 5a81b9ccc2139dc58903af36862ccd800e02cf16 | /src/human.h | f8c23ecdaac6cecf78a902e7a46fbef7b93a616a | [] | no_license | neelayjunnarkar/ChopsticksAI | c894f91e1a2ccf2e3154703099de9854d4a94221 | 6cb72f16afdef14bf93fc76b5295fa70b7ced0af | refs/heads/master | 2020-12-30T17:00:08.019925 | 2017-10-06T02:39:45 | 2017-10-06T02:39:45 | 91,053,199 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 158 | h | human.h | #ifndef HUMAN_H
#define HUMAN_H
#include "Chopsticks.h"
namespace Human {
Chopsticks::State move(Chopsticks::Player p1, Chopsticks::Player p2);
}
#endif
|
07b502158e0d9477e35468a503906a0346856417 | 207ae75bff6047a6b58df4827907de23e5cbd2a3 | /MyDLL/MyDLL/MyDLL.cpp | ff8c5bb1a8f6c9e8eefbc1db49e4dd0c81fc0b1a | [] | no_license | Sargerus/Eleven | 1974905b70e266d6cd2cdda1d8fd4fddb754a8bf | 0dd5ce840b1215e8c493fadc69e076725f8f7e73 | refs/heads/master | 2021-06-09T02:15:38.138018 | 2016-12-19T14:10:26 | 2016-12-19T14:10:26 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 658 | cpp | MyDLL.cpp | // MyDLL.cpp: определяет экспортированные функции для приложения DLL.
//
#include "stdafx.h"
#include <iostream>
#include "MyDLL.h"
#include <Windows.h>
using namespace std;
LPWSTR CharToLPWSTR(LPCSTR char_string)
{
LPWSTR res;
DWORD res_len = MultiByteToWideChar(1251, 0, char_string, -1, NULL, 0);
res = (LPWSTR)Gl... |
1bab4ec9458fcd3e8b3d32bbcead619c664acd40 | 2277375bd4a554d23da334dddd091a36138f5cae | /ThirdParty/Havok/Source/Common/GeometryUtilities/Mesh/Utils/PrimitiveUtil/hkMeshPrimitiveUtil.cpp | 619bddf68a0c9c5748af43cc36b046eb786e0a58 | [] | no_license | kevinmore/Project-Nebula | 9a0553ccf8bdc1b4bb5e2588fc94516d9e3532bc | f6d284d4879ae1ea1bd30c5775ef8733cfafa71d | refs/heads/master | 2022-10-22T03:55:42.596618 | 2020-06-19T09:07:07 | 2020-06-19T09:07:07 | 25,372,691 | 6 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 15,909 | cpp | hkMeshPrimitiveUtil.cpp | /*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Product and Trade Secret source code contains trade secrets ... |
1e156359908e83e8e9df82c7598af134cf6a342c | 635d93529725f5611985a8fb3be0224bbb867ceb | /rt_serializer/src/blockwriter.h | 511f3cae870e08aff39c1b2379d44403b80b1853 | [] | no_license | snow-boy/runtime_analysor | f0047c73d4f1a848a937536aa32d7bc2bec8ab33 | a51e4720a5fc53803256c4abfa8c42556e4ba006 | refs/heads/master | 2020-04-13T19:04:49.850366 | 2019-01-21T09:42:31 | 2019-01-21T09:42:31 | 163,392,660 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | h | blockwriter.h | #ifndef BLOCKWRITER_H
#define BLOCKWRITER_H
#include <string>
#include <fstream>
#include "blocknode.h"
class BlockWriter
{
public:
BlockWriter(const std::string &file_path);
BlockWriter();
bool open(const std::string &file_path);
bool isOpen();
void close();
void writeBlock(std::shared_ptr<... |
a0ade8cd4582d45b87cc4ed2550c17fbea3bc221 | 4a210ab9061fc687d95b20b76700e7daa321c7b0 | /Jump Game GFG.cpp | 88f04876e9e03ade352846fe02747c452895e641 | [] | no_license | mukuldiw/Leetcode- | 4e1766f06ca59c9e9d27def219fc4432dd07fe10 | 0e8035fa02d93fae47cfef803df009e19fa61bfa | refs/heads/main | 2023-07-08T14:35:45.780247 | 2021-08-06T20:37:47 | 2021-08-06T20:37:47 | 367,672,591 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 303 | cpp | Jump Game GFG.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
int a[n];for(int i=0;i<n;i++)cin>>a[i];
int dp[n] = {0};
dp[n-1]=1;
int ind = n-1;
for(int i=n-2;i>=0;i--){
if(i + a[i] >= ind){
dp[i] = 1;
ind = i;
}
}
for(int i=0;i<n;i++)cout<<dp[i]<<" ";
}
|
e7e3865428881647472295b4a2ab6da9119cbc01 | cc0b7d50a3c6e6b329aab5b0aa0a349580bddbdd | /constant/water3/polyMesh/faces | 3e29a9823718df6dd603ad698e210c2fab808f3c | [] | no_license | AndrewLindsay/OpenFoamFieldJoint | 32eede3593516b550358673a01b7b442f69eb706 | 7940373dcc021225f2a7ff88e850a1dd51c62e36 | refs/heads/master | 2020-09-25T16:59:18.478368 | 2019-12-05T08:16:14 | 2019-12-05T08:16:14 | 226,048,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 223,744 | faces | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 |
... | |
408bb116fafb964b1c65660302539ef1fd655c52 | 2be914e740a1b32a278ea8f19f62b1cee24b9614 | /C++/routine_superpixel_texture_and_color_majority.cpp | 8f0c7d30c8188f1aae45dcada67cb3862867c11b | [] | no_license | kyle5/apple_detection_superpixels | 3ce1275139f2f077728f6a087fdaf9cceb1d218a | 019a6a52c37f586ef02f1295a366622fc2dca3ba | refs/heads/master | 2020-04-07T15:26:32.178712 | 2014-10-27T15:39:14 | 2014-10-27T15:39:14 | 25,767,302 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 40,500 | cpp | routine_superpixel_texture_and_color_majority.cpp | #include "routine_superpixel_texture_and_color_majority.h"
#include<dirent.h>
using namespace std;
using namespace cv;
Mat create_red_img_from_segmentation_mat( Mat segmentations_cv_16U ) {
fprintf( stderr, "start of create_red_img_from_segmentation_mat\n" );
int max_value = -1;
unsigned short * ptr_to_data = (uns... |
644c8f1f53db6f6c4d5ff8d7dabb86b9ef79e47d | ab034838251692486b789b085b976a3d40fc50d1 | /src/adtfUser/katana_mission_control/src/mission_control/MotionPlanning.cpp | f4785bb897b8a1487bb653cff58c5cabf4748a9b | [
"BSD-2-Clause"
] | permissive | KAtana-Karlsruhe/AADC_2015_KAtana | ea8f27272eaf79ae636ab123a8e4681f882bb138 | c6e55be189b8b2d46c905926b6533df2aba5979e | refs/heads/master | 2020-05-29T13:49:27.997036 | 2015-09-18T12:52:57 | 2015-09-18T13:18:10 | 42,716,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,795 | cpp | MotionPlanning.cpp | #include "MotionPlanning.h"
#include <limits.h>
#include <cmath>
#include <oadrive_core/Interpolator.h>
#include <oadrive_core/TrajectoryVelocityInterpolator.h>
#ifdef KATANA_MC_MOTION_PLANNER_DEBUG
#include <iostream>
#endif
using namespace oadrive::core;
namespace katana
{
void MotionPlanning::generateRoadDrivi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.