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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a53079674161ef3148e89c26055ba6f74f2f3091 | 37d6d24d98497dcb4fbbdf8178b4e06e076fcefd | /Rush/Rush2/main.cpp | 44e30262fa43936cb5cc52922d6bee08febb1797 | [] | no_license | Nekory23/CPP_Pool_2020 | b55fa77f1013045b3e51b390473a5c60ae8532a4 | 905a2e2b19ab168cc2abca7fb7ce30c9eb7a8009 | refs/heads/main | 2023-06-20T03:28:14.369732 | 2021-07-12T12:52:28 | 2021-07-12T12:52:28 | 385,227,395 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 607 | cpp | main.cpp | /*
** EPITECH PROJECT, 2021
** Rush
** File description:
** task1
*/
#include <iostream>
#include <iostream>
#include "object.hpp"
#include "teddy.hpp"
#include "box.hpp"
#include "giftPaper.hpp"
#include "unitTests.hpp"
int main() {
LittlePony pony("Pony");
Teddy ted("Ted");
Object **obj = MyUnitTests();
po... |
e9bf07bdf3cc3f84ccdf18a8056d8579036974e1 | c4048032e5886d309182c0777b628a57cdf5895b | /Character.cpp | ffae3223a5a59607227a4e1004dada73296dfedc | [] | no_license | Roggan1/p2 | 5ac2ca241a3c75251b097d85dad82831fcc493a3 | 73c4601800cd37a45bc40315373a756dd7d8c6f2 | refs/heads/master | 2021-01-20T15:22:12.162066 | 2017-06-21T07:38:18 | 2017-06-21T07:38:18 | 90,755,989 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,795 | cpp | Character.cpp | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Character.cpp
* Author: stud
*
* Created on 9. Mai 2017, 17:21
*/
#include <vector>
#include "Character.h"
#incl... |
a76e4b1661468b485896949aa1ed1c64d7962236 | 3b1cdc517234d1e2baa77ee6190589c9e6d8ed30 | /graphlearn/src/service/dist/test/coordinator_unittest.cpp | 10235dceac6fb691b5d033c7584a524324b8c77a | [
"Apache-2.0"
] | permissive | alibaba/graph-learn | e7ef7ee75f0d40a4d57f51691338b7826cf947b2 | 9682c9b399a57ea318325cdb0c9f4f2f79644e82 | refs/heads/master | 2023-09-01T05:37:28.606948 | 2023-08-31T04:52:47 | 2023-08-31T04:52:47 | 250,229,724 | 1,302 | 289 | Apache-2.0 | 2023-08-31T04:52:48 | 2020-03-26T10:39:32 | C++ | UTF-8 | C++ | false | false | 4,311 | cpp | coordinator_unittest.cpp | /* Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... |
33940a630ab7077cdf08de638b5fedeb0d7b88c4 | 84d5196aa118f6220ee49430c449db42b42a13f7 | /banco.cpp | 81147be0f87252ce6d972714cf258a3a45f83dc9 | [
"Apache-2.0"
] | permissive | marcio-mutti/msscellparse | e08bbc5c79124ecf0cd3e7a02c6c19f6e407a341 | 2b9ff0a5a59a5ba090eaf6c7e6614b6bd278b5f5 | refs/heads/master | 2020-07-25T19:12:45.467056 | 2016-11-29T17:11:34 | 2016-11-29T17:11:34 | 73,651,498 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,076 | cpp | banco.cpp | #include "banco.hpp"
#include <fstream>
#include <iostream>
using namespace std;
void pgsql::handle_command(PGresult* result, const std::string& context="") noexcept(false) {
bool has_error(false);
string error_message;
if (PQresultStatus(result) != PGRES_COMMAND_OK) {
error_message=PQresultErrorM... |
dcd37f76203fc4c50d167d19e3f2673d5465bd23 | 988254017ce0ed000d637af99505b530307ebc4d | /include/App.h | 9d981209e68503b69c064610b943d6699e119a17 | [] | no_license | rappet/screensaver | 932a2d71385b12900b237b618c88cbb6538948f9 | 4a6c92d71226916ed4a9dacfa724d0774fbd7277 | refs/heads/master | 2021-01-10T05:40:45.783667 | 2016-01-07T20:20:49 | 2016-01-07T20:20:49 | 49,226,956 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 451 | h | App.h | #ifndef APP_H
#define APP_H
#include <SDL2/SDL.h>
#include "SierpinskiScreen.h"
class App
{
public:
App();
virtual ~App();
protected:
SDL_Window *window;
SDL_Renderer *renderer;
bool running = true;
void fatal(const char *title, const char *msg);
void i... |
385cd204b5f6a1945c223442f3ec60631c120edd | e103a6dbf079e19e15301e9b61644f7743746c23 | /leetcode/3sum.cpp | 956f085d54a1b94a9b53af69d26c379ecfeec2b5 | [] | no_license | liyongping/hackerrank | 2481ec200db146d4254a567afb98bccec9f42732 | 428bab0def99f94aa5731dbe68c856a4a97e4439 | refs/heads/master | 2021-01-10T08:15:46.357319 | 2019-04-24T01:52:41 | 2019-04-24T01:52:41 | 35,958,314 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,141 | cpp | 3sum.cpp | #include <iostream>
#include <string>
#include <vector>
using namespace std;
void printVectorInt(vector<int> & vs);
/*
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
Note: The solution set must not contain du... |
d0b2b34840b8abee48533376b2d72e48fbabd8d2 | e700a06c44ed030bf5ce3328e96555aeba3d00bd | /two_wheeled.ino | 7874a7c29450fc5fe3dbe461227d42764835d067 | [] | no_license | selenologist/carcontrol.rs | 28050526ee4d426b42b8b6f2e60c1be8aa28adc3 | 4cca42789fcacf25019c89a0fbf604d921bf0fc6 | refs/heads/master | 2021-01-21T06:24:48.354484 | 2017-02-26T17:46:29 | 2017-02-26T17:46:29 | 83,227,971 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,084 | ino | two_wheeled.ino | #include <Arduino.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <Servo.h>
// Maximum size of packets to hold in the buffer
#define BUFFER_LEN 1024
// Wifi and socket settings
const char* ssid = "";
const char* password = "";
unsigned int localPort = 37210;
char packetBuffer[BUFFER_LEN];
#define LEFT_... |
7627885b77cf9511c90bdb2c6901ca9cb6e4e60d | 2f8fe468066a0c0ea08156b6e6b7d74f4e3836e9 | /resources/headers/Engine/GameState.h | dce6384eec12264d1eb74ec1b9675ef2ff7038c6 | [] | no_license | J0n4/HardrockHoliday | 48838b6674b874c5deb6f9ba57ceb4ce05e00e50 | 73e26bcf165ae40da8f08cbbde6d936c0c5ef0ae | refs/heads/master | 2021-01-21T15:22:07.722590 | 2014-11-10T13:54:45 | 2014-11-10T13:54:45 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 675 | h | GameState.h |
//by Alexander Weiß, 2014
#ifndef GAME_STATE_H
#define GAME_STATE_H
#include "State.h"
#include "Engine.h"
#include "..\Utility\DebugLog.h"
#include "Game\Scene.h"
// the State is a superstate for everything that happens in the game itself. It holds the Scene, the Objects and everything else basically
class GameSta... |
2c2834116e6480093cabe40aa3f3df81705068ee | 9e1040be3d68272980c872baa7ccc5f1374b3fe6 | /examples/read.cpp | 5c64eca07aec928e234e4ef43d2e0c45326caffd | [] | no_license | rseal/HDF5R | 4fbd31cf67992b6fff8c75e71e956a88bb724eb0 | 5ff8fc9ffbdb911f8e83efae69659f8953c72045 | refs/heads/master | 2021-06-13T12:59:19.296200 | 2014-03-24T01:45:06 | 2014-03-24T01:45:06 | 742,939 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,031 | cpp | read.cpp | #include <Complex.hpp>
#include <HDF5.hpp>
#include <vector>
#include <iostream>
#include <boost/lexical_cast.hpp>
using namespace boost;
using namespace std;
using namespace H5;
using namespace std;
int main(){
//Open HDF5 file in READ mode - note these files
//use the HDF5 family mode VFD
HDF5 file("psu_... |
ff32e2aa2da6eb5ab373fc43ef879009dbda5a22 | 6518dcd1b63e84d1a7650b615fad05b7678fd4a0 | /Engine/src/bumpmapshaderclass.cpp | 85b88ae5e4532ae86ab9097040e099701b1179f3 | [] | no_license | resema/TinyDirectX11 | 74f12edc994ab2771d9ebe4089d1a60ca3736b84 | 1c7555e60e080afa6f9c34c146f9017989c0a5af | refs/heads/master | 2021-05-04T16:46:29.124077 | 2018-04-30T16:27:52 | 2018-04-30T16:27:52 | 120,258,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,828 | cpp | bumpmapshaderclass.cpp | #include "bumpmapshaderclass.h"
BumpMapShaderClass::BumpMapShaderClass()
{
m_vertexShader = nullptr;
m_pixelShader = nullptr;
m_layout = nullptr;
m_samplerState = nullptr;
m_matrixBuffer = nullptr;
m_cameraBuffer = nullptr;
m_lightBuffer = nullptr;
}
BumpMapShaderClass::BumpMapShaderClass(const BumpMapShaderCl... |
b990b2357e730689f869acde621dc0dcbca7b028 | de9cd3c57acca5d4614396f43ec8a0649270c8c9 | /POSTCARD V2/vfgkghdfj/regfunc.cpp | 8ed4e5507dcb08494883990163ca343b0bb8260a | [] | no_license | sloyka-debug/crsd | c25effd7f980676488d6d9774d1d4147b0145d92 | 068475914b7456e5e971e25a65a8d5e4428e8a42 | refs/heads/master | 2022-08-02T11:23:05.795780 | 2020-05-29T17:00:37 | 2020-05-29T17:00:37 | 267,673,840 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,222 | cpp | regfunc.cpp | #include "pch.h"
#include "regfunc.h"
void regfunc::execute()
{
_TCHAR szTestString[] = _T("injected");
_TCHAR szPath[] = _T("Software\\inj\\");
HKEY hKey = 0;
HKEY SECTION = HKEY_CURRENT_USER;
SCAN a;
a.execute();
if (RegOpenKeyEx(SECTION, L"Software\\inj\\", 0, KEY_QUERY_VALUE, &hKey) == ERROR_... |
616d9e73896b2f366541b88869921727098ac750 | 78fd3ec91be363e0169921e62364a2a728947112 | /stochastic/exec.cpp | 560b1d586923e7fafb22e3a3f35e46e0f0b7e5cc | [] | no_license | anmol9855/Minor_project | 8c87cc17236f8342fe1abf29fc22e82e66c9e101 | fb55e0701c9dc4b677e9b228765441223fde932f | refs/heads/master | 2021-01-20T14:40:53.271545 | 2017-05-08T16:08:32 | 2017-05-08T16:08:32 | 90,647,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,949 | cpp | exec.cpp | #include "exec.h"
//returns state of a system given a vector of inst
state exec_inst_seq(state S,vector<inst>* code){
for (int i = 0; i < code->size(); ++i)
S = exec_inst(S,code->at(i));
return S;
}
//executes a single instruction
state exec_inst(state S,inst I){
int opcode = I.opcode;
switch(opcode){
//mov
... |
25bf357350d6d2eaac7b961a6281e12f86bbbc81 | 2ec23fc84e054240565bafc0bdc30d62a999b59f | /displaypane.cpp | 58c36f152ba97fb3266f8f08393b5c881641a1b2 | [] | no_license | ywh1357/qtquickfbotest-threading | 06e04961a7be934a808efbd60b7028c9abc7151d | c461bfd1f7fa300b9c4ef8e0ac5296a6e5c517a2 | refs/heads/master | 2021-05-06T09:28:24.515739 | 2017-12-13T05:49:28 | 2017-12-13T05:49:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,479 | cpp | displaypane.cpp | #include "displaypane.h"
#include <QQuickWindow>
TextureNode::TextureNode(QQuickWindow *win):m_id(0),m_size(0,0),m_texture(0),m_window(win)
{
m_texture = m_window->createTextureFromId(0, QSize(1, 1));
m_material = new QSGTextureMaterial();
m_material->setTexture(m_texture);
m_material->setFlag(QSGMater... |
7230fdc0a20bde353a8f32f9378abc8fcad526ad | 28de82ff6e140e4143b7dff87ea385c75fcfda91 | /src/Player.cc | 64883740547e57dc058b49bea849d7611e594e05 | [] | no_license | jjwest/spacecraze | 496c64ed3ee57947ae6bd2ff45c13bdc19220125 | 98e79c80220fd4044de54132f32984cf08e95625 | refs/heads/master | 2021-01-19T09:10:39.715356 | 2017-11-28T21:03:44 | 2017-11-28T21:03:44 | 87,734,029 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,873 | cc | Player.cc | #include "Player.h"
#include <string>
#include <utility>
#include "AssetManager.h"
#include "Constants.h"
#include "Globals.h"
#include "World.h"
Player::Player(const SDL_Rect& hitbox)
: GameObject(AssetManager::instance().getTexture("player"), hitbox, 1.0),
pos_x{ static_cast<float>(hitbox.x) },
... |
feba6cf29f687aa4e47eeccfb1c6461c72febd82 | ef5fe6b55f3d9a697392a252617e1dc79b184222 | /AtCoder/ABC153/D.cpp | 680957c7ef684efc7062e213988c541eab1ce8cc | [] | no_license | kunichan9292/Programing-contest | 15110f1dbf00a9957d524c6163cd165b3828803f | 9126d5c63b80f170de8108ca74c7ae7a2bf9c921 | refs/heads/master | 2022-06-18T04:40:45.662188 | 2020-05-12T19:49:16 | 2020-05-12T19:49:16 | 263,432,210 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 289 | cpp | D.cpp | #include<iostream>
#include<bitset>
using namespace std;
int main(){
long long H;
cin >> H;
bitset<64> HP(H);
int top;
for(int i=63;;i--){
if(HP.test(i)){
top=i;
break;
}
}
HP.set();
long long ans = (HP>>(63-top)).to_ullong();
cout << ans << endl;
}
|
6d833e006f403c291f8c38561878b32cddb6e45c | 1a4b7abc41796ffce3deb32d2b49183752a421cd | /AddmusicK/Directory.h | 7c566cfe1a53bb508f9ed687fa65760ee9eee48b | [] | no_license | N-SPC700/AMPoo | aff28bd24cced5b21629f85964fe67d0c56daa0c | 135a3f071ba4c6a344ce3272ccfaef434b87f764 | refs/heads/master | 2020-05-01T12:21:45.372772 | 2019-03-24T23:30:43 | 2019-03-24T23:30:43 | 177,463,901 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,102 | h | Directory.h | #ifndef _FILE_H
#define _FILE_H
#include <string>
class File
{
public:
std::string filePath;
File() {}
File(const char *str)
{
*this = str;
}
File(char *str)
{
*this = str;
}
File(const std::string &str)
{
*this = str.c_str();
}
File(std::string &str)
{
*this = str.c_str();
}
File &opera... |
3bb180a5d5da35243dc2f803152eb168df9a5f6a | 3119ff2755f5811efd67adadeb224d26bbfee119 | /state/src/StateMachineComponent.cpp | 122c10a4bfa73b8df1bc173a0b8deccf5a83c059 | [] | no_license | elchtzeasar/draft | 3a1ef93ff0b6de4fd8ab9273407a0fd3f91fd620 | a19e3bfee29ed8c98ecfe843f0e59d4233dfb991 | refs/heads/master | 2020-06-05T01:10:14.703397 | 2011-05-27T19:32:57 | 2011-05-27T19:32:57 | 1,077,409 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,489 | cpp | StateMachineComponent.cpp | #include "StateMachineComponent.h"
#include "AddressedMessage.h"
#include "ClientState.h"
#include "ServerState.h"
#include "State.h"
#include <QSignalTransition>
#include <glog/logging.h>
StateMachineComponent::StateMachineComponent() :
stateMachine(new QStateMachine(this)),
chooseClientOrServer(new State(thi... |
36104077f857b78bf289c5c0465ad7b042d59879 | b08cd5d56bdbea3f3d6cd52ed85ca18bc4c8f1f5 | /ANARC09A.cpp | 0d0c35a241cd23a4e9934bf3c115f545c02d7c87 | [] | no_license | duveyutkarsh/competitive | 652e3fd6b6379ec5fd6060a2a23d64fedd2a3cb7 | 408b511631cadff89cf1f8390c1b3f8442569766 | refs/heads/master | 2020-03-22T09:37:04.087878 | 2018-12-17T06:44:58 | 2018-12-17T06:44:58 | 139,849,182 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 664 | cpp | ANARC09A.cpp | #include<bits/stdc++.h>
#define mp make_pair
#define pb push_back
#define F first
#define S second
typedef long long ll;
using namespace std;
const int maxn = 1e5+5;
int main()
{
string s;
int cs = 0;
while(cin>>s)
{
if(s[0]=='-')break;
int n = s.size();
stack<int> st;
in... |
179233a43ae56868ae7179dfd60de6129cb7924a | 833d0a32e3bebae404190c5bcb971e3ac921e667 | /include/playground/seesaw.h | cb0e044cc1ec017eec1bd9bb84e6b156594da809 | [
"MIT"
] | permissive | TimiMakkonen/playground | 4bf9367555bc7c8af02c538afceac817beef2706 | 3ab4c96eadfabd7146b04e695677c71ffd3a4866 | refs/heads/master | 2023-01-13T17:40:25.502114 | 2020-11-18T17:42:32 | 2020-11-18T17:42:32 | 313,404,747 | 2 | 0 | MIT | 2020-11-18T17:48:13 | 2020-11-16T19:23:24 | CMake | UTF-8 | C++ | false | false | 443 | h | seesaw.h | #ifndef PLAYGROUND_SEESAW_H
#define PLAYGROUND_SEESAW_H
#include <string> // std::string
namespace playground {
class Seesaw {
private:
// +---------+
// | fields: |
// +---------+
std::string _greeting = "Hello from the Seesaw class!";
public:
// +-----------------+
// | public methods... |
96a99f598ea07a430a69b21b5ba66b82dd3f2e82 | dd0d9acfaa06562e5d9799ed7fac87d7a172eac4 | /humidity/humidity.ino | e9dc758b31d8d419e766d610f5590b059c43cd6a | [] | no_license | grachova/tpcs.pr5 | b76a205e22811ffdd1a8e95b211e955fc4fb5a76 | d465f10d0d66648e457e4346d1164c2436aa6968 | refs/heads/main | 2023-01-08T02:48:12.684699 | 2020-11-15T12:25:57 | 2020-11-15T12:25:57 | 312,889,773 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 742 | ino | humidity.ino | #define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include "DHT.h"
#include <SimpleTimer.h>
#define DHTTYPE DHT11
#define dht_dpin 14
DHT dht(dht_dpin, DHTTYPE);
SimpleTimer timer;
char auth[] = "47c9d3d8bc924cc1b592cd64d63dss23";
ch... |
942d68334d7f1052292947bae8c7fa25c3697403 | 017aa25211a5fc8387a06b1752718ddfff1d7cd3 | /jmessage-sdk/jmessage-sdk-win-1.2.0/include/Jmcpp/Types.h | c5846ec3834da3f7599e9989826dd0ab181d8c57 | [] | no_license | weichangxiang/jchat-windows | db1c68f3537ff1ddcb32a78bdff95b38e8ab131f | 0981597980e8c77b033496a2a8c6abba4b3c7a9c | refs/heads/master | 2020-04-06T10:03:08.915695 | 2018-04-03T07:58:06 | 2018-04-03T08:02:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,277 | h | Types.h | #pragma once
#include <stdint.h>
#include <cstdint>
#include <vector>
#include <tuple>
#include <iostream>
#include <sstream>
#include <string>
#include <string_view>
#include <optional>
#include <variant>
#include <utility>
#include "JmcppExport.h"
#include "StrongType.h"
#ifdef _MSC_VER
#pragma warning(push)
#prag... |
22b9afa490d92a59d64d435d12d599a22314fc83 | b06f7a6d14e060c38226b6b80dffa21c21423e71 | /ai/asr/keyword_spotting/kws_app.cpp | d08198ea93329fee91246a9e298f300a1e835e8c | [
"Apache-2.0"
] | permissive | openharmony-sig-ci/applications_sample_camera | 27a4b49b7bca0f8f788ea3eb4660082cc85d38a6 | e27ecf599ca9676e22ec01c735aba7e97671b0be | refs/heads/master | 2023-08-17T20:45:30.758945 | 2021-09-11T03:44:27 | 2021-09-11T03:44:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,894 | cpp | kws_app.cpp | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
d6b6bdc40d2a561e7ea45f2b15c7bc5c2c11db6a | 0fa0a47b7bffe1805ecb8201df51e8c84d85e9d3 | /src/Fle_MenuBar.cpp | 4a79af28c9335e58f3860e7e5b2d3a65d6903370 | [] | no_license | Moaaz-Rafique/FL-Essentials | 28e0cd73e7b6811cf32b1b4b4cb71c5b84f8e343 | 16ab22d65fc3974cb0be34edd9585d4d4a102021 | refs/heads/master | 2023-03-16T19:47:33.708122 | 2021-01-09T01:05:26 | 2021-01-09T01:05:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,605 | cpp | Fle_MenuBar.cpp | /*********************************************************************************
created: 2017/01/28 06:54AM
filename: Fle_MenuBar.h
file base: Fle_MenuBar
file ext: h
author: Furqan Ullah (Post-doc, Ph.D.)
website: http://real3d.pk
CopyRight: All Rights Reserved
purpose: A customized menu bar with fixed size... |
69268ed62178f2a71804de38b3e11a4f2d3c9ed1 | a92b18defb50c5d1118a11bc364f17b148312028 | /src/prod/src/Management/DnsService/src/Fabric/FabricResolve.h | 8dc6d979c8c7ec465638690690e865bd31f0921f | [
"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 | 2,815 | h | FabricResolve.h | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace... |
9c59ce3330f06eafe916db20101b14b004ff409d | d9705c6aa70b89793c0185b599e38bdb67a93cbd | /src/entities/NPC.h | 209be425511e56adf172408e491ae6dfcc2461a2 | [] | no_license | gmevelec/firstgame | 344570b0140ccf27823f3ec81a400805aa6ded08 | 216472ec153d73e26d578269d89bc41eb0059aa6 | refs/heads/master | 2020-05-21T17:58:18.121526 | 2017-01-04T06:41:25 | 2017-01-04T06:41:25 | 64,141,804 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | h | NPC.h | #pragma once
#include "entities/Entity.h"
#include "terrains/Terrain.h"
#include <string>
#include <vector>
class NPC : public Entity
{
public:
NPC(TexturedModel model, glm::vec3 position, glm::vec3 rotation, float scale, std::string name);
virtual ~NPC();
virtual void move(std::vector<Terrain> terrains) = 0;
st... |
406caff6bac0b138d9f73f77d7deccf7c1bea7fe | a850ebf5c37a1b072f599ed7384ad2f27e881e02 | /repobuild/nodes/execute_test.h | 341dec1a3455463a13a9d7e33b6c6b65125b0c3a | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | silky/repobuild | c98a309b63dd6197fa60f6d4de8e2622a4656ada | ec5c6a39ecda3d3210dfa63b486a63b4ac7d4fa0 | refs/heads/master | 2021-01-18T03:03:14.173916 | 2015-05-07T15:35:20 | 2015-05-07T15:35:20 | 35,979,838 | 1 | 0 | null | 2015-05-20T23:33:30 | 2015-05-20T23:33:30 | null | UTF-8 | C++ | false | false | 1,549 | h | execute_test.h | // Copyright 2013
// Author: Christopher Van Arsdale
#ifndef _REPOBUILD_NODES_EXECUTE_TEST_H__
#define _REPOBUILD_NODES_EXECUTE_TEST_H__
#include <set>
#include <string>
#include <vector>
#include "repobuild/env/resource.h"
#include "repobuild/nodes/node.h"
#include "repobuild/reader/buildfile.h"
namespace repobuild... |
ea7e021a3aa1d38cb61e36aeac8ee0cf0bbb20b3 | ec68c973b7cd3821dd70ed6787497a0f808e18e1 | /Cpp/SDK/Quest_SmallD_RootCultist_functions.cpp | ec8900bc44f861dcb2c0eb4310286007f1ffe08d | [] | no_license | Hengle/zRemnant-SDK | 05be5801567a8cf67e8b03c50010f590d4e2599d | be2d99fb54f44a09ca52abc5f898e665964a24cb | refs/heads/main | 2023-07-16T04:44:43.113226 | 2021-08-27T14:26:40 | 2021-08-27T14:26:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,076 | cpp | Quest_SmallD_RootCultist_functions.cpp | // Name: Remnant, Version: 1.0
#include "../pch.h"
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Functions
//----------------------------------------------------... |
2c017e4a44ab05325fa27162434c384326ec16b5 | a702fd5e803eca1fc66a4bb435ed68837db4a47b | /core/modules/parser/ValueExprFactory.cc | a764be34b29febaecab11a015601a5d48eef1793 | [] | no_license | fjammes/qserv | f65c5775ca7f5a286b0bef2fd215a71ca47bc249 | 00595c8e6a3ec538c191976045c3c06fc0a15626 | refs/heads/master | 2020-04-27T18:02:32.130713 | 2019-03-18T08:42:36 | 2019-03-18T08:42:36 | 25,034,564 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,942 | cc | ValueExprFactory.cc | // -*- LSST-C++ -*-
/*
* LSST Data Management System
* Copyright 2012-2016 AURA/LSST.
*
* This product includes software developed by the
* LSST Project (http://www.lsst.org/).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publ... |
443afd04c38c5873fe2924164ad0547e3724a64e | 79d343002bb63a44f8ab0dbac0c9f4ec54078c3a | /lib/libc/include/any-windows-any/windows.foundation.h | 97e028b896110c913d965dec3f9f292591cd6e51 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | ziglang/zig | 4aa75d8d3bcc9e39bf61d265fd84b7f005623fc5 | f4c9e19bc3213c2bc7e03d7b06d7129882f39f6c | refs/heads/master | 2023-08-31T13:16:45.980913 | 2023-08-31T05:50:29 | 2023-08-31T05:50:29 | 40,276,274 | 25,560 | 2,399 | MIT | 2023-09-14T21:09:50 | 2015-08-06T00:51:28 | Zig | UTF-8 | C++ | false | false | 41,030 | h | windows.foundation.h | /*** Autogenerated by WIDL 7.0 from include/windows.foundation.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
#include <rpc.h>
#include <rpcndr.h>
#endif
#ifndef COM_NO_WINDOWS_H
#include <windows.h>
#include <ole2.h>
#endif
#ifndef __windo... |
5bbd49164bc12a762c174b29501a3fe9bc955ffb | 1720b3d68408df391112fd6f23d450153d2064f0 | /assignment2/src/chromosome.h | a0c6efc53f0850660d1d00477fb1b52da4c6dafe | [] | no_license | jp41011/BioInformatics | 48ff1a2383670a0eef7f3e0ec28bc0edd461c1ec | 7060ec2d9782499c8abab87e5d90d889bd83d559 | refs/heads/master | 2021-08-23T01:54:18.740443 | 2017-12-02T08:59:49 | 2017-12-02T08:59:49 | 112,820,565 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,379 | h | chromosome.h | #ifndef CHROMOSOME_H
#define CHROMOSOME_H
#include <vector>
#include <string>
using namespace std;
/* Chromosome class
* Represents a chromosome and the information associated with the chromosome
* All bases are stored in a vector of strings
* chromosome information is access via accessor functions
* This will t... |
afe95962e22bc7266180e7b6b48522d14bec8975 | 1bd8c9cb823b16cca877c166f7c3586f729457a5 | /CSingleton.h | 543c8d762b33e51a1b4fec08e32e74e34b6d4da4 | [] | no_license | godekd3133/DX9_WorldSkill_Practice_Busan_01 | 432d24b5fdbe73a451603910c35e29c903014119 | 9f2800a6608e7c930c0e036816c154c703ca0fa4 | refs/heads/master | 2022-12-14T17:53:21.830561 | 2020-09-19T01:59:55 | 2020-09-19T01:59:55 | 291,572,844 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 315 | h | CSingleton.h | #pragma once
template <class T>
class CSingleton
{
public:
CSingleton() {}
virtual ~CSingleton() {}
private:
static T* p;
public:
static T * GetInstance()
{
if (!p) p = new T();
return p;
}
static void ReleaseInstance()
{
if (p)
delete p;
}
};
template <typename T>
T* CSingleton<T>::p = nullptr; |
5e5890e2aaecbf74535f31cdb259b6e2d5c450c5 | e5104a3299a2fc76f642b2ca403fece376bd04ed | /ASD/Lista4/RBT.cpp | 8f429eb36e0f9037d531f27a40880b3fc6b74360 | [] | no_license | mikduk/Studia | 158e7ca06cf42f7cf22291dcd6e92f2490509675 | b6b25a0b6d17e68ba01436aed90a0554bd48083e | refs/heads/master | 2020-04-04T14:55:42.114893 | 2019-12-20T16:10:48 | 2019-12-20T16:10:48 | 156,018,633 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,343 | cpp | RBT.cpp | //
// RBT.cpp
// Lista 4
//
// Created by Mikis Dukiel on 16/05/2019.
// Copyright © 2019 Mikis Dukiel. All rights reserved.
//
#include "Trees.h"
#include <iostream>
RBT::RBT(){
Trees::numberOfElements = 0;
Trees::maxNumberOfElements = 0;
Trees::numberOfInsert = 0;
Trees::numberOfDel = 0;
Trees::number... |
6fd1e13cb668be0be6480c5aada320dd372a7ced | 3dc2dd1a397e1dbbe7f045643ff00cbcec3c54aa | /ut/columns_ut.cpp | 0229ba669611f80c9582ff8056ab9f3873dc343c | [
"Apache-2.0"
] | permissive | rjxxr/clickhouse-cpp | 67be8df1fdb327a46ae69e6659676502c76806a8 | 7f9d8989eee8ebd7b1784375127733151e1b8710 | refs/heads/master | 2023-08-24T20:50:02.866114 | 2021-10-13T13:04:17 | 2021-10-13T13:04:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,549 | cpp | columns_ut.cpp | #include <clickhouse/columns/array.h>
#include <clickhouse/columns/date.h>
#include <clickhouse/columns/enum.h>
#include <clickhouse/columns/factory.h>
#include <clickhouse/columns/lowcardinality.h>
#include <clickhouse/columns/nullable.h>
#include <clickhouse/columns/numeric.h>
#include <clickhouse/columns/string.h>
#... |
4fb97c79ade1fa48ca44d5a54485341da97d87c0 | 560289132368c9c47532b20035682791c530bdb1 | /programmers_무지의 먹방.cpp | 8f1c5db4f86565266611f30d3197d2003c7377a3 | [] | no_license | jiws829/Algorithm-Problems- | a3bd6073f0fe0c5f21daaebb3530e5291899e42b | 11e51676ee1900610afc361c5172bb4a66a5445b | refs/heads/master | 2023-01-07T22:30:05.488463 | 2020-11-07T05:55:58 | 2020-11-07T05:55:58 | 257,528,756 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,523 | cpp | programmers_무지의 먹방.cpp | #include <string>
#include <vector>
#include<iostream>
#include<algorithm>
using namespace std;
vector<vector<int>> food;
vector<int> p;
int sort_n(vector<int> a, vector<int> b) {
if (a[1] == b[1] && a[0] < b[0]) return 1;
if (a[1] < b[1]) return 1;
return 0;
}
int solution(vector<int> ... |
1339996c825aa56e4814a43c8c77383aaba6e54a | 90fa1d22eb9885953c3c64e5107feb3361c6fef6 | /src/avproto_wrapper.cpp | 06c166a5b663b2b2450b6fbf5080fe346d88191f | [] | no_license | xiaopeifeng/avim_bot | 86609d68a0d458ee7efd6dec68b1bbda0c45187e | 4c8f540f84d11f2b2f7de5ea2b81d83a3d642e04 | refs/heads/master | 2020-05-14T17:46:15.487140 | 2014-12-13T14:23:11 | 2014-12-13T14:23:11 | 27,841,212 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,985 | cpp | avproto_wrapper.cpp | #include "logging.hpp"
#include "avproto_wrapper.hpp"
#include "bot_group.hpp"
#include "avproto.hpp"
#include "avproto/avjackif.hpp"
#include "avproto/message.hpp"
#include "bot_service.hpp"
#include <openssl/x509.h>
#include <openssl/pem.h>
#include <openssl/evp.h>
namespace bot_avim {
avproto_wrapper::avproto_w... |
00d44eae7bf877e1a237e97a95b0e5876e784fdd | 51af5a30b63d1a9e8e42de3558738bbdcd4ee22b | /src/qt/widgets/mainwindow.h | 35ce53c5eea5d2e64abbcaa48d5b7ace42e7b813 | [] | no_license | sunjingnjupt/PE-CHL-v2 | deadf717c7a7c489b1a57e0d0459abc5504cd1ea | 1fd1ca834e3f4103ba2812811abbef2a565baeba | refs/heads/main | 2023-06-08T05:43:17.940876 | 2021-07-04T04:35:31 | 2021-07-04T04:35:31 | 382,638,635 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,848 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QWidget>
#include <QMainWindow>
#include <iostream>
#include "groundRemove/include/param.h"
#include <QColor>
#include <QDebug>
#include <QImage>
#include <QPixmap>
#include <QString>
#include <QFileDialog>
#include <QTextCursor>
#include <QComboBox>
#include <QHBoxL... |
be04c745bc3a740818fe80dd69af3ee746d42277 | 7c0cf21501c1a55f137e51ddeefcbeaa99105868 | /src/ihm/CustomWidgets/taskform.h | b5e218eae832de6889040204a99ab399fa3ef0f1 | [] | no_license | bmael/IHMProject | f4b762a78f6444084ba32975c51169bb4239c0e6 | 3f067a5033f42e03a8dbb0436f1307edb783cdc6 | refs/heads/master | 2020-06-03T15:02:31.018888 | 2013-02-19T13:23:33 | 2013-02-19T13:23:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 423 | h | taskform.h | #ifndef TASKFORM_H
#define TASKFORM_H
#include <QWidget>
#include <QEvent>
namespace Ui {
class TaskForm;
}
class TaskForm : public QWidget
{
Q_OBJECT
public:
explicit TaskForm(QWidget *parent = 0);
~TaskForm();
public slots:
void showAbsoluteTimeLimit();
void showRelativeTimeLimit();
void ... |
55b088a35d234ebd92ddc1a92a1f4048ba738526 | dccd58467948ec58bd544fc7ec1ab1a2bb5d40af | /07 - registros/133925-Registros_ATP-2016Maio24/HistCoRI.cpp | 6bcdb620ee4966f953222a22f473fb6524e7962c | [] | no_license | ramonbr14/CeCplusplus | 37debfa7139ca02d73c5090ff92c934d4b86913c | 5a69fb4e9fcbc3cdb648cb8ae7f0cdbcd09f99df | refs/heads/main | 2023-02-13T05:25:12.762710 | 2021-01-13T07:01:11 | 2021-01-13T07:01:11 | 329,214,424 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 3,149 | cpp | HistCoRI.cpp | //Nome do programa: HistCoRI.cpp
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <math.h>
#include <ctype.h>
#include <Windows.h>
#define TAMCONJ 2
using namespace std;
void gotoxy(int x, int y){
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),(COORD){x-1... |
051e4fda896378ed37dfe3862b7e3405ce2b04b9 | 7fa8b45e8f9274ff4c4055eb34f89e1672ae7be9 | /CRC8.cpp | 7db7f0ade7644161072b18559064dcaf06df930a | [] | no_license | lee8871/SRB-master-arduino | 562425efd5dd183dbca3438dd05620b7566f8e9b | 58868a92359c55dedaf929d58c6e4ba842dad2cb | refs/heads/master | 2021-07-02T23:29:40.966720 | 2020-09-16T08:58:29 | 2020-09-16T08:58:29 | 156,062,874 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,498 | cpp | CRC8.cpp | /*
* CPPFile1.cpp
*
* Created: 2017/8/26 12:39:26
* Author: lee
*/
#include "lee.h"
#include "CRC8.h"
#define SIGNATURE 112
const uint8 Crc_table[256] PROGMEM =
{
0x00,0x31,0x62,0x53,0xc4,0xf5,0xa6,0x97,0xb9,0x88,0xdb,0xea,0x7d,0x4c,0x1f,0x2e,
0x43,0x72,0x21,0x10,0x87,0xb6,0xe5,0xd4,0xfa,0xcb,0x98,0xa9,0x3e,0x0f... |
a9c4018e8227db0671423a7c5d4869cb74535097 | 067173056bdb82e8605b0ffa708ad858ae0285a4 | /algorithm/290-WordPattern/WordPattern.cpp | e0f47b38d628303cf5cbef239c57668a52d671a3 | [] | no_license | AlgoPeek/leetcode | 48143646d138c84a6c0d9e2ae31703bb6e997622 | 6676c4a89bed1982b40fdd86eed5613ebd7932b8 | refs/heads/master | 2021-06-09T06:39:31.001297 | 2020-02-28T10:11:12 | 2020-02-28T10:11:12 | 140,302,492 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,412 | cpp | WordPattern.cpp | // Source: https://leetcode.com/problems/word-pattern/description/
// Author: Diego Lee
// Date: 2018-08-13
//
// Description:
// Given a pattern and a string str, find if str follows the same pattern.
//
// Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word ... |
0c7f71c5c0d0b890dbf6014badf3496591d343b1 | 4cb7bc88f915eb74fd55d18fdf4b5c02c6fe56da | /LastOccurance.cpp | 150abe6c616fffd29cc950dff8a521a22a4e7f6f | [] | no_license | Ritik-s7/Searching | 883e61dbb6245f12a1f1442efb9cdac0ff1ccf7d | 692fec9690c88b0d8e6434dce63a32a53d5568e0 | refs/heads/master | 2023-05-22T22:05:03.502392 | 2021-06-10T12:11:15 | 2021-06-10T12:11:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,672 | cpp | LastOccurance.cpp | #include<iostream>
using namespace std;
//Naive method - Lineaar search
// Iterative approach
int lastOccurence(int arr[], int n, int x)
{
int low = 0;
int high = n-1;
while (low<=high)
{
int mid = (low+high)/2;
//cout<< low <<" "<< mid <<" "<<high<<endl;
if (arr[mid]==x)
... |
3aa07fce9bb7136ab395659b9012300943ba6593 | b54b6168ba35ce6ad34f5a26b5a4a3ab8afa124a | /kratos/kratos/sources/c2c_variables.cpp | cd9b1378bfc1a2ed3ac2ee25566db7a41a786e14 | [] | no_license | svn2github/kratos | e2f3673db1d176896929b6e841c611932d6b9b63 | 96aa8004f145fff5ca6c521595cddf6585f9eccb | refs/heads/master | 2020-04-04T03:56:50.018938 | 2017-02-12T20:34:24 | 2017-02-12T20:34:24 | 54,662,269 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,333 | cpp | c2c_variables.cpp | // | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ \.
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: Riccardo Rossi
//
// This defi... |
9692e5e474c405bcacfe6161ef56f56203e16281 | 4b430686ae824c78604e15818c4b864778468ca1 | /Archive/Stroika_FINAL_for_STERL_1992/Tools/Portable/Emily/Headers/SliderBarInfo.hh | 8bb88f5c02762666da7775c38cd76899bd5faac6 | [] | no_license | kjax/Stroika | 59d559cbbcfb9fbd619155daaf39f6805fa79e02 | 3994269f67cd9029b9adf62e93ec0a3bfae60b5f | refs/heads/master | 2021-01-17T23:05:33.441132 | 2012-07-22T04:32:58 | 2012-07-22T04:32:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,921 | hh | SliderBarInfo.hh | /* Copyright(c) Sophist Solutions Inc. 1991-1992. All rights reserved */
/*
* $Header: /fuji/lewis/RCS/SliderBarInfo.hh,v 1.3 1992/09/01 16:25:27 sterling Exp $
*
* Description:
*
* TODO:
*
* Changes:
* $Log: SliderBarInfo.hh,v $
* Revision 1.3 1992/09/01 16:25:27 sterling
* Lots of Foundation changes.... |
84d09515e51011dec74131e9f98a4a341449df3b | 81ef03d4f681da835ec19415820df12eb2beb59b | /Protocol/proto/ukex.canceltradebatch.pb.h | 5cf3662fa61034cba7653d8395604691b9ff532a | [] | no_license | FlappyMan/HttpWebSocket | 906a365584307fc8216b4824542018d75630da4c | e844139119c036464784438825150a41ca169e8e | refs/heads/master | 2023-07-28T11:45:39.934945 | 2021-09-15T11:01:14 | 2021-09-15T11:01:14 | 278,041,522 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 37,242 | h | ukex.canceltradebatch.pb.h | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ukex.canceltradebatch.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_ukex_2ecanceltradebatch_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_ukex_2ecanceltradebatch_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF... |
2b04e7e1e29c10f24c91db99f0524f9aff32ba1f | 871c0f0d98ecc7fdbf254226ca5f98fb1546185c | /AccelMPU6050.cpp | bfe48da3c99a70f53d11227093549e1dccb0689f | [] | no_license | iago-lima/Lib_AccelMPU6050 | 7d15ccc46b663a77f6e4267c74dc3e855af0b5f6 | 98e9558216773daff3930d2bd4c30490cbfd72ba | refs/heads/master | 2021-10-08T20:48:04.472171 | 2018-12-17T14:45:49 | 2018-12-17T14:45:49 | 162,145,141 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,229 | cpp | AccelMPU6050.cpp | #include "Arduino.h"
#include "AccelMPU6050.h"
AccelMPU6050::AccelMPU6050(int sda, int scl){
_sda_pin = sda;
_scl_pin = scl;
}
void AccelMPU6050::initI2C(){
Wire.begin();
}
void AccelMPU6050::initMPU(int gvalue, int avalue){
setSleepOff();
setGyroScale(gvalue);
setAccelScale(avalue);
}
int AccelMPU6050::fin... |
e911464c75edfbdfe6d39ed392d80b52544598f9 | d8033ee59a652736710748261771012f356b3431 | /include/engine/system/renderer/OrthographicCamera.hpp | fcabba47ef674487db487e2119ae8cfc283db266 | [] | no_license | Shwastya/MyTFMDescent | 4f696a38d9e68bbaad2e5c40715465abdf536e84 | 1b872dd7682623de8a54cce1bfa8134a57694260 | refs/heads/master | 2023-06-23T12:24:23.310130 | 2021-07-17T20:54:22 | 2021-07-17T20:54:22 | 347,040,611 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 835 | hpp | OrthographicCamera.hpp | #pragma once
#include <glm/glm.hpp>
namespace MHelmet
{
class OrthograpicCamera
{
public:
OrthograpicCamera(float left, float right, float bottom, float top);
void SetPosition(const glm::vec3& pos) { m_Position = pos; }
void SetRotation(float rotation) { m_Rotation = rotation; }
const glm::vec3& GetPo... |
a27a7fc054020df3172c02d90c235925c53cf34c | 39076c5617ba7191a1cfaed626dfea4e59e4ea38 | /vmkit/lib/J3/VMCore/JavaVirtualTable.h | 4b6eb1d056cd2c8fbca11e7a748f9ad7c918bf7a | [
"NCSA"
] | permissive | YodaCoder/JOE | 41f85b808fb1c54b80cfd539325fd2ff2ff32120 | bbcaf5212911dcd4cf7f3c0e8f6f4dd9a88cd942 | refs/heads/master | 2021-01-22T06:19:46.761702 | 2017-01-19T15:23:51 | 2017-01-19T15:23:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 860 | h | JavaVirtualTable.h | /*
* JavaVirtualTable.h
*
* Created on: Mar 18, 2013
* Author: jkulig
*/
#ifndef JAVAVIRTUALTABLE_H_
#define JAVAVIRTUALTABLE_H_
extern "C" void EmptyDestructor();
class VirtualTable {
public:
word_t destructor;
word_t operatorDelete;
word_t tracer;
word_t specializedTracers[1];
static uint32_... |
03f2a39345528d880006f9a98179e2c31a5a61f0 | 17291d98a2c802ec20b68a439f0ced472f8d16c5 | /ComServer/ComServerModule.cpp | d0453bec3f4827256330f6d0cf190e6b6411f17e | [] | no_license | jogerh/NetComFullMessageQueue | 56f65616283202c32fb206f5bf33f3b30f40e491 | 2b6aa5a41a61c7fa1cddd52b53d1426f56a3b7c1 | refs/heads/main | 2023-05-06T10:13:35.288087 | 2021-05-14T21:02:55 | 2021-05-14T21:02:55 | 366,868,311 | 0 | 0 | null | 2021-05-14T20:30:26 | 2021-05-12T22:21:49 | C | UTF-8 | C++ | false | false | 886 | cpp | ComServerModule.cpp | // ComServer.cpp : Implementation of DLL Exports.
#include "pch.h"
#include "framework.h"
#include "resource.h"
#include "ComServerModule_i.h"
#include "ComServerModule_i.c"
class CComServerModule : public ATL::CAtlDllModuleT<CComServerModule>
{
public:
DECLARE_LIBID(LIBID_ComServerLib)
DECLARE_... |
8e395a24ab2e3a8953287fa61a9c679c80abfed5 | 5671c626ee367c9aacb909cd76a06d2fadf941e2 | /frameworks/core/components/test/unittest/grid_layout/render_grid_layout_animation_test.cpp | 4dd4558470cda319651cfdb895af73b696ef221a | [
"Apache-2.0"
] | permissive | openharmony/ace_ace_engine | fa3f2abad9866bbb329524fb039fa89dd9517592 | c9be21d0e8cb9662d5f4f93184fdfdb538c9d4e1 | refs/heads/master | 2022-07-21T19:32:59.377634 | 2022-05-06T11:18:20 | 2022-05-06T11:18:20 | 400,083,641 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 13,377 | cpp | render_grid_layout_animation_test.cpp | /*
* Copyright (c) 2021-2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
63155cdff906e74ec44648001b66ea88d7509868 | 9c98f2b68f8d7e68d60f35dce34103ef51ce7a5d | /climbStairs.cpp | b776ebab7713be98db2d3379db3c980572395f04 | [] | no_license | ernestk86/Programming-Exercises | de7e6762ae87f31d6ad3851d394492516d788adc | c040af720573b7495fb6f08a02aa0e35427893cc | refs/heads/main | 2023-02-03T00:29:10.470029 | 2020-12-18T17:12:04 | 2020-12-18T17:12:04 | 309,203,449 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 977 | cpp | climbStairs.cpp | #include <iostream>
#include <string>
#include <vector>
using std::cout;
using std::endl;
using std::string;
using std::vector;
/*
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct
ways can you climb to the top?
EXAMPLE
Input: 2
Ou... |
db752fdff5002c4c37349bbaba90bed0e79b63c8 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/31/941b8d5e71dcfc/main.cpp | e0127d9512beb028c6b9c9f72f8037b434c14f8f | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 640 | cpp | main.cpp | #include <iostream>
#include <type_traits>
// float f();
void g(int);
int h(int) { return 0; }
template<unsigned P> struct priority : priority<P-1> {};
template<> struct priority<0> {};
template<class Int> auto call_best(Int i, priority<2>) -> decltype(f(i)) { return f(i); }
template<class Int> auto call_best(Int i... |
393ae04f304268d3a9ff462c3ae61ae16c9cb0d8 | 694a07e244b4e28341d47f0673604dcbd66da90a | /layer4.cpp | 9a081a8ba543f13694d0f61f1def9b81beaae035 | [] | no_license | RevDownie/TomsDataOnion | 08cc912c80bcaf8aaf9c7a3228ebd8a296780c13 | 1c50ffdba7fdcea0c6c0bd347c673c1f18f3e89f | refs/heads/master | 2022-11-11T23:55:02.234166 | 2020-07-08T14:59:55 | 2020-07-08T14:59:55 | 274,107,878 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,382 | cpp | layer4.cpp | #include <memory>
#include <cstdio>
#include <cmath>
#include <fstream>
#define BSWAP_16(x) ((x & 0x00FF) << 8) | ((x & 0xFF00) >> 8)
#define BSWAP_32(x) ((x & 0x000000FF) << 24) | ((x & 0x0000FF00) << 8) | ((x & 0x00FF0000) >> 8) | ((x & 0xFF000000) >> 24)
struct DecodeResult
{
std::unique_ptr<uint8_t[]> m_dat... |
79456c3fd56246aa096d81bdeb5df6dfffc4483a | 2e6b44c36bd7827ac5fc991c746144b4de2a3212 | /Barcalounger/Barcalounger/Renderer.cpp | 5f9696ab7ce710ed047474119670c3bdd3924918 | [] | no_license | Flufanufa/Barcalounger | 7a889023e2fce92b99ec4d9e8346c41d68c13b3f | af4e07c575869fc2a20e157fe17c9e164850162c | refs/heads/master | 2021-01-11T08:19:24.799386 | 2016-12-07T16:25:59 | 2016-12-07T16:25:59 | 72,949,874 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,853 | cpp | Renderer.cpp | /*
//NO LONGER BEING USED
#include "Renderer.h"
#include "LogManager.h"
LogManager *loginstance = NULL;
//The renderer is a singleton class
Renderer* Renderer::instance = NULL;
Renderer::Renderer(){
loginstance = LogManager::getInstance();
windowInstance = Window::getInstance();
glEnable(GL_DOUBLEBUFFER);
if (gl... |
8307d194e3b8a17da8854d170032dc578b783494 | 551247b391a7af9861cc836e045df08e1bd7f3a5 | /sources/test.cpp | 1b6b387dad2c5ae9220deb4e0324c8f26327bece | [
"Apache-2.0"
] | permissive | PinkDiamond1/gadget_lib | 36295f28101c037a931fffcb148d84123020ce91 | 7c29a69a3c639372dec380b5b7cf431aacd26da7 | refs/heads/master | 2023-03-19T08:38:57.535178 | 2018-08-06T14:44:50 | 2018-08-06T14:44:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,831 | cpp | test.cpp | #include "annealing.hpp"
#include "basic_gadgets.hpp"
#include "utils.hpp"
#include "Field.hpp"
using namespace gadgetlib;
#define PRIME_NUM 1273437928060067303
//#define PRIME_NUM 11
struct my_str_provider
{
constexpr static char const* str()
{
return "245521870800009915270890634279110554381234874750592897213... |
7cce23f9b129abeaa294b775db341c95343b70d2 | 2ab02459c6147bf96513dacd90cbf7a38827ded3 | /intersection.cpp | 479225629aac1fc5021f63dc38fe0944e082173f | [] | no_license | Pcornat/PersonnalRayTracer | ae89fc60ac034e08af30b474a4e6ea8d29da0732 | e1608d629e2b9fcef5a15876471f0ea898bd6fea | refs/heads/master | 2021-07-17T02:40:51.890595 | 2020-05-21T12:26:16 | 2020-05-21T12:26:16 | 151,968,194 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 599 | cpp | intersection.cpp | #include "intersection.h"
#include "Objects/objet.h"
Intersection::Intersection(float dist, const glm::vec3 &normal, const Objet *obj) : dist(dist), normal(normal), obj(obj) {}
Intersection::Intersection(float dist, const Objet *obj) : dist(dist), obj(obj) {}
Intersection::Intersection(const Objet *obj) : obj(obj) {... |
78e7b61bfec9c6b41a1d484d4a8d68a9c4d03a01 | 3ded37602d6d303e61bff401b2682f5c2b52928c | /toy/0203/Classes/Layer/CBGameLoadingLayer.cpp | c042ad84cc2fdec893019870623d8f7feb9b2923 | [] | no_license | CristinaBaby/Demo_CC | 8ce532dcf016f21b442d8b05173a7d20c03d337e | 6f6a7ff132e93271b8952b8da6884c3634f5cb59 | refs/heads/master | 2021-05-02T14:58:52.900119 | 2018-02-09T11:48:02 | 2018-02-09T11:48:02 | 120,727,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,147 | cpp | CBGameLoadingLayer.cpp | //
// CBGameLoadingLayer.cpp
// ColorBook
//
// Created by maxiang on 5/15/15.
//
//
#include "CBGameLoadingLayer.h"
USING_NS_CC;
CB_BEGIN_NAMESPACE
bool GameLoadingLayer::init()
{
if (!LayerColor::initWithColor(Color4B(0, 0, 0, 200))) {
return false;
}
bool rcode = false;
do {
... |
2bfa5c9d87106faca4081f7fda812e77d7ce8036 | 4a2d73bed0a24fc4e9e5632b335bb82899cc5c9f | /include/ANDFunc.h | 07df6b2e088588d07fb4eb4f6ab4e4fabc7ac90c | [] | no_license | cloidnerux/LogikSimulator | 1eb9e6549fc7d201fbb7ef2cb849acb20d832a18 | cfa4e4fa8b912276513ec367779489de3b1ff823 | refs/heads/master | 2021-01-10T19:09:04.397976 | 2014-12-04T14:14:00 | 2014-12-04T14:14:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 390 | h | ANDFunc.h | #pragma once
#include "tFunc.h"
#include "node.h"
#include <memory>
class ANDFunc : public tFunc
{
public:
ANDFunc():tFunc(){};
ANDFunc(const ANDFunc &a):tFunc(a){};
ANDFunc(const ANDFunc *a):tFunc(a){};
ANDFunc(std::shared_ptr<Node> a, std::shared_ptr<Node> b, std::shared_ptr<Node> out, int delay);
~ANDFunc();
... |
d67c9a90a1230ea5e54d41347201531262b008bb | 2f78e134c5b55c816fa8ee939f54bde4918696a5 | /code/game/simpletransition.cpp | f238b261bbfe7795e41194a005c110e12dfe91d8 | [] | no_license | narayanr7/HeavenlySword | b53afa6a7a6c344e9a139279fbbd74bfbe70350c | a255b26020933e2336f024558fefcdddb48038b2 | refs/heads/master | 2022-08-23T01:32:46.029376 | 2020-05-26T04:45:56 | 2020-05-26T04:45:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,865 | cpp | simpletransition.cpp | //------------------------------------------------------------------------------------------
//!
//! \file simpletransition.cpp
//!
//------------------------------------------------------------------------------------------
// Necessary includes
#include "simpletransition.h"
#include "game/entity.h"
#include "game/en... |
ea6e88e5e1a4515afd0e7d050a2e61695c346823 | e7835fd7ea78cb6edf590c60a0b24fc5b343e00b | /pnpbridge/src/pnpbridge/samples/service/windows/pnpbridgesvc_installer.cpp | e221a25941cc43ae4941a516d85d0b0d95155fdb | [
"MIT"
] | permissive | matsujirushi/AzurePnPBridgePreview | e1cc9d9b74160bdac4c66168757e7e380f25bc0d | cef6def7f14965fba65948a9eeae97a029d49f1b | refs/heads/master | 2020-09-24T11:26:55.740814 | 2019-10-02T21:30:25 | 2019-10-02T21:30:25 | 225,749,953 | 0 | 0 | NOASSERTION | 2019-12-04T01:14:43 | 2019-12-04T01:14:42 | null | UTF-8 | C++ | false | false | 8,009 | cpp | pnpbridgesvc_installer.cpp | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#pragma region Includes
#include <stdio.h>
#include <windows.h>
#include "servicebase.h"
#include "pnpbridgesvc.h"
#pragma endregion
//
// Settings of the service
// ... |
113f059a18e397dbe16880bdde01946189e8bc65 | 2e45720a8747bbcd06213a3dfc2b3a5c668052d6 | /org.glite.wms.common/src/utilities/LineParserExceptions.cpp | 685cf4701bb1bb1ed316454abedefa501b9bdc92 | [
"Apache-2.0"
] | permissive | italiangrid/org.glite.wms | df0616a06b034b875b3c93e16995fc022a206685 | 0fc86edb5b0395c5400023a4cfb29b5273eba729 | refs/heads/master | 2021-01-10T20:25:56.444145 | 2015-01-23T15:09:44 | 2015-01-23T15:09:44 | 5,776,443 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,121 | cpp | LineParserExceptions.cpp | /*
Copyright (c) Members of the EGEE Collaboration. 2004.
See http://www.eu-egee.org/partners for details on the
copyright holders.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.ap... |
bc5dc1ab9f7c468d6888688696a555f230c8926a | a076e4e91de545d97df4736dcf019259c6bfd963 | /src/main.cpp | baa37c83756ee4a3e16963c3685df73cdfd115cc | [] | no_license | kecajjo/PO-dron | a4bc32f1b4a1cb08f7b594fd8fed8540ed1d563c | 267a7b94d3059ccfcc664e32cdad95f298e48c7e | refs/heads/master | 2022-03-14T18:03:58.182415 | 2019-12-15T03:26:50 | 2019-12-15T03:26:50 | 228,122,634 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,177 | cpp | main.cpp | #include <iostream>
#include <iomanip>
#include <fstream>
#include "Wektor3D.hh"
#include "Macierz3x3.hh"
#include "Prostopadloscian.hh"
#include "lacze_do_gnuplota.hh"
#include "menu.hh"
#include "bryla.hh"
int main(){
singleton *fabryka=singleton::stworz_fabryke();
menu(*fabryka);
std::cout << "ilosc aktua... |
d4adc7bc8619be1a364cde33ccd48d3a397f08b8 | f986e6aad322515718989ee337a8c1b5c7778466 | /Baekjoon/2178_미로탐색.cpp | bfa2d90040689c9d466ea88ad7c16d2f1d6d61b5 | [] | no_license | wh2per/Baekjoon-Algorithm | bf611ae9c87dfc1af3f66b79f0c2d21db75c0df1 | 04f721f59b497f81452216ff0becbc3a620bbd0c | refs/heads/master | 2021-11-24T09:23:31.327854 | 2021-11-11T05:56:54 | 2021-11-11T05:56:54 | 165,788,406 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,030 | cpp | 2178_미로탐색.cpp | #include <iostream>
#include <queue>
#include <vector>
#include <algorithm>
#include <climits>
using namespace std;
char arr[101][101];
bool check[101][101];
queue<pair<pair<int, int>, int>> q;
int dx[] = { 1,0,-1,0 };
int dy[] = { 0,1,0,-1 };
int n, m;
int ans;
int main() {
// your code goes here
ios_base::sync_w... |
b819bb17566121c0ae4b42f14b467b1ceb291f6d | f564b7d8b6789a04353b364b343171e30819545f | /include/YourPrimaryGeneratorAction.hh | 22958f46e66c7bd815b90834ecb1e16bf9dd2952 | [] | no_license | P-GLEZ/trabajo-FPFE | d538fad310c11421365cad6faf633f7f65d80580 | 1750a8c42a5ccd58af037d30e0114650d23d9d6a | refs/heads/main | 2023-04-27T03:22:29.192598 | 2021-05-12T16:40:12 | 2021-05-12T16:40:12 | 366,481,373 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,295 | hh | YourPrimaryGeneratorAction.hh |
#ifndef YOURPRIMARYGENERATORACTION_HH
#define YOURPRIMARYGENERATORACTION_HH
#include "G4VUserPrimaryGeneratorAction.hh"
#include "G4Types.hh"
#include "G4String.hh"
class YourDetectorConstruction;
class G4ParticleGun;
class YourPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction {
public:
YourP... |
6e3a9344ad222e3084d275d980b9efd163d2e077 | 4bafc92c90db6794ab8fa9b7cbc86be2771b0058 | /vigranumpy/src/core/utilities.cxx | f8af573830947bd3d7105b133800c9528a09da6b | [
"MIT"
] | permissive | ukoethe/vigra | 242e3f3dbaec2e3fd42a90dbb1f5c6e2fbe404a3 | 501c99c1fa29a958d123925d647f5cb240e27758 | refs/heads/master | 2023-07-13T23:30:43.198880 | 2023-07-04T11:26:03 | 2023-07-04T11:26:03 | 2,005,439 | 359 | 181 | NOASSERTION | 2023-07-04T11:26:04 | 2011-07-06T08:34:57 | C++ | UTF-8 | C++ | false | false | 4,190 | cxx | utilities.cxx | /************************************************************************/
/* */
/* Copyright 2011 by Ullrich Koethe */
/* */
/* This file is p... |
b5a0e37ed3c407a9c18a86008e52b4248d56c063 | 01398729b284cdc97fc01403d67c05292a7d5bc4 | /testProject/Rigidbody.h | c77d5f43cbc975c60108db5a2f94ebf1dcf7ebd6 | [] | no_license | Kingikk10/Mathlib-and-engine | 721a6d909cb337a30cc23ad27c15885e9b657d5c | 14dacf0fcffc3b6c7d547c1f1daf3298e3a0d9dc | refs/heads/master | 2016-08-12T19:13:58.659806 | 2016-03-30T23:17:41 | 2016-03-30T23:17:41 | 54,904,558 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 338 | h | Rigidbody.h | #pragma once
#include "Vec2.h"
#include "GCData.h"
#include "transform.h"
class Rigidbody : public GCData<Rigidbody>
{
public:
Vec2 vel, acc, force, jerk;
float mass, drag;
float angVel, angAcc, tq;
float andDrag;
Rigidbody();
void addForce(const Vec2 &);
void addTq(float a);
void integrate(Transform *, f... |
f552b86eb1a36327840813c2dbeeff33f1c31c7a | 31e94c27019298386cc739f8b0788560ca3b7a25 | /RL/StringA.h | 4ded726fc3e2ea070f2f28e4c84429aabdffd95a | [] | no_license | firwind/Ammyy-v3 | f7d5df9d0d4ea01fa4be6b96242fbedaef5e6e91 | 8bf063085550f522f4197d8a530801292a482179 | refs/heads/master | 2020-04-22T20:26:35.679847 | 2017-01-10T02:18:22 | 2017-01-10T02:18:22 | 170,641,720 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 9,329 | h | StringA.h | #ifndef __CSTRING_A_H__INCLUDED__
#define __CSTRING_A_H__INCLUDED__
#ifndef __cplusplus
#error StringA requires C++ compilation (use a .cpp suffix)
#endif
struct CStringDataA
{
long nRefs; // reference count
int nDataLength; // length of data (including terminator)
int nAllocLength... |
e2bda517a4885180d9323504e2f44eb38e132a52 | c732666c24d86e0da4cd2c1ee12619e9c514e818 | /offline/01_03/02-23/6/1806.cpp | 29b53e08fea15a386abea9dc07d1455a4a2a63ca | [] | no_license | Algostu/boradori | 032f71e9e58163d3e188856629a5de4afaa87b30 | 939d60e8652074e26ba08252217f7788cae9063c | refs/heads/master | 2023-04-22T03:57:26.823917 | 2021-04-06T23:09:36 | 2021-04-06T23:09:36 | 263,754,451 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 507 | cpp | 1806.cpp | #include <bits/stdc++.h>
using namespace std;
#define INF 987654321
int main(void){cin.tie(NULL); cout.tie(NULL); ios_base::sync_with_stdio(false);
int N, M;
cin >> N >> M;
vector<int> arr(N);
for(int i=0; i<N; i++) cin >> arr[i];
int s, e, cnt, ans;
cnt = INF;
s = e = ans = 0;
while(s<N... |
3d36a42a0df8f405927ca3d3ccce9c208754e368 | e31e549a9e3baeded36b61675b458f34e08c64e2 | /zmqpp/pub_sub/sub.cpp | e4420559345f69395c0c416608d62b4fd5707edb | [] | no_license | ztenv/zeromq_demo | e669f1c1232a09b51ca2dbb99e48ecc7bd6a4b36 | 519049256a67919bd921de577b94ff9d38226c12 | refs/heads/main | 2023-04-08T12:29:51.652133 | 2021-04-23T15:48:20 | 2021-04-23T15:48:20 | 309,614,058 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,580 | cpp | sub.cpp | /**
* @file sub.cpp
* @brief sub demo
* @author shlian
* @version 1.0
* @date 2020-11-04
*/
#include <iostream>
#include <gflags/gflags.h>
#include <zmqpp/context.hpp>
#include <zmqpp/context_options.hpp>
#include <zmqpp/loop.hpp>
#include <zmqpp/message.hpp>
#include <zmqpp/socket.hpp>
#include <zmqpp/socket_... |
74fdf71fbd489041bce22b339f27ca05deb232a4 | b4ad8495d6e353ec1dd75503da06e27c04c9e89d | /src/simulations/clotho/object/life_cycles/tags.hpp | 48b482f46a5079d69cfc5d4709be477734d5cfb5 | [
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | putnampp/clotho-dev | a0efc5346c051460abab336c783a3977dbc26bf1 | dd6ffdb549f6669236745bbf80be6b12392ecc00 | refs/heads/master | 2021-01-25T06:36:32.056942 | 2014-09-15T14:28:17 | 2014-09-15T14:28:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 161 | hpp | tags.hpp | #ifndef LIFE_CYCLE_TAG_GUARD_HPP_
#define LIFE_CYCLE_TAG_GUARD_HPP_
#include "object/life_cycles/tags/life_cycle_tag.hpp"
#endif // LIFE_CYCLE_TAG_GUARD_HPP_
|
876a53b88a08ecad4c08447770be57904dcced8b | 47ca937c2ac0794c4e902b334a875aec1507799c | /src/langs.cpp | 8dbd594e921bcafd113790ae99ea593247bd717e | [] | no_license | Malgnor/musicbotdosbrodi | 60ca64b37ffb0d1e05d0124b55202bd0b0fc2339 | dc4143579945a9b00f67fc15c3421b290f87ef39 | refs/heads/master | 2022-03-10T03:08:19.922310 | 2015-01-06T20:01:37 | 2015-01-06T20:01:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,007 | cpp | langs.cpp | #include "langs.h"
#include "global.h"
using namespace Global;
void generatePTBRStrings(){
/* COMMANDS / */
languages[LANG_PT_BR].COMMAND_ACTIVATE = "ativar";
languages[LANG_PT_BR].COMMAND_DEACTIVATE = "desativar";
languages[LANG_PT_BR].COMMAND_CONNECT = "conectar";
/* INFOS */
languages[LANG_PT_BR].BOT_ACT... |
e420e28166dfaf0afd898fea29a9ace39d811035 | 240511f33bbd9c9ce91242db2efd7605335a2ce0 | /app/src/ui/canvas/inspector/inspector_buttons.cpp | 21adfc18fad16f6a7acf20d09244b30ff9049a9b | [
"MIT"
] | permissive | fros1y/antimony | 6f92355e78a4bed608011be8718edff0aa689d77 | dcbf50d80fa0eb40e2c50dd0b5bddf2f6b313693 | refs/heads/develop | 2021-01-18T01:37:00.413657 | 2016-03-14T14:12:07 | 2016-03-14T14:12:07 | 35,767,617 | 2 | 0 | null | 2015-05-17T13:42:41 | 2015-05-17T13:42:40 | null | UTF-8 | C++ | false | false | 2,932 | cpp | inspector_buttons.cpp | #include <Python.h>
#include <QPainter>
#include <QMenu>
#include <QAction>
#include "ui/canvas/inspector/inspector_buttons.h"
#include "ui/canvas/inspector/inspector.h"
#include "ui/canvas/inspector/inspector_title.h"
#include "ui/util/colors.h"
#include "app/app.h"
#include "graph/script_node.h"
InspectorScriptB... |
de2f8ac7a0c8855376cecaa389c1139fc89e4ac4 | 41f5c77cb1bc1db7e6dcc7a2ff105116fb654cb5 | /code/Remesh/MarchingCube/isosurface.cpp | e2e90efc357a8ec2d64aaa9786319e66f1de1ecd | [] | no_license | vivzqs/non-obtuse-remeshing | dd4e351ec6f131b7d289213e703845d811858027 | e6f29fd0cdf525418d94997d181ee0b6c5b6b914 | refs/heads/master | 2021-01-23T18:08:20.010760 | 2012-09-17T23:38:52 | 2012-09-17T23:38:52 | 33,761,888 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 55,662 | cpp | isosurface.cpp | #include "isosurface.h"
namespace DUT
{
template <class T>
const uint IsoSurface<T>::iEdgeTable[256] =
{
0x0 , 0x109, 0x203, 0x30a, 0x406, 0x50f, 0x605, 0x70c,
0x80c, 0x905, 0xa0f, 0xb06, 0xc0a, 0xd03, 0xe09, 0xf00,
0x190, 0x99 , 0x393, 0x29a, 0x596, 0x49f, 0x795, 0x69c,
... |
199f543425daa8c6bf6c272ccfa3732390a6a228 | d54259e11b684c4124723376c1485b99e387a5e0 | /Revision_exercise/chapter4/ImplicitCasting.cpp | b8630585f2985bf0b6b39df3b9ce6bcb22e5c96b | [] | no_license | Saurabh-12/learn_cpp | 754e5f1efdfe021beaf7425f9b1592cae58fd19e | 805c0b2131481ac14bd1510868a638040ae1e605 | refs/heads/master | 2022-03-06T12:39:44.456471 | 2022-02-28T17:16:58 | 2022-02-28T17:16:58 | 116,156,269 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 385 | cpp | ImplicitCasting.cpp | #include<iostream>
#include<typeinfo>
int main()
{
//auto type casting or implicit typecasting
short a(4);
short b(5);
std::cout << typeid(a + b).name() << " " << a + b << std::endl; // show us the type of a + b
double d(4.0);
short s(2);
std::cout << typeid(d + s).name() << " " << d + s ... |
dbbd9aff928e2c64dfe5416a5506fd89cffe5091 | fea779942fbbe4e3c03cb9bc78b0a99e56cb17e5 | /cpp/m4java/inc/m4jhandledata.hpp | 4d7ce2cecba696141e57072912c60cf32897d285 | [] | no_license | jesuscraf/peopletech | 66e372af07f9a3dd4660ef14b93daddf92a5e3c8 | 3ab9470cf2e7cb7a44baf4185710cb707f081ff4 | refs/heads/master | 2021-09-03T13:37:13.701453 | 2018-01-09T11:49:34 | 2018-01-09T11:49:34 | 114,750,048 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 1,592 | hpp | m4jhandledata.hpp |
//==============================================================================
//
// (c) Copyright 1991-2015 Meta Software M.S., S.A
// All rights reserved.
//
// Module: m4java.dll
// File: m4jhandledata.hpp
// Project: mind3.x
// Author: Meta Software ... |
c8defd486307e219e32fcdbb8e770007ff0fcc8f | 1e29330fbf4d53cf5dfac6f0290f660647109da7 | /yss/drv/dma2d/drv_dma2d_st_type_A.cpp | b9e21c730dbd1494f675c8ce6b92718060bc974d | [] | no_license | bluelife85/yss | 2c9807bba61723a6fa578f80edadd9e8d6f9d1a9 | 1ada1bcc8579bf17e53d6f31525960703ef2f6b9 | refs/heads/master | 2023-01-16T02:12:26.099052 | 2020-11-26T01:18:43 | 2020-11-26T01:18:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,802 | cpp | drv_dma2d_st_type_A.cpp | ////////////////////////////////////////////////////////////////////////////////////////
//
// 저작권 표기 License_ver_2.0
// 본 소스코드의 소유권은 yss Embedded Operating System 네이버 카페 관리자와 운영진에게 있습니다.
// 운영진이 임의로 코드의 권한을 타인에게 양도할 수 없습니다.
// 본 소스코드는 아래 사항에 동의할 경우에 사용 가능합니다.
// 아래 사항에 대해 동의하지 않거나 이해하지 못했을 경우 사용을 금합니다.
// 본 소스코드를 사용하였... |
23eb0c9851a7859a32688515747e5b524ebf2c97 | 5e3000d0c82704cd6c6c0eddd1f9a4b693098f4a | /tests/experimental/test_ExperimentalConstraintManagement.cpp | 483cd656f227f945d0de74afac5b9788b9f30078 | [
"MIT"
] | permissive | pablolevi/crave | ed2b995b2d952c603dbd2da1b4bd7e45b2bc832c | 71633b43afb434d08e2433b3ff1fbcfd377620c1 | refs/heads/development | 2021-06-21T12:03:10.901930 | 2021-02-17T21:29:48 | 2021-02-17T21:29:48 | 189,343,226 | 0 | 0 | NOASSERTION | 2019-06-05T07:18:12 | 2019-05-30T04:04:07 | C++ | UTF-8 | C++ | false | false | 2,778 | cpp | test_ExperimentalConstraintManagement.cpp | #include <boost/test/unit_test.hpp>
#include <crave/experimental/Variable.hpp>
#include <crave/experimental/Coverage.hpp>
#include <crave/experimental/Constraint.hpp>
#include <ostream>
using std::ostream;
using namespace crave;
BOOST_FIXTURE_TEST_SUITE(ConstraintManagement, Context_Fixture)
struct Item : public c... |
6214a4213d0018ad806316a62c53db1f54efabd1 | f57a583d41ddf3bf4e8a96e32f38de9d83ff6ae8 | /c++/listener_function.cpp | 7f957a3fbf4bd8fb5b47a599ff47d42f3d3fad0c | [] | no_license | sansajn/test | 5bc34a7e8ef21ba600f22ea258f6c75e42ce4c4e | c1bed95984123d90ced1376a6de93e3bb37fac76 | refs/heads/master | 2023-09-01T00:04:48.222555 | 2023-08-22T15:14:34 | 2023-08-22T15:14:34 | 224,257,205 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 438 | cpp | listener_function.cpp | // implementacia listener-a pomocou std::function
#include <functional>
#include <vector>
#include <iostream>
struct foo
{
using donefce_t = std::function<void ()>;
void notify_done() {
for (auto f : _listeners)
f();
}
std::vector<donefce_t> _listeners;
};
void g() {std::cout << "foo instance done!\n";}
i... |
bffa04b45f2750b3ad14f538adfb95fb9a625b96 | b8e80a65aca1a4d653d5a24296d260797c7059dd | /front/ncurses/Modules/name/Name.hpp | 2113f9bc9772b21c4e165c41429eaa98346971d2 | [] | no_license | ZelZorgia/my-gkrellm | 75ea401dbbaff05213c0efe449a89807cdfacba3 | 1a1aef308dee4ca6769861d53bef208e240986c7 | refs/heads/master | 2023-02-19T14:39:02.921839 | 2021-01-24T21:55:38 | 2021-01-24T21:55:38 | 332,563,104 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 274 | hpp | Name.hpp | #ifndef NAME_HPP_
#define NAME_HPP_
#include <ncurses.h>
#include "../../../../back/SysInfo.hpp"
class Name : public Metrics::SysInfo
{
protected:
public:
Name();
virtual ~Name();
void display();
virtual bool initialize(); //___ to chose each module
};
#endif
|
39683c73c61d6f198c89ae99ee2e0fc861b850d3 | e41805c6a4c8cd70a9dfa7bc267464bc0a2e2b40 | /Code Cup 3/Dast Garmi/TeamMeli.cpp | e93036e66e03b71eb7da5f5b65616a938319c109 | [] | no_license | parsarahimian1997/cpp | 345a2794b3c81466fc7d01c296e5cd85614a14f0 | 9e087c71b9d6589f184a670125029fde8ad10389 | refs/heads/master | 2021-06-14T13:36:15.764612 | 2021-05-27T11:06:21 | 2021-05-27T11:06:21 | 152,288,469 | 0 | 0 | null | 2018-10-09T20:41:13 | 2018-10-09T16:56:08 | null | UTF-8 | C++ | false | false | 632 | cpp | TeamMeli.cpp | #include <iostream>
using namespace std;
int main()
{
int a, b, c, d[7][7], s[100 + 7] = { 0 }, x = 0, y = 0, z = 0;
long long price = 0;
scanf("%d %d %d", &a, &b, &c);
b *= 2;
c *= 3;
int i;
for (i = 0; i < 3; i++)
for (int j = 0; j < 2; j++)
scanf("%d", &d[i][j]);
for (i = d[0][0]; i < d[0... |
eec0e180c8553ca0936e2af51b54cca1af0e4d60 | fd5016ba91170565066df1f0c42aa6568b18dbac | /ex00/droid.cpp | 1e1aff4cf805badf5eeae79fa69e834734e03d3a | [] | no_license | wswatsonws/piscine_cpp_d04 | c5500cd5ab346af63e6b64d5c83fb126b7ade253 | d134000fc511ea806942ba96755ef4a5e5206fee | refs/heads/master | 2020-03-22T06:40:25.216255 | 2018-07-06T04:45:53 | 2018-07-06T04:45:53 | 139,649,792 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,047 | cpp | droid.cpp | #include <iostream>
#include "droid.hh"
Droid::Droid(std::string const& id) : _id(id), _energy(50), _attack(25),
_thoughness(15), _status(NULL)
{
_status = new std::string("Standing by");
std::cout << "Droid '" << _id << "' Activated" << std::endl;
}
Droid::Droid(Droid const& other) : _id(other._id), _ene... |
1b522ab3f08e537b01bbfe1c9b63fc9501c25811 | 3624e9f0a026b57ebdafa4e842b93f56e5a8504d | /Codeforces/182 Division 1/Problem B/B.cc | 89d278352a6dc143f13675f1bd87f7d661e6d0fd | [
"MIT"
] | permissive | ailyanlu1/Competitive-Programming-2 | 54109c8644d3ac02715dc4570916b212412c25c0 | 6c990656178fb0cd33354cbe5508164207012f24 | refs/heads/master | 2020-03-23T07:48:20.560283 | 2018-02-15T06:49:49 | 2018-02-15T06:49:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,979 | cc | B.cc | #include<cstdio>
#include<iostream>
#include<cmath>
#include<algorithm>
#include<cstring>
#include<map>
#include<set>
#include<vector>
#include<utility>
#include<queue>
#include<stack>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define fi first
#define... |
518b54370ec45a8b3da2a1c908aa95198145faff | 7ad1e8409d23ef82022a28fe58242d0736109530 | /leetcode/055_Jump-Game/JumpGame.cpp | 5940bb8c1e18a676ca1eba18dfd356368d27b73c | [
"MIT"
] | permissive | chasingegg/Online_Judge | c96900f4ab8c93bf5863776408c3d47952632b1b | 8a3f4b5b207cbeda921c743a527a25bf9c7b6248 | refs/heads/master | 2021-05-20T17:42:17.597158 | 2020-12-09T09:37:40 | 2020-12-09T09:37:40 | 83,519,213 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 434 | cpp | JumpGame.cpp | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
bool canJump(vector<int>& nums) {
int len = nums.size();
if (len <= 0) return false;
int last = 0;
for (int i = 0; i < len; ++i) {
if (last >= i) {
last = max(i + nums[i],... |
fdba416154aab071e237d9601dbef8b0ea95ed13 | efc85fa3fe48c712693a5a93848d2d1305ae2603 | /index_tests/declaration_vs_definition/func_associated_function_params.cc | fbf17f3a8ce6e6cf26dac5027e20b9d783d1b2c5 | [
"Apache-2.0"
] | permissive | MaskRay/ccls | 320165aeadc38879aabb4dcb83cf8582b1383cac | ee2d4f5b9a2181e2c71341d34c7d2463f0c28cd1 | refs/heads/master | 2023-07-19T02:55:06.652053 | 2023-07-17T23:06:47 | 2023-07-17T23:06:49 | 127,506,824 | 3,725 | 351 | Apache-2.0 | 2023-09-10T01:37:47 | 2018-03-31T06:47:05 | C++ | UTF-8 | C++ | false | false | 1,677 | cc | func_associated_function_params.cc | int foo(int, int);
int foo(int aa,
int bb);
int foo(int aaa, int bbb);
int foo(int a, int b) { return 0; }
/*
OUTPUT:
{
"includes": [],
"skipped_ranges": [],
"usr2func": [{
"usr": 2747674671862363334,
"detailed_name": "int foo(int, int)",
"qual_name_offset": 4,
"short_name": "foo"... |
d1f09a0f66cd231c830e9a933924af41947c8502 | 01a42b69633daf62a2eb3bb70c5b1b6e2639aa5f | /SCUM_A_2_functions.cpp | 1c1639921c6ec6757f78d5b844fd0d8a2a212571 | [] | no_license | Kehczar/scum_sdk | 45db80e46dac736cc7370912ed671fa77fcb95cf | 8d1770b44321a9d0b277e4029551f39b11f15111 | refs/heads/master | 2022-07-25T10:06:20.892750 | 2020-05-21T11:45:36 | 2020-05-21T11:45:36 | 265,826,541 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,690 | cpp | SCUM_A_2_functions.cpp | // Scum 3.79.22573 (UE 4.24)
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace Classes
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function A_2.A_1_C.Receive... |
74efe3c8161af3aaa565adda59b4b3c8e530d321 | 37d39ead2254c951144d1d06f280bf74b9e07553 | /game_v2.0/enemy.h | 5514e83b15938e8008bf613ac335d1414db34b6a | [] | no_license | FlamasterRu/game_v2.0 | bd63f7b2c8e9a6fc3195323ba5d4e0019d8627d4 | 72ed689c4132073e29d70e0f2f8bcf48ba381e4b | refs/heads/master | 2023-02-18T22:18:14.754653 | 2021-01-21T17:07:11 | 2021-01-21T17:07:11 | 323,447,560 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,123 | h | enemy.h | #pragma once
#include <SFML/Graphics.hpp>
using namespace sf;
class Enemy : public sf::Drawable
{
private:
Vector2f e_Position; //// Координаты левого верхнего угла примоугольника, который описывает фигурку героя
public:
virtual void update(const float elapsedTime) = 0;
virtual void setPosition(const Vect... |
957e7515c24d6057541648b405ce038f5752f6aa | 9cad0aa7f0f95e1f0a3a4c9f740ede5d871b0199 | /from-xxx-downloader/browser_references.h | 98075283c2711acc209dc46104688c69e3aa775a | [] | no_license | theunreplicated/my-chromium-embedded-downloader | 9ad266100781dadee5ae6a65ed54357e388534fd | 44c96354a45ac62c6cbe3c90f736cb311eb24e75 | refs/heads/master | 2021-01-01T05:37:12.445522 | 2015-04-03T20:23:06 | 2015-04-03T20:23:06 | 33,381,050 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 403 | h | browser_references.h | #ifndef INC_BROWSER_REFERENCES_H
#define INC_BROWSER_REFERENCES_H
#inclxxxx-geheimes-Wort!!e "inclxxxx-geheimes-Wort!!e\internal\cef_ptr.h"
#inclxxxx-geheimes-Wort!!e "AppHandler.h"
#inclxxxx-geheimes-Wort!!e "DownLoadHandler_Browser.h"
class AppHandler;
class DownLoadHandler_Browser;
extern CefRefPtr<AppHandler>apphan... |
34c6fd1244b2780f029cc6a3b543115b07e86108 | c5fab1124c7eddfcdf4977a12a6328541012cbba | /Polytechnique Montréal/Project 1 - Embedded system/Projet Final/lib_dir/source/initialisation.cpp | b71e3436b49c8072bf66d9a9ba06fa1717919930 | [] | no_license | pltanguay/projects | 4603e585017e92bb20aadec421fb9bb2635dc652 | 0b4764656e02de0ffb55ff2cb7d67f36041bc4f4 | refs/heads/master | 2023-02-07T03:24:41.343001 | 2021-01-12T18:56:21 | 2021-01-12T18:56:21 | 223,986,206 | 0 | 0 | null | 2023-01-24T04:42:20 | 2019-11-25T15:53:26 | HTML | UTF-8 | C++ | false | false | 1,589 | cpp | initialisation.cpp | /****************************************************************************
* Fichier: initialisation.cpp
* Auteur: Melody Roy, Pier-Luc Tanguay, Aya Kamate et Calie Paulin
* Date: 3 décembre 2019
* Description: Fonction relative à l'initialisation
****************************************************************... |
b93bbfd52440db0ccadaa19e7adb6b69765aafc2 | 161a140e25f981f70f7905edcd1aa9a9024d0663 | /src/modules/search/DocumentQuery.h | 3ae70b401e930cbfb6b9afde1674d155b567565f | [] | no_license | yjsyyyjszf/ffead-cpp | d22f6018eb7e6e51bfd4727f0341f1e7ba9a9faf | 06d28da2915d1d2d009706bf8c51baf63ed22ec5 | refs/heads/master | 2022-04-25T21:56:30.567492 | 2020-04-26T18:19:57 | 2020-04-26T18:19:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,677 | h | DocumentQuery.h | /*
* DocumentQuery.h
*
* Created on: 03-Nov-2018
* Author: sumeet
*/
#ifndef DOCUMENTQUERY_H_
#define DOCUMENTQUERY_H_
#include "string"
#include "map"
#include "vector"
#include "JSONSerialize.h"
class DocumentQuery {
private:
std::string id;
std::string indexName;
std::map<std::string, std::string> p... |
25583a5916d257bbd935191eb5a525c7b75af372 | ab48e8db1fdabc699bc30d54ad271fb020147c37 | /171491509李柏琦/31main.cpp | aebf4d0d34a9376fe2d89b59753b8e81d5224b91 | [] | no_license | PackyLNU/2019_os-ai3 | ad5681f36066db20dfbf001b5eff9111dcfe8328 | 1873366fb76d23ec32db8bed46f0523b7cd1eb63 | refs/heads/master | 2020-08-30T03:53:41.172271 | 2019-12-09T12:13:12 | 2019-12-09T12:13:12 | 218,254,749 | 0 | 0 | null | 2019-10-29T09:52:54 | 2019-10-29T09:52:53 | null | GB18030 | C++ | false | false | 7,575 | cpp | 31main.cpp | #include<iostream>
#include <stdlib.h>
#include<windows.h>
using namespace std;
int list[8][8] = { 0 }; //棋盘状态,1是黑子,2是白子,0是空的
int p = 1, aip = 0, air, aic, lastr = 0, lastc = 0; //p是现在该谁下,1是黑方,2是白方
int p1, p2, p3, p4, temp1[8][8], temp2[8][8], temp3[8][8], temp4[8][8];//4层博弈对应的AI分数和棋局
const int dr[8] = { 0, ... |
0f9236a75ede31d46ebb6272ec69b3fc18fdcf77 | 9ab0c979bb9d2d268afba6762b2e452f049c71f3 | /Mathematics/Bit Operations/MultipleOfSeven.cpp | 0aeeb9f321065b64dfda6abde61637dfe05ceadd | [] | no_license | Imran4424/Algorithm-implementation | 1db3878ddd94d632c1bea8adc145cc692ad274a5 | 7a8afdb02aa32b727cdd0068df43019ebb1a2b07 | refs/heads/master | 2022-02-22T14:20:05.700998 | 2022-02-10T19:14:15 | 2022-02-10T19:14:15 | 90,155,134 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 268 | cpp | MultipleOfSeven.cpp | #include <iostream>
using namespace std;
int MultipleOfSeven(int num)
{
return ((num << 3) - num);
}
int main(int argc, char const *argv[])
{
int num;
cin >> num;
cout << "Multiple of seven of " << num << " is: " << MultipleOfSeven(num) << endl;
return 0;
} |
141f7c01223ecd74555d1d2146c3660a35e913e5 | 77beebe469cc7dd0d4ae745d54c4cd377f610d01 | /src/test/TestBlending.cpp | bad47d1718bd4ceb15501009acf679dbace98801 | [
"MIT"
] | permissive | rajsahae/opengl-playground-app | a6f3be7fd71b8448436ff2d2b10449e4e92d2ca3 | 567ab8a901288ffdcc6d23eb570347c7a270bb36 | refs/heads/master | 2020-05-31T15:24:32.514604 | 2019-06-25T07:38:20 | 2019-06-25T07:38:20 | 190,356,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,849 | cpp | TestBlending.cpp | #include "TestBlending.h"
#include "Debug.h"
#include "imgui.h"
#include "glm/glm.hpp"
#include "glm/gtc/matrix_transform.hpp"
namespace test
{
TestBlending::TestBlending() :
m_ClearColor { 0.3f, 0.5f, 0.8f, 1.0f },
m_ObjectColorA { 0.8f, 0.2f, 0.1f, 1.0f },
m_ObjectColorB { 0.2f, 0.9f, 0... |
569864621221cc9dfacdd7a83f68331b18e320fb | a11e7708f1561af71088be5be605462a3f1a9a68 | /Bomberman-2/include/BDemon.h | 458702534b00898596fd2d60154e11824abfbc11 | [] | no_license | ChanchyJordan/IPOO-PRACTICAS- | f0158e6dbeacbc892abaefbf42d42ad7672e19d1 | e16371dc8b118db2927abc1b58b07a4f87878de8 | refs/heads/master | 2021-01-21T04:35:31.384302 | 2016-07-08T00:24:57 | 2016-07-08T00:24:57 | 43,787,871 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 209 | h | BDemon.h | #ifndef BDEMON_H
#define BDEMON_H
#include "BPerson.h"
class BDemon:public BPerson
{
public:
BDemon(int,int);
int checkMovement(int,int,vector< vector<char> >);
};
#endif // BDEMON_H
|
6df15fc6451bd708cc1a34e7dbc4764f60e3e85a | ead47720465474384ac20fa2994ec7139d3e598d | /VNPTCASoftHSM/botan_impl/dyn_engine.cpp | 5f5e7b490878de77f65708192e290a908f5daa84 | [] | no_license | chenhuang511/ios-mailclient | e0ad5b0988b86e878383b7472861f5cb5f76a5f8 | 449e0d3a7e9b7d87fc88f0d2aa08b95265f7cd6d | refs/heads/master | 2022-07-07T01:08:50.827242 | 2017-02-16T08:08:15 | 2017-02-16T08:08:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,306 | cpp | dyn_engine.cpp | /**
* Dynamically Loaded Engine
* (C) 2010 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include "../botan/dyn_engine.h"
#include "../botan/dyn_load.h"
namespace Botan {
namespace {
extern "C" {
typedef Engine* (*creator_func)(void);
typedef u32bit (*module_version_func)(void);
}
}
Dyn... |
34cf3961245ec6403a9d62e05e2058584bfbee84 | 1cea91b0db0fe7f61332cce6d443198a0cd871ed | /hog2-PDB-refactor/generic/BFBDS.h | 2c9e2c36ce018be2526a4c7988fc4c095195ca85 | [
"MIT"
] | permissive | TheMightyJew/Thesis | ef2bb5e2b5711b6c6a0a5ebe5077e45585aa480b | b2111bb82f1f85e0d782ca678074c67efef03f64 | refs/heads/master | 2023-07-11T18:38:40.365800 | 2021-08-15T21:16:50 | 2021-08-15T21:16:50 | 247,424,686 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,614 | h | BFBDS.h | /*
* BFBDS.h
*
* Created by Steven Danishevski on DEC 19.
*
*/
#ifndef BFBDS_H
#define BFBDS_H
#include <iostream>
#include <vector>
#include <algorithm>
#include <unordered_set>
#include <math.h>
#include "MM.h"
#include "IDBiHS.h"
#include "Bloom.h"
const bool DEFAULT_UPDATE_BY_WORKLOAD = true;
const bool D... |
86e819f74a6bd43fec7788fe77b75af52f5d0ab0 | 1f95e2144280d1ef46d4b62b49eaead585e3235e | /CRSInfoServer/InnerMisla.cpp | b1d213d74de0e63405bb7ebb34368f0bc6e36388 | [] | no_license | jack-liaojie/EQ_C- | 0a74ebe8399f897b1ae369c728ba4bd23e84c48b | 518b099c3cc55196d6c38500f36544ccd9aefb67 | refs/heads/master | 2022-12-03T01:26:11.061817 | 2020-08-05T15:53:28 | 2020-08-05T15:53:28 | 285,261,010 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 5,565 | cpp | InnerMisla.cpp | #include "stdafx.h"
#include "InnerMisla.h"
#include "CRSInfoServer.h"
extern CCRSInfoServerApp theApp;
/////////////////////////////////////////////////////////////////////////////////////////////////////////
//////// CAxDBOperator//////////////////////////////////////////////////////////////////////////////////
BOO... |
8de18414cca41cdceaa0738bc52ddd7426836a03 | 51bf5f8b4bfc1a7eca0784d6fca461a29d4c05f3 | /faiss_search.cpp | 82a06151f0b12d94d7acfa34a21fb318c6e32a87 | [] | no_license | BarryZM/faiss-grpc-serving | b5b7020901515b52b9d5bee7fd82f4291a081908 | c9b564ba89ef5f4369d23ad7a6488ce55ba38c30 | refs/heads/master | 2022-12-02T22:15:51.563697 | 2020-07-24T06:23:05 | 2020-07-24T06:23:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,646 | cpp | faiss_search.cpp | #include <stdlib.h>
#include <stdio.h>
#include <grpc++/grpc++.h>
#include "faiss_logic.h"
#include "core_db.h"
struct Node {
::google::protobuf::uint64 id;
float score;
};
struct {
bool operator() (Node node1,Node node2) {
return node1.score > node2.score;
}
} SortFunc;
Status FaissServiceImpl::HSearch(ServerC... |
0ffe971c77e59a887b35b5ddb9333ddc843dc7be | d54f8df0b27184d07be7512b24183838a5b4be2c | /config/ControlConfig_V3.cc | a754b1a804b9fac730d9f31b780d19cd3fb2a7d7 | [] | no_license | lcls-daq/pdsapp | 52b038e39ed16f2fa4630f234bf16615586693b1 | 902602c4a7ee46dd07eff665d1ff161fd1762680 | refs/heads/master | 2023-09-01T05:12:45.568931 | 2023-08-17T10:14:54 | 2023-08-17T10:14:54 | 87,125,541 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,664 | cc | ControlConfig_V3.cc | #include "pdsapp/config/ControlConfig_V3.hh"
#include "pdsapp/config/Parameters.hh"
#include "pdsapp/config/ParameterSet.hh"
#include "pdsapp/config/PVControl_V0.hh"
#include "pdsapp/config/PVMonitor_V0.hh"
#include "pdsapp/config/ControlConfigType_V3.hh"
#include "pdsdata/psddl/control.ddl.h"
#include <new>
#includ... |
eff4f34be6e35d138ba9b192d3a469cfdb50a142 | d58c95ac598d855c2697e77033566f182f2083e2 | /runtime/runtime/pointertrackerthread.cpp | 40543ffc5c0921b42bb56bc19be7c4768e67d796 | [] | no_license | Tai-Min/ML-Touch-Panel | 0723a87418e0ab8f1c56d3b91a0dc222796ff08f | a65c85548b29c52a85a8d9e83660d1bf0382386b | refs/heads/master | 2023-06-23T22:50:16.305588 | 2023-06-17T15:04:32 | 2023-06-17T15:04:32 | 285,046,965 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 12,663 | cpp | pointertrackerthread.cpp | #include "pointertrackerthread.h"
#include "ngraph/opsets/opset3.hpp"
PointerTrackerThread::~PointerTrackerThread() {
info("Stopping pointer tracker...\n");
if(!isRunning()){
return;
}
// stop camera thread
info(" - Stopping camera thread...\n");
cameraExitSignal.set_value();
succe... |
ff69cdffb18b852cc235381d53a58dfe71b0137e | 592dffc97f295c6b08909d111d55d9390e3eff92 | /assignment1/Port.h | 3096894eed1a8e0f8e0751312f1f64d1b0695fd7 | [] | no_license | NaderAlAwar/EECE-437-Assignments | ca7e210bda872c9b6f4c2ab07540486b919f74e3 | 4a3ea76125ec6d0f194bc0f522e4ade21df351fc | refs/heads/master | 2021-09-10T15:46:45.994099 | 2018-03-12T19:17:52 | 2018-03-12T19:17:52 | 122,191,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 370 | h | Port.h | #ifndef PORT_H
#define PORT_H
#include <string>
class Port
{
public:
Port(); //true by default
Port(bool status, std::string input);
Port(const Port &);
//~Port();
bool isEnabled(); //returns enabled
void enable();
void disable();
std::string getValue();
private:
bool enabled;... |
9291ac78f6bd612f9529cb03eefb19506094677a | c01b0159663fc23086cf2852ab5e1165055f4bb8 | /apps/mshinfo/mshinfo.cpp | 16f21343a136051deb5592d59dfde4f498a8a6a5 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Jiangjunfeng/gaps | 44e1255eb979c461183a05d27b9830d93fe31af9 | 20364a9f58d2fa65f277474a19d6f4752e2f59fc | refs/heads/master | 2021-01-23T02:39:55.311158 | 2017-03-24T00:22:02 | 2017-03-24T00:22:02 | 86,013,464 | 2 | 0 | null | 2017-03-24T01:18:50 | 2017-03-24T01:18:50 | null | UTF-8 | C++ | false | false | 4,061 | cpp | mshinfo.cpp | // Source file for the mesh info program
// Include files
#include "R3Shapes/R3Shapes.h"
RNArea SurfaceArea(R3Mesh *mesh)
{
// Sum surface area
RNArea sum = 0.0;
for (int i = 0; i < mesh->NFaces(); i++) {
R3MeshFace *face = mesh->Face(i);
sum += mesh->FaceArea(face);
}
return sum;
}
RNScala... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.