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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
174398035475e0d3ac6693c1d072ae40708b6f7e | c7509225992d6bcb93cab41bd4f2b8ccb26ff2d7 | /sources/genTree.cpp | 7a518088365286d1929c9da0ee4e43fe5009e63c | [] | no_license | Perzi-Lgs/GTree | bdcb3ef951ae293082c736bff34b852be92bea08 | 993135fe8bc0591d36fec43b74034744790aeee4 | refs/heads/master | 2021-04-02T12:55:59.116456 | 2020-07-01T16:59:46 | 2020-07-01T16:59:46 | 248,277,528 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,492 | cpp | genTree.cpp | #include "genTree.hpp"
#include "Evenement.hpp"
#include <fstream>
#include <iostream>
#include <unistd.h>
void genTree::generatePoint(n_data data)
{
Evenement new_point;
// * Set The Position with the given longitude and latitude
// * longitude + Latitude
new_point.m_shape_Evenement.setPosition({1000... |
956b3c6163dac6a7515ad7375d92b8ac5c0c23eb | e73d8410fc3f00ecf061a434f344a2c4abdb4adb | /Rototo/Sources/GUIManager.cpp | 6e56ce0615f1d74eb41b858b28ec10ff4f80dd5c | [] | no_license | DomDumont/trp | 1aad6c817f7e53edddf61d9ce1fa09860d1753b9 | d7b4159663c3f0fd062a1c00efad049041788565 | refs/heads/master | 2016-09-15T07:11:46.186282 | 2016-04-12T09:11:17 | 2016-04-12T09:11:17 | 19,699,668 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,195 | cpp | GUIManager.cpp | /*
==============================================================================
This file is part of the T.R.P. Engine
Copyright (c) 2015 - Dominique Dumont
Permission is granted to use this software under the terms of either:
a) the GPL v3 (or any later version)
b) the Affero GPL v3
... |
d00621594ffe14bf8bbd4b73cf2c3c259274583c | 32af37233c8e23eef06337b2ff064aa198cc839d | /include/animation/animation.h | 9810290938f93dbf41ee05f07f78cbed046c49be | [] | no_license | nickenchev/boiler | f577e1cb4a1af49552c923647baf9d7458485aaa | ccd2858a13ce8029214f4112621c510e5dc1fdd5 | refs/heads/master | 2023-08-31T03:29:31.052375 | 2023-08-28T06:13:46 | 2023-08-28T06:13:46 | 58,762,135 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 532 | h | animation.h | #ifndef ANIMATION_H
#define ANIMATION_H
#include <string>
#include <vector>
#include "animationsampler.h"
#include "channel.h"
namespace Boiler
{
class Animation
{
std::string name;
std::vector<Channel> channels;
public:
Animation(const std::string &name)
{
this->name = name;
}
const std::string &getNam... |
5562766bbcd7af7c89582e6693f6e8f46bd26ad3 | 79ca1707e6b3e22262a9710d74e7de7368525792 | /Darkness of Planet/Darkness of Planet/Darkness of Planet/cObjectNode.cpp | 2c367747e13ef251e409ebd028b9f8a9003f57c4 | [] | no_license | ggondols/TeamOfEalryAccess | 0645b419b649c075ed03881921bf5cefe754680d | 4219a2a0ae9644069e0d6743961a9987bfb17957 | refs/heads/master | 2021-01-21T12:16:30.626470 | 2017-10-15T08:52:09 | 2017-10-15T08:52:09 | 102,056,526 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,516 | cpp | cObjectNode.cpp | #include "stdafx.h"
#include "cObjectNode.h"
cSpatial::cSpatial()
{
m_position = D3DXVECTOR3(0.0f, 0.0f, 0.0f);
D3DXQuaternionIdentity(&m_orientation);
m_scalling = D3DXVECTOR3(1.0f, 1.0f, 1.0f);
}
cSpatial::~cSpatial()
{
}
void cSpatial::RotateBy(float fX, float fY, float fZ)
{
fX = D3DXToRadian(fX);
fY = D3... |
9ae66915f2a12b323ce6d50a7569f124b154c022 | 3c0d18b8723d67b8495eb6cb81d95d36341b573b | /Practice contest/Sum of Digits.cpp | fc5c59d37c5ef5e53d777f1f8b35df83a7e22263 | [] | no_license | tahmid108/Tahmid-s-Codes | c3128b5b4843ad888e80b57a565739bc742a88ed | ff80ee6d9de4c961a55353b4ded447c6e9bd7431 | refs/heads/master | 2023-02-13T18:10:13.388262 | 2021-01-08T15:38:52 | 2021-01-08T15:38:52 | 327,944,373 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 257 | cpp | Sum of Digits.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int tc;
cin >> tc;
cin.ignore();
while(tc--)
{
string s;
getline(cin,s);
long long sum=0;
for(int i=0;i<s.size();i++)
{
sum+=(s[i]-48);
}
cout << sum << endl;
}
}
|
4cd7788770dc5d6c5798a99b4e1c61e085d14d4d | a84ae7b277b8460bd79ca0874ae4d868e7c7b89d | /Round612/C.cpp | 81ca30c6cdd1810a7fbb954bbf96815cf38cd7fb | [] | no_license | copydev/CodeForces | 238a3d7ce1d415e9e22d5f8f50421808c88986b7 | 2a91104b156be12eb6ed11845605c0419b43a503 | refs/heads/master | 2022-12-10T22:36:50.384398 | 2020-09-07T11:51:36 | 2020-09-07T11:51:36 | 293,514,367 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,496 | cpp | C.cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define REP(i,n) for(ll i = 0;i<n;++i)
int main() {
int n;
cin>> n;
int arr[n];
ll odd = 0;
ll even = 0;
ll oddleft, evenleft;
REP(i,n){
cin>>arr[i];
if(arr[i]%2 == 0){
even++;
}
else{
odd++;
}
}
if(n%2 == 0){
oddleft =... |
5a5a11c013270143e9540ae472781a6ceaa3115b | 525e8581d7f35d63277563649708f69cd8a0c3b8 | /naudio/third_party/JUCE/extras/Projucer/Source/Application/jucer_Main.cpp | d858fed6c7d8079dd2a203c68d2ecf6cdca9f14f | [] | no_license | eliot-akira/audiom | 55f8d218b3922c76ef0216324f2245e3929d764c | 23397abaecb789fb8b6fd449f3a627383640bc47 | refs/heads/master | 2021-04-05T23:55:17.742839 | 2018-03-29T05:41:55 | 2018-03-29T05:41:55 | 125,117,718 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,609 | cpp | jucer_Main.cpp | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd.
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of both the JUCE 5 End... |
ad482d9693fefb29b021281aa4ef3abd7dc31130 | 26690127f0fd138a3f0109702d71adc372831dd5 | /Library/Maths/LinearAlgebra/gauss_xor.cpp | 4841554a5cc3cafa8bfbc228297ec6eadda74448 | [] | no_license | Mohammad-Yasser/CompetitiveProgramming | 4bc2c14c54e9bc7be90bb684689c9340614d9d17 | a48b744b1dedb2f4ad3d642f5e5899cf48d637d4 | refs/heads/master | 2023-04-09T02:48:27.066875 | 2021-04-24T11:41:18 | 2021-04-24T11:41:18 | 32,478,674 | 2 | 1 | null | 2020-06-05T04:13:21 | 2015-03-18T19:06:09 | C++ | UTF-8 | C++ | false | false | 1,512 | cpp | gauss_xor.cpp | bool isSet(int n, int b) { return (n >> b) & 1; }
int getRank(const vector<int>& mat) {
vector<int> res = mat;
int rank = 0;
for (int row = 0, col = 0; row < res.size() && col < 20; ++col) {
for (int i = row; i < res.size(); ++i) {
if (isSet(res[i], col)) {
swap(res[row], res[i]);
break... |
658b2bd5288490f47b69eeb5a25c8be75c48ae65 | 61c24829480c6fb69620c50e3d07ce92f1240da7 | /contrib/CFramework/System/Resource/ResourceManager.cpp | dd2c507dbd6bf352caabe33a2cd86a7e362de5ce | [] | no_license | Luiz-Monad/Irrlicht-Vulcan | 652b12f8b1e03face8aa436ec3d6dfdc7177d7e1 | 4788d02864ff3e34765c43515f375d303896fa02 | refs/heads/master | 2022-01-20T07:58:18.909722 | 2019-06-27T05:23:01 | 2019-06-27T05:23:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,060 | cpp | ResourceManager.cpp | /*
* Copyright (C) 2017-2018 Tauri JayD <https://www.>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This progra... |
02948cd8636be35ee5881ea9c2133591eb18b6cc | febcab69abf00cfcd2e72c095a88354163e1de72 | /SuperOverflow/MainPage.xaml.cpp | 61afbc075774b9e3031231f413cfffa63b65b384 | [] | no_license | kiewic/WindowsStoreApps | 4d2384822fb4860bb0cf1af8fc2c0f6b323f3bfb | 38df28c7c20f743bbc565b41a47ce18c22847796 | refs/heads/master | 2021-01-20T06:56:44.883930 | 2015-05-31T23:20:03 | 2015-05-31T23:20:03 | 10,319,054 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,213 | cpp | MainPage.xaml.cpp | //
// MainPage.xaml.cpp
// Implementation of the MainPage class.
//
#include "pch.h"
#include "MainPage.xaml.h"
#include "SuperHttpRequestCallback.h"
using namespace SuperOverflow;
using namespace Concurrency;
using namespace Microsoft::WRL;
using namespace Microsoft::WRL::Details; // Make
using namespace Platform;... |
f9c8e372884f8d5a9b294dc49fc1701fae2dcccb | eb2f8b3271e8ef9c9b092fcaeff3ff8307f7af86 | /Grade 10-12/2018 autumn/NOIP/NOIP2018提高组Day2程序包/answers/GD-0576/game/game.cpp | d9819ac2d0509f6d87fb972fe87d8c47cdbe0a17 | [] | no_license | Orion545/OI-Record | 0071ecde8f766c6db1f67b9c2adf07d98fd4634f | fa7d3a36c4a184fde889123d0a66d896232ef14c | refs/heads/master | 2022-01-13T19:39:22.590840 | 2019-05-26T07:50:17 | 2019-05-26T07:50:17 | 188,645,194 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 300 | cpp | game.cpp | #include <bits/stdc++.h>
using namespace std;
int m,n;
int ma[22][22];
int main() {
freopen("game.in","r",stdin);
freopen("game.out","w",stdout);
cin>>n>>m;
long long sum=0;
if(n<m){
int c=n;
n=m;
m=c;
}
if(m==2){
sum+=(pow(2,n-1)-1)*4;
sum+=pow(2,n+1);
}
cout<<sum;
return 0;
}
|
93dcb8870d8aa569539e9a8953cfa349d05f3819 | a33aac97878b2cb15677be26e308cbc46e2862d2 | /program_data/PKU_raw/74/205.c | 9996326938db8fe31c30348783fbb98fb46a792f | [] | no_license | GabeOchieng/ggnn.tensorflow | f5d7d0bca52258336fc12c9de6ae38223f28f786 | 7c62c0e8427bea6c8bec2cebf157b6f1ea70a213 | refs/heads/master | 2022-05-30T11:17:42.278048 | 2020-05-02T11:33:31 | 2020-05-02T11:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 438 | c | 205.c | int main()
{
int m,n,i,j,k=0,t=0,p=0,q,a,b,c=0,d=0;
int x[100];
scanf("%d %d",&m,&n);
for(i=m;i<=n;i++)
{for(j=1;j<=i;j++) {if(i%j==0) t++;}
if(t==2)
{b=i;
for(a=log10(b);a>=0;a--) {x[k]=b/(pow(10,a));b=b-x[k]*pow(10,a);k++;}
q=log10(i);
for(j=0;j<=q;j++)
{if(x[j]!=x[q-j]) {p=1;}}
if(p==... |
e8baed54e9d8a978c622361d3edfbf109779f03b | 93900a65eae71204e3a3c855f9199ac725ec3e0f | /Day006/Template_3/Point.cpp | 9d22da16e60c61548383d3b82c72194bfa0fb027 | [] | no_license | deanlee-practice/Sprint4---C-Programing | 3fd04cca999105c61ab596532bb5453ab71fe926 | f8449b95e8993569af6859656b002fe12b4505ba | refs/heads/master | 2023-07-15T00:49:55.124759 | 2021-08-18T08:36:07 | 2021-08-18T08:36:07 | 397,523,498 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 848 | cpp | Point.cpp | /*
평면 위의 한 점을 객체화하는 클래스 Point를 일반화하는 템플릿으로 구현하시오.
*/
#include <iostream>
using namespace std;
template <typename T> // 여러 개를 쓸 땐 추가 나열 ', typename Q>'
class Point {
T x, y;
public:
Point(T x, T y);
void setX(T x);
void setY(T y);
T getX();
T getY();
};
template <typename T>
Point<T>::... |
bc1739db20a2690f3cf19aa58efb516c9237b5df | e7be352adc2d9265729e0c09583980b453bb3f04 | /SnakeProject/include/Food.h | df1e7a8d94254335c3ae8ef8b44fa2d025f2f094 | [] | no_license | NgocBich2012/game | 7c18f3e9e2f1ccea6e96d951261f6dd5dd539fcb | babb42f293ea0a2ea23dff1d9717cde7c24f4232 | refs/heads/master | 2021-09-15T10:22:37.601188 | 2018-05-30T11:36:51 | 2018-05-30T11:36:51 | 125,468,378 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,162 | h | Food.h | #ifndef FOOD_H
#define FOOD_H
#include "Frame.h"
#include "PublicFunction.h"
#define WIDTH_FOOD 1
#define HEIGHT_FOOD 1
class Food
{
public:
Food();
~Food();
void setX(const int &x) {x_ = x;}
int getX() const {return x_;}
void setY(const int &y) {y_ = y;}... |
8cea91ebf081bdc6b5c3875afe700ea723b82e67 | c1cb57667eab96641fe97c3e5b5e7e169012fedd | /Source/Visualiser.cpp | ba17cf1b2f695101f24b0ad1f1484bb2bc36b032 | [] | no_license | JacobMills22/Spectrum | ca8d81b6faaff667f6592a9c53e21e0195badae6 | 76046b291d5f3502919c3d751fec7d9282dc549f | refs/heads/master | 2021-05-06T21:35:21.047622 | 2018-01-31T12:52:31 | 2018-01-31T12:52:31 | 112,544,053 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,108 | cpp | Visualiser.cpp |
//#pragma once
#include "Visualiser.h"
AudioVisualiser::AudioVisualiser(int bands) : cube(bands, spectralCubeID), droplet(bands, dropletID)
{
// OpenGL Initialisation.
openGLContext.setRenderer(this);
openGLContext.attachTo(*this);
openGLContext.setContinuousRepainting(true);
// Set Rotatio... |
5523da9c9885342891b249ef33b062addde1d977 | f5aaa36d97dfcaaf5117f06aae7174f6822f214d | /matrices/matrices.cpp | c8bc0784346c4544e714f58feb12a2a14ef8a09b | [
"MIT"
] | permissive | triffon/up-2018-19 | 0efcfdb508e9f1ab38ed36719f1868f0c3fbc65c | 19ef291fbd1d8054cd66cb9451b041b45636f596 | refs/heads/master | 2020-04-01T11:49:46.075704 | 2019-02-20T07:48:25 | 2019-02-26T21:29:27 | 153,179,415 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,867 | cpp | matrices.cpp | #include <iostream>
using namespace std;
void testmatrices() {
const int MAX = 100;
int a[MAX][MAX], m, n;
cout << "m = ";cin >> m;
cout << "n = ";cin >> n;
for(int i = 0; i < m; i++)
for(int j = 0; j < n; j++) {
cout << "a[" << i
<< "][" << j
<< "] = ";
cin >> a... |
00743f4da1c2bd42578635e1305b7ff13f1f9998 | 9b636508be71c2ef852f116cb5ab6eb3591b118d | /armbot/wrist.cpp | 0ce7172dfde8cc463ed9f7f0bdc8e1c3f354032b | [] | no_license | Pitt-RAS/armbot | 83f68277573e8444e58d44cea9ca4a58bdef63a8 | c7271f1e9f53055c9217f4f05310ca33e4b3abc3 | refs/heads/master | 2021-07-05T14:48:36.312455 | 2019-04-18T18:53:52 | 2019-04-18T18:53:52 | 148,067,327 | 2 | 1 | null | 2019-04-18T18:53:54 | 2018-09-09T21:28:40 | C++ | UTF-8 | C++ | false | false | 1,425 | cpp | wrist.cpp | #include "wrist.h"
#include "util.h"
#include "servomgr.h"
#include <Wire.h>
Wrist::Wrist()
{
}
Wrist::~Wrist()
{
}
void Wrist::attach()
{
I2C_setByte(0x06,29,0x68);
I2C_setByte(0x06,26,0x68);
I2C_setByte(0x10,27,0x68);
I2C_setByte(0x08,28,0x68);
I2C_setByte(0x02,0x37,0x68);
I2C_set... |
dde19e721905f5c863b50ad0d204a3ca1c4d385c | 4870b2103697d579b33933c3636858569e046a83 | /src/core/g_palPlatformSettings.h | ce5519dc3a4c17cf110ce81349896ca51ad2e159 | [
"MIT"
] | permissive | StadiaMemories/pal | 89775cf28dd661558f7ca2bdd5cd8e7546f2700e | a83f67db9f0d2f16bbc698aeefa9c5e9476c993a | refs/heads/master | 2023-06-01T19:36:54.527742 | 2020-05-14T04:06:45 | 2020-05-14T04:09:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 215,044 | h | g_palPlatformSettings.h | /*
***********************************************************************************************************************
*
* Copyright (c) 2018-2020 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... |
52337fecd3334c83c72a4f8ed195035cc306141f | 471f7992e0d610137dcc3addbec15fec1269d22e | /AshaEngine/AppSysClass.cpp | 084aff8b19eb6bb14e979f63eb1fce5480a01943 | [] | no_license | lazyrohan/Asha | 12bf4d9dff56e062239efb6a7ea7730e0b59151d | d0cba37dccca9ddde9de73cc864855c6a0deb9fd | refs/heads/master | 2021-01-10T19:00:30.565889 | 2014-03-30T14:21:05 | 2014-03-30T14:21:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,445 | cpp | AppSysClass.cpp | //AppSysClas.cpp
#include "AppSysClass.h"
AppSysClass::AppSysClass():
m_hInstance(NULL),
m_hWnd(NULL),
m_msg(NULL),
m_pAppGraph(NULL)
{
//Initialize globe variations
}
AppSysClass::~AppSysClass()
{
}
bool AppSysClass::Initialize(HINSTANCE hInstance,int nCmdShow,LPCSTR AppName,HCURSOR hCursor,HICON hIcon,R... |
3bc6eb234f1c9b0e3afcde29a606803917c32f31 | d5d3559b8a31bc571f79e108fe7420c508c45998 | /valid_anagram.cpp | d6ff7e6955e2ce957df940dc42969afaa439fa84 | [] | no_license | drkarthi/algo | d9584f084c4057a1d24f0a395c05464a33da51d4 | 74f205bcd5e4865354dccbe82b824685189d4ab1 | refs/heads/master | 2021-01-22T11:11:02.124512 | 2017-06-12T19:53:13 | 2017-06-12T19:53:13 | 50,313,288 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 609 | cpp | valid_anagram.cpp | class Solution {
public:
vector<int>& updateHashTable(string a, vector<int>& hash){
int i=0, index;
while(a[i]!='\0'){
index = int(a[i]) - 97;
hash[index] += 1;
i++;
}
return hash;
}
bool isAnagram(string s, string t) {
vector<int>... |
853b05bf1ee029bbd2c2bc86fcd422b658d8ce35 | cf39355caa609c0f33405126beee2739aa3cb77e | /src/library/vm/vm_int.h | 3d8566db8aa7850637f83a1928b528a235f16751 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 2023-06-23T08:15:56.644949 | 2023-05-24T17:58:24 | 2023-05-24T17:58:24 | 169,960,991 | 457 | 107 | Apache-2.0 | 2023-06-14T12:06:12 | 2019-02-10T09:17:48 | C++ | UTF-8 | C++ | false | false | 647 | h | vm_int.h | /*
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#pragma once
#include "library/vm/vm.h"
namespace lean {
int to_int(vm_obj const & o);
optional<int> try_to_int(vm_obj const & o);
int force_to_int(vm_obj ... |
81190e73aa48889d1af38f636b540e9b2014638a | 04124ba853c034ee69875f21a04131f41bbe139f | /workspace/ns-allinone-3.28/ns-3.28/scratch/new_adhoc_test.cc | 88d14e325efff20621b7742911debd8e70dbc639 | [] | no_license | h-d/Senior-Research | 5c16d47a814a96e55255eff78d009ca9cca26200 | a3e9343afc99a3e6b1325eda1890354ecd468f7c | refs/heads/master | 2020-04-24T01:38:51.498264 | 2019-04-17T07:36:54 | 2019-04-17T07:36:54 | 171,606,676 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,859 | cc | new_adhoc_test.cc | #include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/mobility-module.h"
#include "ns3/config-store-module.h"
#include "ns3/wifi-module.h"
#include "ns3/internet-module.h"
#include "ns3/aodv-module.h"
#include "ns3/dsr-module.h"
#include "ns3/olsr-module.h"
#include "ns3/dsdv-module.h"
#include "n... |
e5e3afbee8094a33a92c1ba390e4ec6ffd1dac0e | f1ac5501fd36e4e420dfbc912890b4c848e4acc3 | /src/crypto/haraka_portable.cpp | 78daf6ce9efb6f129e4267011fbfded0cba20b0e | [] | no_license | whojan/KomodoOcean | 20ca84ea11ed791c407bed17b155134b640796e8 | f604a95d848222af07db0005c33dc4852b5203a3 | refs/heads/master | 2022-08-07T13:10:15.341628 | 2019-06-14T17:27:57 | 2019-06-14T17:27:57 | 274,690,003 | 1 | 0 | null | 2020-06-24T14:28:50 | 2020-06-24T14:28:49 | null | UTF-8 | C++ | false | false | 13,218 | cpp | haraka_portable.cpp | /*
Plain C implementation of the Haraka256 and Haraka512 permutations.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "haraka_portable.h"
#define HARAKAS_RATE 32
static const unsigned char haraka_rc[40][16] = {
{0x9d, 0x7b, 0x81, 0x75, 0xf0, 0xfe, 0xc5, 0xb2, 0x0a, 0xc0, 0x20, 0xe6, 0x4c,... |
1edd923698fc920ed8e5b7d7c1beb4fe1415a848 | ece3aab795ce33ce3e2b4c281c99d54cc465b5c1 | /Cifera.cpp | 7a788081ca1312560c0261279acaf6470797beca | [] | no_license | Rakib-Ahasan/Codeforces-Solutions | d6180f4f15cfb7ebd463d5f0b50a63d4c859ca4f | c3532b552c268117b0f8ec995343106a33130d15 | refs/heads/master | 2023-04-26T04:52:52.537194 | 2021-05-24T13:54:31 | 2021-05-24T13:54:31 | 370,369,378 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 219 | cpp | Cifera.cpp | #include<iostream>
using namespace std;
int main()
{
int a,b,c =-1;
cin>>a>>b;
while(b%a==0)
{
b/=a;
c++;
}
if(b==1)
cout<<"YES"<<endl<<c;
else
cout<<"NO";
}
|
c5a114f38a227f8d2ccc0d63f2a15b4d18b5ccca | d7a1079c29c96423494f9c4181ca9544235c0162 | /encryption/src/asymetrical/localpeeroperations.cpp | e1d5c1e0e735ba44238f31743830446661b3eae2 | [
"MIT"
] | permissive | sqglobe/SecureDialogues | ede0431b916a7e30d221edd3994b88c5d6afd6d0 | bde56c7a62fb72b1cdfba8cebc0a770157b5f751 | refs/heads/dev | 2020-05-15T01:50:18.416099 | 2020-05-01T08:36:24 | 2020-05-01T08:36:24 | 182,036,134 | 3 | 3 | MIT | 2020-04-15T19:46:54 | 2019-04-18T07:14:51 | C++ | UTF-8 | C++ | false | false | 3,132 | cpp | localpeeroperations.cpp | #include "localpeeroperations.h"
#include <cryptopp/base64.h>
#include <cryptopp/filters.h>
#include <cryptopp/osrng.h>
#include <cryptopp/pssr.h>
LocalPeerOperations::LocalPeerOperations(const CryptoPP::RSA::PrivateKey& key) :
mKey(key) {}
std::string LocalPeerOperations::decrypt(const std::string& data) const ... |
ee8d62eea5f3beaa5cde9c14ab001bfe626f7423 | 2fa0062a3b47111487da3dbe4f216248df0a2999 | /test/SPI_unittest.cc | 50a6758e7bb0095c131cd4ff2f743248f928919f | [
"ISC"
] | permissive | bt-trx/arduino-mock | 49240cf237c0c0cc37da326176b8e62e6d39bb8c | e59117bd75d4e3f05f86249f70e8cea356b527ef | refs/heads/master | 2021-07-25T01:13:23.482001 | 2017-05-06T21:47:01 | 2017-05-06T21:47:01 | 186,861,237 | 1 | 1 | ISC | 2020-06-11T10:27:52 | 2019-05-15T16:07:39 | C++ | UTF-8 | C++ | false | false | 1,350 | cc | SPI_unittest.cc | #include "gtest/gtest.h"
#include "arduino-mock/SPI.h"
#include "arduino-mock/Arduino.h"
using ::testing::Return;
TEST(SPITest, access) {
uint8_t value1 = 10;
uint8_t value2 = 12;
uint16_t value = 3;
char text[] = "Mock test";
uint8_t* callback_func = NULL;
void* voidTest = NULL;
SPISettings settings(1... |
185c1a2f4d373fb6e8d53a94c92361ded031f0c4 | 3a5a374584cb33df5c732881a908098bd497f0e9 | /magicSquare.cpp | 3e259192615b02c9f55f6ccecea004e37b73e942 | [] | no_license | maieutiquer/fmi-hw-2014 | edef864f2c8babc77df3a29d5f69d7e0e02449af | 53c9b6a8dcf938ac991f4120657701f75680191b | refs/heads/master | 2016-09-10T20:13:33.279624 | 2014-12-24T01:45:41 | 2014-12-24T01:45:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,725 | cpp | magicSquare.cpp | #include <iostream>
using namespace std;
int takeInput(string varName) {
int input;
cout << "Enter " << varName << ":\n";
cin >> input;
return input;
}
void fillSquareMatrix(int matrixSize, void *matrixArg) {
int (*matrix)[matrixSize] = (int (*)[matrixSize]) matrixArg;
for (int i = 0; i < m... |
b84cfa8cf952a6ee5f65e8deda2e8e9286b3785a | 690b5a3a48ad1448e8aa9b693be9938a8c695e5c | /knRapid/src/rapidExtArcDds/generated/DlpSampleSupport.cxx | f3d10592ce9a2bcef5ab6ee07877621b5683877e | [
"Apache-2.0"
] | permissive | bcoltin/soraCore | f5e37901d3a975b7086cceab8bc393b9c4d442a4 | cd0624774b7a3b1aac17e0ce3338b8914387f3fc | refs/heads/master | 2021-01-19T04:10:40.940887 | 2017-04-21T20:38:46 | 2017-04-21T20:38:46 | 87,354,301 | 0 | 0 | null | 2017-04-05T20:37:45 | 2017-04-05T20:37:44 | null | UTF-8 | C++ | false | false | 7,777 | cxx | DlpSampleSupport.cxx |
/*
WARNING: THIS FILE IS AUTO-GENERATED. DO NOT MODIFY.
This file was generated from DlpSample.idl using "rtiddsgen".
The rtiddsgen tool is part of the RTI Connext distribution.
For more information, type 'rtiddsgen -help' at a command shell
or consult the RTI Connext manual.
*/
#include "DlpSampleSupport.... |
0f0787a700eb4f6755a64728c0094db56bb2e494 | 13f78c34e80a52442d72e0aa609666163233e7e0 | /POI/2017/Round 2/zam.cpp | 4cc3593314642296a0ce1fab4d4a8263f23394c1 | [] | no_license | Giantpizzahead/comp-programming | 0d16babe49064aee525d78a70641ca154927af20 | 232a19fdd06ecef7be845c92db38772240a33e41 | refs/heads/master | 2023-08-17T20:23:28.693280 | 2023-08-11T22:18:26 | 2023-08-11T22:18:26 | 252,904,746 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,792 | cpp | zam.cpp | /*
Solution: When representing each chamber as a node and adjacent chambers as edges, it can be shown that the # of edges
is bounded by a small constant of N (maybe 4?). Think about the number of full sides for each chamber (not touching
other chambers), along with the number of contiguous, partially occupied sides. Me... |
7919452a410645dbf0c9bbf57e1b962554586468 | c058462235a37cf50d8308c6de80b3253d39d375 | /3Elevator-scheduling/Elevator.h | fab0862e5d40201a49bd45399ec4766349a6e9c0 | [] | no_license | DreamFeather/3Elevators-scheduling | e4b788d4f0efc10ef323cd21c64bf1968d7cd757 | c5ce321136c8da139e98f95e3a82b76aa27bf00d | refs/heads/master | 2020-03-17T01:15:47.408313 | 2018-05-26T13:30:44 | 2018-05-26T13:30:44 | 133,143,901 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,750 | h | Elevator.h | #include"NewQue.h"
using namespace std;
class Elevator
{
private:
int Type; //1odd 2even 3normal
int CurrentFloor; //当前楼层1~10;
int CurrentTime; //当前时间;
que TargetFloor; //目标楼层
que AskFloor; //请求楼层
int Door; //-1关闭,1开启
int Arrival[11]; //能到的楼层
public:
int Diretion; ... |
f6d646f68d2dff603c311c0c244b638f53284e3e | b62e7796632f74cd9faef22dca2b8c52c4ff2466 | /LeetCodeInVSCode/34.find-first-and-last-position-of-element-in-sorted-array.cpp | 25acaf4127ddc94a4c7c108a9b1cff94f2c2640a | [] | no_license | vgvgvvv/My-Algorithm-Training | b78913b9d8a0a44613c241b4b7322f3a4b96a13a | 02f5104e0e81d075373fc96e5331f055d0c1cea2 | refs/heads/master | 2021-08-27T21:38:51.350155 | 2021-08-26T09:42:04 | 2021-08-26T09:42:04 | 183,287,830 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,926 | cpp | 34.find-first-and-last-position-of-element-in-sorted-array.cpp | /*
* @lc app=leetcode id=34 lang=cpp
*
* [34] Find First and Last Position of Element in Sorted Array
*
* https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/description/
*
* algorithms
* Medium (33.34%)
* Total Accepted: 289.8K
* Total Submissions: 868.3K
* Testcase Exam... |
1e5cf307aa1b1ab7ada347206011e5cd7b05923f | 4e3300ebbbc59e9e8528670ff1499c9df4fe21b9 | /source/render/SSView/SSViewAbstract.cpp | 8a3ac65a654ddaf8624a894f985e366108fda273 | [] | no_license | droggen/Labeller | 6966da0649c131beea9721b60c34d41700295750 | 1120345a17f51940772d0dd8ec1fa2b3a2b1e3dc | refs/heads/master | 2022-11-29T20:07:23.446813 | 2020-08-13T16:14:56 | 2020-08-13T16:14:56 | 280,924,085 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,177 | cpp | SSViewAbstract.cpp | /*
SynScopeV
Copyright (C) 2008,2009,2010,2011:
Daniel Roggen, droggen@gmail.com
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) a... |
cb7c72eb38dcd0e5c673f30aa66853fda0d59b30 | ec2ca75c541dedc55635cbec240c825d9327502a | /qcore/controller/tcpbackend.h | cfaddc665de7110f20b283698b6f8078ef26b16c | [
"Apache-2.0"
] | permissive | ivandzen/RMCS | 5f921c0da648f3852acb8b2216663e2ba6494a0d | a695725212f1e32845bc04c1d9197535c2aa3732 | refs/heads/master | 2020-03-26T09:52:25.546248 | 2018-08-14T17:20:16 | 2018-08-14T17:20:16 | 144,769,627 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,054 | h | tcpbackend.h | #ifndef TCPBACKEND_H
#define TCPBACKEND_H
#include <controller/deviceconnection.h>
#include <QTcpSocket>
#include <QMutex>
class TcpBackend :
public QObject,
public DeviceConnection
{
Q_OBJECT
public:
explicit TcpBackend(QObject * parent = nullptr);
protected:
bool init(qint64 timeout);
... |
035a160179ad8859785fae35c78ae39d57307c46 | 4b98ec2b8856029ba1e427619fe09929eea628eb | /411/C.cpp | fc311b4dbe87104f8081e61a579fa72190a503cf | [] | no_license | xfcherish/codeforces | 7538ab43d32b03a6b8c74252a0623b89c5f43f0b | 4780abc50a85971eb2dd5a24dedde3248ab967c3 | refs/heads/master | 2021-01-19T11:29:53.875144 | 2017-05-28T00:59:57 | 2017-05-28T00:59:57 | 87,972,618 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398 | cpp | C.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <vector>
#include <cmath>
#include <queue>
#include <stack>
#include <map>
#include <string>
using namespace std;
# define pb push_back
# define mp make_pair
typedef long long ll;
typedef pair<int,int> PII;
const int maxn = (1e5... |
469ebe823d299e7f0c194a2e2a4741468d118160 | 00f785ee987cb6923db9b7f283a1843db12c384c | /string.h | 53a285185fae107743bafea4fa8f580c2c7e0fdc | [] | no_license | pyrovski/dpfs | 8c223c659ea4fdd7fa8667988503587429f9985a | acb6dd4ce4a8a792472fc9fc4bce2e5295dc9cc6 | refs/heads/master | 2021-01-10T04:46:23.659930 | 2015-12-16T20:41:10 | 2015-12-16T20:41:10 | 47,600,853 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 990 | h | string.h | #ifndef STRING_H
#define STRING_H
#include <algorithm>
#include <functional>
#include <cctype>
#include <locale>
#include <string>
#include <uuid/uuid.h>
// trim from start
static inline std::string <rim(std::string &s) {
s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(std::is... |
5cd3fc98bf4be7de793b168c6351ecc878e3e7f5 | c1b64361527e8dd87d2f424795478fa6166ef971 | /uml/Model/Arrive.h | 3a7372cc5455f73c50efba7b3ac1a3bb82f351ca | [] | no_license | nahueJ/steering_behaviors_controller | b7b03eb8a71064df994f619da1cacc3ca9fc28df | 0569b5d1378d0f08206df5f7b6e2a411a49746b8 | refs/heads/master | 2020-04-15T13:37:32.353132 | 2018-04-16T21:57:14 | 2018-04-16T21:57:14 | 58,772,695 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 543 | h | Arrive.h | /**
* Project SteeringBehaviorsController
* @author JOSE Nahuel
* @version 1.0.0
*/
#ifndef _ARRIVE_H
#define _ARRIVE_H
#include "SteeringBehavior.h"
#include <geometry_msgs/Pose.h>
class Arrive: public SteeringBehavior {
public:
/**
* gets the last data and actualizes the desiredTwist
* @param myPose
... |
88032af0c07d62059991a3dbf428a4f50490d262 | a355e712aad01d4309f018c38b727c017e7238e3 | /robot/InterFace.cpp | 8f9a81e9c9bb5dc1a1855333b432429d20cdbda4 | [] | no_license | xxmen/Test4Simulation | 5f0980571de041f755aa2ea6010c988516a07c8d | 092a573754d2b2bad6e2251b7a59c078a3a78d89 | refs/heads/master | 2020-04-09T22:01:38.432392 | 2014-07-22T01:48:02 | 2014-07-22T01:48:02 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 12,356 | cpp | InterFace.cpp | #include <windows.h>
#include "InterFace.h"
#include "Strategy.h"
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
... |
33c38fb641b35d34606c683e4802c72eb7cec08d | a92b18defb50c5d1118a11bc364f17b148312028 | /src/prod/src/Reliability/LoadBalancing/ApplicationEntry.cpp | 61dc5d9d86ac41a5295d924344725e9c8c9d8131 | [
"MIT"
] | permissive | KDSBest/service-fabric | 34694e150fde662286e25f048fb763c97606382e | fe61c45b15a30fb089ad891c68c893b3a976e404 | refs/heads/master | 2023-01-28T23:19:25.040275 | 2020-11-30T11:11:58 | 2020-11-30T11:11:58 | 301,365,601 | 1 | 0 | MIT | 2020-11-30T11:11:59 | 2020-10-05T10:05:53 | null | UTF-8 | C++ | false | false | 10,705 | cpp | ApplicationEntry.cpp | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
#include "... |
3aa158b2b61d106db6cc9f5d46a53989393ee48f | a2206795a05877f83ac561e482e7b41772b22da8 | /Source/PV/build/VTK/Wrapping/Python/vtkBSPCutsPython.cxx | 06c0311ce3d41a9142e999cce913ddfcad39fb21 | [] | no_license | supreethms1809/mpas-insitu | 5578d465602feb4d6b239a22912c33918c7bb1c3 | 701644bcdae771e6878736cb6f49ccd2eb38b36e | refs/heads/master | 2020-03-25T16:47:29.316814 | 2018-08-08T02:00:13 | 2018-08-08T02:00:13 | 143,947,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,470 | cxx | vtkBSPCutsPython.cxx | // python wrapper for vtkBSPCuts
//
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include "vtkPythonArgs.h"
#include "vtkPythonOverload.h"
#include "vtkConfigure.h"
#include <vtksys/ios/sstream>
#include "vtkIndent.h"
#include "vtkBSPCuts.h"
#if defined(VTK_BUILD_SHARED_LIBS)
# define VTK_PYTHON_EXPORT VTK_AB... |
ce89614806a350c440c2983712490e3e4de771f2 | ee045b5ecd7676f69ae37111ef6df703cc4d2075 | /Codeforces/946A_Partition.cpp | c014e971ea8948041b150cb918a99b85e8c8d7d3 | [] | no_license | jguerra7/ProblemSolving-1 | 59661c6f9176f51af858f1750eef902fba17842d | 0ff07369097426c0edf21c47c1c5e538bfca1a06 | refs/heads/master | 2022-03-08T06:44:28.400804 | 2019-11-23T20:44:12 | 2019-11-23T20:44:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 377 | cpp | 946A_Partition.cpp | #include <bits/stdc++.h>
#define Endl "\n"
#define ll long long
using namespace std;
void init() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); }
int a[2000];
int main()
{
init();
int n; cin>>n;
for(int i=0; i<n; ++i) {
cin>>a[i];
}
sort(a, a+n);
int mn = 0;
for(int i=1; i<n; ++i) {
mn +=... |
227ae8284ae0bd02866c0b3df4d1b90761d41a78 | b02f819b1b5721df811dd7a29b2e4d8025635bd0 | /HW02TestDirectory9_9_2014/HW02TestDirectory/mydirectory/mack_hw02/MovingAverage.h | 85d10806d54c4ee0796abb4f7b7eff705bd7878e | [] | no_license | TheTattedcoder/Stock-Market-Excercise | cc24b3cb3d6042a0d15effeb9f7486ea409c8db8 | 22a79745a1b4ba1f34b028a82da3b06be5005276 | refs/heads/master | 2022-03-11T18:11:38.686581 | 2014-10-27T20:51:19 | 2014-10-27T20:51:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 816 | h | MovingAverage.h | /******************************************************************************
Homework 2 Main program
Author/copyright: Domonick Mack
Date last modified: 8 September 2014
This program calculates stocks , which are
100 values , reads them in averages 5 and 10
at a time. Compares the tolerance to see if
to sell or b... |
03f866c90df58fcc0b71bff468cd330ecfbe351d | 6b345953f84f5639403c31cd260c2af3981f4f95 | /cpp/src/matrix.cpp | 8645bfeb560bb6c7914ad9552ba2c163f06fead7 | [] | no_license | dcareymtn/distributed_computing | a4753165ef6bc12a1162cfdb6715d1fac618e8ec | 09df4e2bb98252b1de1db35d300e0ea85060a181 | refs/heads/master | 2020-03-28T18:18:41.001036 | 2018-12-03T04:43:56 | 2018-12-03T04:43:56 | 148,870,258 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,673 | cpp | matrix.cpp | #include <mpi.h>
#include <time.h>
#include <math.h>
#include "matrix.hpp"
using namespace std;
Matrix::Matrix( void )
{
}
Matrix::Matrix( const int rows, const int cols ) :
M(rows, vector<double> (cols, 0)),
rows(rows), cols(cols)
{
}
Matrix::Matrix( double *pBlockM, int nRowBreak, int nColBreak, int sub... |
01620dfe09414a636801a821b6ef421a9453fbee | 9d4053352198a8a662496eb7e18f9507a5b87968 | /src/misc/functionCallWithTooFewArgs.cpp | 82b735dac593e259c31dcb15dc57687aa3d26c17 | [
"MIT"
] | permissive | kkysen/SmartNeuralFuzzer | db8e16a11cfa2c3ec26e47e6e70864c28c7ab350 | 22088a3871e4104c4afc463c05ce58f0221dbc43 | refs/heads/master | 2020-04-20T21:35:58.011772 | 2019-07-29T16:44:12 | 2019-07-29T16:44:12 | 169,113,871 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,365 | cpp | functionCallWithTooFewArgs.cpp | //
// Created by Khyber on 7/24/2019.
//
#include <random>
#include <iostream>
using RR = int;
using R = void;
using F0 = R();
using F1 = R(int);
using F2 = R(int, int);
using F3 = R(int, int, int);
extern "C"
RR p(int x) {
std::cout << "p = " << x << std::endl;
return x;
}
extern "C"
RR f0() {
return ... |
e4c7cd3e525207268b5b3c7a7c4eb5d4ef2e64c9 | ed16d61a41b4d5fa625eb9295fba01e2de08021e | /components/wic_cl_hook/src/ex_common/WICO_DebugView.cpp | 76da5a20e4d7a23dcb3b1d687ee6adb342e2c668 | [] | no_license | tenerefis/WIC-Client | 5904b910421d3e07cb12584f7c2f81abe8d5722f | 0fd61f9aaa7f4623bc13fa71d5b629879eeb99cb | refs/heads/master | 2021-08-27T20:32:51.185578 | 2021-08-05T13:23:08 | 2021-08-05T13:23:08 | 63,661,024 | 0 | 0 | null | 2016-07-19T04:38:51 | 2016-07-19T04:38:50 | null | UTF-8 | C++ | false | false | 4,841 | cpp | WICO_DebugView.cpp | #include "../stdafx.h"
void WICP_DebugView::InitializeHook()
{
Detours::X86::DetourFunctionClass(reinterpret_cast<uint8_t *>(0x00944A2E), &WICP_DebugView::Init, Detours::X86Option::USE_CALL);
}
bool WICP_DebugView::Init()
{
EX3D_Console::ourInstance->AddFunc("DebugToggle", Console_DebugScriptToggle, this, false, nu... |
2fbd241723222be2416be68cd55caad5f679de4b | 5776421ad0e764f1121a27a26e7de6a822e6aee9 | /src/extern.hpp | e363a36ca85a633a5427ffe2c31d081d10f10edc | [
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | eXpl0it3r/Schiffbruch | ee950dbd842a48f8d507bd5ae8cb84aaee933500 | 0463938c151cfc8ba1a861847d2aac00b4764bbf | refs/heads/master | 2022-11-03T16:44:51.339572 | 2022-07-02T23:52:40 | 2022-10-18T06:57:25 | 29,222,558 | 69 | 13 | NOASSERTION | 2022-10-20T22:13:18 | 2015-01-14T02:12:10 | C++ | UTF-8 | C++ | false | false | 4,296 | hpp | extern.hpp | #pragma once
#include "headers.hpp"
#include "types.hpp"
#include <SFML/Audio.hpp>
#include <vector>
extern int Spielzustand; // in welchem Zustand ist das Spiel?
extern bool LAnimation; // Ist die Landschaftanimation angeschaltet?
extern bool Gitter; // Gitternetz an/aus
extern RECT ScapeGrenze; // Diese Koordinat... |
9b540f990784ef8686c411250e54319a5a1701e8 | 44890f9b95a8c77492bf38514d26c0da51d2fae5 | /Gif/MotionFont/drawing.h | 2414bf1841ff938cc8d41cf1517e59b564c42227 | [] | no_license | winnison/huang-cpp | fd9cd57bd0b97870ae1ca6427d2fc8191cf58a77 | 989fe1d3fdc1c9eae33e0f11fcd6d790e866e4c5 | refs/heads/master | 2021-01-19T18:07:38.882211 | 2008-04-14T16:42:48 | 2008-04-14T16:42:48 | 34,250,385 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 746 | h | drawing.h | #include "define.h"
#include <string>
using namespace std;
void HSBtoRGB(float hue, float saturation, float brightness, int& r, int& g, int& b);
void RGBtoHSB(int r, int g, int b, float& hue, float& saturation, float& brightness);
COLORREF GetRGBbyHSB(float hue, float saturation, float brightness);
void Get... |
b3b179ca338f0ebf0082d6b45a0da4fe8af0b1de | 38616fa53a78f61d866ad4f2d3251ef471366229 | /3rdparty/GPSTk/ext/lib/Procframe/EquationSystem.hpp | 1df040ebe7502b6548da214ab1f1d861842b383f | [
"GPL-3.0-only",
"LGPL-2.0-or-later",
"LGPL-3.0-only",
"LGPL-2.1-or-later",
"GPL-1.0-or-later",
"MIT"
] | permissive | wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation | 3b467fa6d3f34cabbd5ee59596ac1950aabf2522 | 2f1ff054b7c5059da80bb3b2f80c05861a02cc36 | refs/heads/master | 2020-06-08T12:42:31.977541 | 2019-06-10T15:04:33 | 2019-06-10T15:04:33 | 193,229,646 | 1 | 0 | MIT | 2019-06-22T12:07:29 | 2019-06-22T12:07:29 | null | UTF-8 | C++ | false | false | 16,292 | hpp | EquationSystem.hpp | //============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; ei... |
95f5531e9047a92ff8130e1fa5614a914496cb5c | 263fd0f66c29df9ea9301ecf70c5ba7d91a31e01 | /Project-NN/entity/MenuItem.h | b554d604e345b6e850b16c8de432e159a24a1b1d | [] | no_license | Daminvar/Project-NN | d90a0e1478cf5364fdc92dd895e9e9582908cd33 | 95a92a0627d646dfdbccc89205e3fc639805ff3d | refs/heads/master | 2021-01-18T19:12:02.881171 | 2013-05-16T23:22:17 | 2013-05-16T23:22:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 984 | h | MenuItem.h | #pragma once
#include <iostream>
#include "GameObject.h"
#include "StateManager.h"
class Transform;
class UIDrawable;
class MenuComponent;
enum MENU_ITEM_STYLE {
MENU_STATIC = 0,
MENU_BUTTON = 1
};
struct UIElementBuffer {
float width;
float height;
XMFLOAT2 position;
};
// this describes menu items
struct UI... |
166a04b85fe69619ebd45a716487064b6d6b2a9d | 9a69dc0135bf6ce567343d6b0adaf791c3efc1fd | /main.cpp | c9e6de32b8fc544b999b8a09063d269e93783456 | [] | no_license | cybern0id/SidBerry | 2ce24bbd92d5bf6877f10a7c5d6c01acedb65121 | 46d5d84ec172f3b1523462d3a768b6af4a1f8bc4 | refs/heads/master | 2021-05-29T02:49:23.322789 | 2015-07-04T14:15:23 | 2015-07-04T14:15:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,618 | cpp | main.cpp | //============================================================================
// Description : SidBerry player & driver
// Author : Gianluca Ghettini
//============================================================================
#include <iostream>
using namespace std;
#include <stdlib.h>
#include "mos6502.h"
#... |
65bedec36a90da852a5439ea034b139295598656 | 9f520bcbde8a70e14d5870fd9a88c0989a8fcd61 | /pitzDaily/762/alpha | ea7ed7f9a4b715b55cfb5960ac6176ae6a36b2a1 | [] | no_license | asAmrita/adjoinShapOptimization | 6d47c89fb14d090941da706bd7c39004f515cfea | 079cbec87529be37f81cca3ea8b28c50b9ceb8c5 | refs/heads/master | 2020-08-06T21:32:45.429939 | 2019-10-06T09:58:20 | 2019-10-06T09:58:20 | 213,144,901 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 68,875 | alpha | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
... | |
87772c050b2966873ef5b00fcf6d9826cfd6b805 | 00e69a7bc07b52878fbc43679f83dac715b5c7a9 | /leetcode_solved/[editing]leetcode_1027_Longest_Arithmetic_Sequence.cpp | ab572113872a6d91458b770da635bd8d245c2bc7 | [] | no_license | Ghost-2019/Algorithm | 0589e3017c76d312d26e3433498379e75ad975fd | e4421bf5e900ff5fbe3035456b66bd18f0c30bbe | refs/heads/master | 2022-04-17T00:31:04.963031 | 2020-04-12T06:16:21 | 2020-04-12T06:16:21 | 258,400,595 | 1 | 0 | null | 2020-04-24T03:59:37 | 2020-04-24T03:59:36 | null | UTF-8 | C++ | false | false | 90 | cpp | [editing]leetcode_1027_Longest_Arithmetic_Sequence.cpp | class Solution {
public:
int longestArithSeqLength(vector<int>& A) {
}
}; |
4d664ceb8c997fde4e7d0dbb7bff662807fd84b4 | b402a453d76f2b70ed5bb840025ce7d5bc3f0489 | /Fruta.h | 78bab4e749145277e880cdc175a621249778ec1c | [] | no_license | MAndresSL/Mario_Sanchez_Examen2 | 7aa42bec3c2fe099d898cc2d3472b4dce0c7c4e8 | deabe4f3d339a39d75d4ba679ebe7e291b2e83b4 | refs/heads/master | 2021-06-13T13:42:45.421227 | 2017-03-25T01:10:04 | 2017-03-25T01:10:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 218 | h | Fruta.h | #pragma once
#include <string>
using namespace std;
class Fruta {
protected:
string nombre;
public:
Fruta ();
Fruta(string);
void setNombre(string);
string getNombre();
virtual ~Fruta ();
};
|
2166e82627771f1688f1ee3decd86ea3e920d5b7 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/InnerDetector/InDetConditions/PixelConditionsServices/src/PixelConditionsSummarySvc.h | 8678534dee6ca9ef21523b38c50f69b6f764fdd5 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,060 | h | PixelConditionsSummarySvc.h | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef PIXELCONDITIONSSERVICES_PIXELCONDITIONSSUMMARYSVC_H
#define PIXELCONDITIONSSERVICES_PIXELCONDITIONSSUMMARYSVC_H
#include <string>
#include "AthenaBaseComps/AthService.h"
#include "GaudiKernel/ServiceHandle.h"
#include "AthenaKern... |
a095bbfe9c293eb972a7359c44ac55395d2fcfc6 | 7da0b2806dc4471b472128d5e4e3aba49d9c01e0 | /src/cc/Books/ElementsOfProgrammingInterviews/ch13.cpp | 497d9861f0b608c32774dd1289492e35de63a68d | [
"MIT"
] | permissive | nuggetwheat/study | f0ac18653259c774a46bf39377b0b02f5bac5e4e | 1e438a995c3c6ce783af9ae6a537c349afeedbb8 | refs/heads/master | 2020-04-05T22:51:53.513159 | 2016-02-18T12:23:55 | 2016-02-19T22:14:39 | 34,771,855 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,066 | cpp | ch13.cpp |
#include "ch13.hpp"
#include "reference/ch13.hpp"
#include <algorithm>
#include <cassert>
#include <cctype>
#include <cstdlib>
#include <deque>
#include <fstream>
#include <iostream>
#include <istream>
#include <map>
#include <queue>
#include <random>
#include <sstream>
#include <stack>
#include <stdexcept>
#include ... |
e12967b122ce4af3a2d7f50a407a89f6adb2a7bb | c05625d21c7e4922fd25b28677693abfff48b288 | /framework/sandstone_test_groups.cpp | 80109c7a486b6b6b3ec48d31b988ce008c38b9c6 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | dldaley/opendcdiag | 75cc3cbeb0d9507f35d5108d8dfc1294dee1e261 | 1bd4668f024929d5bcf81cbcb6048453676c2fb4 | refs/heads/main | 2023-08-24T03:06:13.477690 | 2021-10-29T21:37:50 | 2021-10-29T21:37:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 672 | cpp | sandstone_test_groups.cpp | /*
* SPDX-License-Identifier: Apache-2.0
*/
#include "sandstone_p.h"
#if SANDSTONE_RESTRICTED_CMDLINE
# define TEST_GROUP(name, descr) .id = nullptr, .description = nullptr
#else
# define TEST_GROUP(name, descr) .id = name, .description = descr
#endif
__attribute__((section("test_group"), aligned(8)))
extern... |
5d344082f688ebd0453b6340cf64480fc6d0754b | 06a9ffa75f998f7bc7b7978d9c1a1a9a68036f6e | /src/image_selector.cpp | e3168e1675c14c84d2005fc7075b94d0bd62e50f | [] | no_license | wvu-navLab/SRC2-ImageSelector | 0c76b0a52e11145582e5b9b3989ed48afbdd55a7 | 99e5a227aa5d56ed4e3b008f7eed0f699d115a36 | refs/heads/master | 2023-05-31T03:33:02.060287 | 2021-06-07T18:05:20 | 2021-06-07T18:05:20 | 265,283,624 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,434 | cpp | image_selector.cpp | #include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <opencv2/highgui/highgui.hpp>
#include <cv_bridge/cv_bridge.h>
//#define SHOWIMAGES
class ImageSelector
{
ros::NodeHandle nh;
image_transport::ImageTransport it;
image_transport::CameraSubscriber sub;
image_transport::CameraPublisher ... |
fe64a12a545434cae6459c098b40330b11263dde | e5df7e13ce208c75822f4796a2e668a0b4d30ffc | /MyEngine/SourceEditor/Editor_ImGui/EditorMainFrame_ImGui.cpp | 9585dea4ce69d7967242bab4a44889268cc8269a | [] | no_license | JimmyLord/MyEngine | 84db4f981c454339e688b320245c137996f751e1 | 5a0d3f075102a4afcffb8628f5fc7b6c3bad30c0 | refs/heads/master | 2023-02-19T15:50:02.745008 | 2023-02-13T14:35:20 | 2023-02-13T14:35:20 | 26,408,862 | 2 | 1 | null | 2019-05-15T20:51:29 | 2014-11-09T20:55:33 | C++ | UTF-8 | C++ | false | false | 203,353 | cpp | EditorMainFrame_ImGui.cpp | //
// Copyright (c) 2018-2019 Jimmy Lord http://www.flatheadgames.com
//
// This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
// Permission is granted to anyone to use this software for any purp... |
48a6fccee4684b68bcc329da0a8d2ec79cd9e2e8 | 8fe2e38fd3f23f58dd0f35d1f351601f8a723e07 | /drape_frontend/watch/icon_info.hpp | 69918fe6f1f4922c39653b3672388a62415e7565 | [
"Apache-2.0"
] | permissive | ruilin/RLMap | cb139b7fb3020b163a6857cfa6b98f0c930f2a45 | e16b52f77d165e719b3af20b097f227959e8e374 | refs/heads/master | 2022-10-06T10:11:39.760428 | 2019-11-22T01:03:27 | 2019-11-22T01:03:27 | 97,201,756 | 2 | 1 | Apache-2.0 | 2022-10-04T23:29:25 | 2017-07-14T06:39:33 | C++ | UTF-8 | C++ | false | false | 202 | hpp | icon_info.hpp | #pragma once
#include "std/string.hpp"
namespace df
{
namespace watch
{
struct IconInfo
{
string m_name;
IconInfo() = default;
explicit IconInfo(string const & name) : m_name(name) {}
};
}
}
|
4236ba5788606144ddc94772f41a2bc5ecdf2d96 | db81540b3d817ddbc0c38fb0e0c44f16c574a94c | /spatiumgl/gfx3d/src/gfx3d/PointCloud.cpp | 291a56a32599435945e3bcbb5f90625a2eacbde5 | [] | no_license | Graphics-Physics-Libraries/SpatiumGL | 461fe595b08c83488e216ede8f54bd0dacf51268 | 8d191f5ff4b122e81368c0ef071ed59e5b4145a0 | refs/heads/master | 2020-08-01T04:06:11.302475 | 2019-09-25T12:26:56 | 2019-09-25T12:26:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,151 | cpp | PointCloud.cpp | /*
* Program: Spatium Graphics Library
*
* Copyright (C) Martijn Koopman
* All Rights Reserved
*
* This software is distributed WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE.
*
*/
#include "spatiumgl/gfx3d/PointCloud.hpp"
namespace spatium... |
9bf2d6060763337448ae5c441b871cbf9128535e | e1f3172d7a034930e4fbc66b2560868a0d18bbf2 | /ClassTraningAnimal/AnimalClass.cpp | 432206243784cf72e96958e22b8d000ee8049ff7 | [] | no_license | vallisneria/hknu2-programming-to-cpp | 1cace2d40de741ec0f94083f4910adda1cea8502 | 4c76f91cb349bb1c48cf8adf94cb7c174227ebd1 | refs/heads/master | 2023-03-08T09:59:02.282119 | 2019-08-31T13:40:08 | 2019-08-31T13:40:08 | 342,198,642 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,286 | cpp | AnimalClass.cpp | /*
고급프로그래밍1 실습
동물 클래스 만들기
- 고양이와 토끼와 사람은 동물에 포함되고 학생은 사람에 포함됨.
- 고양이와 사람과 학생 객체가 speak()메서드를 실행할 때 각각 meow, hello, I have a homework를 출력함.
토끼는 speak() 메서드가 없다.
- 객체에서 print()메서드를 실행하면 동물종류: (나이, 이름)을 출력함
- Animal 클래스 내에서 객체의 개수를 세는 static 변수를 만든다.
*/
#include <iostream>
class Animal... |
2f83b0ac0cf7d916eccc8d3c16dd3115b9b63d15 | f61816a8c62b51160b02a77fb14418173f59edfa | /Input Combos/Motor2D/j1Printer.cpp | 38e55397f802ab8799c859a9085d986f2a71f9e2 | [
"MIT"
] | permissive | EggBitsTeam/King_Hackaton2k18 | e3a3d8c14222a0892591cbb03334a7e094888570 | d3ad526745f177cdf1364ad6001af33af885650b | refs/heads/master | 2020-03-16T23:39:42.977663 | 2018-05-13T03:26:22 | 2018-05-13T03:26:22 | 133,086,101 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,804 | cpp | j1Printer.cpp | #include "j1Printer.h"
#include "ctRender.h"
//#include "Brofiler\Brofiler.h"
bool j1Printer::Awake(pugi::xml_node&)
{
return true;
}
bool j1Printer::Start()
{
return true;
}
bool j1Printer::PreUpdate()
{
return true;
}
bool j1Printer::Update(float dt)
{
return true;
}
bool j1Printer::PostUpdate()
{
while (!draw... |
db4bad575b75ac4b2627193f068ae38ebe73000b | 030646c52a7833baac9d58d39c825d90b2f5619c | /ast-compile.cc | 2ebaeb7f8762487e3f16e5f9c992acdd41453335 | [] | no_license | pranavrao870/compiler-cs316 | 47251bf00efc7c415eedd48c319c8bd1349464fd | 5acb993e4100f93494d3cc85b35965d61f0e9a53 | refs/heads/master | 2020-07-03T01:34:12.791006 | 2019-08-11T09:18:38 | 2019-08-11T09:18:38 | 201,743,033 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,940 | cc | ast-compile.cc | #include <string.h>
#include <string>
#include <sstream>
#include "icode.hh"
#include "reg-alloc.hh"
using namespace std;
template class Number_Ast<double>;
template class Number_Ast<int>;
//////////////////////////////////////////////////////////////////////
Code_For_Ast & Ast::create_store_stmt(Register_Descriptor... |
50c84ccd3229b15599c91101e57b090e13298e63 | 5ab111a422e95eaa9ddda219cdff4ba9d7da582a | /ptrtofun.cpp | 4647fa3c33afc20de6916924718782246eaa70bc | [] | no_license | Waseem-Raja/c-plusplus | 35ee84b33c01d895008193e8db538929b960c695 | f313f4501b61bf0e3f126bc7ec3d1b93ad7ae6ef | refs/heads/main | 2023-04-25T02:43:28.194278 | 2021-05-11T04:39:12 | 2021-05-11T04:39:12 | 321,020,255 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,542 | cpp | ptrtofun.cpp | /*#include<iostream>
using namespace std;
int add(int a,int b)
{
int c=a+b;
cout<<c;
}
int main()
{
int (*addd)(int,int); // decleration of function poniter
addd=add; //here u can write &add as well its optional, add functions address is stored in function pointer addd
(*add)(3,4); // here u can... |
96345add3082e9faf3c9ace73df655527feb6551 | a1c20f842718990ca6041a728f4a3c77bc16a83a | /ApartmentManager/mainwindow.cpp | 76ed5e6e90367bee78eb3d8bbef6d2862fc8e64b | [] | no_license | RasmusAntons/apartmentmanager | 342f8a5664b983cc931eaac7c94e05ad2dcdb65f | 80c78918122cb327a77bd40e00d944b87353300a | refs/heads/master | 2021-01-10T16:15:59.097203 | 2016-04-07T19:23:05 | 2016-04-07T19:23:05 | 55,721,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,877 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
QStringList RssText;
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7
void MainWindow::onTimeChanged() {
QTime time = QTim... |
6efca80fd64a74adf711d23284153eb072789efc | 21d0756e90c916684d531edc45ba6a4707c654f4 | /include/irods/private/re/python/types/standard/arrays.hpp | 7d49b97ca46262d098dd2f9474afb13ce487f2c1 | [] | no_license | irods/irods_rule_engine_plugin_python | 8db27464a1898613849d4f216a60e20afb5665d8 | 773105f6c429ad708adfbf292164dfc9aaf3e3cf | refs/heads/main | 2023-08-06T19:30:05.326697 | 2023-07-28T20:30:13 | 2023-07-28T20:51:16 | 37,076,977 | 7 | 13 | null | 2023-07-28T20:51:17 | 2015-06-08T15:55:22 | C++ | UTF-8 | C++ | false | false | 357 | hpp | arrays.hpp | #ifndef RE_PYTHON_TYPES_STANDARD_ARRAYS_HPP
#define RE_PYTHON_TYPES_STANDARD_ARRAYS_HPP
namespace irods::re::python::types
{
void export_int_array();
void export_char_array();
void export_unsigned_char_array();
void export_c_string();
void export_c_string_array();
} //namespace irods::re::python::types
#endif //... |
68149d33873f455a909f79fb57bcca88a937c9dd | 0f01dab3b868e94298fc54d5b449c71f435a56e3 | /游戏组件/子游戏/百人龙虎斗(机器人+控制+真人下注显示)/客户端组件/GameLogic.cpp | 9059f68936dbd833894a39535772e652e1417df5 | [] | no_license | ydcrow/refFoxuc | c6284476ed530263a5ffb8f8e7d37251e393c0d2 | f85601c050bb5f24883c88bbef0982b16ff952e3 | refs/heads/master | 2023-02-07T06:03:06.317797 | 2020-12-26T02:49:37 | 2020-12-26T02:49:37 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,109 | cpp | GameLogic.cpp | #include "StdAfx.h"
#include "GameLogic.h"
//////////////////////////////////////////////////////////////////////////
//扑克数据
BYTE CGameLogic::m_cbCardListData[52]=
{
0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D, //方块 A - K
0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,0x1B,0x1C,0x1D, //梅花 A... |
d2e5fb9aa033676796a1ac0c90e973fd469a4da5 | d448ec171b9c83e3113cb5124d0fdd7c98613fbb | /PAEngine/source/InputType.cpp | 1e8e546c39aa2d6ce80f0dfc42e91bbab64e6155 | [
"MIT"
] | permissive | wnsrl7659/Project-ToyTank | 5c7482af8ba735595fa98d2b673c250c8ca80c2d | 8b806f7cf304056eb38e1436b3f5c0e9d1bb51e0 | refs/heads/master | 2023-08-22T03:42:21.887048 | 2021-09-26T02:31:16 | 2021-09-26T02:31:16 | 403,217,182 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,304 | cpp | InputType.cpp | /**
* @file InputType.cpp
*
* @brief It's an implementation file of InputType.h
*
* @author Minsu Kang
*
* @copyright (c) DigiPen Institute of Technology
*/
#include "pch.h"
#include "InputType.h"
namespace PAEngine
{
//////////////////////////////////////////////////////////////////////////////
// BindIn... |
b2ecfd10ae86202efb0af6a37198f95f1fbc780e | 315fd47690450e7a0530bf4b3596cc9448c88929 | /aoj/13/1320.cpp | 7ae7aeb083724e28fad4e8f82d0acc72d7c72955 | [] | no_license | 1119-2916/competitive-programming | 8d59f2c3c36de719d665307fcaa138cc03845573 | 356b66d2f93bf6e28f04af8968e0f1f6ae4d7bae | refs/heads/master | 2021-06-08T14:33:14.620002 | 2020-04-26T14:01:44 | 2020-04-26T14:01:44 | 108,534,522 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,202 | cpp | 1320.cpp | #include <bits/stdc++.h>
using namespace std;
#define INF 1001000100010001000
#define MOD 1000000007
#define EPS 1e-10
#define int long long
#define rep(i, N) for (int i = 0; i < N; i++)
#define Rep(i, N) for (int i = 1; i < N; i++)
#define For(i, a, b) for (int i = (a); i < (b); i++)
#define pb push_back
#define eb ... |
95cfb6a078eb885304fe6a6e7b32c4349e316b08 | fe4b368fa2a7b959f3000e45dedf334aaa8f1d05 | /AlgoA-Pertemuan8-5180711018.cpp | fe0c905af226672d52f513f8c82fc11b213979da | [] | no_license | hanipabdullah/TugasAlgo | 28d46aef77be8ac073ee503b98cd2b34dc12a6ed | 16805c7ec5eb1d5bc257d60930f060bf151a0762 | refs/heads/master | 2020-05-09T13:23:24.550708 | 2019-04-13T09:41:45 | 2019-04-13T09:41:45 | 181,150,174 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,165 | cpp | AlgoA-Pertemuan8-5180711018.cpp | #include<iostream>
using namespace::std;
float input(string text)
{
double angka;
cout<<" Inputkan Nilai "<<text<<" : "; cin>>angka;
return angka;
}
void nilai (float dapat)
{
if(dapat>80)
{
cout<<" Anda Dapat Nilai (A) ";
}
else if(dapat>60)
{
cout<<" A... |
9df5871f6b52c1951a3bf3ea6da583ad97739ddf | e16058f3eb62ffe6abaf8595910585028c5873be | /csc402/assignment6/arrayBsTree.h | 7ca82455b5fe12c360040c21ae85857cd4c0012a | [] | no_license | ccarr419/Academic-Projects | 6b38c7f077cd49c1c86d000b1e47e1c8446ba631 | 71967751b4233f57e858944562db38cf506fc5d3 | refs/heads/master | 2023-06-07T17:36:59.265211 | 2020-08-14T14:30:11 | 2020-08-14T14:30:11 | 51,627,389 | 0 | 0 | null | 2023-05-31T20:19:03 | 2016-02-13T01:43:09 | Java | UTF-8 | C++ | false | false | 1,088 | h | arrayBsTree.h | /*
Author: Christian Carreras
File: treeGraph.h
Date: 10/18/2015
Class: CSC 402
About: Header file for treeGraph. treeGraph is a binary tree
that ties together nodes in accordance to their values.
This basic binary tree can insert nodes into the tree
and print the tree in order, pre order or post ord... |
342f284b0e89c32a4859bac2d2ace06c613e44a2 | eaff3f7a95e30bdb897c91c6e01c5281f56142f9 | /src/ros_threads/src/ThreadsServer.cpp | d26db6c42c941d3ce28ed007f611a7d8880d8d29 | [] | no_license | sumejko92/pavel-tasks | fcfeeea871c434ea1afdbc7908baa98b8a5ca3b3 | 647e8665aaacb88d17c4b5487143e277ae4e9b61 | refs/heads/master | 2021-05-23T05:21:49.141537 | 2019-10-22T07:05:18 | 2019-10-22T07:05:18 | 95,138,999 | 0 | 2 | null | 2019-10-22T07:05:19 | 2017-06-22T17:14:43 | C++ | UTF-8 | C++ | false | false | 2,848 | cpp | ThreadsServer.cpp | /*
* Copyright (c) ??? - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Authors: Pavel Shumejko
*/
#include "ros/ros.h"
#include "ros_threads/TimeDelay.h"
#include "string"
#include "thread"
#include "chrono"
/**
* This class conta... |
7f87b6e9c100b73513cec52b1f6de82abbea8fdf | 20d1c5315595c731a2b0e6846af068e791d0aa2e | /C++17Study/14_constexpr_Lambda_Expressions.cpp | 2e3f2253f049df985fad09b97d47b9e52630b09d | [] | no_license | WhiteCri/Cpp17Study | 15b71aaad3ce91da279f8461e23e50b43b179d30 | 5d5eb259d63e239fe222a71e7d6b0390d3a2c7f7 | refs/heads/master | 2021-05-21T19:45:18.261239 | 2020-04-06T12:28:58 | 2020-04-06T12:28:58 | 252,775,022 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 639 | cpp | 14_constexpr_Lambda_Expressions.cpp | #include <iostream>
//Since C++17 lambda expressions (their call operator operator()) that follow the rules of
//standard constexpr functions are implicitly declared as constexpr
int main() {
constexpr auto SquareLambda = [](int n) {return n * n; };
static_assert(SquareLambda(3) == 10, "her!");
}
//features of... |
bba73442631fcb58d6df3131322823813cf372bd | 963a759f023c5da4762bd9b6414ee21f95a23d28 | /ch10/ex10_31.cpp | 753bbf94824bd0f5296b596b6650bfff801a1631 | [
"CC0-1.0"
] | permissive | zhangzhizhongz3/CppPrimer | af0fa2d3a8ac69e521dffac25053af088ee62fe0 | effe6505e417023124ed3ff41451c64dcf2cdfda | refs/heads/master | 2020-12-25T03:00:13.512787 | 2016-09-15T04:25:25 | 2016-09-15T04:25:25 | 62,138,513 | 0 | 0 | null | 2016-06-28T12:22:23 | 2016-06-28T12:22:23 | null | UTF-8 | C++ | false | false | 606 | cpp | ex10_31.cpp | //
// ex10_31.cpp
// Exercise 10.31
//
// Created by pezy on 12/13/14.
// Copyright (c) 2014 pezy. All rights reserved.
//
// Update the program from the previous exercise so that it prints only the
// unique elements. Your program should use unqiue_copy.
#include <iostream>
#include <iterator>
#include <vector>... |
ce07e4ee1e63b371be86523e059a5928a35be614 | f41dba42b2aaf9df9b52e09e47cdc25da2e6e0e9 | /Greedy/Max_Set_of_Disjoint_Intervals.cpp | ca1f15b8506c8bf2768e731617504a3df9e1f4e0 | [] | no_license | Satzyakiz/CP | 5c9642fdede7fbe213fb98f259deda978712ef49 | e869dfd2bd6f3fc692e9223c2d370b5c95904701 | refs/heads/master | 2023-03-02T11:52:52.472154 | 2021-02-03T06:50:32 | 2021-02-03T06:50:32 | 258,285,110 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,372 | cpp | Max_Set_of_Disjoint_Intervals.cpp | // Given a set of N intervals denoted by 2D array A of size N x 2, the task is
// to find the length of maximal set of mutually disjoint intervals.
//
// Two intervals [x, y] & [p, q] are said to be disjoint if they do not
// have any point in common.
//
// Return a integer denoting the length of maximal set of mutual... |
d9adeaa1b6031b7ffa0f08b483d8ab8f39922d90 | 4516a547d243dd79b329303705499f639f873407 | /server/db.h | 93d3c7e175bf740c3774d9d880bdfe3479f09615 | [] | no_license | hubmaker/Arrive-Alive-SWIFT | 89ae4bb3eced56a465c365556b40ed604cfcb1a3 | bd48b9f874bec396a93768e25fa2eac2cc596869 | refs/heads/master | 2022-10-26T03:56:59.524272 | 2020-05-26T14:07:56 | 2020-05-26T14:07:56 | 267,031,914 | 0 | 0 | null | 2020-05-26T12:05:11 | 2020-05-26T12:05:10 | null | UTF-8 | C++ | false | false | 466 | h | db.h | #pragma once
#include <iostream>
#include <mysql.h>
#include <string>
#include <mutex>
#pragma comment (lib , "libmysql.lib")
class DB {
private:
MYSQL * connection, conn;
MYSQL_RES *sql_result;
MYSQL_ROW sql_row;
int query_stat;
std::mutex DB_mtx;
public:
int class_stat;
DB();
DB(const ... |
94a181cb6518a5be3d523d45d6ecfa2808b6a8ac | f0b6c15feb1f63ca945fe073135599993084b08d | /src/testApp.cpp | 1829006c47855f09490a3fe7fca1a1d42c370099 | [] | no_license | ryanbartley/SpacebrewoFX1 | 1d2f0b20beb5b985e640e3e31bd74444b4110f0d | 2ecbd2d2a533cf7a1c82f4495dc5ca51fe36746f | refs/heads/master | 2021-01-25T06:36:42.305089 | 2013-02-13T02:08:58 | 2013-02-13T02:08:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,449 | cpp | testApp.cpp | #include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
ofSetFrameRate(60);
string host = "54.235.111.53";
string name = "of-button-example";
string description = "It's amazing";
spacebrew.addPublish("button", Spacebrew::TYPE_BOOLEAN);
s... |
3cc53e7301b02842373739b01c417f5bff0f9788 | c1141c6e3d19577163befc4369e023c2cb44eb05 | /SphereCollatz.c++ | f5507c1fe7460497b218d957758265be0d743965 | [] | no_license | bkvanvig/Collatz-Conjecture | 725cce37e50b060b89466ad5a0051a2bd936a6d7 | b7ec9532ef5c13ca700b324b6932198e7948aa5c | refs/heads/master | 2021-01-20T22:04:50.927329 | 2016-07-05T16:40:03 | 2016-07-05T16:40:03 | 62,745,960 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,950 | SphereCollatz.c++ | // --------------------------
// projects/collatz/Collatz.h
// Copyright (C) 2015
// Glenn P. Downing
// --------------------------
#ifndef Collatz_h
#define Collatz_h
// --------
// includes
// --------
#include <cassert> // assert
#include <iostream> // endl, istream, ostream
#include <sstream> // istringstream... | |
5cf97418750491cfc0d456507d463fcef75abbf7 | 6e55e2a8d177eb7ec64d3820b7c6066f87ac4783 | /scripts/dp/32_longest-valid-parentheses.cpp | ba1a6c8de6127b18ddb24304a4ef2c33e5035fa9 | [] | no_license | superMC5657/self_leetcode | ecf56f5a326a35232b2478a436fce802cdca5437 | e53cd9fcd07beec1396e0fa1af203855e2140547 | refs/heads/master | 2021-07-04T17:14:48.503017 | 2020-11-19T05:45:51 | 2020-11-19T05:45:51 | 201,088,256 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,056 | cpp | 32_longest-valid-parentheses.cpp | /* -*- coding: utf-8 -*-
!@time: 2019-09-17 13:45
!@author: superMC @email: 18758266469@163.com
!@fileName: 32_longest.cpp
*/
#include <environment.h>
#include <function.hpp>
class Solution {
public:
int longestValidParentheses(string s) {
int res = 0;
int left = 0;
int mark = 0;
... |
76c1da3324f6a20fb5bc544178e98a1f1a504bd6 | d1625162b37486d239c852107df3ee36a3ba2baa | /LV02_ZAD05.ino | 112073af091d68433433ac48481d07a628e5d2a7 | [] | no_license | 0mnitron/arduino | ed86c5d692cd7431db0d784c596428c7a4255337 | ce15efcef357eed67a06bdeb7ec0aeb0e33b0195 | refs/heads/master | 2023-04-28T14:49:18.812415 | 2021-05-17T11:36:48 | 2021-05-17T11:36:48 | 296,886,241 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,052 | ino | LV02_ZAD05.ino | int pin_SW1 = 8;
int pin_SW2 = 7;
int led1 = 2;
int led2 = 3;
int led3 = 4;
int led4 = 5;
int led5 = 6;
int button1 = 0;
int button2 = 0;
int nDelay = 200;
void setup() {
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
pinMode(led4, OUTPUT);
pinMode(led5, OUTPUT);
pinMode(pin_SW1... |
57592cc222667ced33a504b7c481d8b66d4a0fa2 | 3266d98067fa3da9f36b0854f49687604d2d142f | /hephaestus-lib/src/REND/RenderableInstance.h | aef7ad4fbfc3a8cae21df9f2a5a6febfcfe687d5 | [] | no_license | chrisschuette/HephaestusLibrary | f4457de92cc51b22689f19a41e0f40b78fa09063 | 869ab7a7347a34c701674abcb985d0c4ee1c2c0a | refs/heads/master | 2021-01-20T02:46:53.711954 | 2014-06-29T15:56:02 | 2014-06-29T15:56:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 679 | h | RenderableInstance.h | /*
* File: RenderableInstance.h
* Author: chris
*
* Created on June 2, 2014, 12:40 AM
*/
#ifndef RENDERABLEINSTANCE_H
#define RENDERABLEINSTANCE_H
#include <list>
namespace REND {
class Renderer;
class Renderable;
class UniformSetting;
class RenderableInstance {
public:
Renderable... |
9293a12f5be4548f426866682e6a1b487d98af57 | 38dbe4904a67f33ffd95e4ba6ab0ef88bae6f8eb | /Creation,Insertion,Searching,Deletion,Traversing and replacing in Link list.CPP | 6edc6ee0dc6b6f9b520c772be5e661d4a433d9ec | [] | no_license | Shashank02051997/datastructureinc | 829a2d7af3aa5d698129c6e4df1ce8f2225be308 | bd1e85aed0223fc5fc750943f3eb4a4c31316147 | refs/heads/master | 2021-01-12T02:18:35.403400 | 2017-01-10T05:11:31 | 2017-01-10T05:11:31 | 78,498,585 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,205 | cpp | Creation,Insertion,Searching,Deletion,Traversing and replacing in Link list.CPP | //Creation,Insertion,Searching,Deletion,Traversing and replacing in Link list
#include<stdio.h>
#include<conio.h>
#include<alloc.h>
struct node
{ int data;
struct node *next;
};
struct node *start=NULL;
void creation()
{ struct node *q,*t;
t=(struct node*)malloc(sizeof(struct node));
printf("Enter an ele... |
a15677e473f3230bac5f394ff3ebe8bd3ec0012b | 95ae6fa9cc64bc2f537753475c1b84ae526391b1 | /source/tm/ability.cpp | 25f002125a666c92b33c29f11f8198e3ad7e5879 | [
"BSL-1.0"
] | permissive | OctalMicrobe/technical-machine | 7deeb30cf1ff2eb730bc0ad9efc4794b30c6cf5c | bffa259bd4d069ce104efa21fef34a5342ee0755 | refs/heads/master | 2023-02-04T00:43:19.534781 | 2020-12-20T17:21:50 | 2020-12-20T17:21:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,757 | cpp | ability.cpp | // Copyright David Stone 2020.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <tm/ability.hpp>
#include <tm/move/category.hpp>
#include <tm/move/move.hpp>
#include <tm/move/moves.hpp>
#include <tm/po... |
2e41a03fe0a9d08fde31130965f86a8e2883f8b6 | 50a4352f6eb04e84dd2f65c35c0f0f7b349b7624 | /app/scenes/LevelScene.h | 12e427350228438317f4306372c15d45fb9da64f | [] | no_license | and3rson/campfire | 3aa04a2141bb9dd9a262f74bb6437371bfbd9161 | a49b764e696d9a4ed5d31cd46bf614a9e883ebe7 | refs/heads/master | 2021-01-10T13:48:41.356926 | 2015-11-01T18:21:28 | 2015-11-01T18:21:28 | 43,603,547 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,069 | h | LevelScene.h | #ifndef MAINMENUSCENE_H
#define MAINMENUSCENE_H
#include <SFML/Graphics.hpp>
#include <customtypes.h>
#include "../scenes/AScene.h"
#include "../world/Camera.h"
#include "world/Creature.h"
#include "world/Grid.h"
#include "world/Projectile.h"
class GameEngine;
class LevelScene : public AScene
{
public:
LevelSce... |
ecbae20296f2978743ca3836657761a48c9cd452 | 5ef0b4d230dc5243225d149efb44cdcdd2ffea9d | /trunk/cpp-tests/2420-content/control_flow/sum.cpp | 3a8c126996c242e4d88061ab5b190b5f19695943 | [] | no_license | kai-zhu/the-teaching-machine-and-webwriter | 3d3b3dfdecd61e0fb2146b44c42d6467489fd94f | 67adf8f41bb475108c285eb0894906cb0878849c | refs/heads/master | 2021-01-16T20:47:55.620437 | 2016-05-23T12:38:03 | 2016-05-23T12:38:12 | 61,149,759 | 1 | 0 | null | 2016-06-14T19:22:57 | 2016-06-14T19:22:57 | null | UTF-8 | C++ | false | false | 1,325 | cpp | sum.cpp | /*#HA*//******************************************************************
* Memorial University of Newfoundland
* Engineering 2420 Structured Programming
* sum.cpp -- Illustrate using while loops to sum some values.
*
*
* Author: Dennis Peters
*
*****************************************************************... |
cfb4046d86cb39a1ff0da006b1623c0624aab817 | cfdab33825bb160dea64f0aab79b7206bf82e6d7 | /5704/5704.cc | 0bc80ecfc0ae7b06176d65771900d879954d5e85 | [] | no_license | wjdwithyou/BOJ | 299e0efaf3e5173addc55709fed5c19a458a0900 | a8ab50a14f2059905be4093b1f889c02f568126c | refs/heads/master | 2021-01-11T20:18:13.462615 | 2018-01-24T14:28:25 | 2018-01-24T14:28:25 | 81,535,224 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 609 | cc | 5704.cc | #include <iostream>
#include <cstring>
int main() {
char buf[256];
int alpha[32];
int cnt;
while (true) {
memset(alpha, 0, sizeof(alpha));
cnt = 0;
fgets(buf, 256, stdin);
if (buf[0] == '*') {
break;
}
for (int ... |
4c589293708f55886220d5648ed029e6993a8a41 | b367fe5f0c2c50846b002b59472c50453e1629bc | /xbox_leak_may_2020/xbox trunk/xbox/private/atg/samples/cert/game/PhysicsSystem.cpp | 51178cd46e36600b7ab20a4a7483c4f04add8952 | [] | no_license | sgzwiz/xbox_leak_may_2020 | 11b441502a659c8da8a1aa199f89f6236dd59325 | fd00b4b3b2abb1ea6ef9ac64b755419741a3af00 | refs/heads/master | 2022-12-23T16:14:54.706755 | 2020-09-27T18:24:48 | 2020-09-27T18:24:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 33,849 | cpp | PhysicsSystem.cpp | //-----------------------------------------------------------------------------
// FILE: PhysicsSystem.cpp
//
// Desc: Physics system
//
// Hist: 04.10.01 - New for May XDK release
//
// Copyright (c) 1999-2000 Microsoft Corporation. All rights reserved.
//------------------------------------------------------... |
0fd2526d620846a67367cf6655fe6a38bdc4e566 | feb970ee041c281d9bce9658d72d72891e4a2a0d | /SmartFM/SmartFMV1/lib/Utils/logsplittype.cpp | a1f8291cc9cd6be267acccf33ab804e997d93eab | [] | no_license | yogeshiggalore/RandomLearning | e4a72644104d4787f68580a2ba79e1137ceb5ecf | d1b2b54076d6e601bbbadd4d1567720e58a0dabf | refs/heads/main | 2023-04-16T18:18:37.605826 | 2021-04-30T07:12:49 | 2021-04-30T07:12:49 | 308,560,973 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 633 | cpp | logsplittype.cpp | #include<string>
#include<logsplittype.h>
using namespace std;
LogSplitType LogSplitType::Parse(int code)
{
if(code == Monthly)
{
return Monthly;
}
else if(code == Hourly)
{
return Hourly;
}
return Daily;
}
string LogSplitType::ToString()
{
return this->GetLabel()... |
438e5a6530d6f7885f0a5203ae4a2c9d524d3832 | 43f42ce170085a5253d4a6f3f844cec648aa0904 | /Illumination/FileIO.h | 7b784e3247d3882b50876a5f27187c89d4865698 | [] | no_license | anjaldoshi/vk_forge | eb3148b0864102d05f02fcae5c65e45af9fc1f32 | 35606a510f9e7ac9d80aaa696a8bafdca4baa493 | refs/heads/master | 2020-04-07T18:12:12.162678 | 2018-11-21T21:24:58 | 2018-11-21T21:24:58 | 158,601,161 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 385 | h | FileIO.h | #pragma once
//STL
#include <string>
#include <vector>
#include "Vertex.h"
std::vector<char> readShaderFile(const std::string& filename);
void readObjFile(const std::string& filename, std::vector<Vertex>& vertices, std::vector<uint32_t>& indices, VkFrontFace frontFace);
//helper function for readObjFile
std::vecto... |
270ed00ef597b655d81a9f3954c42ac03ec961d0 | b367fe5f0c2c50846b002b59472c50453e1629bc | /xbox_leak_may_2020/xbox trunk/xbox/private/atg/samples/template/template.cpp | fb9115d154e4189daf6be4f75de0298cd6e0ec17 | [] | no_license | sgzwiz/xbox_leak_may_2020 | 11b441502a659c8da8a1aa199f89f6236dd59325 | fd00b4b3b2abb1ea6ef9ac64b755419741a3af00 | refs/heads/master | 2022-12-23T16:14:54.706755 | 2020-09-27T18:24:48 | 2020-09-27T18:24:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,105 | cpp | template.cpp | //-----------------------------------------------------------------------------
// File: %%NAME%%.cpp
//
// Desc: [TODO: Describe source file here]
//
// Hist: %%DATE%% - Created
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//-------------------------------------------------------------------... |
f9a6586caed899e6c7810a960169f35b5d5d1aa0 | cea7712c53481bf7f25cf28f06ba432fab4af1bc | /Game/OceanSurface.h | ea20a725e425b7835ec1a4f5f5e24435ce481fe6 | [
"CC-BY-4.0"
] | permissive | Barrown1990/Floating-Sandbox | 09a31d4c7ecccecc8200bc198a734337c178744f | 4c67c93690ea867dd207a8d2283b6bd0d5299d48 | refs/heads/master | 2021-01-02T11:43:58.746831 | 2020-02-09T14:30:44 | 2020-02-09T14:30:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,773 | h | OceanSurface.h | /***************************************************************************************
* Original Author: Gabriele Giuseppini
* Created: 2018-04-14
* Copyright: Gabriele Giuseppini (https://github.com/GabrieleGiuseppini)
***************************************************************************************/
#... |
920f1bf69a8f7d28b0d2287f2d2ec055da094aba | d0a3daad04d83c3266f92eb37ccbdcf2f6ce56af | /SampleProject/CommonHal/IUsbHidDevice.h | ba407901cbdac990d9ce2ac17d723882a78534c0 | [
"MIT"
] | permissive | Pursche/AvalonStudio | b51807f04d6b2d250ea8e9c13804fe19fef7e3ca | 424bdf30a59772d1a53c202eb5e04c32a3254bb4 | refs/heads/master | 2021-01-20T06:32:56.448625 | 2016-09-06T10:00:11 | 2016-09-06T10:00:11 | 67,428,410 | 0 | 0 | null | 2016-09-05T14:40:12 | 2016-09-05T14:40:11 | null | UTF-8 | C++ | false | false | 1,610 | h | IUsbHidDevice.h | /******************************************************************************
* Description:
*
* Author:
* Date: 27 April 2015
*
*******************************************************************************/
#pragma mark Compiler Pragmas
#ifndef _IUSBHIDDEVICE_H_
#define _IUSBHIDDEVICE_H_
#prag... |
b4db76fb391e27ed9468849143c14cabb4e0d050 | a9932499afdc4fe4fea8636f03fc3b178c7b36b8 | /ItemSnack.h | 51de3b9f7e6ca7637b81127b0883effd0469b1ac | [] | no_license | syashavanth/Vending-Machine | 868b0b11693644eb365ddc1ce4ee642888e5b0e2 | abd71957caf3ad839957dd87c1afd1ffd5a38b07 | refs/heads/master | 2020-03-16T23:50:29.513388 | 2018-07-29T02:54:13 | 2018-07-29T02:54:13 | 133,093,358 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 262 | h | ItemSnack.h |
#ifndef ITEMSNACK_H
#define ITEMSNACK_H
#include "Products.h"
class ItemSnack :public Products{
public:
ItemSnack(int = 1,float = 0.5f);
void printDetails();
virtual ~ItemSnack();
private:
};
#endif /* ITEMSNACK_H */
|
32374a8d57a48d6cf2ecfdc377f450d332625a00 | 4cdb2ea3869c5c63aa4f07acb5a36f06c5bd8dc8 | /src/lib/solution.cc | 8be8f347c0dce3e5f2b4b18b9b7aa732cf1b1f99 | [] | no_license | anujp10/EE_599_HW_2_1 | d45656ed80d5669205c09167bccb6a227344ab2b | 8322b195760714327042c3b08920f31af70e0f35 | refs/heads/master | 2020-12-26T22:15:59.988058 | 2020-02-01T20:09:45 | 2020-02-01T20:09:45 | 237,664,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 543 | cc | solution.cc | #include "solution.h"
int Solution::Add(int val1, int val2) {
int result;
result = val1 + val2;
return result;
}
std::string Solution::Add(std::string str1, std::string str2) {
std::string result;
if (str1.empty() || str2.empty())
return "Invalid input";
result = str1 + str2;
return result; ... |
d6e7d11c5f90dd921f0acac52c30175e90b251fa | 2aa4c7c94866e7a958e4787dd4487aa7c1eb8d61 | /applications/ShallowWaterApplication/custom_utilities/shallow_water_variables_utility.h | 778d5d85299baeb9a9a00dc02dac9aadc849e471 | [
"BSD-3-Clause"
] | permissive | PFEM/Kratos | b48df91e6ef5a00edf125e6f5aa398505c9c2b96 | 796c8572e9fe3875562d77370fc60beeacca0eeb | refs/heads/master | 2021-10-16T04:33:47.591467 | 2019-02-04T14:22:06 | 2019-02-04T14:22:06 | 106,919,267 | 1 | 0 | null | 2017-10-14T10:34:43 | 2017-10-14T10:34:43 | null | UTF-8 | C++ | false | false | 12,060 | h | shallow_water_variables_utility.h | // | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: Miguel Maso Sotomayor
//
#if ... |
a71b2b441d8c06e7476da88eb5e61d14326ec592 | 41f3c18ce759df5eb0d5a80fa4e8cf2883ecf98c | /lightoj/1190 - Sleepwalking.cpp | 7608e2d0ee7d2de1f092a545b5721931eb122177 | [] | no_license | tanvirtareq/programming | 6d9abafb844b1e80b7691157b0581a3b25b9cd59 | 040f636773df2d89fb7c169fe077f527f68140a4 | refs/heads/master | 2021-06-27T12:07:07.585682 | 2021-03-28T12:39:49 | 2021-03-28T12:39:49 | 217,275,688 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,817 | cpp | 1190 - Sleepwalking.cpp | #include<bits/stdc++.h>
#define ll long long
using namespace std;
ll n;
struct ii{
ll x, y;
ii operator - (ii a)
{
return {x-a.x, y-a.y};
}
};
ll cross(ii a, ii b)
{
return a.x*b.y-a.y*b.x;
}
ll dot(ii a, ii b)
{
return a.x*b.x+a.y*b.y;
}
ll distsq(ii a, ii b)
{
return ... |
a85c3c75cce669a7d454d5e2bec538864e4587a1 | 9f520bcbde8a70e14d5870fd9a88c0989a8fcd61 | /pitzDaily/109/pa | a808f16194ea40fc24be2274f46f7a8877fac2bd | [] | no_license | asAmrita/adjoinShapOptimization | 6d47c89fb14d090941da706bd7c39004f515cfea | 079cbec87529be37f81cca3ea8b28c50b9ceb8c5 | refs/heads/master | 2020-08-06T21:32:45.429939 | 2019-10-06T09:58:20 | 2019-10-06T09:58:20 | 213,144,901 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 104,792 | pa | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
... | |
6314ba28c5307380cbce9b4535ce7c3b6a46ee9a | 94e8e0d10dd993cb08785d1bab6aafc1055f509d | /Master2010/Master2010/samples/S11/S11.metaprogramation.h | e7ee814b80f563061a3683e2cfe0054780e809ae | [] | no_license | albertomila/continous-formation | 1d416170d2ad85ad1e2ea5eef0f2436cd299c716 | e3a57f0fc22dc16b1e9cce1ed100795ca664359d | refs/heads/master | 2020-06-14T00:46:23.147271 | 2019-07-08T18:38:54 | 2019-07-08T18:38:54 | 194,838,856 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 9,184 | h | S11.metaprogramation.h | #pragma once
#include "stdafx.h"
#include <cassert>
template <bool>
struct static_assert_;
template <>
struct static_assert_ <true>
{
};
template <class T, class U>
struct meme_type
{
enum { VAL = false };
};
template <class T>
struct meme_type<T, T>
{
enum { VAL = true };
};
template <class S, class D>
class es... |
c0d046768acd6ca2806afcfc9f2973679b4d5fb2 | bf88a2c11d09070423bf0af929b764a86d7de510 | /redfish-core/lib/thermal_metrics.hpp | c127b83fa4e2486f496340666c063aff7f25c9a3 | [
"Apache-2.0"
] | permissive | sunharis/bmcweb | 1f930f07ed964f43f2d1c7d8b06a68800071a915 | 3307e047b2d8a12e3ebd4655d8dfda8594baa9e6 | refs/heads/1030 | 2023-07-08T13:54:13.843382 | 2023-05-24T13:39:38 | 2023-05-24T13:39:38 | 590,741,955 | 0 | 1 | Apache-2.0 | 2023-01-19T04:54:55 | 2023-01-19T04:54:54 | null | UTF-8 | C++ | false | false | 884 | hpp | thermal_metrics.hpp | #pragma once
#include "sensors.hpp"
namespace redfish
{
inline void requestRoutesThermalMetrics(App& app)
{
BMCWEB_ROUTE(app,
"/redfish/v1/Chassis/<str>/ThermalSubsystem/ThermalMetrics/")
.privileges({{"Login"}})
.methods(boost::beast::http::verb::get)(
[](const crow::... |
d43b435e73f243c236ed44ce6b04dde4ce3460f2 | 0db0823d49a3dbd06994ae84de26ee02cfe41bf7 | /src/indexed.cpp | 51643a6a50b546f4332a79c4c08c6149e4479946 | [] | no_license | ChrisAichinger/boost-range-for-humans | 473fd4512cdeb715fd3f334b79866a1c387c2f48 | 7cff14659ea857f3470d6e98c8ac39fc2284045e | refs/heads/master | 2021-09-09T00:54:34.533482 | 2016-05-16T16:54:14 | 2016-05-16T16:54:14 | 58,947,744 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,147 | cpp | indexed.cpp | #include <iostream>
#include <string>
#include <vector>
@ifdef PIPE
@define INDEX indexed
@else
@define INDEX index
@endif
// The INDEX() implementation in Boost < 1.56 can't be recommended.
// It's clunky and doesn't work with range-based for loops.
// If you can't upgrade, grab the backported "boost-range-indexe... |
083c789d6877428c659cb51cf2472308fd27d822 | 4054bea96d1754b6cb5e0ac74e26822f3d997990 | /Arduino_SIH_Node_Engine_Speed_Control/Arduino_SIH_Node_Engine_Speed_Control.ino | 420c5b44daafcccbab5ae203e07539cefbc22fca | [] | no_license | Srinivasaraghavansj/Car-ECU-Simulation-System-Attempt | afc7007f8d621fc174b544a8747f2e5d06ec2cf0 | f58dad3fba687acf61cbef301dc5574f3631ae2b | refs/heads/main | 2023-06-06T19:22:56.774716 | 2021-06-21T15:09:43 | 2021-06-21T15:09:43 | 378,972,043 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,082 | ino | Arduino_SIH_Node_Engine_Speed_Control.ino | #include <SoftwareSerial.h>
#include <Servo.h>
Servo acc;
SoftwareSerial mySerial(10, 11); // RX, TX
int servopin = 9;
int throttle = 0;
int relaypin = 7;
bool engine = 0;
String c1 = "";
void setup() {
Serial.begin(9600);
mySerial.begin(9600);
pinMode(A0,INPUT);
pinMode(relaypin,OUTPUT);
digi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.