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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
57ecfd199494d3bd57ea21ad933e683fc0f8ed9b | 633dd42702a4f2065ca585c5cf3803316e7e12fc | /test/case/TestBase.hpp | bf683acccc1cd080f75be481b5cca68ca71f7310 | [] | no_license | DanielCxh/stk | a0687d634ed8d1e07ad80915ca83ddacfbabf30e | 3ed7a75d8e24e51f9a96e155998c494cc6ffef7a | refs/heads/master | 2022-12-10T06:04:19.791764 | 2020-08-15T04:03:55 | 2020-08-15T04:03:55 | 269,898,217 | 0 | 0 | null | 2020-08-15T04:03:56 | 2020-06-06T07:00:46 | C++ | UTF-8 | C++ | false | false | 472 | hpp | TestBase.hpp | #ifndef TEST_BASE_HPP
#define TEST_BASE_HPP
#include <vector>
namespace stk
{
namespace test
{
#define TF_START() {printf("===== [%s::%s] STARE\n", __FILE__, __FUNCTION__);
#define TF_END() printf("===== [%s::%s] END\n\n", __FILE__, __FUNCTION__);}
class TestBase
{
public:
TestBase() = default;
~TestBas... |
fdacb2d35c3c735fe267a09cf8580f5795bb9e69 | 883e5d18c0486691ef437cfc9f2e9ee168d83343 | /ShaderBeginning/Ex08_EnvironmentMapping.cpp | 1dd07ed54bee35fe94ec405f87c00c6ae63b7341 | [] | no_license | nevermores88/Direct3D_temp | 18521ef24c0c3e68ac6102d37850d3ec7d73b53c | ab72d4aa066ebf37b0eb34d65c5bf605734e8bbc | refs/heads/master | 2021-09-08T21:24:21.149241 | 2018-03-12T09:34:13 | 2018-03-12T09:34:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,721 | cpp | Ex08_EnvironmentMapping.cpp | #include "stdafx.h"
#include "Ex08_EnvironmentMapping.h"
CEx08_EnvironmentMapping::CEx08_EnvironmentMapping()
{
}
CEx08_EnvironmentMapping::~CEx08_EnvironmentMapping()
{
}
HRESULT CEx08_EnvironmentMapping::Create(LPDIRECT3DDEVICE9 pdev)
{
CBaseClass::Create(pdev);
m_fRotY = 0.0f;
m_pShader = LoadShader("Ex08/... |
6f15e140ca806f329102a7def2877b5958e6968f | bf437a984f4176f99ff1a8c6a7f60a64259b2415 | /src/inet/common/packet/InetPacketBytesPrinter.cc | 4c715365df02e197e7bc04401b5bdf63c18354fa | [] | no_license | kvetak/ANSA | b8bcd25c9c04a09d5764177e7929f6d2de304e57 | fa0f011b248eacf25f97987172d99b39663e44ce | refs/heads/ansainet-3.3.0 | 2021-04-09T16:36:26.173317 | 2017-02-16T12:43:17 | 2017-02-16T12:43:17 | 3,823,817 | 10 | 16 | null | 2017-02-16T12:43:17 | 2012-03-25T11:25:51 | C++ | UTF-8 | C++ | false | false | 1,989 | cc | InetPacketBytesPrinter.cc | //
// Copyright (C) 2014 OpenSim Ltd.
//
// This program 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; either version 2
// of the License, or (at your option) any later version.
//
// This program i... |
5da338a292f417599977a03dd3984e1ac5420462 | 90ce10cd0fb03b0aa318dca21ff91944ef8f9474 | /spawner.h | 318fd887cfa26c056197ca7de20437b92c046f4c | [] | no_license | vincentkwang1/wintergame | 4e470507b45169842d61382e568d746d7888115a | b21b5cd8a643879cd54986a48d825f3802c9edf8 | refs/heads/master | 2020-05-02T10:36:03.337286 | 2019-03-27T02:14:07 | 2019-03-27T02:14:07 | 177,901,468 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 337 | h | spawner.h | #pragma once
#include "global.h"
#include "enemy.h"
#include "node.h"
class spawner {
public:
spawner();
spawner(int xPos, int yPos);
void render(int frame);
void spawnEnemy(enemy enemies[20], node nodes[]);
private:
bool gActiveNodes[6];
int livingEnemies = 0;
int posX;
int posY;
SDL_Rect spawn... |
da03c34a783a45410c1718dade6bee88802e0edb | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chromecast/system/reboot/reboot_util_test.cc | 7da75c9c624854e6f8098ba7c6a4839200e6cced | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 830 | cc | reboot_util_test.cc | // Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromecast/system/reboot/reboot_util.h"
#include "base/test/mock_callback.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace chromecast {
// Ensure that w... |
ae737b0291092fbdbb59f99d2e25371ad394fcd8 | e9ad30a15692b24d71e21efc4da8ca6b37b6460f | /Source/TerrorTrains/StationManager.h | e4e7a5a4556d9f4c69299c6117205489f969c434 | [] | no_license | Buwaka/TerrorTrains | 12ee73c24f297214eab62bcd0483e4c03f876d6e | c24863a551801df616f48073a664df49c25e7268 | refs/heads/master | 2020-09-04T04:21:16.893032 | 2019-11-05T04:07:20 | 2019-11-05T04:07:20 | 219,655,161 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,620 | h | StationManager.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Station.h"
#include "StationManager.generated.h"
class USFXComponent;
UCLASS()
class TERRORTRAINS_API AStationManager : public AActor
{
GENERATED_BODY()
p... |
d421ba6760025496b9706353a81e8e363ee33b88 | e7ed90dd085d0b967d087aab2875b86de8fe136a | /Hackerrank/box-moving.cpp | e6abd052da212ea49187db55b77fe0ed64c576a8 | [] | no_license | msrshahrukh100/Iqra | 10ad18c61d0bbeecdcdb7873d9a7a81530113c29 | 05f8b62a2615170b1dfb439cfbd029e0384ef447 | refs/heads/master | 2021-01-15T15:47:39.252746 | 2016-11-06T09:22:11 | 2016-11-06T09:22:11 | 53,237,685 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 711 | cpp | box-moving.cpp | #include <iostream>
#include <vector>
#include <algorithm>
#include <numeric>
using namespace std;
vector <long long> a;
vector<long long> b;
vector<long long> diff;
int main()
{
int n;
cin>>n;
int tt;
for(int i=0; i<n; i++)
{
cin>>tt;
a.push_back(tt);
}
for(int i=0; i<n; i++)
{
cin>>tt;
b.push_back(tt)... |
29f93bee8df000cd5f7805fea355799311b1dfbb | eda03521b87da8bdbef6339b5b252472a5be8d23 | /Userland/Libraries/LibDebug/Dwarf/DIE.h | 56d3819591884bca94ae695ee4447f5017bf1b5f | [
"BSD-2-Clause"
] | permissive | SerenityOS/serenity | 6ba3ffb242ed76c9f335bd2c3b9a928329cd7d98 | ef9b6c25fafcf4ef0b44a562ee07f6412aeb8561 | refs/heads/master | 2023-09-01T13:04:30.262106 | 2023-09-01T08:06:28 | 2023-09-01T10:45:38 | 160,083,795 | 27,256 | 3,929 | BSD-2-Clause | 2023-09-14T21:00:04 | 2018-12-02T19:28:41 | C++ | UTF-8 | C++ | false | false | 1,397 | h | DIE.h | /*
* Copyright (c) 2020-2021, Itamar S. <itamar8910@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include "AttributeValue.h"
#include "DwarfTypes.h"
#include <AK/Function.h>
#include <AK/NonnullOwnPtr.h>
#include <AK/Optional.h>
#include <AK/Types.h>
namespace Debug::Dwarf {
class Compil... |
ca5a22c6167a447a0b180fae52a2fc98a3caefbd | 9b07cacb9ae33a0dcaa54753e28e073e8aeb6751 | /Headers/GameObjects/Car.h | 0dbaf5bb0fcc523680f76c7a2812288735f80bad | [] | no_license | Nuytemans-Dieter/CarGame | 7bdebeef9d8c6ec978ed858b7785ab28edded4c1 | e14b54a01426c6817b3afa70118455fc386178ca | refs/heads/master | 2020-04-28T03:54:20.157983 | 2019-09-04T16:56:31 | 2019-09-04T16:56:31 | 174,956,599 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 387 | h | Car.h | //
// Created by Dieter on 4/03/2019.
//
#ifndef UNTITLED_CAR_H
#define UNTITLED_CAR_H
#include "GameObject.h"
class Car : public GameObject{
public:
enum Color {
BLACK,
BLUE,
GREY,
WHITE,
GREEN,
RED
};
Car();
// Visualize the Car on screen.
virt... |
cb9a2a5d901f9b0f3335fee31b91a5ba646157c2 | 0e79b11e100c78e1d0b7159cb6ae369a2942d6d0 | /dcmap/dcmapsys/CorruptionFilter.cpp | 0ce348849e7d9eb4083fba0e6ec75fefeca60c79 | [] | no_license | JlblC/dcmap | e3be11c4c9da9ac4f0be693fee3b4fb2cf8af6ec | e2cbfa43dfe04125d19b4bae34e9a552db307198 | refs/heads/master | 2021-07-04T01:47:45.249683 | 2014-06-08T17:46:32 | 2014-06-08T17:46:32 | 20,622,342 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,481 | cpp | CorruptionFilter.cpp | // dcmapsys.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
#include "../dcmapsyslib.h"
#include "dcmapcore.h"
#include <g_text.h>
#include <g_std_file.h>
#include <g_file_istream.h>
using namespace std;
using namespace gsys;
#define MSG_RACE_CHANGED DCMM_USER+0
struct CCorruptionFil... |
c9fa3548d7678bdb6201fd3491367eadc9167e91 | ae5c6c9a6e19e79469916bd96967292ebabafeb8 | /Array Based Program/smallest_element_in_array.cpp | 7484c1b937acb337c5dcb89fd54c24a1ef978efb | [] | no_license | Abhishek971999/Cpp-basic-programs | 811bb555cfc83ad954d4075859d1be6b1dee8e12 | 2692e3f8e9bb893707557dcb3adb36b6dc203338 | refs/heads/master | 2020-09-28T22:02:36.029141 | 2019-12-29T17:39:52 | 2019-12-29T17:39:52 | 226,875,129 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 412 | cpp | smallest_element_in_array.cpp | #include<iostream>
using namespace std;
int main(){
int smallest,i,a[20],n;
cout<<"Enter the number of elements in array :";
cin>>n;
cout<<"Enter the elements : "<<endl;
for(i=0;i<n;i++)
cin>>a[i];
smallest = a[0];
for(i=0;i<n;i++){
if(a[i]<smallest)
smallest = a... |
3f6f3c1bdbe7325ba0f2ba5460d0ff9a06290d56 | 9987fded6026ace187753eaa3e520d0bb72047a0 | /isis/src/base/apps/ckwriter/CkSpiceSegment.cpp | 192671dff1edb1c7d05e98f425994b7c9206174d | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | kberryUSGS/ISIS3 | 1345e6727746e2ebc348058ff3ec47c252928604 | b6aba8c38db54d84b1eb5807a08d12190bf8634e | refs/heads/dev | 2021-07-17T16:53:37.490510 | 2021-03-13T00:09:53 | 2021-03-13T00:09:53 | 118,936,778 | 0 | 1 | Unlicense | 2020-03-31T19:44:30 | 2018-01-25T16:17:20 | C++ | UTF-8 | C++ | false | false | 27,915 | cpp | CkSpiceSegment.cpp | /**
* @file
* $Revision$
* $Date$
* $Id$
*
* Unless noted otherwise, the portions of Isis written by the USGS are
* public domain. See individual third-party library and package descriptions
* for intellectual property information, user agreements, and related
* information.
*
* Although Isis has b... |
1c9b1e2c503ea818ac97c0c2b2377e90bac2b59a | 55c21739c917970883cee618f394b0472527dcbf | /trafff/Simulator.h | 2bf3a718d66107782fcebc6d0b88af578c4be7b2 | [] | no_license | alkuczino/Trafik-final | 3bb9e455c9be2d25bc055bbc7ee6deaaae9b94e0 | d979b484783817133b24ff3ee749767552ab89a3 | refs/heads/master | 2020-03-22T05:23:10.797601 | 2018-07-03T09:48:56 | 2018-07-03T09:48:56 | 139,561,931 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,484 | h | Simulator.h | #pragma once
#include <QGraphicsScene>
#include "Map.h"
#include <QGraphicsView>
#include <memory>
#include <QGraphicsSceneMouseEvent>
#include "Car.h"
#include "Road.h"
#include "Pavement.h"
#include "Junction.h"
#include "Config.h"
#include "Grass.h"
#include "RoadVertical.h"
#include <iterator>
#include <algorithm>
... |
3bfdfe3a929ef701753694df7fae2d96e1334ab5 | a765257af767d1c32ee098e98efc5e08d56cd4c0 | /Algorithm/Algorithm/Algorithm/프로그래머스_더 맵게.cpp | e8cc2236953aadf1ebc943131bcc5e3ea4d8857b | [] | no_license | rawoctopus/sssuk | 7adc54f137e172e36134ffb8dc167aec1568505a | 9f03858d97e7214788ed383b06ee4463db8dbfe3 | refs/heads/master | 2020-06-10T09:46:44.343967 | 2019-10-20T08:13:21 | 2019-10-20T08:13:21 | 193,630,782 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,412 | cpp | 프로그래머스_더 맵게.cpp | #include <iostream>
#include <string>
#include <vector>
#include <queue>
using namespace std;
int solution(vector<int> scoville, int K) {
int answer = 0;
//minheap = 우선순위가 낮은게 가장 위에
priority_queue<int, vector<int>, greater<int>> pq;
int min = 0;
int min1, min2;
for(int i = 0; i < scoville.size... |
8000b6c705e2ba4de8760ae3b30f0a29cdbfbad2 | 333b58a211c39f7142959040c2d60b69e6b20b47 | /Odyssey/SSAPI_Server/ManagedObjects/DataPath.h | 1fb32fc46ecbb27282f08c2dc48849494249490e | [] | no_license | JoeAltmaier/Odyssey | d6ef505ade8be3adafa3740f81ed8d03fba3dc1a | 121ea748881526b7787f9106133589c7bd4a9b6d | refs/heads/master | 2020-04-11T08:05:34.474250 | 2015-09-09T20:03:29 | 2015-09-09T20:03:29 | 42,187,845 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,422 | h | DataPath.h | //************************************************************************
// FILE: DataPath.h
//
// PURPOSE: Defines class that will be used as the base class for
// all DataPath objects thus is a virtual base class for all the
// data path management related stuff.
//***********************************... |
9dab58b842ffd751e12339c03e52eeb50b5271f5 | 8d02762f7a9f3c45e88c8c84cb1f852e7302c860 | /mainfile-single.cpp | 89a185451b11b6c78d9e101d7f6c58fce4a8cd83 | [
"MIT"
] | permissive | OllieSteves/Masters-Cricket | 5f9488a9c6d9807b39b60a1fa761e0c6536a8137 | 911b44ab95514866e8316dc3ef67f19d2ea9291d | refs/heads/master | 2021-01-20T09:09:16.834801 | 2018-01-29T23:12:27 | 2018-01-29T23:12:27 | 90,228,088 | 1 | 1 | null | 2017-05-24T00:06:47 | 2017-05-04T06:14:33 | Julia | UTF-8 | C++ | false | false | 1,032 | cpp | mainfile-single.cpp | // Exponential Varying Hazard Model - definition of model
// Include relevant files
#include "RNG.h"
#include "sampler.h"
#include "model.h"
#include "getfile.h"
// Packages
#include <iostream>
#include <fstream>
#include <sstream> // For stringstream
#include <vector>
#include <ctime>
#include <string>... |
1d36ad4072bc044058c99a4639b5d3069a16472e | 5ac105bb127df2ff177e429de5ab437d17ce9807 | /cpp/extended_c/reference04.cpp | 0b980bd58102976f2a34f9c809008d48b744db0b | [] | no_license | YujieShui/practice | e2096f0c74b47498762038c88648c48a897acacd | 088e0060004c7103955264844357e4721de90461 | refs/heads/master | 2020-04-26T13:19:59.961601 | 2019-09-16T07:03:06 | 2019-09-16T07:03:06 | 173,576,312 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 711 | cpp | reference04.cpp | /**
* C++学习笔记: 引用作为函数返回值
**/
#include <iostream>
using namespace std;
int getA1()
{
static int a = 10;
return a;
}
int &getA2()
{
static int a = 10;
return a;
}
int main(void)
{
int a1 = 0;
int a2 = 0;
// 值拷贝
a1 = getA1();
cout << "a1 = " << a1 << endl;
// 将一一个引用用赋给一一个... |
b48713c256044b76e5ea572445bc9d0559dc0e83 | 437bb3b003cf5f51d6969d6c04d2e699536e4edf | /offer/29.cpp | 0656fba497ffebab91aa0594299dc362fdfa7f30 | [] | no_license | caobosco/Coder | a8b2ab47273fff17f77ca5d0c91f6958e499d18a | 339fe38f3d039dac977ff3af385087149ecb340b | refs/heads/master | 2020-04-06T06:47:56.115509 | 2014-10-06T01:34:01 | 2014-10-06T01:34:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 595 | cpp | 29.cpp | #include <cstdio>
int arr[100001];
int main(){
int n;
while(scanf("%d", &n) != EOF) {
int cnt = 0, ret, tmp;
for(int i = 0; i < n; i ++){
scanf("%d", &tmp);
arr[i] = tmp;
if(cnt == 0){
ret = tmp;
cnt++;
} else if (... |
e984c8097fd7c59bbaa34de87952e771ecac4306 | 666c27fb014afcbf102a17e9408c3c951f6cc738 | /Practice/DoublyLinkedList/main.cpp | ee7ba89f8be8058d1cb316e96aa5146fc329d804 | [] | no_license | ianrasmussen05/CPSC350 | f89da2d5afb168324f331769676c3d162aa246f2 | e26cfaca54c0e9d801b2091a3fdf51f5a5fa86da | refs/heads/master | 2021-01-03T00:50:01.392795 | 2020-05-12T16:31:47 | 2020-05-12T16:31:47 | 239,843,026 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 381 | cpp | main.cpp | #include "DoublyLinkedList.h"
int main (int argc, char **argv)
{
DoublyLinkedList *newList = new DoublyLinkedList();
newList->insertFront(5);
for (int i = 0; i < 10; ++i)
{
newList->insertBack(i);
}
newList->printList();
newList->remove(6);
cout << "New List: " << endl;
n... |
d892b2a21d45ddcf31ba1904f349457172abf051 | e37188b45d3594eb21aed2117144ed3934493ed3 | /matlab-gui/widgets/colorpicker.cc | 3097cf96baa0d77d499779442ab184e6c3285b38 | [
"Apache-2.0"
] | permissive | linwe2012/matlab | f5c042c9e35cb68929f054633649c6187234383a | 6c9f25c71da039648228dc77e074eaf1f34dc3e6 | refs/heads/master | 2020-06-16T14:08:53.890599 | 2020-04-08T15:16:37 | 2020-04-08T15:16:37 | 195,603,213 | 1 | 7 | Apache-2.0 | 2019-07-18T01:40:25 | 2019-07-07T02:52:50 | C++ | UTF-8 | C++ | false | false | 3,025 | cc | colorpicker.cc | #include "colorpicker.h"
#include "widget-helper.h"
#include "registry.h"
ColorPicker::ColorPicker(const FunctionCallbackInfo<Value>& args)
: QWidget(GetTargetWidget())
{
INIT_OBJECT(args);
GET(Local<Function>, on_color_changed);
color_.setRgb(255, 255, 255, 255);
QHBoxLayout* layout = new QHBoxLayout(this... |
aa671946c594e513fafb4958dcd6b99ac67c26a6 | 2da1d8863cb5df9f6ef6b79fb1aaff06cc6db3d8 | /includes/scene/battle/BattleSceneDialogueEventName.h | 96110e02d2ec1e59de269af43db9fec9745ce8dc | [] | no_license | wcc17/untitled-game | bd1aec29af48c1ba4b743be531b7e25d9f6624a7 | 453842398acbc1433956c0bd021eeea704394ebf | refs/heads/master | 2020-05-30T17:20:51.613070 | 2020-05-19T20:28:49 | 2020-05-19T20:28:49 | 189,787,621 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | h | BattleSceneDialogueEventName.h | #ifndef NEWNEW_BATTLESCENEDIALOGUEEVENTNAME_H
#define NEWNEW_BATTLESCENEDIALOGUEEVENTNAME_H
#include <string>
class BattleSceneDialogueEventName {
public:
static const std::string ENEMY_APPEARED;
static const std::string PARTY_RAN_AWAY;
static const std::string PARTY_COULD_NOT_RUN;
};
con... |
b24190c0e428d027688bc56c951e136d3c63261a | 9ff69f2638fe679b9fbb3ac682d356b59c50b068 | /code archive/CF/1073E.cpp | f479a9f9ff42fcfa09811c9928d81ec3b9244bd9 | [
"MIT"
] | permissive | brianbbsu/program | 7f7c3d4aacea32ada7f74cf5caffa9931be280c4 | c4505f2b8c0b91010e157db914a63c49638516bc | refs/heads/master | 2021-05-23T04:53:49.618057 | 2020-04-18T15:21:10 | 2020-04-18T15:21:10 | 81,056,684 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,957 | cpp | 1073E.cpp | //{
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double lf;
typedef pair<ll,ll> ii;
#define REP(i,n) for(ll i=0;i<n;i++)
#define REP1(i,n) for(ll i=1;i<=n;i++)
#define FILL(i,n) memset(i,n,sizeof i)
#define X first
#define Y second
#define SZ(_a) (int)_a.size()
#define ALL(_a) _a.begin(),_... |
1f4ba98efa34bc5d7fecfed1a992733cd700f5b0 | 5c0fcc93339330cab8408a58d26504a3154e808c | /Risk3D_Servidor/ambiente_desde_archivo.cpp | a29e8d5585a2b3d66996617043f83a469d8dabf8 | [] | no_license | eritiro/risk3d | 5d3d3b1d7510d809c34c1d69d20303c66fd31630 | d8389acc79eb4f561123a09b8de1e13d7498b2c1 | refs/heads/master | 2021-01-10T20:54:41.709954 | 2015-03-06T17:37:27 | 2015-03-06T17:37:27 | 31,772,713 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 354 | cpp | ambiente_desde_archivo.cpp | #include "ambiente_desde_archivo.h"
AmbienteDesdeArchivo::AmbienteDesdeArchivo(string nombre_archivo) : archivo(nombre_archivo.c_str()) {
if(!archivo) throw ExcepcionRisk3D("No se puede abrir el archivo de dados");
}
int AmbienteDesdeArchivo::generar_valor_aleatorio(int minimo, int maximo){
int valor;
arch... |
ec587ee6fe319c4227633a958ded086aee9eea55 | c55d33ff376cd6ff07333d6ee0be053f62de9a76 | /src/ctxdsin.h | 1611bcc57c6879c1073e463bc4c8c1220d60e789 | [
"MIT",
"BSD-3-Clause"
] | permissive | DigitalNoteXDN/DigitalNote-2 | 1d306c47ee962f6266be5caa6b03e4f96c3f179c | fb73be8032491364892fb90b1c696105034f74e9 | refs/heads/master | 2023-04-13T18:02:19.719011 | 2023-04-07T20:52:26 | 2023-04-07T20:52:26 | 168,789,998 | 11 | 27 | MIT | 2023-04-07T20:52:27 | 2019-02-02T03:26:35 | C++ | UTF-8 | C++ | false | false | 292 | h | ctxdsin.h | #ifndef CTXDSIN_H
#define CTXDSIN_H
#include "ctxin.h"
/** Holds an MNengine input
*/
class CTxDSIn : public CTxIn
{
public:
bool fHasSig; // flag to indicate if signed
int nSentTimes; //times we've sent this anonymously
CTxDSIn(const CTxIn& in);
};
#endif // CTXDSIN_H
|
e07ad3bf02a7cde64331a4a2ef61cc15f301ebd5 | 1936d0f9d8ba33b9ea8b0888e6d5c4b03bf0cef6 | /Lengine/Src/Systems/CollisionSystem.cpp | 022554efc97daffd52b0980922cade93fe70fb8d | [] | no_license | LioQing/Lengine | d50b6d5476cbb03ad248285150f1da231686fa95 | af5e844c924cbda8479c9fa4ea906eb1a41bfb9d | refs/heads/master | 2022-11-27T17:47:23.911470 | 2020-08-04T14:28:35 | 2020-08-04T14:28:35 | 259,930,158 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,271 | cpp | CollisionSystem.cpp | #include "CollisionSystem.h"
#include <vector>
#include "../Game.h"
extern std::atomic<Game*> game;
void CollisionSystem::EarlyUpdate(lecs::EntityManager* entity_manager, lecs::EventManager* event_manager, DeltaTime dt)
{
for (auto& e : entity_manager->EntityFilter<ColliderComponent>().entities)
{
ColliderCompo... |
18ef5adfd7df0b97397ea220c5ec413d47858a8f | 3d8f92f44ced7985f12a67c9e94de95a6f5d2579 | /samplers/refactored/atempts/atemptspath.hpp | 7bb32ed79503ab7cf828f3bd5b54e9af859dcaea | [] | no_license | casiarobot/motionPlanning | e7633defac7c09de9316a9c9b3e1ba013103610a | b56818d6602e8e72d73403eae2fb54ff4967796e | refs/heads/master | 2023-03-16T10:13:05.918692 | 2018-03-21T23:41:23 | 2018-03-21T23:41:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,063 | hpp | atemptspath.hpp | /**
* \file atemptspath.hpp
*
* path object
*
* \author Tianyi Gu
* \date 10 / 30 / 2017
*/
#pragma once
using namespace std;
namespace ompl {
namespace base {
namespace refactored {
namespace atempts {
class AtemptsPath {
public:
AtemptsPath(unsigned int id, shared_ptr<AtemptsPath> parent... |
7f4e2b163ef88c858841f4c840cc229abb85d406 | 8f4a4b3cbc06b54916999b2db44b852162adcd92 | /Problems/SortProblems/15.cpp | 3f4f75c64705552030539f871837255be9075f35 | [] | no_license | tnsts/DiscreteStructures | f4d80824d3cfd1b03bf3686876e4dd4d37a2fc91 | de1874b3aeafe8c0e059bd574546c344150787c9 | refs/heads/master | 2020-03-11T15:09:48.586188 | 2018-05-31T16:07:36 | 2018-05-31T16:07:36 | 130,076,114 | 0 | 0 | null | 2018-05-31T16:07:37 | 2018-04-18T14:36:14 | null | UTF-8 | C++ | false | false | 203 | cpp | 15.cpp | #include <iostream>
#include "13.cpp"
using namespace std;
void s_transform(int *arr, int n){
shell_decrease(arr, n);
}
void q_transform(int *arr, int n){
quick_decrease(arr, 0, n-1);
}
|
29300bf5e6fb52b17e25683542f2151019111445 | 26b3d70f9db3dc38134ec38c06fda7e84030df76 | /model/point.cc | cff991f7fbfee4271a3c316a7b4c1fceb8dde0d7 | [] | no_license | zyclincoln/SpringNet | e641eeeef387c51d9895fc3607c8e8888489dc56 | cc2a037457731709bea569ff7bbe50cad1790728 | refs/heads/master | 2021-01-20T19:05:06.961433 | 2016-08-01T08:08:26 | 2016-08-01T08:08:26 | 62,781,969 | 0 | 1 | null | 2016-07-07T08:24:26 | 2016-07-07T06:47:32 | CMake | UTF-8 | C++ | false | false | 211 | cc | point.cc | #include "point.h"
using namespace zyclincoln;
using namespace Eigen;
Point::Point(const Vector3d &position, const Vector3d &speed, const double mass):
position_(position),
speed_(speed),
mass_(mass){
} |
4e4310f3eb938c3da476a3590f7159ad08639d91 | 5c4d4d4d8f800df570471d900a58e6c13510ae5a | /geParticleStd/src/geParticleStd/FloorAffector.h | fd37c15ba5b294ff0cc06dd3d13f1d766f88ccd8 | [] | no_license | TheSableCZ/geParticle | c11a4483ed69b6f0fd55d883095a9d3549c50aaf | 7023d3c0d1bd2ac9547ff09a2a560af152ea1b89 | refs/heads/master | 2022-11-22T14:20:28.196004 | 2020-07-30T23:55:36 | 2020-07-30T23:55:36 | 258,588,881 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 611 | h | FloorAffector.h | /** @file FloorAffector.h
* @brief Affector simulating simple floor.
* @author Jan Sobol xsobol04
*/
#pragma once
#include <geParticle/ParticleAffector.h>
#include <geParticleStd/Export.h>
namespace ge
{
namespace particle
{
/**
* @brief Affector simulating simple floor.
*/
class GEPARTICLESTD_EXPOR... |
cd423ad2709826cddf169c0d7264ad947e174adc | 745e9401e209335ecc12550355f7cbf019b2d6e0 | /FlappyBIrd/Director.h | ad6dc26ecd4ca14a0984e975b009e929fc2a67c1 | [] | no_license | Rlaxogus123/DX9_Flappybird | 55e6ddf90b7c1e82e89f0c2855a03fbfb31c02f0 | 72ae6faabeecbfaf18f980cb1744354973725b4a | refs/heads/main | 2023-06-11T08:44:16.377917 | 2021-07-06T04:34:22 | 2021-07-06T04:34:22 | 345,853,031 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 394 | h | Director.h | #pragma once
#include "Scene.h"
#include "Camera.h"
class Director : public Singleton<Director>
{
private:
LPD3DXSPRITE sprite;
public:
Scene* curScene;
LPD3DXSPRITE GetSprite() {
return sprite;
}
void DirectorInit();
void DirectorUpdate();
void ChangeScene(Scene* newScene);
int nClick;
bool OnMouseDown... |
e50bdfb57095f3d10f4bb8dac30f9aae6d931399 | 950f65e6cf49234e0c3925616ca205f106c858f8 | /tp4/mandelbrot.h | 8c5beb08b51877b5b219d9b876888adf51686fe1 | [] | no_license | miguelgarcia/tps-fractales-fcen | e6cb6d7b4f4799e3b237985f5902cd269e0ebd01 | 3ffb1c88152363dd32405f76466ccbb70e5a52fc | refs/heads/master | 2021-01-13T02:06:29.459000 | 2012-07-23T03:39:55 | 2012-07-23T03:39:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 402 | h | mandelbrot.h | /*
* File: mandelbrot.h
* Author: mike
*
* Created on 15 de julio de 2012, 19:40
*/
#ifndef MANDELBROT_H
#define MANDELBROT_H
#include <gtkmm.h>
#include <string>
#include "types.h"
void mandelbrot_direct_iteration(
guint32 *output,
guint32 width,
guint32 height,
std::string function,
complex_d p0,... |
a3787330bd6808dc124f278c8090af0626cc19a2 | 6250f3343eff1638912510b66ed936c59796635a | /src_vc141/thirdparty/stlsoft/STLSoft/include/winstl/synch/process_mutex.hpp | 8d6241e8bd3c959641071caeb3f6e8e4b8ac6a44 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | nneesshh/mytoolkit | b4b242307a6603bc5785bc130de8f4d3b5ea9265 | 336ae9c7077c8687a8cf8a2ce4aec804c28ab90c | refs/heads/master | 2020-04-05T15:18:07.985547 | 2018-12-17T11:36:07 | 2018-12-17T11:36:07 | 156,961,652 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 17,874 | hpp | process_mutex.hpp | /* /////////////////////////////////////////////////////////////////////////
* File: winstl/synch/process_mutex.hpp
*
* Purpose: Inter-process mutex, based on Windows MUTEX.
*
* Created: 15th May 2002
* Updated: 19th February 2017
*
* Home: http://stlsoft.org/
*
* Copyright (c) 2002-... |
65dcc8ebea02c930d37529ea08e0ea3170e41d25 | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch.test.test/processor0/2.23/rho | 00c397e3cd31db4f1ffb792ef09b2fd87a2b4d5b | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 42,892 | rho | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
f2dae7649495e5015a5a9b4082732ab42eb566e2 | 0ff7fc50fb88b843e45e3a67e0d6fd239ea64b82 | /qubus/include/qubus/jit/jit_engine.hpp | 69acf4b435789df3d4cca53afc7d1fa8fea883ba | [
"BSL-1.0"
] | permissive | qubusproject/Qubus | 0d86385bf8aafbb1df65525a2e484c4b9062f78e | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | refs/heads/master | 2021-07-09T06:19:09.382941 | 2020-02-02T21:28:20 | 2020-02-02T21:28:20 | 237,774,567 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,939 | hpp | jit_engine.hpp | #ifndef QUBUS_JIT_JIT_ENGINE_HPP
#define QUBUS_JIT_JIT_ENGINE_HPP
// Workaround for LLVM's definition of DEBUG
#pragma push_macro("DEBUG")
#undef DEBUG
#include <llvm/ExecutionEngine/Orc/IRCompileLayer.h>
#include <llvm/ExecutionEngine/Orc/CompileUtils.h>
#include <llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h... |
6611c1a53711f5cfc86d103351484a727530b4cc | 7949db20aad375304227ee7af25aed92e00cb7d7 | /resultado final/Trabajo Final/Jump Mario 3.0/include/Game_over.h | 3c6ce7a4a10156d6813f473bca49a7ab9d2e8966 | [] | no_license | jorgealfaro1345/Trabajo-final | a598f7ca8cf13a7fe9fe20c1e8f13e5faf52d9cb | befcadf3f88cf0929099458573992f584d310952 | refs/heads/master | 2021-08-22T07:25:29.602725 | 2017-11-29T16:10:06 | 2017-11-29T16:10:06 | 108,771,149 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 730 | h | Game_over.h | #ifndef GAME_OVER_H
#define GAME_OVER_H
//LIBRERIAS DE SFML
#include<SFML/System.hpp>
#include <SFML/Graphics.hpp>
#include<SFML/Audio.hpp>
//CLASES CREADAS
#include "Texto.h"
#include "Personaje.h"
#include "Puntaje.h"
using namespace sf;
class Game_over
{
public:
Game_over(Puntaje* x);
Text de... |
917d5e3efb99815da023a4bbfabb4a9d0333b3f2 | a17cb5c894453586e21cbf0f5ee46c5b404223df | /modules/aho/inl/en/lexrep/StateMap.inl | 79b4c18740a892c94a96237a3d8521c58cd8672d | [
"MIT"
] | permissive | JosDenysGitHub/iknow | f925f550c6a360e56d2dc19d5b11d41a79614b43 | e6a142253513ad4365d7998e36c569d4174e8248 | refs/heads/master | 2022-02-11T23:03:59.902579 | 2022-02-01T14:03:43 | 2022-02-01T14:03:43 | 240,720,105 | 0 | 0 | MIT | 2020-10-29T00:42:51 | 2020-02-15T13:47:37 | C++ | UTF-8 | C++ | false | false | 878,968 | inl | StateMap.inl | 45712,
303874,304039,49229,45648,45650,45642,310564,45644,45652,45704,45639,7455,21926,36397,45646,45656,45658,45660,45708,45718,43894,574,180948,44578,131,57,214869,509,222797,43633,230993,231796,552,151,2,49191,265646,266632,94,20,293732,298169,233843,303077,233834,303435,303907,303897,45672,1160,45681,45694,45696,45... |
d163cbb3d21fc47bba0c97ae7bcd6434d3cc0a44 | 19a1b0f714ff52a16e8d7f77ce69723c842a3b89 | /SPFD5408/6_HexelGrid/Ej5_subhexelSector/Ej5_subhexelSector.ino | e9b2e34958d1e42a529ba10966183ac93068379f | [] | no_license | blascarr/TFTCourse | d499c19bca9d59def6aa5c16b1940b087666ed26 | 15e5f663277b38a40e1cfe634df527f5523910b5 | refs/heads/master | 2021-01-11T14:46:40.545389 | 2020-11-17T11:25:22 | 2020-11-17T11:25:22 | 80,215,109 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,059 | ino | Ej5_subhexelSector.ino | #include <SPFD5408_Adafruit_GFX.h> // Core graphics library
#include <SPFD5408_Adafruit_TFTLCD.h> // Hardware-specific library
//Arduino UNO Pin Definition
#define LCD_CS A3 // Chip Select goes to Analog 3
#define LCD_CD A2 // Command/Data goes to Analog 2
#define LCD_WR A1 // LCD Write goes to Analog 1
#define LC... |
13456dc1c408ebec7c84556a9cc414a7ddd52683 | d43ab13f1136584fdbdead68caeaea998868473d | /gp.cpp | f2346d4f33dc726fd4c8d2c6325c962d2a9f9a90 | [] | no_license | PrithMDP/cplusplus | 3b46fa65095a201918549a1539440308fe56628b | 8841f828c268ffdcafefdd09d39321687b6af55b | refs/heads/master | 2021-01-10T16:08:39.890227 | 2016-03-02T02:02:13 | 2016-03-02T02:02:13 | 43,187,013 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,560 | cpp | gp.cpp | // Example program
#include <iostream>
#include <string>
using namespace std;
bool checker(string s1,string s2)
{
// enforce lengths to be equal
// POTS OPTS
bool diff = 0;
for(int i =0;i<s1.length();i++)
{
if(s1[i]!=s2[i]) //different
{
if(diff)
{
return false;
... |
d0a5f14905a4c7b55c2c0dc10330ddaada150c8e | 0178b414d03abb6503346ebc3aaf14163e0a8a35 | /1217.cpp | 9831ef45c31af820ac133a96a836dbf7b64f415a | [] | no_license | PriyankJain10/Leetcode | dc190fb752e69f4dc007056ed1aa50b5e5c2a2b8 | 64aed6c0953ec1c6924a55b5db3a7fde87d5d2bd | refs/heads/master | 2023-07-09T19:33:19.538578 | 2021-08-17T16:20:09 | 2021-08-17T16:20:09 | 288,658,877 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 807 | cpp | 1217.cpp | // time - O(n^2)
// space - O(n)
#include<bits/stdc++.h>
using namespace std;
int minCostToMoveChips(vector<int>& position) {
int n = position.size(), ans = INT_MAX;
sort(position.begin(), position.end());
unordered_map<int, bool> m;
for(int i=0;i<n;i++)
{
... |
0a43682d964cd75ed1d8a4c64ddaee34230ba255 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /ui/events/win/event_utils_win_unittest.cc | ecffe5687483bc2c658dca99dd0822ae0603317d | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 2,116 | cc | event_utils_win_unittest.cc | // Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/events/event_utils.h"
#include <windows.h>
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/win/window_impl.h"
namespace ui {
namespace {
class... |
8e86408ea745e75447ad0c65dbbf43ebc9d2ec88 | ac82758a30d9b440473209e35e40e3ccf364444f | /Übungsaufgaben/A05/Code/4_Dutch.cpp | 42f9a8bd58a003982a3fee792f9971790ae5fb9d | [] | no_license | PaulOxxx1/DSAL-Arbeitsverzeichnis | e2eacb68ec07e6a10f240b67aa595244eff52b77 | 72442f472f0505571e8fa1c65de27ed95bdf6f8c | refs/heads/master | 2021-11-11T05:40:45.426744 | 2021-10-28T12:33:07 | 2021-10-28T12:33:07 | 129,533,636 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 285 | cpp | 4_Dutch.cpp | void DutchNationalFlag(Color E[], int n) {
int r=0, b=n+1;
int u=1;
while (u<b) {
if (E[u] == rot) {
sawp(E[r+1], E[u]);
r++;
u++;
}
if (E[u] == weiss) {
u++;
}
if (E[u] == blau) {
swap(E[b-1], E[u]);
b--;
}
}
} |
a5c29047193b5954633eed325640c77cc2f4b2ef | 127fc1f495ba9d3d545e5312dd4809901e0dffe6 | /src/GamePadInputDevice.h | 2183dfccfb689dd40fda687fa86a44537303ac9e | [] | no_license | krkrz/gamepad | 5181e5db70355fc845b4224995d1196f903804d4 | 567f7a3eccef00de1ad3bf5f22e7d7d528e5de42 | refs/heads/master | 2021-01-24T18:46:41.316196 | 2018-03-04T09:22:19 | 2018-03-04T09:22:19 | 123,237,777 | 1 | 2 | null | 2018-03-03T09:36:02 | 2018-02-28T06:05:59 | C++ | SHIFT_JIS | C++ | false | false | 5,364 | h | GamePadInputDevice.h | /****************************************************************************/
/*! @file
@brief
-----------------------------------------------------------------------------
Copyright (C) 2008 Takenori Imoto (井元 武則). All rights reserved.
( http://www.kaede-software.com/ )
-------------------------------------------... |
8ab05030c5dd3fe9e00054b604615f0ce95e880f | b9126df0d761987516a7146dc54887c828b893e4 | /tests/core/container_helpers.test.cpp | 8c61aefaacdb98de9656f845fbbf71421a70ad16 | [] | no_license | volsungdenichor/cpp_essentials | 63c979057dcb6d5cd69013ee015060b3b1a48867 | 28287ddb10362efbac5cdced6fdf66caf92b8e0d | refs/heads/master | 2022-06-23T00:40:19.294054 | 2022-06-08T16:39:18 | 2022-06-08T16:39:18 | 146,165,601 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,052 | cpp | container_helpers.test.cpp | #include <catch.hpp>
#include <cpp_essentials/core/container_helpers.hpp>
#include <../tests/test_helpers.hpp>
#include <vector>
using namespace cpp_essentials;
TEST_CASE("insert")
{
std::vector<int> vect = { 2, 4, 5 };
std::vector<int> o = { 9, 8 };
core::insert(vect, vect.end(), o);
REQUIRE(vec... |
70114102c80ada5eda6811d5c9fac2300b3350c0 | 1ebaf69b1d2975a6cc50815176c774dcc895d1f8 | /src/cpp/src/CPPFORT/lcclu.cc | 8eba7608039d3999109739f062bbb6fccbff66d8 | [
"BSD-3-Clause"
] | permissive | peremato/LCIO | 32236209e6b1509bf8bb6a47f97d27807b8463a0 | cc9d0736ecf6d568599fff60f8bfa7324858a01b | refs/heads/master | 2021-05-25T08:34:05.905665 | 2020-04-07T09:51:50 | 2020-04-07T09:51:50 | 253,742,262 | 0 | 0 | BSD-3-Clause | 2020-04-07T09:08:01 | 2020-04-07T09:08:00 | null | UTF-8 | C++ | false | false | 7,831 | cc | lcclu.cc | #include "CPPFORT/lcclu.h"
#include "lcio.h"
#include "IMPL/ClusterImpl.h"
using namespace lcio ;
#include <iostream>
// create delete Cluster
PTRTYPE lcclucreate(){
ClusterImpl* clu = new ClusterImpl ;
return C2F_POINTER( LCObject*, clu ) ;
}
int lccludelete( PTRTYPE cluster ){
ClusterImpl* clu = f2c_point... |
4670bbc2ffcac5e32c8c10223b2dabb8377f7e3c | ab9a3d40e0f0c63fabee722b7bde434c8e14c850 | /Survival/Death_P.h | b378c56866ff4d151a7e5c4e77977b6713002059 | [] | no_license | NEEC-KAMATA-D3Software/2017Summer_Gr11_Survival | 69ed61f9c9d1c869a80d034e51c48c45dcd22948 | b343327ed4424179b0f2b2bac8aad5686cb9f915 | refs/heads/master | 2021-01-01T19:32:58.257195 | 2017-07-30T13:14:23 | 2017-07-30T13:14:23 | 98,611,603 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 704 | h | Death_P.h | #pragma once
#ifndef _DEATH_P_H_
#define _DEATH_P_H_
#include <memory>
#include "StateBase.h"
class Player;
class GameObject;
class ObjectManager;
using ObjManagerP = std::shared_ptr<ObjectManager>;
class Death_P : public StateBase<Player> {
public:
Death_P(ObjManagerP _ObjManagerPtr);
~Death_P();
virtual void ... |
cad948741db1742e45fd6a2b3d7c6fcf208e2685 | 56a3df7f18d06005b6185152bd7941add18edfa9 | /bcos-codec/bcos-codec/scale/ScaleDecoderStream.cpp | 28bcb130c461eb0dc81103726d3e2a578b8f2bfd | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | FISCO-BCOS/FISCO-BCOS | bac8b40f12315e043f006fac8152af93662f3444 | 3014f5be43fe93ddb455d277d30837ab5ba8c14f | refs/heads/master | 2023-08-31T20:28:49.049631 | 2023-08-14T09:01:07 | 2023-08-14T09:01:07 | 113,932,055 | 2,413 | 829 | Apache-2.0 | 2023-09-14T12:01:28 | 2017-12-12T02:17:31 | Shell | UTF-8 | C++ | false | false | 4,830 | cpp | ScaleDecoderStream.cpp | /*
* Copyright (C) 2021 FISCO BCOS.
* SPDX-License-Identifier: Apache-2.0
* 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
*
* Unl... |
95849ac6bde44e92ec48cb49a32d702e90ba542d | e0bc921637bbdf06002677d4be511b262bcfde00 | /Out.cpp | ee386792bdb3f5f5ae0aebf3e259936944d4191e | [] | no_license | l-Korrra-l/MKA | 039893af20b212016ddde81d04305b57b570ae34 | 5371c17c1e4081e3ff84aa8aaac045b303391558 | refs/heads/main | 2023-03-21T01:16:41.289517 | 2021-03-15T13:21:58 | 2021-03-15T13:21:58 | 347,951,259 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 548 | cpp | Out.cpp | #include "Out.h"
#include "Error.h"
#include "Parm.h"
#include <iostream>
namespace Out
{
OUT getout(wchar_t outfile[]) {
OUT newOut{};
newOut.stream = new std::ofstream;
newOut.stream->open(outfile);
if (!newOut.stream->is_open())
throw ERROR_THROW(112);
wcscpy_s(newOut.outfile, outfile);
... |
77385aba2007bb904e84a707b4d52df55982dc34 | 39254f8742b6610cf73721f7abbac2a4f38c3e92 | /140 Word Break II_2.cpp | 825b6e8180ab8d25e0e2140da41b92544ff87d8e | [] | no_license | heiyanbin/leetcode | 765dadbacb8d984a9acf2fdd902e0392217d17d9 | f7d8c61d94499ea08572fbef3f5f3cad88837aa3 | refs/heads/master | 2020-09-21T20:02:09.314158 | 2016-08-19T05:52:56 | 2016-08-19T05:52:56 | 66,046,191 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 960 | cpp | 140 Word Break II_2.cpp | // 140
// Word Break II
// https://leetcode.com//problems/word-break-ii/
class Solution {
public:
vector<string> wordBreak(string s, unordered_set<string> &dict) {
vector<bool> d(s.size()+1);
vector<vector<int>> prev(s.size()+1);
d[0]=true;
for(int i=1;i<=s.size();++i)
... |
f91646e5554d190d9a18b1dcff6978cbe2b5b4d7 | b28d3c9c7d62bf03e9291e15b9576e3e41365791 | /THEngine/mfc/thMFCComboBox.h | 6e1a17696e89ad8231772cf20f186107cc428452 | [] | no_license | 15831944/MFCAppLuaBase | ff5443aa24f92f2285936a437e3a6cddd143fab9 | f81be6e3674503cb07e826a17942e47d54c7da9d | refs/heads/main | 2023-03-05T11:51:16.417068 | 2021-02-22T03:38:49 | 2021-02-22T03:38:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 482 | h | thMFCComboBox.h | #pragma once
// CComboBox
class thMFCComboBox : public thRef
{
public:
static bool registerToLua(lua_State* luas);
public:
// create
static thMFCComboBox* create(CComboBox* ctrl);
int GetCount() const;
int GetCurSel() const;
void SetCurSel(int nSelect);
void AddString(const std::string& lpszString);
void In... |
b0bb4d9945587e496dc40ef43b18f8550e25c865 | ac1aea6ecb5f5937f4dea7df9846f2f75b59905c | /EnterIfWhile.cpp | 9a663cb241606be66bc96f5d4285cfbf42d181e1 | [] | no_license | danieljerbi/project | de11a19885392e3afad09e1cfbc4a31bc388e884 | c6f7b099324ead1eaae13acae6ef2b53c998ef43 | refs/heads/master | 2020-04-13T12:48:06.591357 | 2018-12-26T19:45:04 | 2018-12-26T19:45:04 | 163,212,331 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 323 | cpp | EnterIfWhile.cpp | //
// Created by daniel on 21/12/18.
//
#include "EnterIfWhile.h"
EnterIfWhile::EnterIfWhile() {
}
EnterIfWhile *EnterIfWhile::enterIfWhile_instance = 0;
EnterIfWhile* EnterIfWhile:: instance() {
if (!enterIfWhile_instance) {
enterIfWhile_instance = new EnterIfWhile;
}
return enterIfWhile_instance... |
4cbbac3b00315b35d9ceb78bde68316fe147f0b6 | b19b7e9a3e69e28c0961a0567f63bee0dd9b58b9 | /Editor/Plugins/GMsgCenter/Source/GMsgCenter/Private/System/MsgCenter/MsgChannel.cpp | b2d3319f7762616ca7a2f177a903550050a34a44 | [] | no_license | 1097195326/Editor | ef80d49379675815ba2e3e58d524a7f000e6e7ca | 9bbb97bca0fcd648a9a8a68afc00b9d4bd00212b | refs/heads/master | 2020-03-17T20:59:25.173542 | 2018-05-18T10:20:36 | 2018-05-18T10:20:36 | 118,855,172 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,533 | cpp | MsgChannel.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "GMsgCenter.h"
#include "MsgChannel.h"
MsgChannel::MsgChannel(uint32 _channelID)
{
m_channelID = _channelID;
}
MsgChannel::~MsgChannel()
{
for(std::map<int32, MsgFuncVector*>::reverse_iterator rit=map_handlers.rbegin()... |
b0b20ca3cc1fbc9997b7aa77e2677ad89dbebc53 | 793c8848753f530aab28076a4077deac815af5ac | /src/dskphone/uilogic/idleuilogic/src/misscallidlehandle.h | d65127fd9b934dfa81f349bb7a0d7a4bb0d9d984 | [] | no_license | Parantido/sipphone | 4c1b9b18a7a6e478514fe0aadb79335e734bc016 | f402efb088bb42900867608cc9ccf15d9b946d7d | refs/heads/master | 2021-09-10T20:12:36.553640 | 2018-03-30T12:44:13 | 2018-03-30T12:44:13 | 263,628,242 | 1 | 0 | null | 2020-05-13T12:49:19 | 2020-05-13T12:49:18 | null | UTF-8 | C++ | false | false | 895 | h | misscallidlehandle.h | #ifndef _MISSCALL_IDLE_HANDLE_H_
#define _MISSCALL_IDLE_HANDLE_H_
#include "baseidlehandle.h"
class CMissCallHandle : public CBaseIdleHandle
{
public:
CMissCallHandle(int nType = PS_STATE_MISSCALL);
virtual ~CMissCallHandle();
static LRESULT OnMissCallMessage(msgObject & msg);
public:
// 获取弹框信息
v... |
9e827d5ecf5e88aa4fc549d6202df15a618ae04f | db031e70b18b86af884b1f920d6ff0016d80fafc | /src/lib/core/assets/Spritesheet.h | 5db67ca6e81a4deef0d26e4e1fee68d2c4146f55 | [] | no_license | alesegdia/sfml-util | 2f025aa1dc14f9c19e58e7ac27be0069f9400b4f | 059c59ee82302031f0a8bc6dede8541fb46b529a | refs/heads/master | 2016-08-12T06:43:22.331560 | 2015-12-02T09:56:01 | 2015-12-02T09:56:01 | 47,251,601 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 338 | h | Spritesheet.h |
#pragma once
#include <SFML/Graphics.hpp>
class Spritesheet {
public:
Spritesheet ();
virtual ~Spritesheet ();
bool Prepare( sf::Texture* t, sf::Vector2i size );
const sf::IntRect& GetFrame( int num_frame );
sf::Texture* GetTexture();
private:
sf::Texture* _tex;
std::vector<sf::IntRect> _rects;
sf::Vector2... |
321d56582453641575d03866a397f046d17e80f3 | 1095cfe2e29ddf4e4c5e12d713bd12f45c9b6f7d | /src/cpu/exec_context.hh | 92448e2cc931dea162ccebb203332276d3574137 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | gem5/gem5 | 9ec715ae036c2e08807b5919f114e1d38d189bce | 48a40cf2f5182a82de360b7efa497d82e06b1631 | refs/heads/stable | 2023-09-03T15:56:25.819189 | 2023-08-31T05:53:03 | 2023-08-31T05:53:03 | 27,425,638 | 1,185 | 1,177 | BSD-3-Clause | 2023-09-14T08:29:31 | 2014-12-02T09:46:00 | C++ | UTF-8 | C++ | false | false | 8,568 | hh | exec_context.hh | /*
* Copyright (c) 2014, 2016-2018, 2020-2021 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware imple... |
f64b11103f6d4c5cdeed63adf4375bd67d37fac9 | c203a5916f03e0f32204f2f9c2ad8bd34da92249 | /paopaotang(4)/paopaotang/Bomb.h | 03bd120fda2b0edd2dfc930b4d8530c67b1511f8 | [] | no_license | llijiajun/c-program_big_game | bf88f92993c8b94e911e4b39c70920471e8e4b91 | 31cf28eb008749e201f01aff8d013f38251eeefd | refs/heads/master | 2020-03-17T08:26:30.541440 | 2018-06-11T11:50:40 | 2018-06-11T11:50:40 | 133,438,463 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,420 | h | Bomb.h | #ifndef Bomb_hpp
#define Bomb_hpp
#include "time.h"
#include<QPainter>
#include<QImage>
#include <iostream>
#include <objbase.h>
#include <stdio.h>
#define GUID_LEN 64
using namespace std;
class Bomb{
private:
int _belongTo; // 灞炰簬鏌愪釜PlayerID
int _power;
int _locX;
int _locY;
int _BID;
time_t _... |
7e4132e4d968c86d5f7b24192d43f172e3465eae | e8da394b1c6b5eb29eebe2f16e639d6acb11511f | /ECF/examples/GAApprox/ApproxEvalOp.h | 849d8cd0f7b6faf9a579b7538213d675062f9a14 | [
"MIT"
] | permissive | KarlaSalamun/ECF | 53a3a91e1f2926eb3cac32ff5c09b3bed34e942c | 4bd21cf43d09435f034259a6b59129b1df6ad1b3 | refs/heads/master | 2023-01-07T00:14:13.818244 | 2020-11-06T15:06:41 | 2020-11-06T15:06:41 | 310,567,926 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 425 | h | ApproxEvalOp.h | #ifndef aproksimacija_h
#define aproksimacija_h
class AproxEvalOp : public EvaluateOp
{
public:
// metoda za evaluaciju
FitnessP evaluate(IndividualP individual);
bool initialize(StateP);
void registerParameters(StateP state);
double vut(int rbr_tocke);
std::vector<double> x;
std::vector<double> y;... |
b68889f0692442c22f624e2c0316ea779d190100 | df6b9c92018d2fee047fd05b5bb5d6999057a3e4 | /ASP Algorithms/PriorityQueue (Heap)/PriorityQueueAbstract.h | a32a7e4ebe987070f74979ce6c61836d8885d13c | [] | no_license | emir97/ASP | ff91dab185384884a6b3f27b9249d9d0fca39f24 | bb63147d6fc4a82bf71c0892e592f0de1c73e3b3 | refs/heads/master | 2021-09-21T01:02:39.304785 | 2018-08-18T13:51:57 | 2018-08-18T13:51:57 | 110,889,013 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 216 | h | PriorityQueueAbstract.h |
#ifndef __PR_H__
#define __PR_H__
template <class Tip>
class PrioritetniRed
{
public:
virtual void dodaj(Tip v) = 0;
virtual Tip ukloni() = 0;
virtual bool IsPrazan() = 0;
virtual void print() = 0;
};
#endif |
4939ad4a8017c62c3909028989a23e155c6e3530 | 216f5252a8df73f8547d6a6c831409c916bae3e5 | /windows_embedded_compact_2013_2015M09/WINCE800/private/test/BaseOS/Drivers/USB/Function/usbperf/usbclass.cpp | c1d2ca4b7e5a764511bdd638443c021076c639ad | [] | no_license | fanzcsoft/windows_embedded_compact_2013_2015M09 | 845fe834d84d3f0021047bc73d6cf9a75fabb74d | d04b71c517428ed2c73e94caf21a1582b34b18e3 | refs/heads/master | 2022-12-19T02:52:16.222712 | 2020-09-28T20:13:09 | 2020-09-28T20:13:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,866 | cpp | usbclass.cpp | //
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft shared
// source or premium shared source license agreement under which you licensed
// this source code. If you did not accept the terms of the license agreement,
// you are... |
c5488d6be183a2d7198b8768d32e8dacd336dd79 | 6658fa1e0e90849596e2f88a241eda359644cc87 | /src/tests/catch_runner.cxx | 87f8fa61b7acc8d48b8d5a78bf10c70cbbfc4c7e | [
"MIT"
] | permissive | svenpohl1991/potter | d4d8bafba12951337da70eae0aaead5af13cd90c | 6c006561d0adc07d9458e567ef3eb3345de63340 | refs/heads/master | 2022-03-20T06:04:55.215148 | 2022-03-03T17:52:38 | 2022-03-03T17:52:38 | 249,770,859 | 1 | 0 | MIT | 2020-03-24T17:17:13 | 2020-03-24T17:17:12 | null | UTF-8 | C++ | false | false | 7,135 | cxx | catch_runner.cxx | #define CATCH_CONFIG_MAIN
#define CATCH_CONFIG_ENABLE_BENCHMARKING
#include "catch/catch.hpp"
#include "potter/potter.hpp"
#include "potter/molecules.hpp"
#include "potter/molecules/CO2.hpp"
#include "potter/correlations.hpp"
TEST_CASE("Check N_2 values", "[B_2],[N2]") {
auto pot = get_nitrogen();
SECTION("Ch... |
e2bfe2967a1446521c9fc130d49b951817148c33 | ae2d426813385f70daf0e3cf7da62d1e4c554b6d | /Mannual Page/Man.Geometry.h | b85b21a00bafc07c7e8b52eea107b8e5f68832f4 | [] | no_license | RexSkz/Walker | f0520a423c17f96dbf6ac9e0ec62ed558e36fd99 | 8fe773798ba73ae2c3f5d4ae181a7c5065b73bc4 | refs/heads/master | 2021-01-23T10:00:33.065077 | 2014-03-11T16:14:50 | 2014-03-11T16:14:50 | 88,262,128 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,823 | h | Man.Geometry.h | #include "Utilities.h"
#include "Plotter.h"
// 向量类
class Vector{
public:
// 用坐标初始化
explicit Vector(const double & x = 0.0, const double & y = 0.0): mX(x), mY(y);
// 分别返回坐标的两个分量
const double & X();
const double & Y();
// 分别设置坐标的两个分量
void SetX(const double & x);
void SetY(const double & y);
// 用直角坐标赋值
void Set... |
9f4b59183f78d309611a6909f80d584a75f3a438 | cc4678f1abdd833306389a9a6c72a088ab0bb55d | /bin/ios/GameBox/haxe/build/Release-iphoneos/include/native/errors/RangeError.h | f04c03c4e4ba2a81c77bec44f1b92be95695a7dd | [] | no_license | shrekshrek/gamebox-haxe | 78330b90493b0cc7a4e11a229aead7922b55f538 | 7c1567c66a1f9f63b95affe57bdad52dc3b70067 | refs/heads/master | 2020-04-02T20:42:30.421023 | 2016-07-10T09:11:39 | 2016-07-10T09:12:20 | 62,990,806 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 983 | h | RangeError.h | #ifndef INCLUDED_native_errors_RangeError
#define INCLUDED_native_errors_RangeError
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
#include <native/errors/Error.h>
HX_DECLARE_CLASS2(native,errors,Error)
HX_DECLARE_CLASS2(native,errors,RangeError)
namespace native{
namespace errors{
class RangeError_obj : public ::native... |
2ff6ea187b4985d390784e256966d4ab8f632932 | 33fcbed17ab7aa8ade90da79d3f92126a84a186f | /flow.cpp | 42942c43ce66ec3c52d96f6e451f1379c3d8d220 | [] | no_license | kusosuha6vt/kusosuha6vt | 7b5380351c6d7f211c03608fbb2fbcc6f9fef25f | b07397112f638bf6736c70c404c7dcff57ad3299 | refs/heads/main | 2023-04-02T00:39:41.086109 | 2021-03-28T19:39:16 | 2021-03-28T19:39:16 | 352,417,902 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,628 | cpp | flow.cpp | #include <bits/stdc++.h>
#define db(x) cerr << #x << " = " << x << endl;
// #define endl '\r'
using namespace std;
typedef long long ll;
typedef long double ld;
typedef unsigned int ui;
typedef array<int, 2> pi;
// dp0[i][j][a[i]] (a[i] == b[j]) = 1 + max(dp1[0..i - 1][0..j - 1][a[i]+1..inf])
// dp0[i][j] = max(dp0[... |
023783bccf398a9137995866eeb93fbb96c0785d | 6dae8ebc757b4e75a48dd12d8d227762ce865876 | /leetcode1202.cpp | f594570e50e01848471858076f53bb7ad4a20bf1 | [] | no_license | wjc852456/my_leetcode | b21991214cca92312f51c20ada2298634381df67 | fcad544cfb7d38b44aae7c54104ca7db80cb613d | refs/heads/master | 2021-03-23T16:41:39.509375 | 2020-04-25T01:09:49 | 2020-04-25T01:09:49 | 247,469,345 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,492 | cpp | leetcode1202.cpp | #include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include <iostream>
#define print(x) std::cout << #x << " = " << x << std::endl
// 9202. 交换字符串中的元素(并查集)
// 并查集查找父亲元素
int GetParent(int *parent, int child)
{
if (parent[child] == child) {
return child;
}
int pa = GetParent(parent, parent[child... |
ac032b5d3e434ddc51084638094ccc5e65ff1329 | ccc85e1320e77eb38115f4de8595ce50f44fc84f | /local_client.h | 1dc96123b9817c0743468a3f774076e3898f7fa3 | [] | no_license | geoffsiuciak/http_server | 06408f0ee747c9809b2b769f9e9217c29c139424 | 9c1e8394245cf25e548976bb56a58c5b4444628b | refs/heads/main | 2023-03-14T18:35:27.981341 | 2021-03-11T03:40:59 | 2021-03-11T03:40:59 | 329,809,123 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 399 | h | local_client.h | #ifndef LOCAL_CLIENT_H
#define LOCAL_CLIENT_H
#include <sys/types.h>
#include <dirent.h>
#include <vector>
#include "request.h"
#include "response.h"
#include "message.h"
namespace http
{
class LocalClient
{
public:
LocalClient() = default;
Message GET(const char*);
Message GET(const std::string&);
in... |
b1c5e19253ead564bf7d974d0914168a9913d002 | 9030ce2789a58888904d0c50c21591632eddffd7 | /SDK/ARKSurvivalEvolved_mountedTurret_TPV_RIG_AnimBlueprint_parameters.hpp | 0fed7c6a18dd725beae4b567acf80515361c1fd2 | [
"MIT"
] | permissive | 2bite/ARK-SDK | 8ce93f504b2e3bd4f8e7ced184980b13f127b7bf | ce1f4906ccf82ed38518558c0163c4f92f5f7b14 | refs/heads/master | 2022-09-19T06:28:20.076298 | 2022-09-03T17:21:00 | 2022-09-03T17:21:00 | 232,411,353 | 14 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 3,366 | hpp | ARKSurvivalEvolved_mountedTurret_TPV_RIG_AnimBlueprint_parameters.hpp | #pragma once
// ARKSurvivalEvolved (332.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_mountedTurret_TPV_RIG_AnimBlueprint_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//----------------------------------... |
a293929fd4793b45af0b20dec38eedcadca7999f | a020afdfec6fb793aea234d17ac7db5259555920 | /shared/SampleShared/TextureUtility.h | 1efad05903a7f9d5c8e9b354e50cce512ecb85d0 | [
"LicenseRef-scancode-generic-cla",
"Zlib",
"MIT",
"Apache-2.0"
] | permissive | microsoft/OpenXR-MixedReality | 3c1d34aa1a5ab9f554ee8b7d094abb40c9180356 | 65f472305206d24846701a7496befb0c104e6cb2 | refs/heads/main | 2023-09-06T08:44:14.670903 | 2023-09-05T22:07:26 | 2023-09-05T22:07:26 | 182,194,793 | 262 | 92 | MIT | 2023-09-05T22:07:28 | 2019-04-19T03:23:00 | C++ | UTF-8 | C++ | false | false | 220 | h | TextureUtility.h | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include <vector>
namespace sample {
std::vector<uint32_t> CreateTileTextureBytes(size_t sideLength);
} // namespace sample
|
13ba7dd164d2d43f098214c940c9536092e9f6e7 | 1927c6d332a156c87d4e1000be07f5f479046b01 | /willitst.cpp | 076747c048c47e327557108b890d42a2dd1b1b38 | [] | no_license | thedewangan/spoj | 9f5ab043f3964bee9df591cd25aeb10dcdeda2e8 | 2408da74649fa82e78c745a001b15881dfd47ce8 | refs/heads/main | 2023-04-30T22:04:08.137093 | 2021-05-14T05:24:04 | 2021-05-14T05:24:04 | 367,258,618 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 253 | cpp | willitst.cpp | #include <iostream>
#define ll long long
using namespace std;
int main()
{
ll num;
cin>>num;
while(num > 1) {
if ((num % 2) == 0) num = num/2;
else {
cout<<"NIE"<<"\n";
return 0;
}
}
cout<<"TAK"<<"\n";
return 0;
} |
9b9882722db854826d3b9b80c87699b6faa8c8ed | 8e9f6b88eeadb86d61feee130bc1619752743852 | /code/ch02/2_8_main.cpp | ada156be8142476bf602f087ad92c46f427dc896 | [] | no_license | liuyanfight/cpp | d3fad3d124429080f0ac39d38cb74e71a5404957 | 483fb8b9273aae1b04ac82ee3cdc87c9c7bff089 | refs/heads/master | 2021-01-02T17:17:23.232808 | 2019-12-08T16:16:38 | 2019-12-08T16:16:38 | 99,094,130 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 122 | cpp | 2_8_main.cpp | #include <iostream>
using namespace std;
int main()
{
cout << "\062\115\012";
cout << "\062\t\115\012";
return 0;
} |
54aca00dfa039b356ca124f1832e62646a28493f | 84d38e8e0bc80cf008e1071da105b248cbb04204 | /UXToolsGame/Plugins/UXTools/Source/XRSimulation/Public/XRSimulationRuntimeSettings.h | 23302b18b5aded6159c6522e1bbb976ec198a4f7 | [
"MIT"
] | permissive | microsoft/MixedReality-UXTools-Unreal | 7c1ce12f9feac53ab70ba0f86e41c2b960efe90d | 89f04fe23182cfecf6a0e6efe96f950272b459ae | refs/heads/public/0.12.x-UE5.0 | 2023-06-30T01:09:55.422370 | 2022-09-30T11:09:51 | 2022-09-30T11:09:51 | 235,136,059 | 297 | 87 | MIT | 2022-11-17T02:28:03 | 2020-01-20T15:40:31 | C++ | UTF-8 | C++ | false | false | 6,650 | h | XRSimulationRuntimeSettings.h | // Copyright (c) 2020 Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include "CoreMinimal.h"
#include "Animation/AnimInstance.h"
#include "UObject/Object.h"
#include "XRSimulationRuntimeSettings.generated.h"
class UAnimBlueprint;
class UAnimInstance;
class USkeletalMesh;
struct XRSIMULATI... |
27030d216fdafb23e07f19ec3ee224686143009c | c101b926d2315c8ca671e76323246739aa963112 | /HR/Algorithms/Implementation/Equalize the Array.cpp | 6e851a44d816e0c613155aaf176ef6e1056384c3 | [] | no_license | CurrentReal/HR | 3f83c50cc30ef6642b69c51af7529a7eb06cf278 | 675ff78a92a2cdaea0a8c2326904ab4ac4433c1b | refs/heads/master | 2021-05-09T21:57:21.513691 | 2018-04-16T10:28:47 | 2018-04-16T10:28:47 | 92,179,357 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | cpp | Equalize the Array.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> A(100, 0);
for(int i = 0; i < n; i++)
{
int a;
cin >> a;
A[a]++;
}
cout << n - *max_element(A.begin(), A.end()) << endl;
return 0;
}
|
2d32cc12d48429e50d3a1b0d034b4166b14abf22 | 5314903dcbeb02448f36428c35b9f172f7045abf | /MidiController/MidiController/RotaryEncoder.cpp | 7a7e113adec12523c5bd144c0b84dfd4a7f9395e | [] | no_license | jonaswirth/ArduinoMidiController | 6e29c2bec84b843bac33ff83b3cc91909f5751be | 806f48aeca27ee90e7a7b9dd04063ff57df2fb14 | refs/heads/master | 2020-12-30T16:45:49.182764 | 2017-05-26T14:56:07 | 2017-05-26T14:56:07 | 91,023,185 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 268 | cpp | RotaryEncoder.cpp | //
//
//
#include "RotaryEncoder.h"
RotaryEncoder::RotaryEncoder(int clockwise, int counterClockwise, int controller) {
clockwisePort = clockwise;
counterClockwisePort = counterClockwise;
controllerNr = controller;
}
void RotaryEncoder::readAndSend() {
}
|
539312c71526902141c4cfadff80078b91c58b46 | 04a7e0936e2823dfd0976b518ba5379cd5e5a841 | /474/e.cpp | e5d7b1b4b623cee63b47acdf750d797476e2f1a1 | [] | no_license | sanket0211/Codeforces-Contests | 152d41a215ed68eb9a05047d2aab328d78d2e1eb | 96d791ec8dd618381e24855e102cf4392c8414ff | refs/heads/master | 2021-09-04T01:42:03.062971 | 2018-01-14T05:00:07 | 2018-01-14T05:00:07 | 114,529,290 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,622 | cpp | e.cpp |
#include<bits/stdc++.h>
#define PB push_back
#define MP make_pair
#define F first
#define S second
#define SZ(a) (int)(a.size())
#define SET(a,b) memset(a,b,sizeof(a))
#define LET(x,a) __typeof(a) x(a)
#define TR(v,it) for( LET(it,v.begin()) ; it != v.end() ; it++)
#define loop(i,a,b) for(int i=a;i<b;i++)
#define si(n... |
5b3c0fd2befddf707e7e9a6d1597c386059ab8a8 | 1c7fbaf48818b5509722df9161e58cec1a2900df | /same_time/same_time.ino | b9f93e4d57f18b419a5c26a69d421f6f41b74aa7 | [] | no_license | 7imbrook/highspeed-final-shoot | 9bb1ca409c84a906fa989218cd20a35e618c4431 | adc1fffd7923168a3783644a8f08ca355659f1dc | refs/heads/master | 2021-01-23T15:57:39.625073 | 2014-05-17T16:34:01 | 2014-05-17T16:34:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,113 | ino | same_time.ino |
int buttonState;
long delayTrigger = 0;
void setup() {
// Input
pinMode(7, INPUT);
// set the digital pin as output:
for(int i = 22; i <= 45; i++) {
pinMode(i, OUTPUT);
digitalWrite(i, LOW);
}
for(int i = 10; i <= 13; i++) {
pinMode(i, OUTPUT);
digitalWrite(i, LOW);
}
}
// Port ord... |
6ac5205f7123ac1ab8b7ed4e811ad7dedfb783ba | dec2701684fdfccbea1966d981061731498d0407 | /algos/counting_valleys.cpp | a5c797804e4680eb1b45ea7c709ce3d7a62744b2 | [] | no_license | andy4747/cpp-challanges | 29a87502a0cac0cee8a3c6df64d24020d4088f51 | a9d8249821429a5a2f6401cb618b2d4430834ffd | refs/heads/master | 2023-02-17T10:27:12.954332 | 2020-09-03T08:18:29 | 2020-09-03T08:18:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 293 | cpp | counting_valleys.cpp | #include<iostream>
#include<string>
using namespace std;
int counting_valleys(int n; string s){
int altitude = 0;
int valleys = 0;
for(int i=0;i<n;i++){
if(s[i]=='U'){
if(altitude==-1){
valleys++;
}
altitude++;
}
if(s[i]=='D'){
altitude--;
}
}
return valleys;
}
|
b2b624d836c4df7377c12896a976e6e5a9146491 | 52505166e409b44caf7a0b144ef0c453b586fcee | /performance-eval/FlexNLP/s1_i_time/sim_model/src/memory_update_functions_2.cc | 2f2dd90250a76c6e261178cf6e0cc723fa97db8e | [] | no_license | yuex1994/ASPDAC-tandem | fb090975c65edbdda68c19a8d7e7a5f0ff96bcb8 | decdabc5743c2116d1fc0e339e434b9e13c430a8 | refs/heads/master | 2023-08-28T04:37:30.011721 | 2021-08-07T13:19:23 | 2021-08-07T13:19:30 | 419,089,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 50,300 | cc | memory_update_functions_2.cc | #include <flex.h>
void flex::ite_494(std::map<sc_biguint<4>, sc_biguint<20>>& tmp_memory) {
sc_biguint<2> local_var_1 = 2;
bool local_var_2 = (PE3_ACT_CHILD_pe3_act_reg_a2 == local_var_1);
if (local_var_2) {
ite_493(tmp_memory);
sc_biguint<4> local_var_3 = 13;
sc_biguint<4> local_var_4 = 0;
sc_biguint<4> local_var_5 = ... |
41758ad2d31262dff3854e1f0adf713d69bdd2a7 | c3131577f706b25623da31f1d5af668c717eb91b | /PixelUtilities/PixelFEDDataTools/src/common/AddressLevels.cc | ed2f6a28c1eb27f05dcdefae7cb34576cb83513c | [] | no_license | cmspixelpilot/POSOverlay | 29e5739cf4f1556802ca02ae8ee1663dcd941b22 | abdd29afe0aeddefc111a14f723ec365329b34a8 | refs/heads/master | 2020-04-04T04:17:25.383958 | 2016-10-14T14:19:15 | 2016-10-14T14:19:15 | 29,026,300 | 1 | 13 | null | 2016-11-24T19:45:07 | 2015-01-09T17:04:16 | C++ | UTF-8 | C++ | false | false | 4,103 | cc | AddressLevels.cc | #include "PixelUtilities/PixelFEDDataTools/include/AddressLevels.h"
#include <math.h>
#include <iostream>
#include <fstream>
#include "TCanvas.h"
#include "TGraph.h"
#include "TH1F.h"
AddressLevels::AddressLevels(){
for (unsigned int i=0;i<MAX_ADC;++i){
histogram_[i]=0;
}
for (unsigned int i=0;i<=5;++i){... |
f71cf8fce9a0f714e13f6b3e34e2d2cad9b03185 | 40d1aa62d5391715b599acd9d05c419d55cd140e | /pointer/type_casting.cpp | 57f3246fbe12e57488699702e9dc8e8d68f4aaf5 | [] | no_license | winnygold/cpluspractise | 6cf068d1a9cbc660455140a2cf5a8fa0c953020e | e89ace81e416af1f339ce9776007ab6a659fdca8 | refs/heads/main | 2023-07-04T05:31:18.977706 | 2021-07-19T15:44:37 | 2021-07-19T15:44:37 | 379,003,450 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 157 | cpp | type_casting.cpp | #include<iostream>
int main()
{
unsigned char value = 11;
int b = 10;
int* p = &b;
p = (int*)&value;
std::cout << *p << std::endl;
}
|
11f32938a6bbeeb7d93e2c8c80ef9770d8291999 | 41f4b89a8f64c2e9302996edfb5ec4349cb2783d | /graph/interviewbit/dfs/two_teams.cpp | b19dce1916df2e5648e9776901bd02564f1caaba | [] | no_license | vrakr19/CompetitiveProgrammingStuff | 1899ba4a340c6632ab47ae1948af3e96b8e290dd | 2ac3974bbab7ebbe9203414136537e034cec18a8 | refs/heads/master | 2023-01-23T17:53:02.638999 | 2020-12-03T22:02:35 | 2020-12-03T22:02:35 | 317,953,904 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,583 | cpp | two_teams.cpp | #include <bits/stdc++.h>
using namespace std;
/******* All Required define Pre-Processors and typedef Constants *******/
#define MEM(a, b) memset(a, (b), sizeof(a))
#define FOR(i, j, k, in) for (int i = j; i < k; i += in)
#define RFOR(i, j, k, in) for (int i = j; i >= k; i -= in)
#define REP(i, j) FOR(i, 0, j, 1)
#d... |
5514e6f9e175d002990f1c3424b34e70438f59c0 | b2b9e4d616a6d1909f845e15b6eaa878faa9605a | /Codeforces/Codeforces Round #333 (Div. 2)/test.cpp | 47825cdd5e62a02d9f3982dd4710ca901515f813 | [] | no_license | JinbaoWeb/ACM | db2a852816d2f4e395086b2b7f2fdebbb4b56837 | 021b0c8d9c96c1bc6e10374ea98d0706d7b509e1 | refs/heads/master | 2021-01-18T22:32:50.894840 | 2016-06-14T07:07:51 | 2016-06-14T07:07:51 | 55,882,694 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 214 | cpp | test.cpp | #include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
#define N 1000
int main(){
int t;
char s[N];
cin>>t;
getchar();
while (t--){
cin.getline(s,N);
cout<<s<<endl;
}
return 0;
} |
42f800cc0b6ed7d0288d0bb92bd401ac0d420e46 | f043e0409cad7f083861f6e145116b26e82fab82 | /stockanalyze/tcprelaymodule/CAppEvt.cpp | 795268036452591ec7326254c2022b6558f61b9a | [] | no_license | eastevail/mywork | 5be310b478cb17c24b6fce3b9dd5ea31bdad244a | 44f8b2a6bab03d23fe58fe34a6bcc96be90daa38 | refs/heads/master | 2020-04-06T06:54:31.414004 | 2016-08-29T00:39:19 | 2016-08-29T00:39:19 | 65,089,272 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,583 | cpp | CAppEvt.cpp | /*
* CAppEvt.cpp
*
* Created on: 2015年11月10日
* Author: lixiang
*/
#include "CAppEvt.h"
#include <event2/event.h>
#include "com_log.h"
#include<stdio.h>
#include <stdlib.h>
#include<unistd.h>
#include<string.h>
#include<sys/types.h>
#include<sys/socket.h>
#include<netinet/in.h>
#include<netdb.h>
#include <st... |
6fc03553b556fa65951b9ceb5402a2df8b1f2e9f | 5bfd9d8a8f3ee0faef40db0e6320971daf2370b4 | /connector/conn_socket.h | dc953ea70e177847b5f152af4b5ae11f3f1da58d | [] | no_license | shencyx/blue | 242f8396075667a0e93dc08363e5fe4aeed2a939 | 6ce37a94d5f3b8b6bb89648d38b1f2507987c284 | refs/heads/master | 2021-01-22T12:13:11.037807 | 2015-02-15T02:21:49 | 2015-02-15T02:21:49 | 30,749,157 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,182 | h | conn_socket.h | /********************************************************************
filename: conn_socket.h
created: 2013/09/10
author: shencyx@126.com
purpose:
*********************************************************************/
#pragma once
#include "shared/Common.h"
#include "shared/network/Network.h"
#includ... |
a098ca9651ccabbf99b022e2b84740ec1119e421 | 1b79c8ea028d79b0acc1cf80ca41058fcac698c1 | /src/modifiable_scene/dragger.h | 371edeec16a28888bb782e3df3a9dba64609ee8c | [] | no_license | rock-gui/gui-pose3d_editor | e6166bbe235253590dfa5bb544231d74893734a6 | 891078a3ed5afc3563efdfba7507535d3bdb9830 | refs/heads/master | 2021-07-08T16:38:41.113722 | 2020-09-24T15:28:15 | 2020-09-24T15:28:15 | 32,317,131 | 0 | 2 | null | 2016-10-11T12:47:05 | 2015-03-16T10:21:25 | C++ | UTF-8 | C++ | false | false | 1,338 | h | dragger.h | #ifndef DRAGGER_H
#define DRAGGER_H
#include <osgManipulator/Dragger>
#include <osgManipulator/TrackballDragger>
#include <osgManipulator/Translate1DDragger>
namespace modifiable_scene{
class TripleLineDragger: public osgManipulator::CompositeDragger
{
public:
osg::ref_ptr<osgManipulator::Translate1DDra... |
a84eec78792e8be949425b5f2da816c160ac6f78 | 874a8dfe27167a981133a3654f9d16e24c0bb7b8 | /macierze.hpp | b712cdb9d16a0809982ee56374adfd82853dbd0a | [] | no_license | zk45145/Programowanie-2 | ef31015eb36505620b51baec38ea12d436dfa7b8 | a5511d863c788d65178ea58d029860c79e25f479 | refs/heads/master | 2020-05-01T11:17:46.239458 | 2019-06-08T10:09:18 | 2019-06-08T10:09:18 | 177,439,224 | 1 | 0 | null | 2019-06-08T10:09:20 | 2019-03-24T16:20:37 | C++ | UTF-8 | C++ | false | false | 793 | hpp | macierze.hpp | template<typename T>
std::string to_string(const T& obj)
{
std::stringstream ss;
ss << obj;
return ss.str();
}
class Matrix
{
private:
int i, j;
public:
std::vector <std::vector<double> > vrows;
std::vector <double> vcolumns;
Matrix (){};
Matrix (int x, int y);... |
55a1ce924e23c9aaa3b941e6f2fba002d06ab4ea | a570d3a8aef0ce22f23cc426a0541d0d1c94050b | /Joystick.ino | f38a347431db1f93321564b38ddd6ac1303bfe49 | [] | no_license | mun-sailbot/MUNSB-Controller | f5ff68b3bd44e468029db8608e22131f4b13698b | d1f19ac310cd5fb2af5410dc90c5aabb4c2220b7 | refs/heads/master | 2021-01-25T04:20:30.458988 | 2018-03-04T16:36:11 | 2018-03-04T16:36:11 | 93,422,078 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,122 | ino | Joystick.ino | #include <Servo.h>
#include <stdio.h>
Servo myservo;
int pos = 95;
int posMax = 180;
int posMin = 10; // below this value the servo was pushing and buzzing. (varies with servo)
int xyJoy(char xy);
int deadXMin;
int deadXMax;
int deadYMin;
int deadYMax;
bool goodCal = false;
int xyVal(char xy);
void calibrate();
voi... |
b09431473ff28f6807d890b74e6136fc391c4cf5 | 9add04ed3a83cca3cc3f84b2a8f744dc12d893d7 | /tests.cc | 836c822d072a7552ba3cdc9b21ed71bccf92162b | [] | no_license | stmd/SPH | 0114d6d46293609653c22fb1344d1bc228cbf923 | 5cd54652fcadafc8fbb98997c16399116deaf80c | refs/heads/master | 2016-09-15T21:32:35.748270 | 2013-01-18T21:43:44 | 2013-01-18T21:43:44 | 6,923,834 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 306 | cc | tests.cc | /**
* \file
*
* \brief Driver program for testing of sph
*/
#include <stdlib.h>
#include <iostream>
#include "gtest/gtest.h"
using namespace std;
int main(int argc, char** argv){
cout << "Testing fluid properties: " << endl;
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
|
21cae0993fb790fd6f32dbafe5e6a72710999d15 | af7f530f7a909bd0acdbb2bfa41760c95fc3d99c | /Tokenizer.cpp | fb581c51d25a3f8222c41d1efb514b25b3f486f3 | [] | no_license | spark-design/Binary-Search-Tree-with-Morse-Code-Converter | e3ca5afdc7db227f8a2e16e9130455f8885aeb41 | 3375c5a95ad7249464bae374eb37853eff095281 | refs/heads/main | 2023-09-02T13:39:49.734547 | 2021-10-22T15:55:06 | 2021-10-22T15:55:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,257 | cpp | Tokenizer.cpp | #include "Tokenizer.h"
using namespace::std;
void Tokenizer::setString(const string& str)
{
ss.str(str);
ss.clear();
}
bool Tokenizer::isEmpty() const
{
if (ss.eof()) return true;
return false;
}
bool Tokenizer::readLine(string& line)
{
if (isEmpty()) return false;
if (getline(ss, line)) return... |
975fa0bdb96ad44bbe5966f673078e437958ed7b | b6c3932fd39c2a7c9b714710b1768be2a4b7af87 | /leetcode/9. Palindrome Number/solve.cpp | 6fb89364af2d5cc16c8f6f7ba0e941766f0354ba | [] | no_license | DavidToca/programming-challanges | 331d828e9341ab3c1a2272f9dbb8a4d4be7ba93b | 06fb6c2afcf865cde9d6e4fbfa54bc59276c986b | refs/heads/master | 2021-06-12T19:10:49.891473 | 2021-06-09T01:06:38 | 2021-06-09T01:06:38 | 1,127,636 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 214 | cpp | solve.cpp | class Solution {
public:
bool isPalindrome(int x) {
string s1 = to_string(x);
string s2 = to_string(x);
reverse(s1.begin(), s1.end());
return s2 == s1;
}
}; |
b4a6373d72a582c502e5fa4717f813ce13357a2e | 8ffc6f434be03e27d0a3e701717319d857c29013 | /Inc/sensing/MaxbotixRangefinder.h | 31945bcb09e12fbc487a7d6cb51a5fbfcc3075e6 | [] | no_license | erikbeerepoot/robot-firmware | 9710a0cee6827d28db6a3688dd69911b665eb1ce | 3cc4808433e844a8b855c0b8bea7d205b499a295 | refs/heads/master | 2020-04-20T17:26:02.371803 | 2019-02-06T02:34:17 | 2019-02-06T02:34:17 | 168,988,251 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 353 | h | MaxbotixRangefinder.h | //
// Created by Erik Beerepoot 😊 on 2018-12-20.
//
#include "Proximity.h"
#ifndef ROBOT_MAXBOTIXRANGEFINDER_H
#define ROBOT_MAXBOTIXRANGEFINDER_H
#endif //ROBOT_MAXBOTIXRANGEFINDER_H
class MaxbotixRangefinder: Proxmity {
public:
MaxbotixRangefinder();
float readDistance() override;
private:
float comp... |
e76a55a5cd06e71afe83f1ccdd67cd91a53aee49 | 81d681c64d368f1d61ae1e064fa26dc424585b45 | /c/asan/main.cpp | 78c1d84a7fd8c067117b226451a52aff1766e6a4 | [] | no_license | wudeng/Code-Library | 27bd143d82a60ac04d7482767942fafc3d97a348 | 39f4d9bc2b5860b86a3efd9ec3340e7ed3e7ff0f | refs/heads/master | 2021-01-01T05:40:57.772449 | 2020-11-13T03:11:50 | 2020-11-13T03:11:50 | 2,656,931 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 130 | cpp | main.cpp | #include <stdlib.h>
int main (int argc, char** argv)
{
int* array = new int[100];
delete []array;
return array[1];
}
|
7c263110fa3456f0fefa9e3f8dfde2b19e045414 | be6d3cfe0616e5f54c48e49d24ae8cc73e626767 | /vote/src/Processor.h | 59beabc89b87e740bc3fb39ef89b9f1d1e1dd333 | [] | no_license | junthus/cpp | 8c3475cdc988ade58b19b71fbb6c605531aa96ea | 1c3dba4b2f602306452c7682a08106ffb89d6d2d | refs/heads/master | 2021-01-18T14:28:44.210591 | 2015-09-08T13:25:59 | 2015-09-08T13:25:59 | 38,615,468 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 238 | h | Processor.h | /*
* Processor.h
*
* Created on: 2015. 7. 14.
* Author: juhee.bak
*/
#ifndef PROCESSOR_H_
#define PROCESSOR_H_
class Processor {
public :
virtual ~Processor() {
}
virtual void process() = 0;
};
#endif /* PROCESSOR_H_ */
|
b41601494fad9b13948fdd475ce4b6e595c6f4b2 | 59d628d91841651fd2b81a969811bd8d2d8dc846 | /lab/08/03-cc7sd-sjbc35/main.cc | ad7a9e6f328f959e08abc8c9b66eb677003d9bf9 | [] | no_license | SamuelBishop/ECE3220 | 30dc72fa4f18b9ecd7c335e4280102e9f19f49d3 | 42c81d7d2020cc58baf04e200200c7762c0ea8b8 | refs/heads/master | 2020-07-08T08:36:00.637873 | 2019-12-11T04:20:45 | 2019-12-11T04:20:45 | 203,620,708 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,436 | cc | main.cc | #include <sstream>
#include <iostream>
#include <unistd.h>
#include "rpi3b_accessory.h"
using namespace ece3220;
using namespace std;
/* Steps 1 and 2 on the lab document
* Turns off the LEDs, and then flashes the blue LED to prompt input.
*/
void
ready_for_input( rpi3b_accessory &a, const useconds_t sleep_time = 5... |
7a873c43c44243ae99d0ffc640462cee7568edca | 1c34d317a61480e852eedfedb860e5a77cfa748c | /prototypeintegration/chedli.cpp | 3567c97641f1065b55fba4eabf7e2840e1d094be | [] | no_license | Elchedli/collabqt | b98cd0f7d65a333908737dfb5cb0f91df1463b83 | 895b9c379ba1c3d70c5aa41c596316f758002a65 | refs/heads/master | 2022-10-29T08:45:23.026331 | 2020-01-15T20:59:16 | 2020-01-15T20:59:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,918 | cpp | chedli.cpp | #include "chedli.h"
#include "ui_chedli.h"
#include "mailing/SmtpMime"
#include <QMessageBox>
#include <QSystemTrayIcon>
#include <QDebug>
#include "chedli/modifierchedli.h"
chedli::chedli(QWidget *parent) :
QDialog(parent),
ui(new Ui::chedli){
int ret;
ui->setupUi(this);
ui->tableinfo->... |
2b9f3768ebe27e135a8bcddbb220ba008f920dce | eff29ba348a068e59ec8d46d98f40c4f7778a926 | /arduino/sensor_module/sensor_module.ino | ab6e048618a654060cefe710c74fc7f2721cc429 | [] | no_license | stpatrick2016/iot | 74ef2603ecf0ae9cccad313d0b69321ed3685ca9 | 2cf5cc0d16f73d74f5bb2a46fec8255c68d3ec3f | refs/heads/master | 2020-06-09T09:27:42.760248 | 2016-12-17T00:21:30 | 2016-12-17T00:21:30 | 76,045,868 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,257 | ino | sensor_module.ino | #include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include "payload.h"
Payload msg;
const uint64_t pipes[] = {0xFDADADAD02LL, 0x1212121201LL, 0x2212121201LL, 0x3212121201LL, 0x4212121201LL};
const unsigned long timeoutPeriod = 3000;
RF24 radio(9,10);
FILE serial_stdout;
int serial_putchar(char c, FILE* f) {
... |
62339cfec0c638803c1e9b8a76cb48fb437bf163 | 8e202a54224e27711755286aa33cac2f9284feaf | /RLSimion-Lib/parameters-numeric.cpp | 2f29939afdde5476927a10fe0c26ccdecb368463 | [] | no_license | Kaiwind88/RLSimion | 35aba5543cb37793a1ae675f2b73a56e79b15c9d | 3443ac5ee79b5135f91a1d24851fd9f1dc5bc741 | refs/heads/master | 2020-12-30T11:01:53.683766 | 2017-01-28T17:11:44 | 2017-01-28T17:11:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,252 | cpp | parameters-numeric.cpp | #include "stdafx.h"
#include "parameters-numeric.h"
#include "config.h"
#include "experiment.h"
#include "app.h"
//std::list<INumericValue*> INumericValue::m_handlers;
class CConstantValue : public CNumericValue
{
DOUBLE_PARAM m_value;
public:
CConstantValue(CConfigNode* pConfigNode);
double getValue(){ return m_v... |
682eea4e61c9b054a47941faeb153b070fdf08ae | 2b8085bd0a9e599cdabea31051dc2929f79c5a2e | /dlgvidsavetime.cpp | 50d836e0bf7a40580dcb945741bb2fcbf01332bd | [] | no_license | 546964285/qt_osd_v4l2 | 834586f8d01694d870f42eb4d8968842fbe73be5 | 7dec301ef9d926267698c1dea8969a7bbf8b76ca | refs/heads/master | 2020-03-18T22:58:13.323470 | 2018-04-26T01:18:45 | 2018-04-26T01:18:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 243 | cpp | dlgvidsavetime.cpp | #include "dlgvidsavetime.h"
#include "ui_dlgvidsavetime.h"
DlgVidSaveTime::DlgVidSaveTime(QWidget *parent) :
QDialog(parent),
ui(new Ui::DlgVidSaveTime)
{
ui->setupUi(this);
}
DlgVidSaveTime::~DlgVidSaveTime()
{
delete ui;
}
|
5f8408b5d2f79306f5a5ec37e2a127ba6bdda934 | b773ad52ffd0bab8eb15f89226bd4556c9e25ac8 | /src/game.cpp | 18069ece33fe008011c3f9927eed230a667872d4 | [] | no_license | Miwoli/wsti-too-big-too-small | 2411ec6ccefa87494b6e635dba666df7deef91fa | f38630062d050c71efbdc235c266c1c37ccc9794 | refs/heads/master | 2020-09-28T03:17:49.059155 | 2019-12-08T15:31:56 | 2019-12-08T15:31:56 | 226,675,636 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 167 | cpp | game.cpp | #include <random>
#include "game.hpp"
bool Game::hit(int n) {
if (n == target) {
return true;
} else {
last = n;
return false;
}
} |
4a9bbf2fc7b6fb30e1f24f22f337eb9d6b13b959 | 9bfb97c0cf4c0e9f8b1563a5fd03f438aa549698 | /halide/aot_gpu/pipe_gpu.cpp | aad1bbd41e6a71a6d4169e5032eca40c2d88bdb1 | [] | no_license | SiyuZhu/CircuitRecognition | 6eb358ecaffd567abe7a356425ddeb97838537b0 | a1ec6be90cf85fc9af52652d5bc1be292f3a3a60 | refs/heads/master | 2016-08-12T12:38:28.878112 | 2015-10-16T18:40:43 | 2015-10-16T18:40:43 | 44,402,673 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,646 | cpp | pipe_gpu.cpp | #include <Halide.h>
#include <stdio.h>
using namespace Halide;
int main(int argc, char *argv[])
{
//
// Creating input, kernel and output image
//
Param<uint8_t> weight("weight");
ImageParam input_img(UInt(8),3,"input");
ImageParam kernel_img(UInt(8),2,"kernel");
//
// Converting input image to enable calcul... |
338b72fa141aff8cd55b276d584dc425aea0c7ad | 829cbc1ac6b3ad789dc2f92212f9238fc5603310 | /.svn/pristine/33/338b72fa141aff8cd55b276d584dc425aea0c7ad.svn-base | ee9b36ae0539905200afb8cebe72343415c54fc6 | [] | no_license | xerpi/desmume-vita | c9fa31c7b96c01118c8694f69a7d9a1be6f801d7 | 1dfaa2e16e71881ea36b8c7777266991a2ac4db9 | refs/heads/master | 2021-01-17T06:07:32.523456 | 2016-08-04T00:07:52 | 2016-08-04T00:07:52 | 64,672,810 | 24 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 3,848 | 338b72fa141aff8cd55b276d584dc425aea0c7ad.svn-base | /*
Copyright (C) 2014 DeSmuME team
Copyright (C) 2014 Alvin Wong
This file 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 file... | |
6bb811a0b593896f3bcbb7833b7746feed83c436 | 6c12658eeb45591495bb60b0591a5970cd32accb | /Algorithm/4SumII.h | e052fe8d0ae5ce885c3f7ae22ab653612ac062f4 | [] | no_license | SorataKasugano/LeetCode | 19b967f7c886b1c9d697677f843fb29bfaf5b97e | 76679917f66479113d71e4ce604d2e4cb34be6fb | refs/heads/master | 2021-04-06T08:54:40.147303 | 2018-05-11T09:57:35 | 2018-05-11T09:57:35 | 124,638,518 | 2 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 979 | h | 4SumII.h | #pragma once
/*
454. 4Sum II
Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such
that A[i] + B[j] + C[k] + D[l] is zero.
To make problem a bit easier, all A, B, C, D have same length of N where 0 ¡Ü N ¡Ü 500. All integers
are in the range of -2^28 to 2^28 - 1 and the re... |
fb03c9a38f125639c1fae7d5d3cf57ad0d53fabb | b289d4a155263136d71ab4f9a6f710fe5324e5d8 | /MapEditor/N3ME/DlgSetLightMap.h | d9022ed5eb404cdbdb6d39fc6945506cf075666f | [
"MIT"
] | permissive | iKlotho/KnightOnline | 1f63f588cb532de89a824407da6dc53f3a38c663 | bd3502e1e826a1b9007629fcb3c07c4f6370eba4 | refs/heads/master | 2022-10-16T21:26:10.842056 | 2020-06-13T11:56:04 | 2020-06-13T11:56:04 | 271,982,708 | 0 | 0 | MIT | 2020-06-13T09:57:25 | 2020-06-13T09:57:25 | null | UTF-8 | C++ | false | false | 1,601 | h | DlgSetLightMap.h | #if !defined(AFX_DLGSETLIGHTMAP_H__B62A60ED_ED79_4ADD_BABB_76A91158DC41__INCLUDED_)
#define AFX_DLGSETLIGHTMAP_H__B62A60ED_ED79_4ADD_BABB_76A91158DC41__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgSetLightMap.h : header file
//
////////////////////////////////////////////////////////////... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.