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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da53cdd609891fbd2d3e8f1aa739a48c0ef6bbb5 | 88c067ccabe72b4bbdcbec7700bb20489d45425c | /1111.cpp | c6846db0415ec48ad57eec3ca5aaf9886bb0e1f0 | [] | no_license | SiJun-Yoo/Algorithm | 5a92cb79365ca8db921fb4820ac95929a334d54e | ef89154d7ba0d1b2c85a89f23f84fdbf380baeff | refs/heads/master | 2022-11-05T17:33:59.793003 | 2022-09-19T14:16:23 | 2022-09-19T14:16:23 | 281,680,931 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 926 | cpp | 1111.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<double, double> pdd;
typedef queue<pair<int, int>> qii;
typedef priority_queue<int> pqi;
typedef priority_queue<ll> pqll;
const int MAX = 1000000000;
const int MI... |
de92aa1becc3a84f72f355a4a0e85d413db1606c | 730a591e0bbef0d9abb7adbf45e0968b5f6bd7f0 | /cpputils/Utils/Buffer/ScissorNode.cpp | fb3128721ca63efe4e5f48dfc2646c2150bc3bf5 | [] | no_license | KAndQ/cocos2dx-utils | 5c574287a9c46037838d348b0ce8b8b565c1bed8 | 497de1e41a660a6b4308061b14740b31534611d4 | refs/heads/master | 2021-01-01T18:54:49.746170 | 2015-06-04T11:56:22 | 2015-06-04T11:56:22 | 35,252,503 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,892 | cpp | ScissorNode.cpp | //
// ScissorNode.cpp
// mgbx-client
//
// Created by Coder-1-Mac on 15-3-1.
//
//
#include "ScissorNode.h"
#include "cocos2d.h"
void ScissorNode::visit(cocos2d::Renderer *renderer, const cocos2d::Mat4& parentTransform, uint32_t parentFlags)
{
//启动遮罩效果
_beforeVisitCmdScissor.init(_globalZOrder);
_befor... |
c1b4f729601f69e0c671af664bf4721d7658e45b | 9b211466cc37ba4ea4549c48ce873a51078e3d14 | /FBMathLib/GeomUtils.cpp | ee912296804e8558da3778f90fac4e2f4fdb11d6 | [] | no_license | wangscript/fastbirdEngine | d3d0647409c560b242ad705588a78690e6f38044 | 1cbe629e95ddea48e6cffd90ed344e4034b86867 | refs/heads/master | 2021-01-24T01:59:07.460774 | 2016-01-27T22:23:31 | 2016-01-27T22:23:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,159 | cpp | GeomUtils.cpp | /*
-----------------------------------------------------------------------------
This source file is part of fastbird engine
For the latest info, see http://www.jungwan.net/
Copyright (c) 2013-2015 Jungwan Byun
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and a... |
70145a9e0e11d8c00779e1d782e0f3997ee60a07 | 0827ed8fce48247b81af7f0332f9a4d96f5fab42 | /csis252/assignments/509a6/read.cpp | b57858b82e4fa945f09247839e2cc916c9686615 | [] | no_license | rosskyl/MSUM-C-C-Classes | 7b5ffa1c2789603a045665f76af3f8ef86d36b44 | f28462cbf20ef55579cbc6b1b4fc799250dd60f2 | refs/heads/master | 2021-01-21T14:56:49.851471 | 2017-05-19T16:36:56 | 2017-05-19T16:36:56 | 91,825,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,907 | cpp | read.cpp | //File: read.cpp
//Author: Kyle Ross
//Assignment: 6
//Professor: Brekke
//Due: Oct 24, 2014
//Description: contains the read function which reads the file data
// and creates objects employee into the array employees
#include "constants.h"
#include "decl.h"
#include <fstream>
#include <iostream>
#in... |
dde96cd2defae99352a9614947c6aeb3a9fde588 | 0fed3d6c4a6dbdb49029913b6ce96a9ede9eac6c | /Codeforces/1051/1051D.cpp | 6623139743fe337e5555582adc21dea5bf86e28a | [] | no_license | 87ouo/The-road-to-ACMer | 72df2e834027dcfab04b02ba0ddd350e5078dfc0 | 0a39a9708a0e7fd0e3b2ffff5d1f4a793b031df5 | refs/heads/master | 2021-02-18T17:44:29.937434 | 2019-07-31T11:30:27 | 2019-07-31T11:30:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 713 | cpp | 1051D.cpp | #include <bits/stdc++.h>
using namespace std;
const int mod = 119 << 23 | 1;
typedef long long ll;
int dp[1 << 10][1 << 11][1 << 2];
int w[][4] = {0, 1, 1, 1,
0, 0, 2, 0,
0, 2, 0, 0,
1, 1, 1, 0};
int main()
{
dp[0][1][0] = 1;
dp[0][1][3] = 1;
dp[0][2][1] = 1;
... |
06c3d4aab89a1c1adfe2799766181f2e4bc3b23e | 993df7f8ac80ec9b4546b488c6bcf0762f41b018 | /linear structure/栈_顺序.cpp | 26633fbd0db34da941eb346cdcf90ac1c53696e5 | [] | no_license | jerrykcode/Data-Structure | ea844ee3d61b38ecfb115fa4a34a44e17711aef4 | 23b6ad9027bfe4590dcce81505436d81202eae09 | refs/heads/master | 2021-10-10T17:09:59.384833 | 2019-01-14T09:39:39 | 2019-01-14T09:40:47 | 113,865,710 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,647 | cpp | 栈_顺序.cpp | // 栈_顺序存储.cpp: 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <iostream>
using namespace std;
#define ERROR -1
typedef int ElemType;//栈存储的元素类型
typedef int Position;//元素在栈存储元素的数组中的位置
/* 定义堆栈 */
typedef struct SNode *PtrToSNode;
struct SNode {
ElemType * Data;//存储元素的数组
Position Top;//栈顶元素位置
int Max_Size;//栈的最大容量
};... |
e4a57645c02bf78bc23007efd4745eef61add7fb | 6739d4568949c09b220815fa5e997c71fa811af1 | /src/CMenu/CContainerManager.cpp | bbbfe7e0b54f3a3e670e379c3dd45b281c6ba16f | [] | no_license | maximaximal/SFML-Sidescroller-Revived | d96c1b10801ca3d9d2937e8a37a27045caae1aa3 | 2369acc928b714955106b2d4308b66b98d29bc37 | refs/heads/master | 2021-01-19T08:37:21.803968 | 2016-01-26T18:14:17 | 2016-01-26T18:14:17 | 32,544,029 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,291 | cpp | CContainerManager.cpp | #include "CMenu/CContainerManager.h"
#include <CMenu/CContainer.h>
#include <CMenu/Button.h>
#include <CMenu/Text.h>
#include <CMenu/Load.h>
#include <CConfig.h>
#include <sstream>
#include <time.h>
using namespace CMenuNew;
using namespace std;
CContainerManager::CContainerManager(sf::RenderWindow *app)
{
this->a... |
bdc8c3f61b57c25b17c46e522c1edb7358a11304 | c881f3ae98d5ac964f3fc9fa3645c99e46f4c2c6 | /fake_ptr/read_ptr.h | be84153ebb12677c46b9d7885c66d3e55bb10bc2 | [] | no_license | ras0219/cxxtricks | 566814840697e40e624ebef68a7b2d95bf44fb37 | e0e25b67c44c06ea67d44620581794e2e463951d | refs/heads/master | 2021-01-22T20:35:10.747939 | 2013-12-29T19:45:01 | 2013-12-29T19:45:01 | 15,355,447 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 261 | h | read_ptr.h | #pragma once
#include "fake_ptr.h"
template<class Ty, bool STACK_ALLOCATED>
struct read_ptr_impl {
Ty t;
};
template<class Ty>
struct read_ptr_impl<Ty, false> {
};
template<class Ty>
using read_ptr = read_ptr_impl<Ty, sizeof(Ty) <= sizeof(void*)>;
|
11142d930ac44053222942fd5264cd613e8d94ba | a8a7fe24337ba23d40b90dcab22162c90084f57e | /100-A-PoisonousCookies.cpp | f403cfdb30fff193b26597388e38c2ff0073da91 | [] | no_license | wilkinson1905/PythonLikeCPP | a0a58f043e2d9bc8a96539906a3e0f2ad99696a2 | 95449262395c24fb1cc511d6ca7c47649b9214ba | refs/heads/master | 2021-11-27T11:04:20.102343 | 2019-01-25T15:29:09 | 2019-01-25T15:29:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 902 | cpp | 100-A-PoisonousCookies.cpp | #include "all.h"
#include "range.hpp"
using namespace std;
int main(){
ios::sync_with_stdio(false);
int L,N;
list<int> x;
cin >> L;
cin >> N;
while(true){
int tmp;
cin >> tmp;
if (cin.eof()){break;}
x.push_back(tmp);
}
int pos = 0;
int walk_length = ... |
2294978f7b3b5f4d1146b752742a0a2986e67958 | 09222a1cb22b0374122392c4df49f153d6cbd8ef | /gSTL/src/gSTL_alloc.cc | 0a6a6b18c60e4f3ce72dc5096682b9de98429d52 | [] | no_license | wanghongfeng/project | e043ae326399f75cebbcbaa1efd54ec9d919f43d | 33c4fa4ccfb14c50588c4c3f40b3f99c089ac0d1 | refs/heads/master | 2020-06-20T03:07:21.017406 | 2019-07-03T08:48:44 | 2019-07-03T08:48:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,555 | cc | gSTL_alloc.cc | #include "gSTL_alloc.h"
using namespace gSTL;
char *alloc::start_free = 0;
char *alloc::end_free = 0;
size_t alloc::heap_size = 0;
// 初始化 hash 桶
alloc::obj *alloc::free_list[alloc::gNfreeLists::NFREELISTS] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
};
void* alloc::allocate(size_t bytes) {
if(bytes > gMax... |
ac410a1e2dcc30c7052f8b4543930be5405b40dd | ac08e7e16752e82c3d9835845244f09ce7e3ad4f | /hash_speed_test/Reaction_Equality.hh | 3f91d27ab3a0676f13df15498f019de54902439e | [] | no_license | davidsgr/snippets | f524f842062d7599073d0d3c447e2f8e6b9b551f | 84a91ea4603ec0e20e9809a1ab65a6963729f53d | refs/heads/master | 2021-06-22T01:23:32.422707 | 2020-12-16T15:22:59 | 2020-12-16T15:22:59 | 163,702,474 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,681 | hh | Reaction_Equality.hh | //---------------------------------*-C++-*-----------------------------------//
/*!
* \file hash_speed_test/Reaction_Equality.hh
* \brief Reaction_Equality class declaration.
* \note Copyright (c) 2020 Oak Ridge National Laboratory, UT-Battelle, LLC.
*/
//-------------------------------------------------------... |
74560b032ec29c485e941243123d15798dcf5a78 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/nearby_sharing/text_attachment.cc | 1432fb56a8ebd7fc7266e41dae2629d697b03796 | [
"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 | 5,631 | cc | text_attachment.cc | // Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <algorithm>
#include <utility>
#include "base/strings/strcat.h"
#include "chrome/browser/nearby_sharing/share_target.h"
#include "chrome/browser/nearby_sharing/text_a... |
9ad5119fbc33dba0e98da5bbbd0afdbe21e1d47a | 707faf9498b106f93305321b2f1ee9c31784506f | /university-work/before/c/new/clase/editor/str.cpp | ce278c9b812b40880374c890c972dea32bd9cb5a | [] | no_license | bdumitriu/playground | 489479996fd3c8a83f456d08c01de5e09acb18d8 | 22a67f59832f0367806e50c84f2aec1ebba18150 | refs/heads/master | 2023-07-31T13:53:37.833865 | 2023-07-18T23:06:28 | 2023-07-18T23:07:24 | 2,675,737 | 1 | 0 | null | 2022-11-24T03:00:56 | 2011-10-30T15:39:47 | Java | UTF-8 | C++ | false | false | 1,008 | cpp | str.cpp | #include "str.h"
#include <string.h>
#include <conio.h>
String::String()
{}
String::String(int dim, char c)
{
str = new char [dim+1];
for (int i = 0; i < dim; i++)
str[i] = c;
str[dim] = '\0';
}
String::String(char* c)
{
str = new char [strlen(c)];
strcpy(str, c);
str[strlen(c)] = '\0';
}... |
b4100d09b1e1f4669b86b44522bed147e30c7490 | 442446469e3b48638b188290b5aa8b4718462efa | /camera_loitor.cpp | 5fef168bc6d11ea71c917aef179965e9baaa4908 | [] | no_license | nevermoredanny/loitor_qt | 2b692944d38da767364fe6918374633b1b56afae | 115cee8f8497c9adfc4b071a3b85f6202681883d | refs/heads/master | 2021-01-22T20:19:28.041137 | 2017-03-22T14:21:11 | 2017-03-22T14:21:11 | 85,312,718 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,057 | cpp | camera_loitor.cpp | #include <QDebug>
#include <QCoreApplication>
#include <string>
#include <iostream>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include "loitorusbcam.h"
#include "loitorimu.h"
#include "threadmanager.h"
#include "camera_loitor.h"
SteroImage CAMERA_LOITOR::m_Simg_Show(IMG_WIDTH_WVGA, IMG_HEIGHT_WVGA,... |
b0bdeb4e00bdcb1290e677856a702c9a59344491 | 42a750f33ad47cef7d384fcf1aa7304715239ef9 | /CS162/L05/Grid.hpp | 7ff1feda050b8853d9f170b78754543d8d97cab4 | [] | no_license | sunny-aguilar/OSU | 7a6f6e5597778563b9161fb304b83469160104e1 | 1ca59072e1e52f8f03d4ba7c864985aa43334015 | refs/heads/master | 2020-06-28T03:55:16.270665 | 2016-12-07T07:52:58 | 2016-12-07T07:52:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,095 | hpp | Grid.hpp | /*********************************************************************
** Program Filename: Grid.hpp
** Author: Pedro Torres-Picon
** Date: 11/02/2016
** Description: Lab 5 - Part of a predator/prey simulation.
This is the interface file for the Grid class, which includes the
class, variable and function declaratio... |
29b3783c00fd44a5cc420a24a9f8df7a077d0066 | e61a0ebe93280719d9bb34cac52d772f0d814e5f | /hdoj1232.cpp | 2ef516b5923fddeae0e7df2522d09f2ba0d25fd3 | [] | no_license | zhouwangyiteng/ACM_code | ba5df2215500a1482cf21362160ddbf71be0196d | ca3e888bd4908287dd822471333a38c24b0a05db | refs/heads/master | 2020-04-12T06:35:10.160246 | 2017-04-22T07:44:09 | 2017-04-22T07:44:09 | 61,373,600 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,223 | cpp | hdoj1232.cpp | /*************************************************************************
> File Name: hdoj1232.cpp
> Author:
> Mail:
> Blog:
> Created Time: 2016年07月22日 星期五 21时19分10秒
************************************************************************/
#include <iostream>
#include <cstdio>
#include <vector>
#include <... |
80fed0d51a114d0bdec6ca51a254c53a4946c67b | 97615bf3299460cbd623773ecf39830a3831ada2 | /02-basic-cpp/src/04_pancakes.cpp | 1ef3efb3b7788354d53b8fcb8e98563eeda17953 | [] | no_license | Hyp-ed/workshops-2022 | 85216c0201c89b10d4871986398446743cfdd322 | aa0aeb69d57b64d266b87dc6fce63667ece0e8f3 | refs/heads/master | 2023-08-29T21:54:13.167903 | 2021-10-11T09:21:40 | 2021-10-11T09:21:51 | 407,238,298 | 3 | 1 | null | 2021-10-10T16:55:41 | 2021-09-16T16:31:06 | C++ | UTF-8 | C++ | false | false | 589 | cpp | 04_pancakes.cpp | #include "04_pancakes.hpp"
namespace hyped::workshop {
PancakesEatenBy mostPancakesEaten(const std::vector<PancakesEatenBy> all_pancakes_eaten)
{
return {"Franz", -1};
}
std::vector<PancakesEatenBy> moreThanNPancakesEaten(
const std::vector<PancakesEatenBy> all_pancakes_eaten, const int n)
{
return std::vector... |
8df50f1907d428801d9285356ac5794b6087cc54 | cb7da5de0c4e94249eb71d427122f1d95446d99e | /ch15/ex15_11/bulk_quote.cpp | df2b49c0a8a74c826fbb2d71525685e55141df05 | [] | no_license | loveleon/My-Cpp-Primer | a9533077552066d87f69848bfdff6514ae9d030d | 521d884d14f4fd6b3686efc471b6605bc3ce8a17 | refs/heads/master | 2021-01-15T16:41:42.278812 | 2018-10-22T06:01:48 | 2018-10-22T06:01:48 | 99,716,392 | 2 | 1 | null | 2017-08-09T17:36:27 | 2017-08-08T16:58:57 | C++ | UTF-8 | C++ | false | false | 201 | cpp | bulk_quote.cpp | #include "bulk_quote.h"
double Bulk_quote::net_price(std::size_t n)const
{
std::cout << "Bulk_quote net_price method get called." << std::endl;
return n*price*(n>= min_qty ? 1-discount : 1);
}
|
9f76d3a79348854a7edd4d7ec5d395a0a7854181 | bc2af139403d306f97918fd88022b6d63100b3fd | /threadding/dict_based_pass_crack/main.cpp | 0acc44d6c959bde32dd6f30917e475e5704be5c4 | [] | no_license | msiva21/blog_code_examples | 7424deaee081267cd9be17af7fd5ab7c79ab6560 | 72a6c1ff5d51b0487893c68cda8e3c0baba81dbc | refs/heads/master | 2023-03-30T21:00:50.557813 | 2021-04-03T14:38:01 | 2021-04-03T14:38:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,762 | cpp | main.cpp | #include <arg_parser.h>
#include <cracker.h>
#include <chrono>
#include <iostream>
using namespace arg_parser;
int main(int argc, char const *argv[]) {
ArgParser parser("Cracks SHA-256 hashed passwords with dictionaries!");
parser.add_arg(make_flag("--help", "-h", "Prints help message"));
parser.add_arg(... |
40a02e852a6ae0ec3d82e15ba3fef216a3bcab2d | 833a483f74e12c36ab030458ca0bfd7426254964 | /include/core/yexception.hpp | 3f5572aaa45222411f070d4aec7e0dad8dc43e96 | [
"BSD-3-Clause",
"curl",
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | flyinskyin2013/yLib | 28a21848c88df544162b1c9f40748f9afbe21d30 | 0872a3b69ee80a1a46ae0fc9c9a06cb9fcc25c05 | refs/heads/master | 2023-06-24T06:47:00.132507 | 2021-12-12T10:25:51 | 2021-12-12T10:25:51 | 142,399,267 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,028 | hpp | yexception.hpp | /*
Copyright (c) 2018 - 2021 flyinskyin2013 All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the... |
1cad5c20badf2d4b1f12d1e0332cd6e790c72eb3 | 79d858ef0178e1125822f53cb2fbfa6403a1275d | /PeLib/Internal.h | 3461c9d54a5a6632f81ed18bebeeb24adc92a014 | [] | no_license | turingcompl33t/pelib | 0219b335f8fa5cd765389d24d5bc832f32895dd6 | 54ad9cc92849870584daa5272d9fc452235a2823 | refs/heads/master | 2020-11-29T19:08:03.826138 | 2019-12-28T17:29:29 | 2019-12-28T17:29:29 | 230,196,758 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 311 | h | Internal.h | // Internal.h
// Internal (non-exported) utility function definitions.
#pragma once
#include <vector>
#include <string>
#include <memory>
namespace PeLib {
inline void push_if_flag_set(
std::unique_ptr<std::vector<std::string>>& vec,
unsigned short flags,
unsigned short mask,
std::string str
);
}
|
cd1689c9ab935cc28a5d4816cfaff1b4cebfa0f2 | 93fa04a88ebd209fcf8f73df87967bbb1b11722a | /SMLib/SymbolTable.h | 8f1ed883a9ca7d71e78f447373ebf23bf69784a7 | [] | no_license | Wrobelaf/SML | 41afb3e7a27fd70394570c2dbd6f9a1080e77bb4 | e46a4d45fe8ac8129e98d64af24bb48a59355ca6 | refs/heads/master | 2020-12-03T01:57:59.384688 | 2017-06-30T13:30:43 | 2017-06-30T13:30:43 | 95,887,704 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 593 | h | SymbolTable.h | /*
SymbolTable.h
The Symbol table.
*/
#ifndef __SymbolTable_
#define __SymbolTable_
#include "Main.h"
#include "Symbol.h"
namespace SML {
class Main;
class SymbolTable
{
public:
SymbolTable(void);
~SymbolTable();
void Add(Symbol *);
vector<Symbol*>::iterator Find(Symbol *);
const vector<Symbol*>& GetSym... |
434daa35d44e59fa00dc9e9a29ee853e36342045 | 69fe376f63cf4347bbda41d69c2d2964e53188d5 | /FlooringManagerGUI/DlgSplitLineItem.cpp | 28a3047feeb95582cb33ed21d5044b87fe1c981b | [
"Apache-2.0"
] | permissive | radtek/IMClassic | d71875ecb7fcff65383fe56c8512d060ca09c099 | 419721dacda467f796842c1a43a3bb90467f82fc | refs/heads/master | 2020-05-29T14:05:56.423961 | 2018-01-06T14:43:17 | 2018-01-06T14:43:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,621 | cpp | DlgSplitLineItem.cpp | // DlgSplitLineItem.cpp : implementation file
//
#include "stdafx.h"
#include "Flooring.h"
#include "DlgSplitLineItem.h"
#include ".\dlgsplitlineitem.h"
// CDlgSplitLineItem dialog
IMPLEMENT_DYNAMIC(CDlgSplitLineItem, CDialog)
CDlgSplitLineItem::CDlgSplitLineItem(CWnd* pParent /*=NULL*/)
: CDialog(CDl... |
6b7db798e023cff3f867119271c7135364fe5d95 | db022b69a699d7d7563167d16d4707ce7c1e9624 | /Code/Engine/Renderer/ShaderLoader.cpp | d54e7cf9539bb077e26433a3dfc20b98b014c39a | [] | no_license | jamesmdale/Engine | 5bbba581cbb2de318f0fb51fc3026a623328f426 | 769ed38c440018193b6ebc6b7029038910a34d9b | refs/heads/master | 2020-04-17T15:21:35.693512 | 2019-05-08T18:21:48 | 2019-05-08T18:21:48 | 166,695,571 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,558 | cpp | ShaderLoader.cpp | #include "Engine\Renderer\ShaderLoader.hpp"
#include "Engine\Core\EngineCommon.hpp"
#include "Engine\Core\StringUtils.hpp"
#include "Engine\Renderer\Renderer.hpp"
#include "Engine\Core\ErrorWarningAssert.hpp"
// =========================================================================================
ShaderLoader::Sh... |
2bb19e6c0ece25e5ee08e73f5e8ed430fe239c97 | 75e422cf3bde6b3554f898f9e4219b0932c618e6 | /include/genetic_bits/rw_semaphore.hpp | 4b0417bce42e5caf824b6e71bf0bbaccef71be12 | [
"MIT"
] | permissive | vasekp/genetic | ea5efedc890c1ab865ee489095f50a84f526ffff | 362deca13019d0dd03ba527413ba5c12b2b9dfc5 | refs/heads/master | 2020-05-21T16:23:46.712150 | 2017-08-29T16:52:17 | 2017-08-29T16:52:17 | 63,168,040 | 2 | 1 | null | 2017-02-14T12:17:38 | 2016-07-12T15:08:33 | C++ | UTF-8 | C++ | false | false | 6,935 | hpp | rw_semaphore.hpp | namespace gen {
/* Internal functions only to be used from other sources in this directory. */
namespace internal {
/*** Writers' preference ***/
/* Invariants:
* mutex free ⇒ semaphore members and resource constant
* pers_lock free ⇒ no active writes (resource constant)
* w = 0 ⇔ no writers waiting
* r = 0 ⇔... |
de6b055d8936b61723e445feaa71e0b4ab9f9c3c | cfd1b686548c37f39300cd841bf37adc3f2e8680 | /src/canvas-moc.cc | 9846dcc110d8b2e1c45b4a88cc3ec48a6428aacc | [] | no_license | indirivacua/Qplanif | 5772a5be559aafb33f4ba970a2733e48dcd72051 | 05431412f360c43d27b9da55b7d3690c9c401fd3 | refs/heads/master | 2021-03-20T17:24:54.042854 | 2014-12-03T14:26:04 | 2014-12-03T14:26:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,211 | cc | canvas-moc.cc | /****************************************************************************
** Pizarra_Cls meta object code from reading C++ file 'canvas.hh'
**
** Created: Wed Nov 25 15:02:31 1998
** by: The Qt Meta Object Compiler ($Revision: 2.18 $)
**
** WARNING! All changes made in this file will be lost!
*****************... |
cf7893e2dc99c3fb6478abe38daa85a752df68be | cbd874f3f833565418642d73736d42b29e4dfcb7 | /solutions/serg_brych/7/tasks/tests/minute_calculator_tests/minute_calculator_accumulator_tests.cpp | e63beae53524552b99050d916d4952067a7d2d61 | [] | no_license | sidorovis/cpp_craft_1013 | 4f5e67e6df30949d12d92549d1fd7eda62d98247 | 6805cfb7a059a45928c1ac6e086032df18a07524 | refs/heads/master | 2021-01-18T02:18:50.956921 | 2013-12-17T10:17:57 | 2013-12-17T10:17:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,572 | cpp | minute_calculator_accumulator_tests.cpp | #include "test_registrator.h"
#include "minute_calculator_accumulator.h"
void minute_calculator::tests_::minute_calculator_accumulator_tests()
{
minute_calculator::container_minute_data_ptr datafeed;
minute_calculator::minute_calculator_accumulator ac([&](minute_calculator::container_minute_data_ptr data_ptr)
{
... |
bd11c9fb303138740e752b0c2c1e685d8001db55 | a0a5bfcd0fee59aea94ab4ccfa94f7b3bbd783c9 | /data_about_a_person/data_about_a_person/Vid.h | 1a7928e107c130a45c70790a179595af30e7204e | [] | no_license | Elena7127/first | f5e2f14e7f0ec6390ffec396bb7b31e4e380a545 | af7ef6c704fad88a419ff6aeb2e0130be57bd82a | refs/heads/master | 2021-01-01T19:02:20.103264 | 2013-06-05T20:09:05 | 2013-06-05T20:09:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 200 | h | Vid.h | #ifndef VID_H
#define VID_H
#include <QtGui/QMainWindow>
#include <qdatetime.h>
#include <qstring.h>
class Vid
{
public:
Vid(void);
virtual ~Vid(void);
public slots:
void change();
};
#endif
|
ec52e708749c93304bf9d22f167c66b4aaa04388 | 1f40abf77c33ebb9f276f34421ad98e198427186 | /tools/output/stubs/lib/streflop/libm/flt-32/s_asinhf_stub.cpp | 5f4ea2037e83470d923b76d4085f0044377b7638 | [] | no_license | fzn7/rts | ff0f1f17bc01fe247ea9e6b761738f390ece112e | b63d3f8a72329ace0058fa821f8dd9a2ece1300d | refs/heads/master | 2021-09-04T14:09:26.159157 | 2018-01-19T09:25:56 | 2018-01-19T09:25:56 | 103,816,815 | 0 | 2 | null | 2018-05-22T10:37:40 | 2017-09-17T09:17:14 | C++ | UTF-8 | C++ | false | false | 1,152 | cpp | s_asinhf_stub.cpp | #include <iostream>
/* See the import.pl script for potential modifications */
/* s_asinhf.c -- Simple version of s_asinh.c.
* Conversion to Simple by Ian Lance Taylor, Cygnus Support, ian@cygnus.com.
*/
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All ri... |
78d9e49f2e71009bf3f2900a107c2f1c6e71e773 | 4d0b1667b21a92c8420f746bcff8715d271c34cd | /CPP_Learning/8_date_and_time.cpp | 2ab1299d2823c071b5088582234177da4b472693 | [] | no_license | candlewill/CPP_Learning | 18ed1248332249e35f096ef5169e0ee7c5fe3aac | bd0dd738e92719398479be6c148c83ea46c44e65 | refs/heads/master | 2021-01-12T01:26:20.969930 | 2017-03-28T03:23:17 | 2017-03-28T03:23:17 | 78,385,843 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 296 | cpp | 8_date_and_time.cpp | #include<iostream>
#include<ctime>
using namespace std;
int main_8() {
/* not usable in C11
// 基于当前系统的当前日期/时间
time_t now = time(0);
// 把 now 转换为字符串形式
char* dt = ctime(&now);
cout << "本地日期和时间:" << dt << endl;
*/
return 0;
} |
9b848555a23cb00833989fee8ddeab3049d13ae9 | 50e6012d4a1962a06999725d5823cc9cbd2c7347 | /PP/V2/main.cpp | 87794327e0589e88892c9cccc753c97776d3d329 | [] | no_license | Aasfga/tcs-solutions | 25acb0dcfbfb07b5190ee9a7dd310528e7c7d6a9 | 247d2fdb161ed8313f55a7e32eaa91ba3369bab6 | refs/heads/master | 2023-05-06T09:06:33.271445 | 2021-06-07T08:12:02 | 2021-06-07T08:12:02 | 140,331,534 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,178 | cpp | main.cpp | #include <iostream>
using namespace std;
int ADD = 0;
int START = 2000000;
class point
{
int x;
int y;
public:
point(int x = 0, int y = 0)
{
this -> x = x;
this -> y = y;
}
int getX()
{
return x;
}
int getY()
{
return y;
}
void print()
{
cout<< x<< " "<< y<< "\n";
}
};
class queue
{
in... |
7e446b1f10a2834055b638cc36299c05eb19d77a | 4e7f736969804451a12bf2a1124b964f15cc15e8 | /AtCoder/ABC/ABC032/D_two.cpp | 8bac3442f509993360ff601815104927b7c1bfd1 | [] | no_license | hayaten0415/Competitive-programming | bb753303f9d8d1864991eb06fa823a9f74e42a4c | ea8bf51c1570566e631699aa7739cda973133f82 | refs/heads/master | 2022-11-26T07:11:46.953867 | 2022-11-01T16:18:04 | 2022-11-01T16:18:04 | 171,068,479 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,395 | cpp | D_two.cpp | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rrep(i, n) for (int i = (n - 1); i >= 0; i--)
#define ALL(v) v.begin(), v.end()
using namespace std;
using P = pair<int, int>;
typedef long long ll;
typedef pair<ll, ll> pll;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a ... |
5e04869fc403fe254b31b290ca276fd58811af36 | ee829d4b217b53b2aacbb7d7071e02454384d7ab | /CSE-1102[Programming]/bgi/PothChola.cpp | efd0fc6548a74d4e915bd50415e64dd21035d4c0 | [] | no_license | rizveeredwan/CSEDU | e8447d4d62d0c4d6ca0bd2b3d8f759a5d0bc360d | b5148bd8c8c730043c99ac452c6489acffb9e39c | refs/heads/main | 2023-07-15T01:46:50.397540 | 2021-08-29T19:48:33 | 2021-08-29T19:48:33 | 389,812,864 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,157 | cpp | PothChola.cpp | #include "graphics.h"
#include "stdio.h"
void background()
{
setcolor(WHITE);
line (0,200,500,200); // line No 1
line (0,400,500,400); // line no 2
line (500,0,500, 200);
line(500,400,500,600);
line(700,400,700,600);
line(700,200,1200,200);
line(700,400,1200,400);
line(700,0,700,200);
line(0,29... |
70ecbc8b6a3d74618bb70eb7daaf125b603d7b1d | eab3fca43e27d01c33c77d4199f1b076bf997288 | /OpenGL/src/Application.cpp | dd3540c599b0b307b0935e75a980bd9a0bed60f5 | [] | no_license | RodrigoAPJ/OpenGL | 9fd9903030f5a540941c02175c8f76ecf41f4dae | 969b4519d28dbc71ca9b523e1b2053aa780d290d | refs/heads/main | 2023-03-01T02:35:48.004830 | 2021-01-31T18:13:00 | 2021-01-31T18:13:00 | 332,262,983 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,151 | cpp | Application.cpp | #include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <iostream>
#include <FileSystem>
#define STB_IMAGE_IMPLEMENTATION
#include <STB_IMAGE/stb_image.h>
#include "hdr/ShaderProgram.h"
#include "hdr/Model.h"
#include "hd... |
4c885c49b5656a7035d9361bba17ce2c7ac4bd6e | 56974fdffcd79876f516cd42cc70765104671432 | /ConsoleApplication9/StructPred.h | 9790fc69e87bdedaabf8b63fb53cc6702a56f7b4 | [] | no_license | IlyaNu/Information-system-of-the-University | c06d5bb92a4911778bcda5c87e222468b4ca0d49 | 544886dc2679a53edcd9dd6c81a24926ea403550 | refs/heads/master | 2023-02-02T13:23:00.272709 | 2020-12-20T07:49:15 | 2020-12-20T07:49:15 | 323,020,844 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 362 | h | StructPred.h | #pragma once
#include <fstream>
#include "StructsCommon.h"
struct pred
{
const std::string structName = "pred";
const unsigned int QuantityOfElems = 14;
unsigned int id_pred;
std::string pred;
std::string opisanie;
unsigned int id_pred_sotr;
void title();
void request();
void show();
bool read(std::ifstream*... |
a549f01d899fbafe8fc97108b659bb2e65fbb351 | 1de715ae996032ac0a48ec27a783bc6641209698 | /src/models/transformer.h | ffcf51eba49ba6e0b56bb208c2d034522163f664 | [
"MIT"
] | permissive | NLP2CT/norm-nmt | 477b3ad2226773aab13352dd8a7b4fa9910f4656 | b15e904fbfab6595c26fedf58e9023d36b563e95 | refs/heads/master | 2022-11-27T08:09:13.162187 | 2020-08-01T11:21:12 | 2020-08-01T11:21:12 | 268,522,858 | 15 | 0 | NOASSERTION | 2020-06-01T12:59:36 | 2020-06-01T12:59:35 | null | UTF-8 | C++ | false | false | 47,242 | h | transformer.h | // TODO: This is really a .CPP file now. I kept the .H name to minimize confusing git, until this is
// code-reviewed.
// This is meant to speed-up builds, and to support Ctrl-F7 to rebuild.
#pragma once
#include "marian.h"
#include "layers/constructors.h"
#include "layers/factory.h"
#include "models/decoder.h"
#inc... |
9224c1e2dfa78510c5babec2f9f9f4402824509c | ebe46584b6e3e7c3ff7927076334c0a93907c6cd | /Entities/versicherung.h | 012e8d688d6853c49f7432103e26275ddcc6384b | [] | no_license | MrRisoni/Gauss | 119a6d276b6874a1da57a965239f648424faa392 | 9d08ef1b78e2dbc7cdb527dd3fcb8d895d780e26 | refs/heads/master | 2021-01-21T14:02:05.522691 | 2016-05-03T10:42:32 | 2016-05-03T10:42:32 | 34,989,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 486 | h | versicherung.h | #ifndef VERSICHERUNG_H
#define VERSICHERUNG_H
#include <QDate>
#include "teacher.h"
#include "kassen.h"
class Versicherung
{
public:
Versicherung();
~Versicherung();
float getAgreement() const;
void setAgreement(float value);
QDate getDat() const;
void setDat(const QDate &value);
private:
... |
392a2422ac25e8ec8123a19acc93191bf8c52864 | 8a3d97a849a76dbe34a314a0ee0adae74cb6b396 | /Cesar_Algoritmo/include/Func.h | bd9b1ec10dca47a7a0629ad47f7cd18b76e9e2a4 | [] | no_license | patrick03524/Anita-Lovers-Last-Chance | 6febf2f575bd00d3a0fca19b6053806928d26635 | 1aa3aba4329a0bcbd50bafa330bbeeb6e080bd3b | refs/heads/master | 2020-03-27T06:39:18.404593 | 2018-11-24T20:54:59 | 2018-11-24T20:54:59 | 146,124,154 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 143 | h | Func.h | #ifndef FUNC_H
#define FUNC_H
#include <string.h>
#include <iostream>
using namespace std;
int modulo (int,int);
#endif // FUNC_H
|
ae5bdcfd305f50c56f1f5d22cde73b780a7c64e4 | 15106e71a62f8bd87479f0631be5b136b55a5569 | /All-O-OneDataStructure.cpp | 53c0860c6d99e93894d68a81828c3e087dfc0377 | [] | no_license | edgar-323/leetcode | e38ed0d9ea1a6d65c69cdb5552c1cdb5a6d70a6c | 6e09b388662124326263d97790a2a148de97e5a4 | refs/heads/master | 2020-07-15T14:51:42.448172 | 2020-01-22T17:58:02 | 2020-01-22T17:58:02 | 205,587,568 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,569 | cpp | All-O-OneDataStructure.cpp | /*
Implement a data structure supporting the following operations:
Inc(Key) - Inserts a new key with value 1. Or increments an existing key by 1. Key is guaranteed to be a non-empty string.
Dec(Key) - If Key's value is 1, remove it from the data structure. Otherwise decrements an existing key by 1. If the key does not... |
36396d8d18264ccdf130fa46e638ae82eb677ce2 | 93df84a03ed44279be691b0d5b80f41a8aacfc19 | /oic_niconico_project/Classes/Group2.h | 9de07e9019e1d2663c6ce855a4a8f6d8a5c5d831 | [] | no_license | oic-test-group/oic-ishizuka-repository | 9bc83b2fde66a945a32c43f96e97765478158e04 | 78f08f9f5c728ec06d5a5bbce7ea323ecd57aa52 | refs/heads/master | 2020-04-05T23:22:26.848142 | 2015-02-10T05:47:28 | 2015-02-10T05:47:28 | 30,172,501 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 479 | h | Group2.h | //
// Group2.h
// oic_niconico_project
//
// Created by ishizuka-k on 2015/02/07.
//
//
#pragma onec
#include "cocos2d.h"
USING_NS_CC;
class Group2:public Node
{
public:
Group2();
~Group2();
static Group2* create(Point pos);
bool init(Point pos);
private:
void menuCallback(cocos2d::Ref* pSen... |
46d1aa5dcd7723e654d1e61f7cabf5e131792a12 | f5b0ec80b5c531599d9342edaf849e02e03d1538 | /src/synth/waveform.cpp | cb922cd1a49bfa52efe7cc7878f61055666520a2 | [] | no_license | bmolnar/arduino-synth | 4dcc28ab4807371ab82132542d31c4c0ed6ba8b3 | 08f9c774fd644fe1825804de31e2074603aa791b | refs/heads/main | 2023-01-18T15:24:43.458042 | 2020-12-03T01:32:47 | 2020-12-03T01:32:47 | 316,304,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,868 | cpp | waveform.cpp | #include "waveform.h"
namespace synth {
const PROGMEM norm_t WaveformSineTable512[512] =
{
0, 402, 804, 1206, 1607, 2009, 2410, 2811,
3211, 3611, 4011, 4409, 4807, 5205, 5601, 5997,
6392, 6786, 7179, 7571, 7961, 8351, 8739, 9126,
9511, 9895, 10278, 10... |
3c7a0f60b05709c4daa7244622eb4ed796fba5d2 | 1b3edfbd615a21841a7b42decd693bee8045c303 | /Human.h | c57fd63a2cbf7351447576fe0377a96b01074251 | [] | no_license | fancyqlx/Othello | 7ec123ad723440cc764cf2a949bbf686af988688 | ba94d09c95c7c917babc0d8d62b438c2a54b1449 | refs/heads/master | 2021-01-19T16:27:46.111102 | 2017-07-13T14:02:38 | 2017-07-13T14:02:38 | 88,267,131 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | h | Human.h | #ifndef HUMAN_H
#define HUMAN_H
#include <iostream>
#include <utility>
#include <string>
#include <vector>
#include "Board.h"
#include "Player.h"
using namespace std;
class Human: public Player{
public:
/*constructor*/
Human(int c):Player(c){}
/*player makes a move at the square*/
... |
04f92bb605c79a08478e4b829bc3b0f878a6b40f | 7e0ddee160c397ac1ec48486ba1bfd8d55f2d689 | /src/kocca/operations/Operation.h | 73af87157bb987cb493c99de2e82a1c27d9be6e3 | [] | no_license | liris-vision/KOCCA | d41c3afc74b314c8057fd6bb4531686f92d9568a | 422eb4c7ff150f5e3c96da2c2bfab7300a62b2f4 | refs/heads/master | 2021-01-26T01:54:28.475658 | 2020-02-26T13:31:59 | 2020-02-26T13:31:59 | 243,264,879 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,019 | h | Operation.h | #ifndef KOCCA_OPERATIONS_OPERATION_H
#define KOCCA_OPERATIONS_OPERATION_H
#include "../datalib/TimeCodedFrame.h"
#include "../datalib/MocapMarkerFrame.h"
namespace kocca {
namespace operations {
/**
* Operation types
*/
enum OperationType {
KOCCA_RECORDING_OPERATION,
KOCCA_READING_OPER... |
c40d9d4c6414094d93af0eb84b318b6657fca0f3 | db103d1de8f1025e0d817d9bbf67113250459654 | /Filter_PD/PD/Naive_PD/naive_Body.h | e6d88eeb703a82435eaed515d2366a71aa8c0fda | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | TomerEven/Pocket_Dictionary | a2c3b881a6a2edb00f5664e1a443031112996e5f | 29f906855f5e52eec61d00cb6e8fa0fb5e90a8e4 | refs/heads/master | 2020-08-30T09:48:22.222623 | 2020-08-05T08:45:28 | 2020-08-05T08:45:28 | 218,338,483 | 5 | 2 | Apache-2.0 | 2020-05-25T16:35:46 | 2019-10-29T16:55:49 | null | UTF-8 | C++ | false | false | 1,090 | h | naive_Body.h | //
// Created by tomer on 11/5/19.
//
#ifndef CLION_CODE_NAIVE_BODY_H
#define CLION_CODE_NAIVE_BODY_H
#include "../../Global_functions/macros.h"
#include "../../Global_functions/basic_functions.h"
#include "../Non_Contiguous_PD/Body.h"
class naive_Body {
public:
vector<bool> vec;
const size_t fp_size, max_c... |
999515775a7444f393a9dba7bc07698685521f5a | 671bb17c3c7d5b75d4aaa07836fd3d396040b149 | /lightOJ/1239 Convex Fence.cpp | 69b4cc7ac3abd01cbd2b6ef087e382d1dfdfe406 | [] | no_license | pz1971/Online-Judge-Solutions | 31144ca10b5d501c91a3d817348c075272ab4f77 | d3ee4bae47c3ebc08d234288f794b96d0b6beeef | refs/heads/master | 2022-11-09T15:55:55.731337 | 2022-10-26T12:53:16 | 2022-10-26T12:53:16 | 205,677,062 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,346 | cpp | 1239 Convex Fence.cpp | #include <bits/stdc++.h>
using namespace std ;
using LL = long long ;
const double pi = acos(-1.0) ;
class point{
public:
LL x, y ;
point()
: x{0}, y{0} { }
point(LL a, LL b)
: x{a}, y{b} { }
} pivot ;
point operator - (const point &p1, const point &p2){
return point(p1.x - p2.x, p1.y - p... |
94de971e2383eb39645ca3bce2c3d8bd06c2e763 | adf72f7774cb2084d5626bc855c5566d30e916a6 | /FINAL/goose.cc | 622eebd092518097478f91b6212bfc7fc2332640 | [] | no_license | y6hwang/project_monopoly | 05bf21ef6ce1459765a9439783abff006ef550ec | 0c7ba597793a9a3ffb5876632fc84ae9a664c01d | refs/heads/master | 2021-01-10T01:20:12.463463 | 2016-01-17T03:42:34 | 2016-01-17T03:42:34 | 49,801,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 706 | cc | goose.cc | #include "goose.h"
#include <cstdlib>
using namespace std;
Goose* Goose::instance = 0;
Goose::Goose(string name, char c): Player(name,c) {} // ctor
Goose::Goose(std::string name, char c, int cup, int _money, int _pos): Player(name, c, cup, _money, _pos){};
//Goose::~Goose(){}
Goose* Goose::getInstance(string nam... |
f25ddb105d4967527cc5ddcad57ccfd499842820 | ba1e52ce3a2deaca7d81ae49e208643320e030d5 | /archivo.h | 13d4e0a0bc643ec9ca77b414ec0640147460900d | [] | no_license | eliannevado/Proyecto | 09fb38fc900cd4fb6f9cb006e6b861d9d51b474e | 2ebf8eb19906d3e0a9bda858599e77f9c6124ae9 | refs/heads/master | 2020-08-31T11:37:29.322282 | 2019-10-31T12:30:01 | 2019-10-31T12:30:01 | 218,681,531 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,273 | h | archivo.h | #include <iostream>
#ifndef ARCHIVO_H
#define ARCHIVO_H
#include <string.h>
#include <cstdlib>
#include "palabra.h"
#include "seguridad.h"
#include <fstream>
using namespace std;
class Archivo //Declaramos la clase con el nombre Persona
{
private: //a partir de aquí todos los miembros serán privados
//los da... |
40cc72bd0776e9b47c6969f83d6060f5f4d9e73d | a83c37d6baebb5923050b06d268d40bf1a04b34d | /mathreco/include/relation.h | f9f352c0688b9dc09cd28b97741a2c959e9e511f | [] | no_license | h2oloopan/mathbrush-server | 96b802726ef8c2a5fad644fbb1f7e464991bd0a2 | 4725165d390fefbda72461b9217f2502e78a8956 | refs/heads/master | 2021-01-17T06:23:44.627313 | 2014-12-03T00:15:30 | 2014-12-03T00:15:30 | 25,378,065 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,495 | h | relation.h | #ifndef RELATION_H_
#define RELATION_H_
#include "grammar-fwd.h"
#include "rect.h"
#include <string>
#include <vector>
namespace scg
{
class math_recognizer_base;
typedef size_t rclass_t;
extern const rclass_t INVALID_CLASS;
extern const rclass_t AGGREGATE_CLASS;
extern const rclass_t SYMBOL_CLASS;
extern const ... |
e24c442a039261d45e725ce91f891d7a66eaf661 | 04bcdccf8386ddf39db1d638f0b0083e78ae99be | /Classes/UI_Interface/UI_ModalDialogue_Layer.cpp | 8cb580404df42c7f529f039b615eb7a826c73f94 | [] | no_license | hackerlank/son | 3d71f9019fefea4898cf20601995231de000cccf | bf9175241d4f10ba4461c798f2752d1a0634bb3d | refs/heads/master | 2020-03-12T21:30:59.635554 | 2016-06-28T09:39:49 | 2016-06-28T09:39:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,916 | cpp | UI_ModalDialogue_Layer.cpp | #include "UI_ModalDialogue_Layer.h"
#include "Item_System/Item_Desc_Config_Mgr.h"
#include "Common/GameDefine.h"
USING_NS_CC;
//USING_NS_CC_EXT;
using namespace ui;
#define MODAL_DIALOGUE_ZORDER 9999
UI_ModalDialogue_Layer* UI_ModalDialogue_Layer::s_pInstance = NULL;
UI_ModalDialogue_Layer::UI_ModalDialogue_Layer(v... |
8c1ec305e9a007b989bcc5d297f106e6a3ff1e09 | 8feb6fd84768421c2433fed060dda46f57a8c98c | /Algas-master/AlgasGrandes_v01/lib/fourier.h | cedbd8197c9fc8869dc45501659a44c8df2ca775 | [] | no_license | alviur/Algas | 3a5b163c0029c9cc1b299d49f337cabfbc64c27d | ca93709d5a88135704e92e344e1eb75ef3457c76 | refs/heads/master | 2020-12-24T13:44:13.247717 | 2015-04-14T19:40:25 | 2015-04-14T19:40:25 | 26,636,566 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 304 | h | fourier.h | #ifndef FOURIER_H
#define FOURIER_H
#include <stdio.h>
#include <stdlib.h>
#include <opencv2/opencv.hpp>
#include <qdebug.h>
//namespace
using namespace cv;
using namespace std;
class Fourier
{
public:
Fourier();
~Fourier();
cv::Mat getFourier(cv::Mat input);
};
#endif // FOURIER_H
|
c8bc49dbd5503e695a54378c56346c570fcbc1f3 | 8d294c2c22b42d0f8ec52a5cbcaedf6f5a3d90f5 | /Sqrt(x)/Sqrt(x)/Sqrt(x)/main.cpp | c9cffebb99d3b6decfd2f9548877f9c3a7629941 | [] | no_license | xhe12/Leetcode | 91a3b28ea1fb4d620a4462f3b72f93023c319a82 | 8249fcd4eae3d01c1fca95c39c8ea6626ac73838 | refs/heads/master | 2020-09-19T21:54:05.844776 | 2020-02-03T21:47:54 | 2020-02-03T21:47:54 | 224,306,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,117 | cpp | main.cpp | //
// main.cpp
// Leetcode #69: Sqrt(x)
//
// Created by Xuan He on 12/8/19.
// Copyright © 2019 Xuan He. All rights reserved.
//
#include <iostream>
#include <math.h>
using namespace std;
class Solution {
public:
int mySqrt(int x) {
int left = 0;
int right = x;
int root;
... |
a20a40883e19618323a8e3ce713f04d2cf31a18f | d7352a152081b4937a37db88fdf5ac60c485b121 | /01-elementary/02-blocks/src/blocks_unittest.cc | e0b71e60ad989933b32411c3d0e42d4bbdbfbde9 | [
"MIT"
] | permissive | movax01h/cpp-practice | 05b5367d40ea2fc4ed70d5a194aaa122405014d3 | ee81a2502e662f55fc1587fb3cb9caf783b8694c | refs/heads/master | 2023-04-01T12:50:09.330635 | 2018-08-22T23:21:23 | 2018-08-22T23:21:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 889 | cc | blocks_unittest.cc | // Copyright (c) 2018.
// Author: Anton Okhontsev <anton.ohontsev@gmail.com>
#include "blocks.h"
#include <string>
#include <gtest/gtest.h>
class BlocksTests : public ::testing::Test {};
TEST_F(BlocksTests, CreateBlock) {
blocks::Block block(10, 20, 30, 5);
EXPECT_EQ(block.GetMass(), 10 * 20 * 30 * 5);
}
TEST... |
a33464be2a4faa331317dd360a1788f6cd51e295 | 650b25db432df4e8b9f6560e23d7c96402eef821 | /Documents/WorldMap.hh | 67f97fa3311ca6c17a94aa7c72a26fa7955d1c76 | [
"BSD-2-Clause"
] | permissive | hrbrmstr/graphiti | 1bd00870e9f8075fb7dd6b5a119f03326c159612 | 56d85e5262b76dc6ce4f213a4d80486e015de1b7 | refs/heads/master | 2023-03-17T20:21:11.832339 | 2016-11-03T22:17:19 | 2016-11-03T22:17:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,118 | hh | WorldMap.hh | #pragma once
#include <raindance/Core/Headers.hh>
#include <raindance/Core/Buffer.hh>
#include <raindance/Core/Transformation.hh>
#include <raindance/Core/Camera/Camera.hh>
#include <raindance/Core/Batch.hh>
class WorldMap : public Document::Node
{
public:
struct Node
{
glm::vec2 Location;
glm::vec4 Color;
f... |
8ec538176845ef10e68e583c341bf7a5fce25bf4 | 5669578ccad0d67b8b280dc4c5ed0d71acd490e9 | /Gravity/Classes/GRBlackholeLayer.h | d48e7213060e48e6e521d0f04b2f9149b60c24cb | [] | no_license | lulyon/GravityTheMobileGame | 3fe35fe17983125eedea2b7df949dd1ea1bccb5c | 3e191c9fb01d09981c5684103e6359c3fbd23cee | refs/heads/master | 2021-01-10T07:38:40.574154 | 2016-03-22T09:56:03 | 2016-03-22T09:56:03 | 54,460,262 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 763 | h | GRBlackholeLayer.h | //
// GRBlackholeLayer.h
// Gravity
//
//
//
#ifndef GravityTemplate_GRBlackholeLayer_h
#define GravityTemplate_GRBlackholeLayer_h
#include "GRPropBaseLayer.h"
USING_NS_CC;
using namespace cocostudio;
using namespace cocos2d::ui;
enum BlackholeTag
{
Black_Hole = 10,
};
class GRBlackholeLayer : public GRPropB... |
cd9ce710d73b57b694733ae9be998149bebbbac7 | 8de4524c7b23a12acd20f4d594a813ad74dcbaa4 | /DeviceAdapters/ASIStage/ASIStage.h | 74e1c28ea892ec96237ca3f763b203b0cfa9e84d | [
"BSD-3-Clause"
] | permissive | haiimz1234/mmCoreAndDevices | 1de2efc063a2e3dfb48e25487c6f2a86bb45a64e | f3550dc754d0fdc3e51fd34159bf30365691c777 | refs/heads/main | 2023-08-22T01:48:06.590268 | 2023-08-10T21:44:13 | 2023-08-10T21:44:13 | 370,597,847 | 0 | 0 | null | 2021-05-25T07:07:03 | 2021-05-25T07:07:03 | null | UTF-8 | C++ | false | false | 4,401 | h | ASIStage.h | /*
* Project: ASIStage Device Adapter
* License/Copyright: BSD 3-clause, see license.txt
* Maintainers: Brandon Simpson (brandon@asiimaging.com)
* Jon Daniels (jon@asiimaging.com)
*/
// Contributors:
// Jizhen Zhao based on code by Nenad Amodaj, 4/2007
// Modified by Nico Stuurman, 12/2007
... |
0cac1ea778effeeace8a2f9f24553bb7e70b148f | 42a0d45ff95993beefb92941560e39868d738435 | /user_drivers/GunControlRegister.cpp | b2c4c3479d291bde86bdf2715a67e896e2ae6b35 | [] | no_license | ECE453-WAGGS/Gun | 4385f4aad26efc784b38e03be2612a69a46463ab | 6113b3c94ba497ec0a92071cd6920e74856e69c1 | refs/heads/master | 2020-06-04T17:16:54.784092 | 2015-05-01T23:09:23 | 2015-05-01T23:09:23 | 32,836,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 537 | cpp | GunControlRegister.cpp | #include "GunControlRegister.h"
const std::string GunControlRegister::GUN_CTRL_DEV = "/sys/kernel/ece453_general_register_77200000/write";
GunControlRegister::GunControlRegister(std::string filename):
OutputRegister(filename)
{
}
void GunControlRegister::write(bool fire, bool flywheels)
{
setBit(FIRE_BIT, fire);
... |
4484174f74ea12bc24c1f0e5541802810cc747f8 | 0b6c04cc620721f9b6c54ccd6f434b450a2c5bd2 | /src/main.cpp | 17c589ecb2b96f9893b61bcbacb25b792114fa98 | [] | no_license | dekar/makeCPPinterruptvectors | 32f2cbf8fc25ffba7306f8e4d7d2f08982691fba | e05cc1ca73e2b82f8c651df13457fc910c96f07e | refs/heads/master | 2021-01-20T06:20:13.978462 | 2014-11-11T12:30:18 | 2014-11-11T12:30:18 | 26,483,811 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,448 | cpp | main.cpp | #include <QCoreApplication>
#include <QFile>
#include <QStringList>
#include <QTextStream>
#include <QString>
#include <QDebug>
QTextStream out(stdout);
QString printH(QString mcuName, QString list, QString prototypes);
QString printCPP(QString mcuName, QString list, QString pragma);
class FunctionNote
{
public:
... |
06277d92875e38c862381a8dc0d9ccf4bdc67b13 | 817cc371e2eb56f37c400b7f96d658d0683476b1 | /201905_practice/gg/f.cpp | 6fa4ea2e67ea2fdf0a15c6e2232c678cff035404 | [] | no_license | KanadeSiina/PracticeCode | c696495bd71395648ac62a41d0a41869f50c5eb4 | 146c8d5889eee7917a355feb8b03d1415a29ae9d | refs/heads/master | 2020-09-05T00:49:29.165600 | 2020-06-30T12:48:15 | 2020-06-30T12:48:15 | 219,937,221 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,867 | cpp | f.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#ifndef ONLINE_JUDGE
#define dbg(x...) do{cout << "\033[32;1m" << #x << "->" ; err(x);} while(0)
void err(){cout << "\033[39;0m" << endl;}
template<template<typename...> class T,typename t,typename... A>
void err(T<t> a,A... x){for (auto v:a) cout << v... |
967e7df87288e430e1458b64fa6841883b9ce8cc | 636c63a4c2fa6a6f2e5faa9aa35b1c6ca48b2a09 | /pat_jia/pat_1069.cpp | e0791f0c1dd3fccda6778743b0f30a16002504ec | [] | no_license | HankDaly/pat | f9d06af51dadb2d03c3ab89734f9aa557c8a2c6c | 1e28ccb9df0130795dc43d52470571e29716df6f | refs/heads/master | 2020-03-28T01:58:54.025339 | 2019-02-28T12:29:34 | 2019-02-28T12:29:34 | 147,538,558 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,691 | cpp | pat_1069.cpp | /*
1069 The Black Hole of Numbers (20 分)
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order, a new number can be obtained by taking the second number from the first one. Repeat in this manner we will soon end ... |
b73df024a4342aa04a03197ccc829cba72a7ce64 | d1844c35b716e2219f8954ce6389ac283a9d52e2 | /games/tristan_nogo.cc | d49625763f5718e67a447b05e3718b7cf6a3d69f | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gemasphi/Polygames | 4733985274bc0a97aa879ff26488fcc7e6459503 | a3efb2e7e91d0e8f56e71c8e18b0ee923a4d1903 | refs/heads/master | 2021-03-08T06:26:42.528939 | 2020-10-15T20:49:49 | 2020-10-15T20:49:49 | 246,326,157 | 1 | 0 | MIT | 2020-03-10T14:40:42 | 2020-03-10T14:40:41 | null | UTF-8 | C++ | false | false | 1,154 | cc | tristan_nogo.cc | /**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <list>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ti... |
d711e08783d3b69e4c32894788a61e5aff895fc8 | 53b62066493bbfb0a8492f4f065af7abbc0314be | /_minecraft/src/ai/ZergMultiply.hpp | c64f8998282c0995cdf4d753e644a5d7fbec2f25 | [] | no_license | mevoroth/meet-minecraft-bots | 5d39892c27322bbb1837845d1fdefa961eb45e96 | 8e699f797eaad7f2751e5c9bdacf3e697f11f3b9 | refs/heads/master | 2020-03-25T17:24:21.352175 | 2014-08-23T23:54:45 | 2014-08-23T23:54:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 87 | hpp | ZergMultiply.hpp | #ifndef _ZERG_MULTIPLY_HPP_
#define _ZERG_MULTIPLY_HPP_
namespace DatNS
{
};
#endif
|
93fb86bf84dd5e9cc86ab8a0d8084494738a1af9 | c42cbe94d0bfd1b68392a84d6c7f045918d73f35 | /Scanner/src/Node.h | 152ed278464171ca570bd5fed249a866d717ba47 | [] | no_license | coltonmorris/compiler | 34c4e9cc7f6c06ed5f8a8828ab8cc78cde48dcbd | ec7dbc5ff33f4add9855da2e5b6720054ca108e1 | refs/heads/master | 2020-12-30T22:43:55.297035 | 2017-02-01T21:49:55 | 2017-02-01T21:49:55 | 80,657,295 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,803 | h | Node.h | #ifndef _NODE_H_
#define _NODE_H_
#include <cstdlib>
#include <vector>
// forward declarations:
class Node;
class StartNode;
class ProgramNode;
class BlockNode;
class StatementGroupNode;
class StatementNode;
class DeclarationStatementNode;
class AssignmentStatementNode;
class IdentifierNode;
class E... |
d030412d0e092822bdbc775ee604d1178c940059 | afb7006e47e70c1deb2ddb205f06eaf67de3df72 | /gfx/skia/skia/include/encode/SkJpegEncoder.h | 5899fc769ffc97cd25964025e66a6ef1d8f30759 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | marco-c/gecko-dev-wordified | a66383f85db33911b6312dd094c36f88c55d2e2c | 3509ec45ecc9e536d04a3f6a43a82ec09c08dff6 | refs/heads/master | 2023-08-10T16:37:56.660204 | 2023-08-01T00:39:54 | 2023-08-01T00:39:54 | 211,297,590 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,749 | h | SkJpegEncoder.h | /
*
*
Copyright
2017
Google
Inc
.
*
*
Use
of
this
source
code
is
governed
by
a
BSD
-
style
license
that
can
be
*
found
in
the
LICENSE
file
.
*
/
#
ifndef
SkJpegEncoder_DEFINED
#
define
SkJpegEncoder_DEFINED
#
include
"
include
/
encode
/
SkEncoder
.
h
"
#
include
"
include
/
private
/
base
/
SkAPI
.
h
"
#
include
<
mem... |
d8b6592c89afc00f9ba93decb14dd5257e963217 | 6b0bf63add850e47c461ae084439477bd8501f7c | /Heap Data Structure CPU scheduling.cpp | f9e853d5f4b9200577351c347d4867642894c0ef | [] | no_license | Vishnu6101/ADS-Lab-3rd-Sem | 984ac9e89e2da2771ed904eabaebeba309630ce5 | e777a1561162690bcb3dcc13cb680f26c10ba9be | refs/heads/main | 2023-06-18T17:55:35.802835 | 2021-07-19T06:27:07 | 2021-07-19T06:27:07 | 367,284,988 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,294 | cpp | Heap Data Structure CPU scheduling.cpp | #include<bits/stdc++.h>
using namespace std;
// Structure for storing CPU jobs with priority and job id.
struct CPUjob
{
int priority,job_id;
};
// Class containing the necessary functions for building a min heap
class CPU_JOB
{
public:
CPUjob *jobList;
int capacity;// total size of the heap... |
197bedeee8ca0193fd40609b684f1f60c80f7f96 | d08d5bf8fd21587763a94dea1ac775ec0388eb70 | /resources/ModelImporter.hpp | 08bcd6541cac292876ed845323afad8ef3e01769 | [
"MIT"
] | permissive | ibequa/flexo | c1fa7a7fd28b46659702380c86bf8f16f2f1014a | 93b9b1287f33bd3420e33bf4a7bc5961d680b5e1 | refs/heads/master | 2021-01-09T20:39:47.863350 | 2016-07-13T13:53:17 | 2016-07-13T13:53:17 | 63,248,577 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 735 | hpp | ModelImporter.hpp | //
// ModelImporter.hpp
// Flexo
//
// Created by Ilya on 06/05/16.
// Copyright © 2016 Flexo. All rights reserved.
//
#ifndef ModelImporter_hpp
#define ModelImporter_hpp
#include <string>
#include <assimp/scene.h>
#include "BaseImporter.hpp"
#include "ModelResource.hpp"
class Mesh;
class ModelImporter : publi... |
4de4ef9a54c6c67ff1c12137fa2736323470d038 | d0de92ee926eba5682578efdf3f6807e71fe634f | /plot.cc | 3276ccaedf134383f79d95d9c36e18d0632c1b11 | [] | no_license | mzks/ppb4exp_kobe | 204c0b22ee0b324dca60648df683e5050b08fe97 | f2a2c12d57fd2d4231c972a4419a4ea990c168b6 | refs/heads/master | 2021-01-01T05:28:39.599355 | 2016-05-17T07:07:23 | 2016-05-17T07:07:23 | 58,997,099 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 781 | cc | plot.cc | {
double hiv[200];
double hive[200];
double p1[200];
double p1e[200];
double p2[200];
double p2e[200];
ifstream ifs("peak.txt");
int i = 0;
const double f = 3.26875e16;
const double fe= 5.48510e11;
const double e=1.60217662e-19;
while (ifs >> hiv[i] >> p1[i] >> p1e[i]>> p2[i]>>p2e[i]){
hive[i]=0.5;
p1... |
f6388825fd652d027557938d30156079ce5e6bdd | a01e2a0bf945ee6cb3fa5a388d204862d5da8b1e | /Code/extraction/StraightLineGeometrySelector.cc | a9d6ea7846ccf528e0ba58c8be9102ff33993751 | [] | no_license | yieldthought/hemelb | 36661748607ede75dbffa1c10ab1071368ff0925 | 333b9bb25bee825f49dd9fe4b816ad57e911c5d7 | refs/heads/master | 2020-12-28T20:08:41.478194 | 2015-04-23T09:42:43 | 2015-04-23T09:42:43 | 49,568,972 | 0 | 0 | null | 2016-01-13T11:13:08 | 2016-01-13T11:13:07 | null | UTF-8 | C++ | false | false | 2,202 | cc | StraightLineGeometrySelector.cc | //
// Copyright (C) University College London, 2007-2012, all rights reserved.
//
// This file is part of HemeLB and is CONFIDENTIAL. You may not work
// with, install, use, duplicate, modify, redistribute or share this
// file, or any part thereof, other than as allowed by any agreement
// specifically made by you ... |
f7c125b8842077301a13833ee6f90884500b6b0b | 1501f50acc22b9e915d04df435210d68e2a907ee | /include/GlobalNamespace/BloomPrePassBackgroundSpriteRenderer.hpp | 1d49e2fd1ffa13f25edfb9c360152ae38e7c0755 | [
"Unlicense"
] | permissive | sc2ad/BeatSaber-Quest-Codegen | cd944128d6c7b61f2014f13313d2d6cf424df811 | 4bfd0c0f705e7a302afe6ec1ef996b5b2e3f4600 | refs/heads/master | 2023-03-11T11:07:22.074423 | 2023-02-28T22:15:16 | 2023-02-28T22:15:16 | 285,669,750 | 31 | 25 | Unlicense | 2023-02-28T22:15:18 | 2020-08-06T20:56:01 | C++ | UTF-8 | C++ | false | false | 4,431 | hpp | BloomPrePassBackgroundSpriteRenderer.hpp | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: BloomPrePassBackgroundNonLig... |
fbaab45dbb0c5c3e7386acee00f9d176da277031 | ed8d8c0ac212f2227f8238c9f609440b0d975552 | /Network/OSPFv2/Neighbor/OSPFNeighborState.h | dbd63bd6525839f4d80d4f52bb3933d9aba20871 | [] | no_license | vonami/inet-flc | bb3ddf69b702a6936798231748d1e846784f6fb1 | db1df841da2db9afcc8f621d4b69bc5801bbdcff | refs/heads/master | 2021-01-01T19:39:20.455074 | 2008-10-05T19:30:18 | 2008-10-05T19:30:18 | 55,999 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 507 | h | OSPFNeighborState.h | #ifndef __OSPFNEIGHBORSTATE_HPP__
#define __OSPFNEIGHBORSTATE_HPP__
#include "OSPFNeighbor.h"
namespace OSPF {
class NeighborState {
protected:
void ChangeState (Neighbor* neighbor, NeighborState* newState, NeighborState* currentState);
public:
virtual ~NeighborState () {}
virtual void ProcessEvent (Ne... |
46302033ccf98aa74592470c806588a309b33132 | b8706277433e0cdfc06ea04a5f341e2ebf8fae50 | /FlightControl/PID/PID.ino | ac1823179835d9e77ca60ad33099d92d6b4db32d | [] | no_license | sahilshah379/TARC-2018-2019 | 2643c99c364c07c098896acb11555111baf03a8d | 060e52b6b1f625101b8f7ac7c70ef4734d1545e7 | refs/heads/master | 2020-04-28T13:50:12.847275 | 2019-05-13T22:22:37 | 2019-05-13T22:22:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,336 | ino | PID.ino | #include <MPU9250.h>
#include "EEPROM.h"
const float beta = 0.1f;
const float sampleFreq = 512.0f;
const float twoKp = 2.0f * 0.5f; // 2 * proportional gain
const float twoKi = 2.0f * 0.0f; // 2 * integral gain
float integralFBx = 0.0f, integralFBy = 0.0f, integralFBz = 0.0f;
float q0 = 1.0f, q1 = 0.0f, q2 = 0.0f, q3... |
9e692e9274a1de632e0ebaf80ff0037b9f221924 | ff0cc7e931d038a9bd9a56665b20cd8dab071959 | /src/Modules/wxMitk/Applications/wxMitkScrolledWindow/wxMitkScrolledWindow.h | 56d78e59682a99b596c86cd82cca7807ab295e12 | [] | no_license | jakubsadura/Swiezy | 6ebf1637057c4dbb8fda5bfd3f57ef7eec92279b | bd32b7815b5c0206582916b62935ff49008ee371 | refs/heads/master | 2016-09-11T00:39:59.005668 | 2011-05-22T19:38:33 | 2011-05-22T19:38:33 | 1,784,754 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 674 | h | wxMitkScrolledWindow.h | // Copyright 2007 Pompeu Fabra University (Computational Imaging Laboratory), Barcelona, Spain. Web: www.cilab.upf.edu.
// This software is distributed WITHOUT ANY WARRANTY;
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#ifndef wxMitkScrolledWindow_H
#define wxMitkScroll... |
9dd3189e8bf91547035c8a6199a73d68f50cad96 | 412a08f5d43fcd9dc5e06d2f587efa578ea40e8a | /BOJ/Brute-force/boj16198_에너지_모으기.cpp | 5b19896613b26b14eb47275f13284653f2ca6a93 | [] | no_license | onww1/Problem-Solving | 19b920f5f4caec50a3aded971e1f1e630e8b6c46 | 86cc8854ef0457f8f7741cbae401af5038f8ae05 | refs/heads/master | 2022-06-07T15:47:45.685775 | 2022-05-25T12:59:59 | 2022-05-25T12:59:59 | 130,528,244 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 717 | cpp | boj16198_에너지_모으기.cpp | #include <algorithm>
#include <cstdio>
using namespace std;
int n, mx, w[10], lim;
void solve(int v, int sum) {
if (v == lim) {
mx = max(mx, sum);
return;
}
for (int i = 1; i < n - 1; ++i) {
if (v & (1 << i)) continue;
int mul = 1;
for (int j = i - 1; j >= 0; --j)
... |
778ed83d9ef36966aa9f2960030a81d026e1b2e3 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-kendra/source/model/UpdateDataSourceRequest.cpp | adb6d48156ab2246012a2bfb7d6761e0b95cd1a7 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 2,150 | cpp | UpdateDataSourceRequest.cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/kendra/model/UpdateDataSourceRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::kendra::Model;
using namespace Aws::Utils::Json;
using n... |
f0fd1049466acc1e6780892552734d14ed2c313f | 3c8512ad96bf8bd5447b3917662545e675798c41 | /Hunter/TestScene.cpp | 12d6559391d0468f2c82c1ffb943c6f61bbc8aae | [] | no_license | Cesea/Portfolio | 3c9788e0e77ff47f95406bcce94a672b8a6ec757 | 9575951de5cc057525be07a0857d1f3684cd5c43 | refs/heads/master | 2021-08-28T14:02:43.186812 | 2017-12-12T07:12:57 | 2017-12-12T07:12:57 | 109,194,692 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,830 | cpp | TestScene.cpp | #include "stdafx.h"
#include "TestScene.h"
bool TestScene::SceneInit()
{
bool result = true;
GAMEOBJECTFACTORY->SetCurrentScene(this);
video::StaticXMesh::_sEffectHandle = VIDEO->GetEffect("StaticMesh.fx");
video::SkinnedXMesh::_sEffectHandle = VIDEO->GetEffect("SkinnedMesh.fx");
//터레인 로드
Terrain::TerrainConf... |
ac41a9c88c9f1a82ff1ffce76e1465ae515f699a | b4c88ea247bbe0892cca93f77b7172c3e48b0c42 | /system/portable/devices/block/include/OSDeviceAddressablePartition.h | 97d4216a26c245278f9e243a0a1ce8992edd9450 | [] | no_license | micro-os-plus/micro-os-plus-i | 09c420c846ad4cf6f8b91144001b5fc2880c7d7b | d17eb4471b754eeb868bba80f2b1d5f9021443b1 | refs/heads/master | 2023-05-27T06:00:27.536050 | 2023-05-20T07:43:50 | 2023-05-20T07:43:50 | 62,032,946 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 620 | h | OSDeviceAddressablePartition.h | /*
* Copyright (C) 2011 Liviu Ionescu.
*
* This file is part of the uOS++ distribution.
*/
#ifndef OSDEVICEADDRESSABLEPARTITION_H_
#define OSDEVICEADDRESSABLEPARTITION_H_
#include "portable/kernel/include/OS.h"
#include "portable/devices/block/include/OSDeviceAddressableSynchronised.h"
cl... |
21ecf01a9b2bfe17cc95aff8f317173fc0e63d62 | c20bae127ebcc29b7966f0ef6b11e00ef7ec7d69 | /src/debug/entry/cpp/problems/429.cpp | 69372a6b304c60ce7c13218274ddbbc5b6c57436 | [
"MIT"
] | permissive | KirinRyuuri/vscode-debug-leetcode | 2de34e6e0af96e21452fce836623fec55a686648 | 6d2c1e48343ade75bc191a872b714dbfb18e45a0 | refs/heads/master | 2023-06-01T20:00:45.134970 | 2021-06-18T05:12:31 | 2021-06-18T05:12:31 | 377,810,780 | 0 | 0 | MIT | 2021-06-17T11:43:52 | 2021-06-17T11:43:52 | null | UTF-8 | C++ | false | false | 910 | cpp | 429.cpp | Node *parseNodeElement(cJSON *node)
{
if (node->type != cJSON_Number)
{
return nullptr;
}
vector<Node *> child{};
return new Node(node->valueint, child);
}
Node *parseNode(const cJSON *node)
{
if (node->type != cJSON_Array)
{
throw "Parse parameter error, expect NumberArray"... |
270e849b963b5a8daf4c58f99b7f75de3977454d | 9ba59a5d28c724cb158f6252d76f3f2ad4a38f80 | /problem 2/BlockingHashtable.cpp | cd2b6fe16457542abfb9fa28829921d6f0fbf4f8 | [] | no_license | rishav1606/Concurrent_DataStrucutres | 586f98998a2246ea9d7f3f2b6d0b9801bdd055cb | 5a9333d1fb44c8474553e436121941b9e3b86035 | refs/heads/main | 2023-04-21T17:28:33.654651 | 2021-05-12T14:50:38 | 2021-05-12T14:50:38 | 366,751,149 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,157 | cpp | BlockingHashtable.cpp | #include<bits/stdc++.h>
using namespace std;
#define SIZE 4096
#define MAX_KEY 32
#define MAX_VALUE 256
#define THREADS 1
// error numbers
#define ENOSPACE -1
#define ENOWORD -2
long BUCKET = SIZE; // No. of buckets
// Pointer to an array containing buckets
list<string> *table = new list<strin... |
df4a88821357b70bf24fc047cdc58ab6abfa21ec | 3d6358515a1bf6b91e31011ca03c5bbd0dd035e0 | /POV/LedStripController/LedStripController/LedStripController.ino | 19337283c636e166611a35bfe9c5f7a5b562945c | [
"MIT"
] | permissive | rgborck/TechnologyCurriculum | 40c9476b5a807ba5ec215c1917f06b50f6f9ef48 | 41e8873fdf4dbc6ce5b784af5eb996821dc513b9 | refs/heads/master | 2016-08-05T13:29:21.379265 | 2016-02-15T21:11:42 | 2016-02-15T21:11:42 | 24,747,292 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,013 | ino | LedStripController.ino | const boolean a [][8] PROGMEM = {
{ 0, 0, 1, 1, 1, 1, 0, 0 },
{ 0, 0, 1, 1, 1, 1, 0, 0 },
{ 1, 1, 0, 0, 0, 0, 1, 1 },
{ 1, 1, 0, 0, 0, 0, 1, 1 },
{ 1, 1, 1, 1, 1, 1, 1, 1 },
{ 1, 1, 1, 1, 1, 1, 1, 1 },
{ 1, 1, 0, 0, 0, 0, 1, 1 },
{ 1, 1, 0, 0, 0, 0, 1, 1 }
};
const boolean b [][8] PROGMEM = {
{ 0, 1,... |
9f6cf9ed03fb4754b57dfe40f926ce16641369d8 | 09b638fe06c8de84a9683a05cb637520d3a6d000 | /subject450.cpp | 72239ca8e26bee842c9f5a40ecce6f995f459ac8 | [] | no_license | 1395724712/Leetcode | 8532cbb738b9016fcb3fe0b1879b376645629f30 | 65966e38647ee7b6e43f22ee2d772d690c009b77 | refs/heads/master | 2023-03-16T14:36:07.337683 | 2021-03-13T02:10:16 | 2021-03-13T02:10:16 | 294,860,809 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,196 | cpp | subject450.cpp | /**
* Copyright@wh
* Author:wh
* Date:20210219
* Description:删除二叉搜索树中的节点
* Resolution:找到,然后删除,最后拼接
*/
class Solution {
public:
TreeNode* deleteNode(TreeNode* root, int key) {
//终止条件
if(root==NULL){
return root;
}
if(key>root->val){
root->right = deleteNo... |
5757673d3a322b9808db4450d5322ac6b27dead3 | 949312a2c7e5669b3203f359a76a513cb8cf5b60 | /CP/Toph/Bpl mubarak.cpp | d9f73633769b3f76ed5e7a21d94db7a0c60bf674 | [] | no_license | Mufassir-Chowdhury/Programs | d173337e99bbacf35aeb964a416252cf5847bcfa | 0949d56680c67ed364b8fdaa1e175cae7e8a74d5 | refs/heads/master | 2023-03-24T02:24:25.668564 | 2021-03-20T11:25:00 | 2021-03-20T11:25:00 | 290,855,422 | 1 | 0 | null | 2021-03-20T11:25:01 | 2020-08-27T18:45:33 | HTML | UTF-8 | C++ | false | false | 718 | cpp | Bpl mubarak.cpp | #include<iostream>
#include<string>
using namespace std;
int main(){
int n;
cin >> n;
while(n--){
string balls;
int num = 0;
cin >> balls;
for(auto i: balls)
if(i != 'W' && i != 'D' && i != 'N')
num++;
if(num > 5){
... |
96a9a71448c8e26922f7ad30f06e3bc4b665df8b | 148ca8fc73bae6d2bf4e200786556ad51e9ad769 | /Sinals_Slots_Using_Threads/sender.h | bd167b6364b63adb4191c49b47a28b198e69297a | [] | no_license | thirumoorthy/QT_Samples | a6aa28bf5dbe5bfb3a7f832ca160f633fbd2c01e | 81105795c73f1884b3e533b74f791ea91d58340f | refs/heads/master | 2016-09-03T06:49:38.293752 | 2012-01-04T13:26:56 | 2012-01-04T13:26:56 | 3,039,858 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 347 | h | sender.h | #ifndef SENDER_H
#define SENDER_H
#include <QObject>
#include <QDebug>
#include <QTimerEvent>
#include <QThread>
class Sender : public QObject
{
Q_OBJECT
int val;
public:
explicit Sender(QObject *parent = 0);
protected:
void timerEvent(QTimerEvent *);
signals:
void valueChanged();
public slo... |
43f64c2e7d8537796200ec2d0f1e1960b7295560 | 63c21d8f615b43889cb7b247a6f4e108bc8c714c | /infra/src/l0-infra/trans-dsl/sched/action/LinkedSchedAction.cpp | db92a1cf2c871b2b073818e951e549dd2c7416f9 | [] | no_license | liulei2015/perfect-cpp | cba79a82c6bc6e6e56d023057fc7ec589b7a0c1f | 5287e4a5d4aa3a4c87668f5f4be1feb610b4acbe | refs/heads/master | 2021-01-01T16:28:10.131718 | 2017-08-06T13:33:16 | 2017-08-06T13:33:16 | 97,839,632 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 152 | cpp | LinkedSchedAction.cpp | /*
* LinkedSchedAction.cc
*
* Created on: Apr 22, 2013
* Author: arthur
*/
#include "l0-infra/trans-dsl/sched/action/LinkedSchedAction.h"
|
b34a2d8957c3ec9cd9924e00d8b7d0e971aa3a4c | 9bb5a8b708c35782083df4a36f873c9cde937955 | /NewWarSymulation/Ship.h | 9e821a74258e05d5a95d2272f470e8e82f716ea1 | [] | no_license | IljaStasenko/WarSymulation | ee6def68991c9211e1fd7d72a54f2e8505985e3a | 9f31c55c802d31db11d47c51d25b04aea1cd30a6 | refs/heads/main | 2023-03-13T17:25:56.392375 | 2021-03-04T14:49:26 | 2021-03-04T14:49:26 | 344,502,686 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 591 | h | Ship.h | #pragma once
class Ship
{
private:
int ActiveProtect;
int Size;
int State;
int Damage;
public:
Ship()
{
this->ActiveProtect = 1;
this->Size = 1;
this->State = 0;
this->Damage = 0;
}
Ship(int a, int b)
{
this->ActiveProtect = a;
this->Size = b;
this->State = 0;
this->Damag... |
21a8d8a70f9a7d9ffa269edbd727f0d2c8c21cb7 | 26f98e97cfd5ccacd022a9613a5f5566c8541c19 | /Position.h | 848be33c07014bde0c112140ff27f61c7cee5587 | [] | no_license | rafaeu9/MarioFernandes_SDL | 9799abad83f161544e19db2f9f16956f71e6c1f7 | f8bd5871f75dd76738c872983773643b3ca37b5d | refs/heads/master | 2021-04-04T15:05:16.991263 | 2020-05-19T16:38:02 | 2020-05-19T16:38:02 | 248,466,012 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 138 | h | Position.h | #pragma once
#include "ECS.h"
class Position :
public Component
{
public:
int x, y;
Position();
Position(int inp_x, int inp_y);
};
|
0e4d4d6341cc610291be97e3b14221b88059eb5b | 4702002d01ac4909740b107974bade48478069f2 | /codeforces.cpp | 2b6a059f8c8db83ed325bc4c7a70a653bdb299d2 | [] | no_license | oolugboy/codeforces | db22c45b4a968bcb85fce6bcd6fdbc52bc7a04f0 | 871a1d142e695709e603e795b25fa7d3f953285b | refs/heads/master | 2021-01-10T05:58:51.553484 | 2016-09-26T19:40:43 | 2016-09-26T19:40:43 | 55,100,487 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 377 | cpp | codeforces.cpp | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int getMax(long, long int m)
{
int start = 1;
int prev = 0;
while(pow(start, 3) <= m)
{
prev = start;
start++;
}
return prev;
}
int
int main()
{
long long i... |
6f1756a126fef09cb63882c2ff5ed8e86b2e6cfb | f8d76935f342abceff51a90a2844110ac57a4d2e | /solution/srm378_twistypassages.cpp | 806d0badba340e9ad8539030e6db6893f8bbc389 | [] | no_license | rick-qiu/topcoder | b36cc5bc571f1cbc7be18fdc863a1800deeb5de1 | 04adddbdc49e35e10090d33618be90fc8d3b8e7d | refs/heads/master | 2021-01-01T05:59:41.264459 | 2014-05-22T06:14:43 | 2014-05-22T06:14:43 | 11,315,215 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 49,227 | cpp | srm378_twistypassages.cpp | /*******************************************************************************
* Automatically generated code for TopCode SRM Problem
* Problem URL: http://community.topcoder.com/stat?c=problem_statement&pm=8282
*******************************************************************************/
#include <vector>
#... |
eb2741e33ac3935083e1cc51858f60f4b7195179 | 6820ef53dc0ca8663b71f5edb8ea23a8c823862b | /src/read_PTX.cc | 9c318464e89cfef639132622ffee343283e5fed8 | [] | no_license | Adiolph/OptiX-test2 | 0a402b86a12df86f69917279ef46e0838311fc49 | d04cb7bc5443060b76def477f7574acda8771782 | refs/heads/main | 2023-01-09T19:47:54.161062 | 2020-11-03T12:52:16 | 2020-11-03T12:52:16 | 307,619,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 415 | cc | read_PTX.cc | #include <sstream>
#include <cstring>
#include <iostream>
#include "config.h"
std::string PTXPath(const std::string install_prefix, const std::string file_name)
{
return install_prefix + "/ptx/" + file_name + ".ptx";
}
std::string read_ptx_file(const std::string file_name)
{
std::string ptx = PTXPath(CMAKE_INSTAL... |
9a3e8717eea8dc6143b7d7a50284ec979c9a1b73 | f20e965e19b749e84281cb35baea6787f815f777 | /Analysis/MicroDST/MicroDSTAlgorithm/src/CopyMCParticles.h | ee627fc1cb29c14b98cbec0c1c250331ea2cb6e0 | [] | no_license | marromlam/lhcb-software | f677abc9c6a27aa82a9b68c062eab587e6883906 | f3a80ecab090d9ec1b33e12b987d3d743884dc24 | refs/heads/master | 2020-12-23T15:26:01.606128 | 2016-04-08T15:48:59 | 2016-04-08T15:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,607 | h | CopyMCParticles.h | // $Id: CopyMCParticles.h,v 1.9 2010-08-11 13:52:27 jpalac Exp $
#ifndef COPYMCPARTICLES_H
#define COPYMCPARTICLES_H 1
// Include files
// from MicroDST
#include <MicroDST/KeyedContainerClonerAlg.h>
#include <MicroDST/ICloneMCParticle.h>
#include "MicroDST/BindType2ClonerDef.h"
// from LHCb
#include <Event/MCParticle... |
490781ae39e2cd7304494750020393e2e5939e80 | 54f6ce07992c70f39e9e54dbfcc72ee1c05cb8ff | /gui/guidisk.cpp | 40c851d236c0f7ea285498d0f523ade2e557c942 | [
"MIT"
] | permissive | radosroka/ICP_Othello | 060ef1d2c997432b1cc643227dd938ad2da41d62 | b4785e8fafd183207874ea02f53a42cc110f28e0 | refs/heads/master | 2021-05-04T01:55:39.138135 | 2016-05-08T14:59:50 | 2016-05-08T15:03:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 995 | cpp | guidisk.cpp | /**
* @file guidisk.cpp
* @author Michal Cyprian <xcypri01@stud.fit.vutbr.cz>
*
* @section DESCRIPTION
*
* Implementation of customized QGraphiscPixmapItem to represent disk in GUI.
*/
#include "guidisk.hpp"
GUIDisk::GUIDisk(int x, int y, int cell_size, QGraphicsItem *parent)
: QObject(), QGraphicsPixmapIt... |
9353a9067012df6635994f4c5b4c911774ea81ec | 3af101b2434b485777a26d1ff7864fa7a22c4176 | /Engine/Src/Vec2.cpp | 2a896a79cb433f060e33640fa6be63133f969113 | [] | no_license | wusidn/3DEngine | d3508d95b5702f7c2cf20a3f51d8159734105229 | d1751316e078521cf5cf28d2c3b0c06bfecf65b3 | refs/heads/master | 2021-01-23T14:04:31.601607 | 2016-11-11T09:24:38 | 2016-11-11T09:24:38 | 52,725,961 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,981 | cpp | Vec2.cpp | #include "Vec2.h"
#include <cmath>
namespace engine
{
Vec2::Vec2(void) : Vec2(0.0f) { }
Vec2::Vec2(const float v) : Vec2(v, v) { }
Vec2::Vec2(const float x, const float y)
{
this->x = x;
this->y = y;
}
Vec2::Vec2(const Vec2 & copy) : Vec2(copy.x, copy.y) { }
Vec... |
c3188d4757635ff2b9a514494d701f3926e96bf1 | 793c8848753f530aab28076a4077deac815af5ac | /src/dskphone/ui/xwin/talkui/src/confmanageradapter.cpp | 6cb2d50639bdfc56d49c15104fc1e5c45d9aeacc | [] | 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 | 4,626 | cpp | confmanageradapter.cpp | #include "confmanageradapter.h"
#include "talkuicommonfunction.h"
#include "baseui/include/listviewitemfactory.h"
#include "xwindow/xWindowManager.h"
#include "uimanager/moduimanager.h"
namespace talkui
{
CConfManagerAdapter::CConfManagerAdapter()
{
}
CConfManagerAdapter::~CConfManagerAdapter()
{
}
void CConfMana... |
ff54ca66e6ae8ccdccb5078368943736b38dd186 | 23ad4a53855b099f06b5fe3d1d76f41b28cfd83b | /AnalogInput/AnalogInput.ino | e5a94c72876d9ee378d46d30fe77bbd105d8703a | [] | no_license | Chalpher/34338arduionkursus | 5084dd6f8b4c9ef63136374d24173a1b636df16b | a2ae4bfa6a4d4ceef07f5fc31175b1be4f5d61ff | refs/heads/master | 2022-04-01T06:22:47.743315 | 2020-01-14T10:06:04 | 2020-01-14T10:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,227 | ino | AnalogInput.ino | #define LED1 3
#define LED2 5
#define LED3 6
int sensorPin = A0; // select the input pin for the potentiometer
int sensorValue = 0; // variable to store the value coming from the sensor
float volt;
void setup() {
// declare the ledPin as an OUTPUT:
pinMode(A0, INPUT);
pinMode(LED1, OUTPUT);
pinMode(LED2, ... |
e1e79cf7a52cd14936edb07017567689bd99de3d | 12b125f3868341c4ff0cb851233c6813c9aca580 | /playground/wip/miro/action/ConcurrentBufferingActionSink.cpp | d480c1700a89f573484c3fd4b7ea16641b467616 | [] | no_license | karhu/sol | bd502668a936f68db0ba08bb2b9c1da8774737b0 | ee5427b695d43db4c826752969c9713add6d2964 | refs/heads/master | 2021-01-21T06:14:09.960129 | 2016-02-19T16:37:25 | 2016-02-19T16:37:25 | 46,105,780 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 502 | cpp | ConcurrentBufferingActionSink.cpp | #include "ConcurrentBufferingActionSink.hpp"
namespace miro { namespace action {
void ConcurrentBufferingActionSink::set_notify_callback(sol::delegate<void ()> cb)
{
m_notify_cb = cb;
}
void ConcurrentBufferingActionSink::on_receive(ActionRange range)
{
auto count = range.count();... |
b01cbbe7b562389d9084233fb856299913d98013 | 8803159aba717a9f25127547d1acb2069b6a505e | /hp_readtextfile.h | a0b6ad4d4e5096d47ca5d617bca47d97111b2e9b | [] | no_license | hpatterton/match_barcodes_to_strain | 147b0621ccd01f42cf33ed1a3ae2adee4d46cc79 | b2dc6be683fccfa3eb194094468062e83720079b | refs/heads/master | 2020-09-03T20:35:05.706581 | 2019-11-04T17:59:15 | 2019-11-04T17:59:15 | 219,563,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,823 | h | hp_readtextfile.h | /*
* HP_ReadTextFile.h
*
* Created on: 27 Sep 2012
* Author: patterh
*/
#ifndef HP_READTEXTFILE_H_
#define HP_READTEXTFILE_H_
#include <fstream>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <cstring>
#include <cstdlib>
#include "hp_dynamicstringarray.h"
#include "hp_... |
7515bd0695f23887608a2b8d3dc2fb90f01667d8 | 69dddc42fa2ce6e3c8553bea1f7223fe6417128a | /src/vector.h | ae28ab7e3a79f8945ff182df9ee451a5b27bbec4 | [
"MIT"
] | permissive | matthieudelaro/GOST-Framework | d7cb8c522aacfe5939686621b855bc7eff3441f5 | 159ace65e77919f89c48137e22a3168b40e64a67 | refs/heads/master | 2021-01-10T07:24:52.166453 | 2015-10-20T14:56:49 | 2015-10-20T14:56:49 | 44,613,153 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,008 | h | vector.h | #ifndef VECTOR_H
#define VECTOR_H
#include "tools.h"
#include <QDebug>
namespace Gost
{
/*! \brief Le classe Vector gère un tableau générique à taille dynamique.
*/
template <typename T>
class Vector
{
public:
/*!
* \brief Le constructeur de copie permet de copier un Vector.
* \param original Le Vector... |
c8f68b50b47e6c642ef8b6719b175060313ca4ad | 5ae01ab82fcdedbdd70707b825313c40fb373fa3 | /src/evaluators/Charon_Mobility_Farahmand_impl.hpp | 6cac58e5a68b6d03386840b96ed9b4d531dd1488 | [] | no_license | worthenmanufacturing/tcad-charon | efc19f770252656ecf0850e7bc4e78fa4d62cf9e | 37f103306952a08d0e769767fe9391716246a83d | refs/heads/main | 2023-08-23T02:39:38.472864 | 2021-10-29T20:15:15 | 2021-10-29T20:15:15 | 488,068,897 | 0 | 0 | null | 2022-05-03T03:44:45 | 2022-05-03T03:44:45 | null | UTF-8 | C++ | false | false | 24,288 | hpp | Charon_Mobility_Farahmand_impl.hpp |
#ifndef CHARON_MOBILITY_FARAHMAND_IMPL_HPP
#define CHARON_MOBILITY_FARAHMAND_IMPL_HPP
#include <cmath>
#include <fstream>
#include <algorithm>
#include "Kokkos_ViewFactory.hpp"
#include "Panzer_Workset.hpp"
#include "Panzer_Workset_Utilities.hpp"
#include "Panzer_IntegrationRule.hpp"
#include "Panzer_CellTopologyInf... |
17e040e2a975c84b142760236007a417f5ed8758 | 76c907dc1e769e0da1a357f49af1a676bc1c01a2 | /hackerrank/savequantumland.cpp | b04e662f50150ecf16f71365d81c7884282645f2 | [] | no_license | sandeepnmenon/Competitive-Coding | 771a6e9a3a81768db030096a72ab220311328ebf | 5f6adaaf6059d56dbd9f3dfb667648db6724bd31 | refs/heads/master | 2022-12-15T20:33:20.347480 | 2022-12-06T02:25:59 | 2022-12-06T02:25:59 | 33,935,722 | 0 | 0 | null | 2022-07-09T05:27:29 | 2015-04-14T14:11:31 | C++ | UTF-8 | C++ | false | false | 854 | cpp | savequantumland.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int t,n;
scanf("%d",&t);
while(t--)
{
scanf("%d",&n);
int a[n+1];
for(int i=1;i<=n;++i)
scanf("%d",&a[i]);
int i=1;
int ans=0;
while(i<=n)
{
if(!a[i])
{
... |
a51f56b6cbb7781d19bfcfeaef7c7061eb39b3b8 | 17626629ca011c5bead6ff06c97367df63237ac6 | /c++/EssentialCpp/Chapter 3. Generic Programming/3.4.cpp | d775de5b17beee2e22442f0128988978a6635717 | [] | no_license | memoiry/miscellaneous | f2d5a99522aa6ea5c198da81f0033bdf0e645520 | 09370d415f133b3a95cb2a80a19afdf08f15c626 | refs/heads/master | 2020-07-03T07:55:53.985767 | 2016-11-28T15:15:14 | 2016-11-28T15:15:14 | 74,186,732 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 955 | cpp | 3.4.cpp | //
// Essential C++
// Stanley Lippman
// Chen Chen @ December 5th, 2014
//
#include <iostream>
#include <fstream>
#include <iterator>
#include <vector>
#include <algorithm>
using namespace std;
class EvenNum
{
public:
bool operator()(int num)
{
return num % 2 ? false : true;
}
};
int main(int argc... |
d240b11f30e00778a33ae412858c65951e865f03 | 7699cd22ca370c89fb949eca80c587c0c3a9f8d5 | /application/old/chart_test/performance_comparison/minutewindow.h | 6fa4b2938f0715a38ba19a49e141314827947bff | [] | no_license | ccliuyang/trader | 8bc2d5f144784c9deca92908c209dc9dd69da4f2 | f7975352bd6c2f34e164a87b03c0cc5e02b48752 | refs/heads/master | 2023-02-10T07:44:24.498417 | 2021-01-12T02:06:08 | 2021-01-12T02:06:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 465 | h | minutewindow.h | #ifndef MINUTE_WINDOW_H_
#define MINUTE_WINDOW_H_
#include <QWidget>
#include "stock_provider.grpc.pb.h"
using stock_api::CybosDayDatas;
using stock_api::CybosDayData;
class PastMinuteChart;
class MinuteWindow : public QWidget {
Q_OBJECT
public:
MinuteWindow(QWidget *p=0);
void displayPastData(CybosDayD... |
b4075e798ddcae2f626f5cdb1cbcf0a1b512b246 | 461a108796fafb8483faafdc6dc114782d55a1cc | /Graphs/pairingProblem.cpp | 4a9d348e4636529debef2af8b70d875328e64872 | [] | no_license | aryansin08/DS-Algo | 1c099f0a97acbfa3af8719445ed7ce7eb589afb4 | 0da2c10b7b48f24da967a3ffc6550091b80c6b7e | refs/heads/master | 2021-09-15T14:19:29.888202 | 2021-08-17T10:37:32 | 2021-08-17T10:37:32 | 244,914,502 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,901 | cpp | pairingProblem.cpp | #include<bits/stdc++.h>
using namespace std;
//Given an undirected graph int the for of an edge list
//find the number of pairs of vertices that can be joined such that no two vertices
//lie in the same connected component
class Graph{
int v;
list<pair<int,int>>l;
public:
Graph(int v) {
this->v=v;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.