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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
705659633cc8de8a9289c650555d33b62bb92d4b | 3e0a6ff694ae6c364a88fcf53cf809dc5250770d | /aoj_lecture.cpp | 4a3b96ce9e00be63c72c0709c83c1e077d14bb72 | [] | no_license | dudals4824/algorithm_study | 422123634979cfe0bd1279349dc7251cd325f5ce | 306dea8c9699bee87d2c41cb654297b7d785f157 | refs/heads/master | 2021-09-07T03:09:42.495755 | 2018-02-16T13:22:25 | 2018-02-16T13:22:25 | 108,075,266 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,254 | cpp | aoj_lecture.cpp | #include<iostream>
#include<string>
#include<stack>
#include<algorithm>
using namespace std;
static int test_case;
static string s;
static stack<string> str[26];
static stack<string> cmp;
int main(void) {
cin >> test_case;
for (int i = 1; i <= test_case; i++) {
cin >> s;
for (int k = 0; k < s.size(); k = k ... |
96a78d1957ae5ad45489f36685990109f5038e80 | 8cc3498e311d15c9a4394aaa341ef489b482dbe6 | /compiler/extensions/cpp/runtime/src/zserio/SqliteFinalizer.h | ab4a12bf4658c162593c47beeb3a68602bae1c11 | [
"BSD-3-Clause"
] | permissive | ndsev/zserio | 3e55c064f72e86219a6da297f116d3dbb565a9a9 | c540c4a97fee4e08bfc6669a2cec0d2b8282d8f6 | refs/heads/master | 2023-08-24T14:56:10.750155 | 2023-08-11T19:36:54 | 2023-08-11T19:36:54 | 141,550,444 | 113 | 23 | BSD-3-Clause | 2023-08-30T11:14:47 | 2018-07-19T08:44:23 | Java | UTF-8 | C++ | false | false | 509 | h | SqliteFinalizer.h | #ifndef ZSERIO_SQLITE_FINALIZER_H_INC
#define ZSERIO_SQLITE_FINALIZER_H_INC
#include "sqlite3.h"
namespace zserio
{
/**
* Helper class intended to be used as a Deleter in std::unique_ptr.
*/
struct SqliteFinalizer
{
/**
* Function call operator which finalizes the given SQLite statement.
*
* \pa... |
f6ca73076f00a14fc2ebad583a636ace49154c38 | 1fd062cd7057a26c26f28585da17c16a45e3afe9 | /src/libENUgraphics/texture.cpp | 7ac4fa86c365252a7c0dd5f85902a2401ae1fdb3 | [] | no_license | dooglz/Graphics-Coursework | 8cf23998ebfa48a246cebf413378fc964d959b2d | 401ee9f4b60b311a19e4f92ccdb74a51cbe11467 | refs/heads/master | 2021-01-10T13:05:19.963399 | 2019-11-20T17:27:05 | 2019-11-20T17:27:05 | 49,908,474 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,556 | cpp | texture.cpp | #include "stdafx.h"
#include "texture.h"
#include "util.h"
#include <FreeImage\FreeImage.h>
namespace graphics_framework {
// Creates a new texture object with the given dimensions
texture::texture(GLuint width, GLuint height) throw(...) : _width(width), _height(height) {
// Initialise texture with OpenGL
glGenTe... |
8a4ed0fe4fcd9f703c69148473832d86af9bc6e3 | 339250020f4619daf17837fc3e79d0729288b43e | /src/NFS3Prog.h | 7a08dc1ff4eead49f56ca2eea508caecac907ac4 | [] | no_license | Near2U0/WinNFSd | dfaeb83afca85e0abcdb6e1e6d043d651de4339d | 9f14e7c06ead85a9a7fc23a7cfde550444596e0c | refs/heads/master | 2022-02-25T00:49:15.292727 | 2019-09-30T03:22:58 | 2019-09-30T03:22:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,308 | h | NFS3Prog.h | #ifndef _NFS3PROG_H_
#define _NFS3PROG_H_
#include "RPCProg.h"
typedef unsigned __int64 uint64;
typedef unsigned long uint32;
typedef long int32;
typedef uint64 fileid3;
typedef uint64 cookie3;
typedef uint32 uid3;
typedef uint32 gid3;
typedef uint64 size3;
typedef uint64 offset3;
typedef uint32 mode3;
... |
8a3d4d2a1ce916cf5c9905e6600edcdab97dfe2f | 39bcafc5f6b1672f31f0f6ea9c8d6047ee432950 | /extension/sqlsmith/third_party/sqlsmith/include/sqlsmith.hh | 4bcf23bc16ec9b46ef2cba20bd41459c35a7c8c7 | [
"MIT"
] | permissive | duckdb/duckdb | 315270af6b198d26eb41a20fc7a0eda04aeef294 | f89ccfe0ec01eb613af9c8ac7c264a5ef86d7c3a | refs/heads/main | 2023-09-05T08:14:21.278345 | 2023-09-05T07:28:59 | 2023-09-05T07:28:59 | 138,754,790 | 8,964 | 986 | MIT | 2023-09-14T18:42:49 | 2018-06-26T15:04:45 | C++ | UTF-8 | C++ | false | false | 552 | hh | sqlsmith.hh | /// @file
/// @brief Base class providing schema information to grammar
#ifndef SQLSMITH_HH
#define SQLSMITH_HH
#include <cstdint>
#include "duckdb.hh"
namespace duckdb_sqlsmith {
struct SQLSmithOptions {
int32_t seed = -1;
uint64_t max_queries = 0;
bool exclude_catalog = false;
bool dump_all_queries = false;
... |
4a22082ba8b15b41fe339a3720531644ba95794f | 0b715a5559280f99bf11d5e0ec08750505729c15 | /engine/lib/maxsdk31/render.h | cdb7eb25cb5cd1c41fd241f79d36195fb6fab0d7 | [] | no_license | MBU-Team/OpenMBU | ee24dbd21eca66c9b269626d269e89b90fbcbcda | 4227ce343d3e1af20ec9a5548b1e65060fb208d4 | refs/heads/master | 2023-09-04T22:27:34.705946 | 2023-08-10T01:07:31 | 2023-08-10T01:07:31 | 338,863,302 | 71 | 16 | null | 2023-09-02T19:42:09 | 2021-02-14T17:41:11 | C++ | UTF-8 | C++ | false | false | 25,790 | h | render.h | /**********************************************************************
*<
FILE: render.h
DESCRIPTION:
CREATED BY: Dan Silva
HISTORY:
*> Copyright (c) 1994, All Rights Reserved.
**********************************************************************/
#ifndef __RENDER__H
#define __RENDER__H
#define FIELD_EV... |
157df195d37f3c9226ec28e98e0541d87827530b | 5764fe956d24153464d7cee09513cdbe62044220 | /dominios.h | f7c01239136f5fe668383c0986d0e9f0ae2d4ebb | [] | no_license | Abbadoness/Trabalho-2-TP1 | 582363b70d87a920bd9db1740331b3fbd16bd0d2 | cd643a75e8d95b77e40a80a03c60679894b53112 | refs/heads/master | 2023-08-16T10:25:40.225680 | 2021-10-13T18:51:57 | 2021-10-13T18:51:57 | 412,606,282 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 11,800 | h | dominios.h | #ifndef DOMINIOS_H_INCLUDED
#define DOMINIOS_H_INCLUDED
#include <stdexcept>
#include <string>
using namespace std;
///
/// Padrao para representacao da capacidade.
///
/// Regras de formato:
///
/// -Capacidades validas: 100, 200, 300, 400, 500.
///
class Capacidade {
private:
string valor; ... |
d36581e7779aaa0fed2f3e76209befd91477764d | 4b60d316314a66bb1c13964719f842ef5b205d6e | /test/PluggableSingletonTest.cpp | 8cd303b95547e4251bed2669a0de4510706bc951 | [] | no_license | dalippa/libcisnr | 326afa8af171794b81b65140a920d8e3f1abb971 | d8a2cb1365baca29fab8f803a15e74df9a1ad7a0 | refs/heads/master | 2021-01-10T21:26:08.541864 | 2010-08-19T18:24:24 | 2010-08-19T18:24:24 | 32,659,195 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 931 | cpp | PluggableSingletonTest.cpp | #include "PluggableSingletonTest.h"
#include "PluggableSingleton.h"
#include "SingletonClasses.h"
using CppUnit::TestCase;
MakePluggableSingleton(FromHeader);
MakePluggableSingleton(FromCpp);
PluggableSingletonTest::PluggableSingletonTest() :
TestCase(typeid(this).name())
{
}
void PluggableSingletonTest::setUp()
... |
7497982fc9799dcecfd6f7d8d57614d5f483a924 | 62dd17dc7b16a655c92c1210e9e48a5dd96701be | /Workstudyplay_Flower/Workstudyplay_Flower.ino | 80a22887ac62102ebe01bb180bde1d3410c3adff | [] | no_license | workstudyplay/thing | a5bea37d04c9e058e5456f73deb2247f67077d74 | 6d2a7195baa9b6494eddef32cc795c841a598ffb | refs/heads/master | 2023-03-02T02:40:06.156119 | 2021-02-08T04:39:15 | 2021-02-08T04:39:15 | 294,025,070 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,897 | ino | Workstudyplay_Flower.ino | #include <ArduinoJson.h>
#include "FS.h"
#include <LittleFS.h>
#include <Wire.h>
#include "I2CScanner.h"
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#if defined(ESP8266)
// START ESP 8266 HEADERS - - - - - - - - - - - - - - - -
#include <ESP8266mDNS.h>
#include <ESP8266WiFi.h>
#inclu... |
c592bc322176a32aadaf72bf6e6f06c21c8545bf | 8e4d9de6d3d1e7714d886d2f8994e605b4a67ff3 | /includes/handleroot.cc | b280c62aaefb6878614c5d2f0f28eab8c9a2be62 | [] | no_license | MorganAskins/wcsim-display | 907001a8017c2fca3fa2ea3a1f34179c58b63630 | 222728005135def9671796df05a8dad60f1a9f77 | refs/heads/master | 2020-03-25T05:43:56.079987 | 2018-08-03T19:23:37 | 2018-08-03T19:23:37 | 143,463,562 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,809 | cc | handleroot.cc | /*
This software is intended to reconstruct and display
an event from WCSim root output files in 3D.
The intentions are for this software to provide a
3D environment using OpenGL independent of root that
allows the user to explore the PMT hits by zooming,
rotating, and translating the origin.
This... |
d3c1b30015e6281142a6b9772c4648893f49a0c3 | cbf147a95a38c71eb87b8ec86b454b67af208eec | /sources/ctss/include/tachar.inc | 19e97bf8b062291de78aa4a61e78fc9fa25a0db4 | [] | no_license | pittsdave/IBM7000 | 4d87a20046165529285f9444942a9e90764a1172 | e69379bd73ae3f2fd9c941b33ca3842ed1def589 | refs/heads/master | 2021-05-17T16:53:19.209120 | 2020-03-28T22:16:08 | 2020-03-28T22:16:08 | 250,881,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,001 | inc | tachar.inc | REM TACHAR M37/BCD CODE TABLE TACH0001
REM ASCII AS OF DEC 1 66 TACH0002
* 1 USED TO TRANSMIT LOWER CASE BCD TACH0003
* 2 USED TO TRANSMIT UPPER CASE BCD TACH0... |
aeffeff404f64066f25b5675bdf75f71eac4aab0 | e3c15190312b8778c92ea3d5f1a17add8819c717 | /LC_00279_PerfectSquares.cpp | 47faa0478f36fab4fd4ec30ae91668a34eefb186 | [] | no_license | jordandong/myleetcodes | a0d36ab3fa25e1f2d424ba2545f4359767ef98b6 | 99fb567982111521abcb7fc1a477f5d1743cda33 | refs/heads/master | 2021-11-22T12:22:31.870593 | 2021-08-31T05:32:33 | 2021-08-31T05:32:33 | 6,758,451 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 691 | cpp | LC_00279_PerfectSquares.cpp | /*
Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n.
For example,
given n = 12, return 3 because 12 = 4 + 4 + 4;
given n = 13, return 2 because 13 = 4 + 9.
Credits:
Special thanks to @jianchao.li.fighter for adding this problem and creating all ... |
4cbedf36ca512f61c8b82b40b7d6386b9f156b32 | 484c883525a11ffebd106070aaa7d4e872fc6df6 | /seg_converter.cpp | 55478bcb8611f23de4737f70f06a6dbb0c750211 | [] | no_license | maoq1984/MTL | 7d865176a7290c733d02076215040d3b7d7424cc | cb8cd6ca3d446a57c131ba43dc83eb8516618c0a | refs/heads/master | 2016-09-06T02:31:11.021486 | 2014-08-10T02:47:59 | 2014-08-10T02:47:59 | 22,799,715 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,534 | cpp | seg_converter.cpp | #include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <string.h>
using namespace std;
// B=1. E=2, I=3
vector<vector<string> > transform(const char *crf_results)
{
vector<vector<string> > results;
ifstream ifs_crf(crf_results);
char line[8192];
vector<string> temp;
... |
4fda5a6bebbe1f892c2bf371d10ece6764081883 | 4837862006c4717400a35a8d80b5f14497fc2208 | /ch04/ex-4.28.cc | 2f5d64346632fb7e0193bebc31ebebd76fc004f6 | [] | no_license | nagisatk/cpp-primer | b282929f9b28882955ab6bd94bc93633b2f5c5fb | 18dbacfd81b56b9b43df692c5139a8b87e10e077 | refs/heads/master | 2021-01-22T23:05:26.313015 | 2017-11-17T07:17:26 | 2017-11-17T07:17:26 | 102,422,881 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 925 | cc | ex-4.28.cc | #include<iostream>
using std::cout;
using std::endl;
#include<cstdio>
int main() {
cout << "Built-in type 'char' takes " << sizeof(char) << "\tbytes of memory." << endl;
cout << "Built-in type 'short' takes " << sizeof(short) << "\tbytes of memory." << endl;
cout << "Built-in type... |
35f032a10cfea3702732e89fe204cb4993d28aaf | 7f905f401ea6d3f4363be80ec9d6afa7a1c59ee4 | /Character.h | e8a77b563d08ac91bb603dc589d99aa3aca8ae21 | [] | no_license | RafaGandelman/The-Dungon-Game | ed3fd71d932242f28e980dddfaf98f59c4d2007f | b119aedd746092b18fa2d05c43ccec7cc6e47f54 | refs/heads/master | 2021-01-06T09:05:19.665205 | 2020-02-18T04:40:23 | 2020-02-18T04:40:23 | 241,272,414 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 573 | h | Character.h | //Header of the Character class
#ifndef CHARACTER_H
#define CHARACTER_H
#include <string>
#include <iostream>
using namespace std;
class Character
{
public:
Character();
void setHealth(int changeHealth);
int getHealth();
void changeGold(int change);
int getGold();
void setName(string newN... |
484d8fcdcd18a3e5bf2377dac8431f1ad959e4d2 | 5973bcaa222bf08bb42ecc1b4d239d832313495d | /engine/event/eventmanager.h | 2c5be74c15d0165e5dbab480c2ef7bd7b088d2fb | [] | no_license | noobneo/NoobEngine | 0fb17e8cfd90df7704db456794bd746492d08d78 | de165f9bc58403c8565e8c16a13072107424fcf3 | refs/heads/master | 2021-05-08T09:11:35.653990 | 2018-08-06T06:15:44 | 2018-08-06T06:15:44 | 107,099,345 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,514 | h | eventmanager.h | #ifndef _EVENTS_MANAGER_H_
#define _EVENTS_MANAGER_H_
/*-------------------------------------------------------
Copyright (C) 2017 DigiPen Institute of Technology.
Reproduction or disclosure of this file or its contents without the prior
written consent of DigiPen Institute of Technology is prohibited.
File Name: eve... |
982ade1e88d0e412cdfa3c54761951294bb7d325 | d6ad2097c2d652676a2e6776dc1db9669764cec7 | /ex1.c++ | ca30678ad5e7802b4b9556b937fa4895cba546e5 | [] | no_license | ro1f12/OOP-BASICS | 43715f386d6d732fd0cafdbe3c675b4b8d442d1e | 383cb7c2f1fb84d00bf2741aa5819a9815d76dc1 | refs/heads/master | 2020-03-25T17:28:53.247979 | 2018-08-08T07:58:16 | 2018-08-08T07:58:16 | 143,979,487 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 702 | ex1.c++ | #include<iostream>
using namespace std;
class triangle
{
float a,b,c;
public:
triangle(float t1,float t2,float t3)
{
a=t1;
b=t2;
c=t3;
}
friend int is_triangle (triangle t)
{
return(t.a+t.b>t.c && t.b+t.c>t.a && t.a+t.c>t.b);
}
int is_iso()
{
return((a==b)||(b==c)||(c==a));
}
int is_equi()
{
if(is_iso())
if((a==b... | |
694cb116a1979a52c802d088300d19c300becc69 | 56b0c908ef9a8eb51a9cf516f43001cb424d0906 | /holdem/src/LYHandOdds.cpp | 521aaab11260364c2187f94d13fed2f4f5194012 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | vforks/libpoker | 46f81d3a8b41aed8c14f692e6e8bdfee8807bcff | a2c60884fc5c8e31455fb39e432c49e0df55956b | refs/heads/master | 2021-09-25T02:41:10.010549 | 2018-10-17T09:36:09 | 2018-10-17T09:36:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,252 | cpp | LYHandOdds.cpp | /*
* LYHandOdds.cpp
*
* Created on: 2013-6-5
* Author: caiqingfeng
*/
//#include <boost/foreach.hpp>
#include "LYHandOdds.h"
LYHandOdds::LYHandOdds(std::vector<LYCard > const &cds, LYHoldemAlgorithmDelegate *had) :
LYHandStrength(cds, had)
{
// TODO Auto-generated constructor stub
std::vector<LYCard>::c... |
341c1c94734d77fd36a539b1d83fcc01719390ad | e428638df7c259a9da2b4a8856008da8251aa388 | /Include/Applications/MSW/GteWICFileIO.h | 9d0fe4355a3f9a395dbf63961c970968bf18772b | [
"BSL-1.0"
] | permissive | vehsakul/gtl | 22a9ee057a282d3edbb99eaa30ad6e68773c768e | 498bb20947e9ff21c08dd5a884ac3dc6f8313bb9 | refs/heads/master | 2020-12-24T06:41:48.314735 | 2016-11-14T18:16:36 | 2016-11-14T18:16:36 | 73,462,121 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,631 | h | GteWICFileIO.h | // David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2016
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// File Version: 3.0.0 (2016/06/19)
#pragma once
#include <Graphics/GteText... |
2acb19460e5d7badd98ffa945465e0f0d6d01799 | cd75778c4e7d1dd2f1ead556dd3a8568b35f9e62 | /Source/Processor/Modules/Effects/Base/Effect.cpp | 5a9b7d2e7ecc6421e7465fa52447bf89ebba9055 | [] | no_license | yesitsfebreeze/spool | c94c6ada7da250eb844468f1c457afaec7a1de4e | 4fc8cb582c57f3b385cf5690019c22ce4dbe2d37 | refs/heads/master | 2023-06-13T00:32:09.246537 | 2021-07-12T13:16:52 | 2021-07-12T13:16:52 | 373,948,552 | 0 | 1 | null | 2021-07-10T07:21:25 | 2021-06-04T20:06:09 | C++ | UTF-8 | C++ | false | false | 428 | cpp | Effect.cpp | #include "Effect.h"
#include "Processor/SpoolProcessor.h"
Effect::Effect(SpoolProcessor* processor, ParameterValue& wet, ParameterValue& paramA, ParameterValue& paramB, int index, int track, int sample) :
processor(processor),
wet(wet),
paramA(paramA),
paramB(paramB),
index(index),
t... |
bc78deb51dc94502f5dd7ec48b7541eebbc840a4 | 3597f98b2bc37b101cbfb4c3e632ab19dfb32e09 | /kernel/core/memory.h | 8ca5ad319dc0ab2dd7c07958690a3a6f7ab0b4c1 | [
"MIT"
] | permissive | RyRose/smouth-os | 318e49bb43acb99792ebd70037f95f406080ad66 | 845cd8a497d5bc9e057f35cadb2bfb0ab767d6d0 | refs/heads/main | 2021-09-10T06:04:41.887801 | 2021-09-06T19:32:37 | 2021-09-06T19:32:37 | 92,564,837 | 2 | 0 | MIT | 2021-06-19T22:00:28 | 2017-05-27T02:38:54 | C++ | UTF-8 | C++ | false | false | 2,529 | h | memory.h | #ifndef KERNEL_CORE_MEMORY_H
#define KERNEL_CORE_MEMORY_H
#include <stdint.h>
#include "kernel/arch/common/memory.h"
#include "util/list.h"
#include "util/status.h"
namespace kernel {
template <size_t N>
class BumpAllocator {
public:
// Create makes a bump allocator using the provided list of regions. It
// as... |
fde6485e019d2ac028b2dea73adf3f3bc43d2692 | cdb198135f04f6506457b2eeabee575e431e9bcd | /tools/ekc/src/ek/editor/assets/particles_asset.hpp | 48b69f05b2a47641e3181286d3a1390df4c7ab4d | [] | no_license | superman2211/ekx | 7cbdbbd235a6110ea5c8c6e1d3771e97594d4d40 | 59b8c287f27a0e6dda9ad7a1d2d5728b587e4a23 | refs/heads/master | 2023-05-13T18:03:49.365539 | 2021-06-07T10:56:16 | 2021-06-07T10:56:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 393 | hpp | particles_asset.hpp | #pragma once
#include "editor_asset.hpp"
namespace ek {
// TODO:
class particles_asset_t : public editor_asset_t {
public:
inline static const char* type_name = "particles";
explicit particles_asset_t(path_t path);
void read_decl_from_xml(const pugi::xml_node& node) override;
void build(assets_bui... |
6eb6958e16d9417ee93c8b9f5534deff9a8d9f98 | 9df24e9110f06ea1004588c87a908c68497b22c0 | /vijos/P1157.cpp | 5665046ac56398086ba0a70cd21a5293c6c3147a | [] | no_license | zhangz5434/code | b98f9df50f9ec687342737a4a2eaa9ef5bbf5579 | def5fdcdc19c01f34ab08c5f27fe9d1b7253ba4f | refs/heads/master | 2020-07-02T17:24:14.355545 | 2019-03-13T12:39:45 | 2019-03-13T12:39:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 694 | cpp | P1157.cpp | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
using namespace std;
const int MAXN=2005;
struct node
{
int a,b,s;
}p[MAXN];
int c1,c2,c3;
int ans;
int n;
inline bool cmp(const node&a,const node&b)
{
return a.s<b.s;
}
void init()
{
scanf("%d",&n);
scanf("%d%d%... |
842e73e28fb5459dfcbd13899f9bb47bee72000c | 9ed8445e7a03ace3161f9d391b79294d4f35cb30 | /chapter08/chapter08_ex05.cpp | 316f003329188609019437885c57aa9896e0cfd2 | [] | no_license | johnto20/stroustrup_ppp | 64161f06c4156ae8604fc466d5f260e94e610e87 | 9c8fafdc50048993cfe74eca7c3f7bdc825c57c9 | refs/heads/master | 2021-01-10T22:19:39.026277 | 2016-10-11T09:57:43 | 2016-10-11T09:57:43 | 69,138,346 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,567 | cpp | chapter08_ex05.cpp | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <time.h>
using namespace std;
inline void keep_window_open(){char ch;cin>>ch;}
vector <int> newrevvec;
vector<int> revvec(vector<int> x){
for(int i=0; i<x.size();++i){
newrevvec.push_back(x[x.size()-(i+1... |
00eff49d22ba629eafbe86e4ac8089083eb1c406 | 5234bc430c83d616a8214d7f77c2c081543b6b26 | /src/Cpp/101-200/116.PefectBinTreeConnectRight.h | b535526bf0a0301e4b2dc45da8de212f79737cb1 | [
"Apache-2.0"
] | permissive | AveryHuo/PeefyLeetCode | 3e749b962cadfdf10d7f7b1ed21c5fafc4342950 | 92156e4b48ba19e3f02e4286b9f733e9769a1dee | refs/heads/master | 2022-04-26T06:01:18.547761 | 2020-04-25T09:55:46 | 2020-04-25T09:55:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,319 | h | 116.PefectBinTreeConnectRight.h |
#ifndef __PERFECT_BINARY_TREE_CONNECT_RIGHT_H
#define __PERFECT_BINARY_TREE_CONNECT_RIGHT_H
#include <iostream>
#include <vector>
#include <map>
#include <queue>
#include <math.h>
#include <stack>
#include <set>
#include <algorithm>
#include <unordered_set>
#include <unordered_map>
using namespace std;
static int x... |
f02923420e21686aef67649bb8ff05d7269d7585 | bb2abaf75ffcafb5cab0bcde2825a5f699c32114 | /cpp_spider/client/Spider/dll/EOpenSSL.cpp | 2880a05ae2e820a2dccbcf244da4e8c27989ddbb | [] | no_license | leroy-0/CPP_2017 | 72afa80106fb437bb75a3545244098115308cb67 | f8de1b38dec8802ebf74e116470dbd465723bbc7 | refs/heads/master | 2022-06-08T07:59:26.647201 | 2020-05-05T14:34:07 | 2020-05-05T14:34:07 | 261,495,573 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,337 | cpp | EOpenSSL.cpp | //
// Created by Yan on 10/2/2017.
//
#include "stdafx.h"
#include "EOpenSSL.hpp"
#pragma warning(disable : 4996)
#pragma warning(disable : 4267)
spider::EOpenSSL::EOpenSSL()
{
publicKey = NULL;
}
spider::EOpenSSL::~EOpenSSL()
{
}
void spider::EOpenSSL::init(std::string const & ke... |
6595f1cfb2da90d1e53951635e47a24fcfd18430 | d9cc44ee61ebf36151cd2ffd4f81fc29c9e8dd5c | /Rusty/LiftBagCodes/liftBagCode_Server/serverliftbag1/serverliftbag1.ino | 4b0ac5e4a942422811ac8f9ddbbb76eef19cef5b | [] | no_license | Naman311/ReconSubsea | b51412e835624cd5784af36d5269a31f8fc3da0f | 4535ed521b8b283f0a060926c9cccd6c77e87f98 | refs/heads/master | 2021-03-30T17:28:20.815482 | 2019-03-13T14:19:26 | 2019-03-13T14:19:26 | 123,790,039 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,043 | ino | serverliftbag1.ino | #include <ESP8266WiFi.h>
#include <string>
int in = 16;
const char* ssid="LiftBag";
IPAddress ip(192,168,4,1); //setting ip address
IPAddress gateway(192,168,1,1); //setting gateway
IPAddress subnet(255,255,255,0); //setting subnet
WiFiServer server(80); //setting server
String S... |
2f8f3397c6138620d1fa946e7c25dc12acc237ef | b2fe4d0185212abfb4140074691c89d337495f0a | /LoadImage/main.cpp | c175a41f71f439fddc1e7aa426dc321d5675b9c2 | [] | no_license | wangyun123/LearnOSG | 65174d69e57cac1e2c3d9445153f224fbc0d7f6e | 928498e69ab5f9c2f9f5837cdacac0aaf1f4fb31 | refs/heads/master | 2020-07-13T04:13:01.589514 | 2017-09-21T08:17:39 | 2017-09-21T08:17:39 | 73,893,964 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 458 | cpp | main.cpp | #include <opencv2\opencv.hpp>
#include <opencv2\highgui\highgui.hpp>
using namespace cv;
#ifdef _DEBUG
#pragma comment(lib, "opencv_core2413d.lib")
#pragma comment(lib, "opencv_highgui2413d.lib")
#else
#pragma comment(lib, "opencv_core2413.lib")
#pragma comment(lib, "opencv_highgui2413.lib")
#endif
int main()
{
Vide... |
d0bd2f93b9171d6a16793ba1d6e3bcc26c14c5ef | 14880de95e78332db2f234096da698b5e2656034 | /map.cpp | a71ce5b491c37ccce98aa943d66d635138f8c83e | [] | no_license | Teaching-projects/SZE-MOSZE-2020-getTeamName | 7fb07e4e9a4f57c2e50ccc94cc2aa05669278542 | c62375ede608dc1ed3e43b139580fee6d8333f9a | refs/heads/master | 2023-01-29T19:33:17.820757 | 2020-12-10T20:08:20 | 2020-12-10T20:08:20 | 294,095,056 | 0 | 1 | null | 2020-12-10T20:08:22 | 2020-09-09T11:40:06 | C++ | UTF-8 | C++ | false | false | 905 | cpp | map.cpp | #include "map.h"
#include <algorithm>
Map::Map(const std::string& fname){
std::ifstream MapTxt(fname);
if(MapTxt.good())
{
std::string line;
while (getline(MapTxt, line)){
line.erase(std::remove(line.begin(), line.end(), '\n'), line.end());
line.erase(std::remove(l... |
69c0e7c566fadd7d4f73c0eda84e9820e80f883b | 4256760d734c482fcf761cb9f9eef9a28e74e2dd | /FileDescriptors.cpp | 8ea0c746af43197a2630d61b3d8190a268e2456f | [
"Apache-2.0"
] | permissive | MarisaSchmidt/Files.And.Directories | 77d268d270ae1f6506e57cd78680254fa6794e73 | 188151a48e10150e2e16e13f2f3d0702ed330a1f | refs/heads/master | 2021-01-10T16:22:03.510800 | 2015-10-12T22:08:32 | 2015-10-12T22:08:32 | 44,136,579 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,312 | cpp | FileDescriptors.cpp | //
// FileDescriptors.cpp
//
//
// Created by Marisa Schmidt on 3/20/15.
//
//
#include <stdio.h>
#include <iostream>
#include <string>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
using namespace std;
int main (int argc, char * argv[])
{
/* fd_set manages the set of files/I/O that we want to... |
a1cac4e4317457d91b2049f5701ca5fe24c102b3 | be0e0488a46b57bf6aff46c687d2a3080053e52d | /cpp/baekjoon/17087 숨바꼭질6/17087 숨바꼭질6/소스.cpp | 7ce65148ee60ce6048a7f84c9eb99ec3526c35e5 | [] | no_license | syo0e/Algorithm | b3f8a0df0029e4d6c9cbf19dcfcb312ba25ea939 | 1ae754d5bb37d02f28cf1d50463a494896d5026f | refs/heads/master | 2023-06-09T11:31:54.266900 | 2021-06-30T17:04:38 | 2021-06-30T17:04:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 477 | cpp | 소스.cpp | #include <iostream>
#include <cmath>
using namespace std;
int arr[100000];
int gcd(int a, int b) {
while (b > 0) {
int temp = b;
b = a % b;
a = temp;
}
return a;
}
int main() {
cin.tie(0);
ios::sync_with_stdio(0);
int N, S, answer;
cin >> N >> S;
for (int i = 0; i < N; i++) {
cin >> arr[i];
arr[i... |
ae23b0d07ea4e796bc02d07fd181f79040224834 | c0a6d1738613e9b8c66e35967f66bd77a6a7a18f | /Battle_of_Zargabad.zargabad/RTS_Mission_Defines.hpp | 63044decf3e5dd88c95174c2b12e3345eea7a2ba | [
"MIT"
] | permissive | Sornaensis/a3-realtimetactics | 205001a77f161e74d6155731eb3f714af6888f24 | cc56d6f49b414f35f4af0fbe2deb5e22783878fa | refs/heads/master | 2022-03-21T22:41:57.105789 | 2022-03-05T12:37:23 | 2022-03-05T12:37:23 | 121,536,453 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 149 | hpp | RTS_Mission_Defines.hpp | #define RTS_SingleCommander true
#define RTS_skipBriefing true
#define RTS_skipDeployment true
#define RTS_Spectator true
//#define RTS_godseye true |
8baa4c60192b6e879c7c7783382cdf72f8718562 | 3d80d68564da1f1d650988a1fafe221d749cdc31 | /lib/Skins/ConstraintSeedExecutor.h | 7e58ebd9a45dc8208c009ff2797a2adc6162a9f2 | [
"NCSA"
] | permissive | heyitsanthony/klee-mc | ede73456fa0e928e67529ae19ae4723d483acfd3 | 184a809930c4f7823526a11474b1446dd7d92afb | refs/heads/master | 2020-05-30T03:18:24.188711 | 2016-05-29T09:16:42 | 2016-05-29T09:16:42 | 189,500,579 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,464 | h | ConstraintSeedExecutor.h | #ifndef CONSTRAINT_SEED_EXE_H
#define CONSTRAINT_SEED_EXE_H
#include "../Core/Executor.h"
#include "klee/Internal/Module/KInstruction.h"
#include "klee/Expr.h"
#include "ConstraintSeedCore.h"
namespace klee
{
class ExecutionState;
class MemoryObject;
template<typename T>
class ConstraintSeedExecutor : public T
{
publ... |
b54d1f9ba254e2a05673f4d8ac44a32f1d07d61a | 876ef4f3ca2b67c9326b22db6c9e9568c2dd2837 | /Window_System_Programming/Chapter3/PolymorphicType2.cpp | f50c36dd18de2fbefa52e6a5581c831f0c9bc8b9 | [] | no_license | Airenn/Window_System_Programming | 1d9ddd0f44a789220f83c80b562d00a0ae19ddc2 | 127979dce67e9ba823352d42677d9488d292218b | refs/heads/master | 2023-05-31T00:53:14.159158 | 2021-06-22T23:46:05 | 2021-06-22T23:46:05 | 373,753,564 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 303 | cpp | PolymorphicType2.cpp | /*
PolymorphicType2.cpp
*/
#include <stdio.h>
#include <tchar.h>
#include <windows.h>
UINT_PTR CalDistance(UINT_PTR a, UINT_PTR b)
{
return a - b;
}
int _tmain(void)
{
INT32 val1 = 10;
INT32 val2 = 20;
_tprintf(_T("distance : %d \n", CalDistance((UINT_PTR)&val1, (UINT_PTR)&val2)));
return 0;
} |
b9547a59394186c6e049a3bcef22558fa9a3237c | 565e162060b09102dabbf9c0b31ad5c6e6e36e33 | /old_project1/code/src/viewer.hpp | 94bead0526cdd7d80e5be9c305db362ead2660f7 | [] | no_license | garibarba/dvo_ws1516 | fe013ab603c1b878fa7e7220cbaa1f2204467f06 | 8044b58a220a2391a30d2ecd0ea306aaad05d559 | refs/heads/master | 2021-01-01T03:43:52.116087 | 2016-04-16T06:40:03 | 2016-04-16T06:40:03 | 56,247,191 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,800 | hpp | viewer.hpp | #ifndef VIEWER_H
#define VIEWER_H
#include <fstream>
#include <vector>
#ifndef WIN64
#define EIGEN_DONT_ALIGN_STATICALLY
#endif
#include <Eigen/Dense>
#include <opencv2/core/core.hpp>
#include <boost/thread/thread.hpp>
#include <pcl/common/common_headers.h>
#include <pcl/visualization/pcl_visualizer.h>
void run... |
b2394ed4cec0e9aa36bae84cf9faf61194e580f3 | da95bbfe7839c9ff85d5c8913aa06593dc514981 | /mems.cpp | b6f92e3242aea23d2250108f2e904fa19838d6d8 | [] | no_license | CS231/c-primer-plus | 973df2d90c950a93cdc088a8788d85cb2ee59e32 | 4aa5ebd71ca72ccd1b6df1327dad8791352dd173 | refs/heads/master | 2022-04-05T04:28:44.848965 | 2020-02-14T04:41:47 | 2020-02-14T04:41:47 | null | 0 | 0 | null | null | null | null | MacCentralEurope | C++ | false | false | 995 | cpp | mems.cpp | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define SIZE 10
void show_array (const int ar[], int n);
int main(void)
{
int values[SIZE] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
int target[SIZE];
double curious[SIZE / 2] = {1.0, 2.0, 3.0, 4.0, 5.0};
puts("memcpy() used: ");
puts("values (original... |
0eaed433463f0338bee6be1e66de9ec0ceb59987 | fb3249244041689df602ad01c4c61a6ef3ece3eb | /BreakoutClone/OpenGL Attempt1/Events/EventMessenger.cpp | 236276461343743361baf1130862c9fd2e02e755 | [] | no_license | Vaebh/opengl-attempt1 | 1714168d0f6bb51957699c38d206daa0a8e8449f | 6838dbb2784da14285bce82711635c96a68e5c3f | refs/heads/master | 2021-01-18T14:14:48.644484 | 2014-11-05T14:17:38 | 2014-11-05T14:17:38 | 32,260,106 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,514 | cpp | EventMessenger.cpp | #include "../Events/EventMessenger.h"
// TODO
// Switch all the loops in all methods to work like the one in SubscribeToEvent - as I am dumb
// and forgot that there were no pointers so I had to directly access and change the values
// With that in mind will probably change mEvents to store pointers to Events, ... |
8958f7512ced226e529e86ed2c9428c8ae919e52 | d2e592f6e68acd6412e9691772326da860de2d1d | /Leetcode_camp/3_third week/64_Minimum Path Sum.cpp | b0ae0e5d78864bbea243fd1474cbeddca3e8585c | [] | no_license | Ylieo816/Learning-Leetcode | 72055efe64eb1d545c4da6edecd9e72db6054ae3 | 905e9040df7d0225777631d99377c2e7edaf598c | refs/heads/master | 2023-04-09T04:31:55.627592 | 2021-04-27T05:41:39 | 2021-04-27T05:41:39 | 345,342,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,001 | cpp | 64_Minimum Path Sum.cpp | class Solution {
public:
int minPathSum(vector<vector<int>>& grid) {
int r = grid.size(), c = grid[0].size();
// int arr[r][c];
// arr[0][0] = grid[0][0];
// for(int i=1; i<r;i++){
// arr[i][0] = arr[i-1][0] + grid[i][0];
// }
// for(int i=1; i<c;i... |
1c3f82490dc74b9916e5662d1777baf752c21de3 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/ash/printing/cups_print_job_manager_factory.h | 7c6068b90679d4d5dd2b89ad0f982605f0da0155 | [
"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 | 1,222 | h | cups_print_job_manager_factory.h | // 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.
#ifndef CHROME_BROWSER_ASH_PRINTING_CUPS_PRINT_JOB_MANAGER_FACTORY_H_
#define CHROME_BROWSER_ASH_PRINTING_CUPS_PRINT_JOB_MANAGER_FACTORY_H_
#include "base/lazy_instance.h"
#in... |
387e0a98cd743f1471196d74e912b8f9347f205a | 508a5d228f75822747d73f1fbad0932d5332dd1a | /src/benchmark_journal.cpp | 60111c008d0e320bcf8ca317de405cbeedb8f692 | [] | no_license | lmarent/m-nslp | 83c4daaa21e9e46e189788919d6458548beb2f81 | f2ec0450d3319e8b5110dcfe478b084181548996 | refs/heads/master | 2021-01-01T17:46:54.437485 | 2015-09-04T20:46:37 | 2015-09-04T20:46:37 | 29,531,415 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,951 | cpp | benchmark_journal.cpp | /// ----------------------------------------*- mode: C++; -*--
/// @file benchmark_journal.cpp
/// The benchmark class.
/// ----------------------------------------------------------
/// $Id: benchmark_journal.cpp 2558 2014-11-08 14:35:00 amarentes $
/// $HeadURL: https://./src/benchmark_journal.cpp $
// ==============... |
d157a4c149bd43c6ccaf876d519a7b1d14a288b0 | ac6a64d9d435f9db26b675ff4d0228eff4e9300f | /Contest_5/bai19.cpp | 9387ddd62267a7c7902653966db3041b886ccdbe | [] | no_license | HoangPham3003/CTDL-GT | ffb4fbbf797887cb78bd9b8c505e3da54146e4e6 | 0c0ab2638d46b441ee198fdc7897a19eee4fa679 | refs/heads/main | 2023-06-15T13:06:36.487041 | 2021-07-10T14:16:50 | 2021-07-10T14:16:50 | 384,712,745 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 420 | cpp | bai19.cpp | #include <bits/stdc++.h>
using namespace std;
int Tinh(int n, int x, int y, int z) {
int f[105] = {0};
f[1] = x;
for (int i = 2 ; i <= n ; i++) {
if (i%2 == 0) {
f[i] = min(f[i-1]+x, f[i/2]+z);
}
else {
f[i] = min(f[i-1]+x, f[(i+1)/2]+z+y);
}
}
return f[n];
}
int main() {
int t, n, x, y, z;
cin ... |
cd327598f11d903586692ddb795dcb1a7282e200 | 8bb2099503394647b1a4444c067c054edd41e6ec | /include/binary_serial.hpp | cf282330df75c1a6da329e89d75230ebf6a2db38 | [] | no_license | JonathanPlasse/TeensyTest | 4740b02868fa1a90f1e73559549270d65be67f1a | ae752dc3d4ac75ad2ee63e2d0bc32836bb73b735 | refs/heads/master | 2020-05-26T04:32:17.595984 | 2019-05-31T12:40:53 | 2019-05-31T12:40:53 | 188,107,530 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | hpp | binary_serial.hpp | #ifndef SERIAL_HPP
#define SERIAL_HPP
#include <Arduino.h>
// Wait until data is read
void read_data(const void* data, const size_t nb_bytes);
// Write data
void write_data(const void* data, const size_t nb_bytes);
// Read data if available
bool read_data_if(const void* data, const size_t nb_bytes);
#endif
|
1bb5a22cff90758f14d814115d763336734d3b49 | f2b92ab2f1539f3c7e01edffba4906d429c8b37c | /generated/player.grpc.pb.cc | 298713d164682d790d75f388847a1a01d80add20 | [] | no_license | nater540/UE4Proto | 69f6f3b5cc815e6c2e2d667c7cdcebe8ea5e1c1a | 1559349426f24baac45f0d2579365f1e5bb65c54 | refs/heads/master | 2020-04-15T14:47:57.208560 | 2019-01-09T02:19:43 | 2019-01-09T02:19:43 | 164,768,374 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 3,169 | cc | player.grpc.pb.cc | // Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: player.proto
#include "player.pb.h"
#include "player.grpc.pb.h"
#include <functional>
#include <grpcpp/impl/codegen/async_stream.h>
#include <grpcpp/impl/codegen/async_unary_call.h>
#include <grpcpp/impl/codegen/channe... |
54f774c8574b6c2250bf8bf7b5008d7ac710fe5d | 5f1c66e98c944b830169d28fb8046a4fbe1253dc | /arducub2/basic3d.h | 8c6d7d7f62356c49ba3d35a10789f99db39f7a89 | [] | no_license | Joan10/arducub | 6179b68f9a7577f08f32cfc8ca323268b097d9e3 | 85459e96badc6dad9b4d855935bdcf3c99127139 | refs/heads/master | 2020-05-18T17:51:10.070926 | 2013-01-29T18:08:16 | 2013-01-29T18:08:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 991 | h | basic3d.h |
#ifndef __basic3d__
#define __basic3d__
#include <Arduino.h>
#include "lcd/tft.h"
#include <math.h>
//#define MAX_POLYGONS 20
#define MAX_VERTICES 20
#define MAX_ARESTA 20
typedef struct {
int x,y,z;
} t_vertex, t_vector;
typedef struct {
char t1, t2; //punters a dos vèrtexs del vector cjt_vertex
} t_ares... |
24089eaf8697ac9d9f39c665e6b955d7c23c4f5e | a6dadfc9b90c01d659a92bd213e48e6e999fc7b5 | /CaltechApp/src/VecbosBaseObject.cc | d07a01f0b2644d3ed73a3dc6dacf2b6dca0accb9 | [] | no_license | amott/UserCode | d0dc764e2eed39a31007c3e5f807b547d80a2bf5 | 5a1ee17ff04efa599bc94bcd8387eb4bacebab81 | refs/heads/master | 2020-04-16T13:30:37.284636 | 2013-07-02T00:05:00 | 2013-07-02T00:05:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 292 | cc | VecbosBaseObject.cc | #include "VecbosBaseObject.hh"
VecbosBaseObject::VecbosBaseObject()
{
index = -1;
energy = 0.0001;
pt = 0.0001;
eta = 0.;
phi = 0.;
charge = 0;
}
TLorentzVector VecbosBaseObject::getP4(){
TLorentzVector p4; p4.SetPtEtaPhiE(pt,eta,phi,energy);
return p4;
}
|
287f175c7abd15d63dbdaec82dc9fd929619d074 | 8366c3b42d32a31074d57982f6141369d46630b2 | /exercise/boolean.cc | 6c0906eacdbdcb274fa3924079cece799192ec13 | [] | no_license | sun51027/LocalWork | 921bc45f004673bc12c56a3c8313e35aa27d5417 | 65769e366b6e41440eaaa6418a80d5315a7325f0 | refs/heads/master | 2023-05-15T00:41:13.931300 | 2021-06-09T06:42:52 | 2021-06-09T06:42:52 | 276,367,959 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 511 | cc | boolean.cc | #include<iostream>
#include<vector>
#include<string>
using namespace std;
void DoBool(bool trg){
cout<<"Hi"<<endl;
}
int main(){
vector<string> test;
test.push_back("Apple");
test.push_back("Bee");
test.push_back("Cat");
test.push_back("Duck");
test.push_back("Errr");
/* for(int i=0;i<5;i++){
cout<<test[i]<<en... |
043193e0831da0822584c14f1de2a9ef1f02a6e7 | f26e8f4b2ae381ee8e767fc4f9dbcb4576e51167 | /pagespeed/kernel/base/md5_hasher_test.cc | 6d589f73c9fe7e86a5f7553d3e393e28648edd13 | [
"Apache-2.0"
] | permissive | webscale-networks/mod_pagespeed | 8c9e82d67224de65acb077e326f3d9a1c2178ddb | cd7a7ac54a14475dd08de768ae2355e6233d30eb | refs/heads/webscale-v1.13.35.2 | 2021-10-07T17:57:12.603386 | 2021-10-05T22:30:13 | 2021-10-05T22:30:13 | 84,251,365 | 0 | 0 | Apache-2.0 | 2021-10-05T22:30:15 | 2017-03-07T22:12:31 | C++ | UTF-8 | C++ | false | false | 1,640 | cc | md5_hasher_test.cc | // Copyright 2010 Google Inc.
//
// 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 or agreed to in... |
c9f2b35b39a1c65080f1d99f53dd160ea47fb3ff | daca562f86166ea155d5ec16d29a4549518fe32d | /instrucion_element.cpp | 519e109ca9ca290f074bad7ab34d98088ff2f205 | [] | no_license | sistemd/simple-calculator | ca99a836612841339db940cab9427368ebb76af6 | 074936893f1db25599e2966ba6c6ebebcd5b3447 | refs/heads/master | 2023-04-08T06:18:53.798092 | 2016-11-07T17:03:44 | 2016-11-07T17:03:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,432 | cpp | instrucion_element.cpp | #include "instruction_element.h"
#include <sstream>
#include <cmath>
#include <iostream>
namespace Calc
{
ArithmeticType Powers::operator()(ArithmeticType left,
ArithmeticType right) noexcept
{
return std::pow(left, right);
}
ArithmeticType ToArithme... |
c9029500585216440ce30d5b37d85eadb0d9acf6 | 008ac7f4cf1d3b0ca81fd08286bc88298f993db5 | /src/CrazyTown/CrazyTown.ino | cbbdf9c1d599dbbb4c42dd8a8a91c84da4b89285 | [] | no_license | Clement83/CrazyTownMeta | 8464097e6462b553f40d073c39f9263029713c73 | 381a0c27b1fa232cb8bce0399fcbdd37870d5379 | refs/heads/master | 2021-04-03T08:05:22.511587 | 2018-03-13T11:56:54 | 2018-03-13T11:56:54 | 125,044,354 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,503 | ino | CrazyTown.ino | /*******
* 2014
* By clement http://quintard.me
* thx to Quirby64 for taxi graphic
*********/
#include <Gamebuino-Meta.h>
#define LCDHEIGHT 80
#define LCDWIDTH 64
extern const byte font3x3[];
extern const byte font3x5[];
extern const byte font5x7[];
void displayText(String s, byte x, byte y, byte t);
void display... |
e274eb0230f149b17e9b4521eda8e39546cca1f1 | e9a0b7794f3c8e90fc7b66ce7998803c295d1969 | /SFML Pathfinding/SFML Pathfinding/Source.cpp | 7ad15fe0876a6abd93b4edb1cab9b3b886ae55f0 | [] | no_license | puremight01/SFML-Pathfinding | e84c1e7538d1a8a09632b8cc59c8190f8d43576c | 50c5ca74b20d884f159be7f89b7d4a0c3eff5dba | refs/heads/main | 2023-06-29T13:02:50.386438 | 2021-08-09T12:40:29 | 2021-08-09T12:40:29 | 375,208,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,090 | cpp | Source.cpp | //hpp includes
#include <SFML/Graphics.hpp>
//class includes
#include"Externs.h"
GameManager* Game = nullptr;
int main()
{
srand(time(NULL));
//creates our window
sf::RenderWindow window(sf::VideoMode(1280, 720, 32), "Jacob Sullvan AI Behaviours");
Game = new GameManager(&window);
// run the program as long ... |
3c23d63006d31f56f42adc1294dfd3bee5764efa | b5ba0374a55c9efe5e02c5ef6bd0a8a0babf257b | /mylibC/public/include/mylibC.h | c17250b526d6bcbd6c07669fa9edef2f159d4f38 | [
"Unlicense"
] | permissive | olekhov/cmake_test | 75998344e21df06fba8194a2a522ea027d6468d9 | 2d4123f45945ca27937d8f40cb9ce6f176b9ff78 | refs/heads/master | 2020-03-28T16:23:40.106874 | 2018-09-13T19:56:00 | 2018-09-13T19:56:00 | 148,690,150 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 97 | h | mylibC.h | #pragma once
namespace mylibC
{
class ClassC
{
public:
virtual void Do();
};
};
|
812b3ea83996ef0b4dc719732f81b9200f3f2504 | 3684da5bef9a7fea18db8df51a1cc670b4a14474 | /process_thread/threadAsync/防多开.cpp | b37210ff4d767067c00cc00638d44fd156b27417 | [] | no_license | wellzhen/code_practice | 452cd1186dfe1d794e22e10a328ae2959b8fa278 | 0e1e797e5b64d473f0c6e77eee3da9e165a05c02 | refs/heads/master | 2020-03-10T03:40:15.114829 | 2018-07-29T13:43:59 | 2018-07-29T13:43:59 | 129,171,223 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 460 | cpp | 防多开.cpp | #include "stdafx.h"
#include <Windows.h>
HANDLE hEvent;
int i = 0;
int _tmain(int argc, _TCHAR* argv[])
{
HANDLE hOldEvent;
hOldEvent = OpenEvent(EVENT_ALL_ACCESS, NULL, L"events"); //必须要设置参数1 !!?
if (hOldEvent != 0) {
printf("进程已经存在\n");
Sleep(3000);
return 0;
}
else {
hEvent = CreateEvent(NULL, fal... |
363970da1e63da4ecf1b9e14433f89e2e50be2ea | 04db79713aad7e985151f3d39626adda940498db | /palm/fine/batree.h | aae00b2413fa3578a7963aa334f5353565241370 | [] | no_license | yinizhizhu/Graduation | 17ab6847787a0370c0a204f77b7bcd1d5f9b8374 | 89cc7df975e38bfabbcf4e6347f0331bd677f0b3 | refs/heads/master | 2021-06-19T14:15:35.188708 | 2017-06-26T17:41:44 | 2017-06-26T17:41:44 | 85,665,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,907 | h | batree.h | #pragma once
#ifndef BATREE_H
#define BATREE_H
#include <time.h>
#include <stdio.h>
#include <string.h>
#include <stack>
#include <mutex>
#include <vector>
#include <stack>
#include <thread>
#include <random>
#include <fstream>
#include <utility>
#include <string>
#include <iostream>
#include <algorithm>
#include <func... |
7be32e04b23e69c3d46853cfa8feaa7c5511f329 | 5a40adffc0d0c274de29c633655a28651f444786 | /app/shell/shell.cpp | 0321769ddf66f4803c56835365751f6be639dd34 | [
"MIT"
] | permissive | USN484259/COFUOS | 5eae8e002737b1d3547f6f0d5857ae81373238f3 | c8341ec035c7a37136b7bd87ac9a0ddafa392139 | refs/heads/master | 2022-01-21T18:25:14.030107 | 2022-01-15T10:33:12 | 2022-01-15T10:33:12 | 185,993,672 | 3 | 2 | null | 2020-12-06T09:11:32 | 2019-05-10T13:31:56 | C++ | UTF-8 | C++ | false | false | 12,959 | cpp | shell.cpp | #include "shell.hpp"
#include "cui.hpp"
#include "font.hpp"
using namespace UOS;
enum {CAPSLOCK = 0,CTRL = 1,ALT = 2,SHIFT = 3,SUPER = 4};
//static constexpr word border_size = 2;
word resolution[2] = {0};
bool key_state[5] = {0};
byte active_index = 0;
word clock_pos = 0;
back_buffer* back_buf = nullptr;
label* w... |
17296c3f47b40994d7f2dcaa3e653f1c790ca7ce | 7579d827cb7b50b438dfd9ef6fa80ba2797848c9 | /sources/plug_osg/src/luna/bind_osgParticle_Emitter.cpp | 37703d2a35b4b3a9322b1d2cda013ac9f11d5aa3 | [] | no_license | roche-emmanuel/sgt | 809d00b056e36b7799bbb438b8099e3036377377 | ee3a550f6172c7d14179d9d171e0124306495e45 | refs/heads/master | 2021-05-01T12:51:39.983104 | 2014-09-08T03:35:15 | 2014-09-08T03:35:15 | 79,538,908 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 50,797 | cpp | bind_osgParticle_Emitter.cpp | #include <plug_common.h>
#include <luna/wrappers/wrapper_osgParticle_Emitter.h>
class luna_wrapper_osgParticle_Emitter {
public:
typedef Luna< osgParticle::Emitter > luna_t;
inline static bool _lg_typecheck_getTable(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
static int... |
03e67d68137250dc193a34099f5a112b9249c73e | 864971d7410b421706061a725ad970dfa47ba74f | /基礎題庫/Contents/d392/d392.cpp | d28652060c7b909713d210dc51e3f4507b2a9f5a | [] | no_license | Offliners/ZeroJugde-writeup | f0494d12c8de1e010e04cdd1f037ee0d370e816a | 6fa9137819d62abdedd0f3dcb11b74924476226d | refs/heads/master | 2021-08-03T12:21:49.833359 | 2021-07-21T05:04:01 | 2021-07-21T05:04:01 | 174,837,290 | 2 | 3 | null | 2021-01-10T06:48:21 | 2019-03-10T14:47:33 | C | UTF-8 | C++ | false | false | 279 | cpp | d392.cpp | #include<iostream>
#include<sstream>
using namespace std;
int main(void)
{
string data;
while(getline(cin, data))
{
long int sum = 0;
long int temp = 0;
istringstream isNum(data);
while(isNum >> temp)
sum += temp;
cout << sum << endl;
}
return 0;
}
|
468a8b4d3d4c8178d360fdbf7bf0b9908c301bae | fba719746323ebb2a561cfc6f2cb448eec042d1a | /c++实用代码/tmp/汇编mod.cpp | 474d9e53659e0689afe8bfc2a776ac74572e1b9a | [
"MIT"
] | permissive | zhzh2001/Learning-public | 85eedf205b600dfa64747b20bce530861050b387 | c7b0fe6ea64d2890ba2b25ae8a080d61c22f71c9 | refs/heads/master | 2021-05-16T09:44:08.380814 | 2017-09-23T04:55:33 | 2017-09-23T04:55:33 | 104,541,989 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,753 | cpp | 汇编mod.cpp | #include<cstdio>
#include<ctime>
#include<algorithm>
using namespace std;
const int base[4][4]={{0,0,0,1},{0,1,0,1},{1,2,0,1},{0,0,3,1}};
const int mod=1000000007;
const int maxn=1000000+10;
struct node
{
int ID,n,res;
} p[maxn];
int power[31][4][4];
int n,t;
int c[4][4];
inline int MOD(int a,int b)
{
int div, res;... |
1c0df1fcb655f118ce4619e884474c98f94211a3 | ecd8a9d636e6cedf616d39ecbedb27da982e0109 | /Engine/src/Engine/PhysicsCollision/Shapes.cpp | 5eb2a85f4a27c673b7b0c198e7649c1748f1c644 | [] | no_license | Nine-Craft/GameEngineBase | 32ae53fd85c4b39ae867eab960e7dd84b6a94575 | b5113577716da4b227923874b6db9a6961b01528 | refs/heads/master | 2023-09-02T11:48:30.925183 | 2021-09-13T15:23:55 | 2021-09-14T13:12:17 | 366,265,015 | 0 | 1 | null | 2021-09-14T13:12:18 | 2021-05-11T05:25:16 | C++ | UTF-8 | C++ | false | false | 1,599 | cpp | Shapes.cpp | /************************************************************************************//*!
\file Shapes.cpp
\project <PROJECT_NAME>
\author Chua Teck Lee, c.tecklee, 390008420
\par email: c.tecklee\@digipen.edu
\date September 2, 2021
\brief Shapes contains the basi... |
fa7fe0d2b4e54c25c14856840cae8b35491328bf | 1fb99fa0100d7094f4ffd5a1be53ee1834972e23 | /cuda-shift-throughput.cpp | 082ae2d3191d6e0546ef0307742619c3441c50e9 | [] | no_license | nattoheaven/cuda-shift-throughput | 2222b1f1b367a13baa9d8077d1d00d06e361b558 | 2bc1807144b65511163e51be9d928bffaa943fcf | refs/heads/master | 2021-01-23T19:40:59.459234 | 2013-05-13T21:25:24 | 2013-05-13T21:25:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,670 | cpp | cuda-shift-throughput.cpp | #include <algorithm>
#include <cstdio>
#include <cuda.h>
int
main()
{
CUresult result;
result = cuInit(0);
CUdevice device;
result = cuDeviceGet(&device, 0);
CUcontext ctx;
result = cuCtxCreate(&ctx, 0, device);
CUmodule module;
result = cuModuleLoad(&module, "cuda-shift-throughput.cubin");
CUfuncti... |
2340265b13301dcb464553f5f41cdedfcd9b6abb | 8a4f746976a04d9a30c3a74baf87af409424b0e6 | /main.cpp | 15757044c1dcd7deffdfe7a4ab52b6db679ddec9 | [] | no_license | ekbpolyakov/PI | 2d8f79a2d477bc7947a8020aa69193b6e20770f2 | bad617f16db25a7b204d8fdb8b09ddf0da05069e | refs/heads/master | 2021-07-08T16:01:30.211729 | 2021-04-13T15:04:41 | 2021-04-13T15:04:41 | 234,000,821 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 807 | cpp | main.cpp | #include <algorithm>
#include <cassert>
#include <iostream>
#include <numeric>
#include <vector>
std::vector<int> sort_a(std::vector<int> v)
{
const auto sz = v.size();
for(auto i = 0u; i != sz-1; ++i)
{
for(auto j = 0u; j != sz-i-1; ++j)
{
if(v[j] > v[j+1])
{
std::swap(v[j], v[j+1]);
... |
24173532280aa5e7a26f9e224663f5fe26a9fd21 | ac5fa3d4abc3b9c5ec85f93cf54b6f78104d49dd | /networksetup/networksetting.cpp | 17d0ed20e967ee2fd1d3423deb474991e426a431 | [] | no_license | desertzk/mylib | 6ee27d24ea8946534bf6800e250df669c1d488d7 | e6a44b0bd97e6ec62769d398d395551d9e0c4f31 | refs/heads/master | 2020-08-18T08:27:31.986600 | 2020-06-18T07:23:47 | 2020-06-18T07:23:47 | 215,769,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,074 | cpp | networksetting.cpp | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h> // close()
#include <string.h> // strcpy, memset(), and memcpy()
#include <netdb.h> // struct addrinfo
#include <sys/types.h> // needed for socket(), uint8_t, uint16_t
#include <sys/socket.h> // needed for socket()
#... |
f24df1224a5faa3aa87fe02ffecbd2ad1395efad | 77e4c53fea487574fa4f037dc89ead98b3d66fef | /arnoldnodedatamodel.cpp | cb0f891b105fe897d6ffc059069c1c25f47ef42f | [] | no_license | kikou/Quick | fdf4726ff110eca7fc557a44b9dd5315dd127172 | 216473d5b39eaf885fbcc5bc4aef340581bdf9b5 | refs/heads/master | 2020-09-15T14:03:48.849203 | 2019-11-15T04:28:18 | 2019-11-15T04:28:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,040 | cpp | arnoldnodedatamodel.cpp | #include "arnoldnodedatamodel.h"
#include "database.h"
#include <QtDebug>
ArnoldNodeDataModel::ArnoldNodeDataModel(ArnoldNode* node, Database* database)
: m_node(node), m_database(database)
{
}
QString ArnoldNodeDataModel::caption() const
{
return m_node->name + " : " + m_node->nodeEntry->name;
}
QString Arn... |
7e3941dea515a51fa5235931f797b2eccb4ea264 | ca4c4631f3d47a90b8415bbe70dbc7cae18c071e | /include/matrix_free/StkSimdGatheredElementData.h | 1c61a682f6ab1a2d54a2393c476b55e35eed91db | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | Exawind/nalu-wind | 5765078c445d379ea952d2b25a01f5ff490837a6 | 722cd7757a412c9306645963808047824c312a17 | refs/heads/master | 2023-08-16T17:44:54.744168 | 2023-08-15T18:05:23 | 2023-08-15T18:05:23 | 132,016,365 | 111 | 87 | NOASSERTION | 2023-09-14T04:02:07 | 2018-05-03T15:39:32 | C | UTF-8 | C++ | false | false | 2,609 | h | StkSimdGatheredElementData.h | // Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS), National Renewable Energy Laboratory, University of Texas Austin,
// Northwest Research Associates. Under the terms of Contract DE-NA0003525
// with NTESS, the U.S. Government retains certain rights in this software.
//
// This sof... |
ca57ac3d9e58aa49bea6561b1c12953c53c20122 | 8cc355e8465211f4384655f55472d50d080ce1ac | /loaders__mp3__getlopt.cpp | c7b8a0e1ea0d7530829aa9be77714307a1af9ca7 | [
"CC0-1.0"
] | permissive | pgrawehr/golgotha | 47fb1e47c9a2e7f24e0ce7dde188f884a5504438 | 94e0b448d7e7224e56c27b029dec80ca710ceb8b | refs/heads/master | 2023-06-29T12:04:11.302599 | 2022-03-19T08:09:59 | 2022-03-19T08:09:59 | 40,831,531 | 7 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 3,712 | cpp | loaders__mp3__getlopt.cpp | #include "pch.h"
/********************************************************************** <BR>
This file is part of Crack dot Com's free source code release of
Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
information about compiling & licensing issues visit this URL</a>
<PRE> If... |
2141e7a1f60b651557c87f54615ca69319f75118 | cd64cca3d9e72e4ef0273e32b0f2d852ddabdadf | /MaximizeDistanceToClosestPerson/MaximizeDistanceToClosestPerson/main.cpp | 26ef8963a145d307c4d3cdbbc420cc510f40a4d7 | [] | no_license | stereotype13/LeetCodePractice | 48f4471a5e0b4d890ac31760f399f91173e197d8 | 1151084f16485c1ac0d5fadd6b533c0fb350a50b | refs/heads/master | 2020-11-25T03:34:57.825558 | 2020-03-09T21:33:02 | 2020-03-09T21:33:02 | 228,477,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,124 | cpp | main.cpp | /*
In a row of seats, 1 represents a person sitting in that seat, and 0 represents that the seat is empty.
There is at least one empty seat, and at least one person sitting.
Alex wants to sit in the seat such that the distance between him and the closest person to him is maximized.
Return that maximum distance to cl... |
fdf27c285224a3754b255f6e8b8124a3b66f3969 | 711fa63ab15dbd770b09ba911d3ff269224abf72 | /release/qrc_resource.cpp | 7433fc68318813b8cb699095432f80ad8228a180 | [] | no_license | jess12345/Kanban | 17ddf7762f8d9ff2c5111fd5aa1b8e324e41f4d3 | 0f7365f57b73e726da822af054cd60f23fb3a026 | refs/heads/master | 2021-01-19T10:35:27.819634 | 2019-07-18T11:50:26 | 2019-07-18T11:50:26 | 87,880,923 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 205,285 | cpp | qrc_resource.cpp | /****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 5.7.1
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
static const unsig... |
e0dc525d040fada6f2571d8def5a8ff0de6ce873 | efa1cddfa8b779306af6837552ca70cac99672b0 | /OldProjects/DTIServer_TrafficAccess/DTIServ_http_v2/2.Project/MainUI/MainFrm.cpp | b948dd0a2ff7b554513f6b4d4710e1397f328a00 | [] | no_license | lanicon/MyRepository | f21cee83a2fb97e730b1e324d807b51495f4d64e | 6f2e61343fccbaa7ad1f4213df5efc9eb6502c65 | refs/heads/master | 2023-03-14T05:01:01.114757 | 2021-02-26T03:17:01 | 2021-02-26T03:17:01 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 10,802 | cpp | MainFrm.cpp | // MainFrm.cpp : CMainFrame 类的实现
//
#include "stdafx.h"
#include "MainUI.h"
#include "SheetConfig.h"
#include ".\mainfrm.h"
#include "LogView.h"
#include "RawTfcView.h"
#include "ParsedTfcView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
extern CMainUIApp theApp;
// CMainFrame
IMPLEMENT_DYNAMIC... |
51ee836e83a65ca9ae17bb00e72cd9caa837e498 | a33aac97878b2cb15677be26e308cbc46e2862d2 | /program_data/PKU_raw/42/185.c | 0b96688218d877adafa862ac28d76430dd8a7f73 | [] | no_license | GabeOchieng/ggnn.tensorflow | f5d7d0bca52258336fc12c9de6ae38223f28f786 | 7c62c0e8427bea6c8bec2cebf157b6f1ea70a213 | refs/heads/master | 2022-05-30T11:17:42.278048 | 2020-05-02T11:33:31 | 2020-05-02T11:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 347 | c | 185.c | int main()
{
int sum=1,j,i,k=0,n,m,a[101001]={0};
cin>>n;
for(i=1;i<=n;i++)
{
cin>>a[i];
}
cin>>m;
for(i=1,j=1;j<=n;j++)
{
if(a[j]!=m)
a[i++]=a[j];
}
for(k=1;k<=i-1;k++)
{
if(k==1)
{
cout<<a[k];
}
else
{
cout<<" "<<a[k];
}
}
... |
7ed99d646a1eeb349d0ae73f486e6acd100b49e7 | 66257fa9bf3025d4398d11d01f19e559a350ee5b | /SDA/GUI_old/ClassEditor.h | bb31f8dc1dac95ca3ff94c9d0c92df3d901590de | [] | no_license | Fleynaro/MultiPlayer | 79a7e3e646ef23f5851d5ecc257ad0d77adc6ca1 | eb4310e0c61ab7126b3e3e31b322add999cef44b | refs/heads/master | 2023-06-12T16:00:53.713952 | 2021-05-14T14:14:15 | 2021-05-14T14:14:15 | 233,058,852 | 6 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 40,275 | h | ClassEditor.h | #pragma once
#include "Windows/ItemLists/DataTypeList.h"
#include "GUI/Signature.h"
#include "AddressInput.h"
using namespace CE;
namespace GUI::Widget
{
//MY TODO: (+) каждое поле-класс можно открыть в новом окне
//MY TODO: (+) обновлять не весь ClassHierarchy, а только детей
//MY TODO: (+) не передавать через па... |
6a91ecd03b97a256c1d6073a5fc4d05cb9977f3f | 8bf5d7ed1c70ae4dd0fc4920f8944e489e4ca258 | /pong/pong/Score.cpp | fb1196566e40f64607437040bd3edb16c7d4349e | [] | no_license | dogick/Ping-pong | 33e541f8602afb8ba42aec365d078e0a99424551 | aff25f42cebe85f941ecf043f9598ab00f94d66d | refs/heads/master | 2020-02-26T17:13:54.787160 | 2016-10-23T19:09:06 | 2016-10-23T19:09:06 | 71,715,279 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 397 | cpp | Score.cpp | #include "stdafx.h"
#include "Score.h"
Score::Score()
{
if (!font.loadFromFile("resources/font/Rotonda.ttf"))
{
exit(EXIT_FAILURE);
}
for (auto & scoreText : text)
{
scoreText.setFont(font);
scoreText.setCharacterSize(35);
scoreText.setString(std::to_string(0));
}
text[0].setPosition(45... |
faa8bc26cedc786751465e6acde150a6d9bdb173 | c082db10d6ca0d961dfecfd9df137e5c4247f85f | /Dog.cpp | 9847408d492086b81a1ce7b593f4cae8d62756e2 | [] | no_license | Dachief332/Inheritance-Example | bbcb12fecbc4b9eaf2adf1310475293e7e353dcc | 9d3dc2a2011570dd86e23a6ad19de9c954824da4 | refs/heads/master | 2022-04-25T16:42:44.327067 | 2020-04-29T03:09:43 | 2020-04-29T03:09:43 | 259,808,938 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 271 | cpp | Dog.cpp | #include "Dog.h"
string Dog::getAnimalType()
{
return "Dog";
};
void Dog::makeNoise()
{
cout << "Woof! Woof! Squirrel!" << endl;
};
void Dog::doDoggyThings()
{
cout << "I'm digging a hole and burying my bone so the squirrels can't get it!" << endl;
}; |
6ab19234736aa4caa0413cb733161defe2ed250e | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /src/tests/functional/shared_test_classes/include/shared_test_classes/single_layer/is_inf.hpp | 96971c3705c8becbc85b9d04b185900d6604e151 | [
"Apache-2.0"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | C++ | false | false | 1,173 | hpp | is_inf.hpp | // Copyright (C) 2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <string>
#include <tuple>
#include "shared_test_classes/base/ov_subgraph.hpp"
namespace ov {
namespace test {
namespace subgraph {
using IsInfParams = std::tuple<
std::vector<InputShape>,... |
f0d471227c36da0ca6264c9cddf34b501a2a56a9 | 18aa7d19f819e81f62cd4628bbc873faa366efd9 | /include/gpmg/allocators/region-allocator.hpp | a7cf4090ac34300ffc264ac7bf405158aac2ce85 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hstalker/gpmg | 641f395363a9f588811a4c9ad3d0164da3869211 | 0ec5ea9a99b835cca442a87f11a957525002ac35 | refs/heads/master | 2020-06-04T01:59:57.610039 | 2015-09-14T15:15:24 | 2015-09-14T15:15:24 | 42,355,280 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,457 | hpp | region-allocator.hpp | /// \file region-allocator.hpp
/// \author Hector Stalker
/// \copyright Copyright 2015 Hector Stalker. All rights reserved.
/// This project is released under the MIT License.
/// \brief Defines a contiguous region allocator that takes a reserved
/// memory block.
#ifndef GPMG_ALLOCATORS_REGION... |
0e632b0b6356a29f63343e3dc80731ef3dcce047 | cdae6aeb424b8caf82ee43d59d18b4e2ed11bc6b | /Codeforces/69A - Young Physicist.cpp | b8561042b9381f705aa7fb0dea6af8473421809d | [] | no_license | mazenmayman/ACM | c0d9039a95d00fe2d4c7c9e013ec8ae8dd07e593 | 558ed6ea0cbf2640a809a823f96c51c30f8bc080 | refs/heads/master | 2021-01-01T03:59:59.204431 | 2016-04-24T12:25:48 | 2016-04-24T12:25:48 | 56,374,218 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 468 | cpp | 69A - Young Physicist.cpp | #include <iostream>
using namespace std;
int sum[3] = {0, 0, 0};
int main(){
int n, x;
cin >> n;
for(int i = 0; i < n; i++){
for (int j = 0; j < 3; j++){
cin >> x;
sum[j] += x;
}
}
bool flag = true;
for(int i = 0; i < 3; i++){
if(sum[i... |
5718e8221cd2332d4d43dda22a9a13319f8be912 | b78c1a08758922f81f69b533f8f4a955843adfc4 | /GI_project/GI_project/headers/triangle.h | 36427a19e79885b10ea23ecaebaed335886be4fa | [] | no_license | J-Bedhammar/GI | 76a35156b792de83e7aa78ac19cf4571604da437 | 71d1547539c747c46752f100df6fc4717f493640 | refs/heads/master | 2022-03-26T10:39:33.537566 | 2020-01-11T12:12:52 | 2020-01-11T12:12:52 | 149,772,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 481 | h | triangle.h | #ifndef TRIANGLE_H
#define TRIANGLE_H
#include "definitions.h"
#include "surface.h"
#include "ray.h"
class Triangle {
private:
Vertex v0, v1, v2;
Direction triangleNormal;
Surface triangleSurface;
public:
Triangle();
~Triangle() = default;
Triangle(Vertex &a, Vertex &b, Vertex &c, Surface s);
Direction getNo... |
3867066dbb3cfec14e854a508927eef1a012ab43 | ce7cd2b2f9709dbadf613583d9816c862003b38b | /SRC/common/cmicrostructure.h | 6c9ae9b75de909df5f676220214aec5bb4af46fe | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | usnistgov/OOF3D | 32b01a25154443d29d0c44d5892387e8ef6146fa | 7614f8ea98a095e78c62c59e8952c0eb494aacfc | refs/heads/master | 2023-05-25T13:01:20.604025 | 2022-02-18T20:24:54 | 2022-02-18T20:24:54 | 29,606,158 | 34 | 7 | null | 2015-02-06T19:56:26 | 2015-01-21T19:04:14 | Python | UTF-8 | C++ | false | false | 10,952 | h | cmicrostructure.h | // -*- C++ -*-
/* This software was produced by NIST, an agency of the U.S. government,
* and by statute is not subject to copyright in the United States.
* Recipients of this software assume all responsibilities associated
* with its operation, modification and maintenance. However, to
* facilitate maintenance we... |
341ca88d73d20936e0ce547ecf91207e5fa7b9bd | c475cd8531a94ffae69cc92371d41531dbbddb6c | /Libraries/qhull_git_22feb2012/src/libqhullcpp/PointCoordinates.h | 316d1227980c2014270446e29543a896611b004e | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | WolfireGames/overgrowth | 72d3dd29cbd7254337265c29f8de3e5c32400114 | 594a2a4f9da0855304ee8cd5335d042f8e954ce1 | refs/heads/main | 2023-08-15T19:36:56.156578 | 2023-05-17T08:17:53 | 2023-05-17T08:20:36 | 467,448,492 | 2,264 | 245 | Apache-2.0 | 2023-05-09T07:29:58 | 2022-03-08T09:38:54 | C++ | UTF-8 | C++ | false | false | 6,806 | h | PointCoordinates.h | /****************************************************************************
**
** Copyright (c) 2009-2012 C.B. Barber. All rights reserved.
** $Id: //main/2011/qhull/src/libqhullcpp/PointCoordinates.h#5 $$Change: 1464 $
** $DateTime: 2012/01/25 22:58:41 $$Author: bbarber $
**
*****************************************... |
6e9cecd5f4ad4f4ef38f378b72103935b3ac2ed3 | 1302a788aa73d8da772c6431b083ddd76eef937f | /WORKING_DIRECTORY/system/connectivity/shill/icmp_session_unittest.cc | f5421aee955dcddf15eb5d6a9ce0b2279b8d0f40 | [
"Apache-2.0"
] | permissive | rockduan/androidN-android-7.1.1_r28 | b3c1bcb734225aa7813ab70639af60c06d658bf6 | 10bab435cd61ffa2e93a20c082624954c757999d | refs/heads/master | 2021-01-23T03:54:32.510867 | 2017-03-30T07:17:08 | 2017-03-30T07:17:08 | 86,135,431 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 20,240 | cc | icmp_session_unittest.cc | //
// Copyright (C) 2015 The Android Open Source Project
//
// 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 app... |
756721376bdec58f6922199a5e3471228294e1b7 | 41fd2e43649ccc2c9cdd6bbcddf159babdf36dba | /sail/Serializable.cpp | 5a90fcb300ea6be0bce985c8901d202757cca606 | [] | no_license | fredfeng/compass | 84d37183c11692da77b3c8cf7666c15a5b524390 | 3063df1a86e9473bbd62d52e9002743fd7e90c3b | refs/heads/master | 2020-04-10T11:57:17.616921 | 2015-03-10T16:54:21 | 2015-03-10T16:54:21 | 31,969,036 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 261 | cpp | Serializable.cpp | /*
* Serializable.cpp
*
* Created on: Apr 12, 2010
* Author: tdillig
*/
#include "Serializable.h"
Serializable::Serializable()
{
// TODO Auto-generated constructor stub
}
Serializable::~Serializable()
{
// TODO Auto-generated destructor stub
}
|
f941f420e7a71f1fc07b722137b3c41b16285cc8 | f246ba568721c6458d25a90ec59e2a3253f47ab4 | /code/userprog/exception.cc | dc7bfae31df7101d333dd44f6d1e007b0e87fd54 | [
"MIT-Modern-Variant"
] | permissive | UCDP-Brony/NachOS | 290e90604e848a72be81ca667109065753ab3e61 | c5467c7b204826a0899750a2d30723de290813d8 | refs/heads/master | 2021-04-29T10:43:24.049141 | 2017-01-25T16:46:30 | 2017-01-25T16:46:30 | 77,833,865 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,974 | cc | exception.cc | // exception.cc
// Entry point into the Nachos kernel from user programs.
// There are two kinds of things that can cause control to
// transfer back to here from user code:
//
// syscall -- The user code explicitly requests to call a procedure
// in the Nachos kernel. Right now, the only fun... |
49e277a7b4564de113f6ab80f6b594adad6db7e5 | 180d9d4b0683c01e6ebdee2914d2e496958a6e8d | /client/build-mychat-Desktop_x86_windows_msvc2019_pe_64bit-Debug/ui_mainwindow.h | 399b01b51fb2c7e67e7ff6a4d8585886c34a297d | [] | no_license | xiewenhui777/QTchat | d5f0c4ae7d6aa06ea65deda00abe54a2d9bf1a82 | a93b623dd2eefa623d7668893c25141b67dc488b | refs/heads/main | 2023-06-15T18:55:40.553287 | 2021-07-08T11:05:35 | 2021-07-08T11:05:35 | 384,094,994 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,723 | h | ui_mainwindow.h | /********************************************************************************
** Form generated from reading UI file 'mainwindow.ui'
**
** Created by: Qt User Interface Compiler version 6.2.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
****************************************... |
192a14835d736781c5b65de3fc6c2bd38ce014e7 | 11e01ca60afbb429fb4da09a704dd3d764d12773 | /src/Day4/day4.h | 083ccd27682c4439ea58b4136cf2052c9c63ff5d | [] | no_license | Reeceeboii/Advent-Of-Code-2019 | 785a8866ec11b5d4e08e4db86b0877d9762c5af9 | 3c824008c9362d170356c154cbd98011ae790612 | refs/heads/master | 2020-09-22T09:59:27.985198 | 2019-12-08T02:28:15 | 2019-12-08T02:28:15 | 225,147,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 344 | h | day4.h | //
// Created by reece on 04/12/2019.
//
#ifndef ADVENT_OF_CODE_2019_DAY4_H
#define ADVENT_OF_CODE_2019_DAY4_H
#include <string>
const int LOWER = 231832;
const int HIGHER = 767346;
bool adjacent_digits(int potential_pwd);
bool never_decrease(int potential_pwd);
int day_4_part_1();
int day_4_part_2();
#endif //ADV... |
4804996d99742be1e81945abd27d9474a2debaae | efc39e68b3e7f588cebe247a485013c84624ff55 | /frontend/services/gui/src/gui_utils.cpp | d8bf72c733791d46635024200f8912c241d23aa9 | [
"BSD-3-Clause"
] | permissive | invor/megamol | 5d913a6ed5f8315f15c938f6494da84ac5093ece | 36f1061d34e930927cb18ae6b79690fe79d6c0ba | refs/heads/master | 2023-08-04T22:10:56.033868 | 2023-03-20T15:33:49 | 2023-03-20T15:33:49 | 204,038,195 | 2 | 0 | BSD-3-Clause | 2022-10-10T16:59:40 | 2019-08-23T16:58:27 | C++ | UTF-8 | C++ | false | false | 387 | cpp | gui_utils.cpp | /*
* gui_utils.cpp
*
* Copyright (C) 2019 by Universitaet Stuttgart (VIS).
* Alle Rechte vorbehalten.
*/
#include "gui_utils.h"
ImGuiID megamol::gui::gui_generated_uid = 0;
unsigned int megamol::gui::gui_context_count = 0;
std::vector<std::string> megamol::gui::gui_resource_paths;
float megamol::gui::gui_mouse... |
08cdda61d7b1e810bf6cd6fd8e3b8fca677db9c1 | e4ca0f97629a01c607d113165b376ae3489d94e3 | /common/dvb_frontend.h | 069e260a85a26f937f7ef44858abd2baacbac70a | [] | no_license | nqzero/me-tv | 200c379bf9647a68cff5367c5a4a317e41823ba3 | ce28d3afd6f132c80b694c03469303a698d3f8dd | refs/heads/master | 2016-09-05T23:18:04.975632 | 2011-05-16T15:00:05 | 2011-05-16T15:00:05 | 1,718,864 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,616 | h | dvb_frontend.h | /*
* Copyright (C) 2011 Michael Lamothe
*
* This file is part of Me TV
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later ... |
1738438d24f15b7bb0186572f6f884a14b921d33 | 91ded5d80a74995cd95375737ac40f548612b6df | /arm_2.ino | e69658ef0707b415ca605ec8dbf119d819b3bd46 | [] | no_license | Ecstasy-EC/Yuyuan-Cup-2017 | cb3e5483c596be1837e377df6805e584904f8d33 | 52a8e8bf9188c5bc6c9c334b41b45de8fb75fc35 | refs/heads/master | 2021-08-08T23:27:41.547274 | 2017-11-11T16:10:12 | 2017-11-11T16:10:12 | 103,081,848 | 0 | 1 | null | 2017-10-14T23:58:07 | 2017-09-11T02:44:23 | Python | UTF-8 | C++ | false | false | 1,200 | ino | arm_2.ino | #include <LobotServoController.h>
#include <math.h>
LobotServoController myse(Serial1);
void catch_block(double dist1);
void release_block(void);
void setup() {
// put your setup code here, to run once:
Serial1.begin(9600);
myse.moveServos(4,2000,1,2000,2,2500,3,1200,4,2000); //舵机初始化
double dist1=80.0;
catc... |
36099f747c6fd3c265ae9e616fea3bf95368a4f1 | d71e813377f638afd03e3a19af3fdca010200a2e | /client/world.cpp | 515f7582092a737f363ce5dbc72a49d1cd2498fe | [] | no_license | kjocevicius/BubbleChat | b8ea444e3c786793bb4930d017ba9d66f46d978c | 1b397ec8235c689c1c0987f5bb3af95effde0b56 | refs/heads/master | 2021-06-21T03:21:04.025899 | 2012-12-20T14:26:35 | 2012-12-20T14:26:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,316 | cpp | world.cpp | #include "world.h"
#include "display.h"
#include <string>
#include <fstream>
using namespace std;
const int BLOCK_SIZE = 64;
World::World(const char *file) {
ifstream f(file);
f >> tileCount;
tiles = new SDL_Surface*[tileCount];
for (int i = 0; i < tileCount; ++i) {
string title;
f >> title;
string filenam... |
c859919431668fe0e0755c9456b5954270875712 | b6118068b482077be56cc25143862a025a3ed10c | /d05/ex05/PresidentialPardonForm.cpp | 34a3dd8c3ddc32bf8bdb9666e8a2e3f5cd396a46 | [] | no_license | aisenn/CPP_Piscine | 25807f08857e34a26895fa4d3e377e4174296c46 | 7433d0139c19f6434db782e940ca269a54695ff1 | refs/heads/master | 2020-06-10T20:04:50.684325 | 2019-07-07T08:43:45 | 2019-07-07T08:43:45 | 193,731,829 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,624 | cpp | PresidentialPardonForm.cpp | #include "PresidentialPardonForm.hpp"
PresidentialPardonForm::PresidentialPardonForm()
: Form("Presidential Pardon Form", 25, 5) { return; }
PresidentialPardonForm::PresidentialPardonForm( PresidentialPardonForm const &rhs )
: Form("Presidential Pardon Form", 25, 5) {
*this = rhs;
std::cout << "Intern creates a "... |
6289751a1526c0293542fca38b38d47bcaa130f5 | 3274a78203983a34ea4d44f1e5885d8c015ab136 | /ch-03/exe10.cpp | c36daf37670f170dbc61cb695e429975741f6c1b | [] | no_license | beingbing/pppucpp | 98392a740110cca4b0166ad6e7481178806c0517 | 8d2a7bca0f343318a28002ec741e648c9d0f9de2 | refs/heads/master | 2023-07-07T07:36:33.863060 | 2021-08-08T13:13:24 | 2021-08-08T13:13:24 | 137,395,259 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 518 | cpp | exe10.cpp | #include "std_lib_facilities.h"
using namespace std;
int main () {
char oprtr;
double opr1=0.0, opr2=0.0;
cout<<"Enter an operator followed by two operands\n";
cin>>oprtr>>opr1>>opr2;
if (oprtr == '/' && opr2 == 0) {
error("you can not divide with zero");
}
switch(oprtr) {
case '+': cout<<opr1+opr2<<"\n";br... |
289627aa5e4e3f202599d7eed511734f8835c2ce | 485ff07efdbb3e56b9633e3134b1c81271c2d8a3 | /cpp/SampleMigration/V6/SamplePropertiesPages/App.cpp | 41ae1361f6c42fac4e7f9ff0a1a257a03adaece9 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | mcneel/rhino-developer-samples | 8f8a332d4d6a9a5fa064be6c1532e665d37c8f13 | 4fb376adcf94f9d583878d1c1208038f86bde312 | refs/heads/7 | 2023-08-18T22:04:34.036498 | 2023-06-08T16:28:43 | 2023-06-08T16:28:43 | 72,225,588 | 526 | 362 | NOASSERTION | 2023-09-06T20:29:31 | 2016-10-28T16:52:21 | C++ | UTF-8 | C++ | false | false | 2,384 | cpp | App.cpp | #include "StdAfx.h"
#include "App.h"
const COLORREF CApp::DEFULLT_OBJECT_COLOR = RGB(255,0,0);
CApp::CApp(void)
: m_default_object_color(ON_Color::UnsetColor)
{
}
CApp::~CApp(void)
{
}
CApp& CApp::App()
{
static CApp app;
return app;
}
#define DefaultObjectColorKey L"DefaultObjectColor"
... |
fd225b6a3089bf4ba68075a66325695561667393 | 0ecb5f6911965c08b8a4d4297a10584b2e720310 | /Common/pianorolleventsview.cpp | c4cea74ea97686c0217d33e2579ae47def3dac4d | [
"Apache-2.0"
] | permissive | danodus/studioengine | 01c368835f8f8503b9ced298ec5da927621be67c | 1a18d373b26575b040d014ae2650a1aaeb208a89 | refs/heads/main | 2023-05-26T11:13:11.355483 | 2021-05-27T15:17:06 | 2021-05-27T15:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 80,359 | cpp | pianorolleventsview.cpp | //
// pianorolleventsview.h
// MelobaseStation
//
// Created by Daniel Cliche on 2014-06-28.
// Copyright (c) 2014-2021 Daniel Cliche. All rights reserved.
//
#include "pianorolleventsview.h"
#include <drawcontext.h>
#include <draw.h>
#include <responderchain.h>
#include "helpers.h"
#include <platform.h>
#incl... |
a2f5ff6dbfd41e943a5d7ab2c68ecfbc7ad8cfc3 | 6518b69e83dabca6c150610f380e0aba764b9f1f | /src/utils.hpp | f9f2f15e8d637225ca1d78d945908fc3fc0af969 | [] | no_license | Stovent/Chip8Emu | 36faf740dcf4fb1a9db0486f09b7248a99c6b464 | 2b63c424f5d90c352fd822d95a2fb5a05a70b962 | refs/heads/master | 2021-08-08T00:38:48.193637 | 2021-06-23T13:45:20 | 2021-06-23T13:45:20 | 158,129,813 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 240 | hpp | utils.hpp | #ifndef UTILS_HPP
#define UTILS_HPP
#include <string>
inline std::string toHex(const uint32_t value, const char* format = NULL)
{
char c[10] = {0};
sprintf(c, format ? format : "%02X", value);
return c;
}
#endif // UTILS_HPP
|
440ea9373192f26e126d3fb2d1ecaae7251ae35a | a2e9639153e71dcf84d34b7349d69aa31b2eb678 | /zBTLC/zBTLC/game_sa/CTaskComplexGoToPointAiming.cpp | a33b4a941bd2d21067f5e6b73746ad59ef56ef3f | [] | no_license | DaDj/GTA-BTLC | ade014b3d8dbb1ecce6422328be95631226cd6f4 | 15d60cb5d5f14291317235066d64a639fffaf3ea | refs/heads/master | 2023-08-16T23:12:57.867204 | 2023-08-13T21:45:06 | 2023-08-13T21:45:06 | 83,485,003 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 40 | cpp | CTaskComplexGoToPointAiming.cpp | #include "CTaskComplexGoToPointAiming.h" |
c7f7f43185446a8e66d2fc686ff6ec329f851c25 | c32ca8180847b209e24e8d1d5ae87f88cda172cc | /hvn3/include/hvn3/events/Timer.h | f4da4ce7bb60ebc065a48cbe75a9bdf24c6c7747 | [] | no_license | gsemac/hvn3-engine | 051ffe6dd8fd07a95fdb3937013ad3bdc805dddc | 7f99f6a0cc67aae7e5e5ec5a4c08a2a688f0ee0a | refs/heads/master | 2021-07-24T12:04:42.773197 | 2019-03-06T21:50:52 | 2019-03-06T21:50:52 | 98,023,277 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 501 | h | Timer.h | #pragma once
#include "hvn3/events/EventSource.h"
#include <cstdint>
struct ALLEGRO_TIMER;
namespace hvn3 {
class Timer {
public:
Timer(double seconds_per_tick);
~Timer();
void Start();
void Resume();
void Stop();
bool HasStarted() const;
int64_t Count() const;
void SetCount(int64_t count);
void ... |
511850d40e3d94f6599bc46f8d742cc084138db5 | ee768cccbe851a39561df74695986ac8849f74da | /aLongJaunt/EnemyClass.h | 8baba341e26a1cecb3a7a4c88df4c5e509fdd04c | [] | no_license | Transpennine/aLongJaunt | 46b48f89ad1a6c5f9f02e31584963e4c6fc81919 | 7479ce583b6d95e25e77c7c58a4d1c43ec89e078 | refs/heads/master | 2020-04-10T03:03:28.869672 | 2018-12-20T11:32:39 | 2018-12-20T11:32:39 | 160,759,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,635 | h | EnemyClass.h | #pragma once
#include <map>
#include "BasicClass.h"
class EnemyClass : public BasicClass {
private:
enum checkStats {Charm, Strength, Magic, Speed};
map <checkStats, string> statMap = { {Charm, "Charm"},
{Strength, "Strength"},
{Magic, "Magic"},
{Speed, "Speed"} };
map <checkStats, string>::iterator mapIT;
bool... |
f46708128264d34e296431b399bab7e828871ddf | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /DP/1195.cpp | 2aeacc035ba16836727b7fd452e3b7cec0873e7a | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 848 | cpp | 1195.cpp | #include<bits/stdc++.h>
using namespace std;
int n;
int arr[101];
int dp[101][101];
int solve(int i, int j, int counter)
{
if(i == n || j == n)
return 0;
if(dp[i][j] != -1)
return dp[i][j];
for(int a = 0; a<n ; a++)
{
if(a >= i && a <= j)
... |
fc414ef2820d22ca6b54ded8d254f62f9d5a33fa | 6f874ccb136d411c8ec7f4faf806a108ffc76837 | /code/Windows-classic-samples/Samples/Win7Samples/dataaccess/oledb/omniprov/source/msomniprovrs.cpp | 1ee87e41d5bc6c0f6bd40bef58745c2ee5696701 | [
"MIT"
] | permissive | JetAr/ZDoc | c0f97a8ad8fd1f6a40e687b886f6c25bb89b6435 | e81a3adc354ec33345e9a3303f381dcb1b02c19d | refs/heads/master | 2022-07-26T23:06:12.021611 | 2021-07-11T13:45:57 | 2021-07-11T13:45:57 | 33,112,803 | 8 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 13,175 | cpp | msomniprovrs.cpp | // Start of file MSOmniProvRS.cpp
// File: MSOmniProvRS.cpp
//
// This file contains the implementation for the CMSOmniProvRowset and CMSOmniProvCommand
//
// The following functions have been customized or added for the provider to function:
//
// CMSOmniProvCommand :: Execute - Executes the command...
// CMSOmni... |
7bcd420a51d49491bad07c058fe2f159872347e5 | 0591f9f3fd0fb37598331efa245180a30acac69b | /framework/NetMessage.h | c386b796dbeb812bc87c034239a05f8685665be9 | [] | no_license | maocl1983/mkx | f30cab94db7f27cff0f209c42c946de8d9a733d4 | e94ef136636c4c1f40e0c0d0911043c7167140a5 | refs/heads/master | 2021-02-01T13:28:32.627575 | 2020-03-14T09:02:13 | 2020-03-14T09:02:13 | 243,522,168 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,015 | h | NetMessage.h | #pragma once
#include <stdint.h>
#include <functional>
class LoopQueue;
class Server;
class IOEventHandler;
class UserEvent;
class BufferEvent;
struct conn_info;
class NetMessage {
public:
NetMessage(Server* server);
~NetMessage();
IOEventHandler* GetIOEventHandler();
int Bind(int protocol, const char* ip, int... |
a2fc95b07750563df34b95d224f61e55b0d964ac | 2f557f60fc609c03fbb42badf2c4f41ef2e60227 | /HLTrigger/Muon/plugins/HLTMuonPFIsoFilter.cc | c3018fdba12f894b24e7cb1eeb1185b6791b3ebe | [
"Apache-2.0"
] | permissive | CMS-TMTT/cmssw | 91d70fc40a7110832a2ceb2dc08c15b5a299bd3b | 80cb3a25c0d63594fe6455b837f7c3cbe3cf42d7 | refs/heads/TMTT_1060 | 2020-03-24T07:49:39.440996 | 2020-03-04T17:21:36 | 2020-03-04T17:21:36 | 142,576,342 | 3 | 5 | Apache-2.0 | 2019-12-05T21:16:34 | 2018-07-27T12:48:13 | C++ | UTF-8 | C++ | false | false | 7,765 | cc | HLTMuonPFIsoFilter.cc | /** \class HLTMuonPFIsoFilter
*
* See header file for documentation
*
*
*/
#include "HLTMuonPFIsoFilter.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/HLTReco/interface/TriggerFilterObjectWithRefs.h"
#include "DataFormats/HLTReco/interface/TriggerRefsCollections.h"
#include "FWCore... |
e85a369910a4e43c90430e23625779d5f943f4b7 | e091f5999bf1346a21f782377108779c6c6eace2 | /Project_PS/Private/GemSwapper.cpp | 59c7abe8a4138e799b74e138ffb56f60a1b983a9 | [] | no_license | koe22kr/Project_PS | 9258f563c9a8d6c88d83206f2019a581beb947cd | 6381ec04a8e3be401ea1159855345f9c65693d7b | refs/heads/master | 2022-11-14T21:23:29.621972 | 2020-07-01T04:35:11 | 2020-07-01T04:35:11 | 272,081,444 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 866 | cpp | GemSwapper.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "GemSwapper.h"
#include "Project_PS.h"
GemSwapper::GemSwapper()
{
mCounter = 0;
}
GemSwapper::~GemSwapper()
{
}
void GemSwapper::Put(AGem* gem)
{
if (mCounter>1)
{
KLOG(Warning, TEXT("%s"), TEXT("GemSwapper->m... |
262ada0be5bb1b8253a38280e79d75b02a1ac9a3 | 99afada48a86906f29daf9734ce96ed97630751f | /include/main/utility/ID.hpp | c98a082c42bafb9ce79ca41e227eece21ae6b818 | [] | no_license | FPStudies/CityTrafficSimulation | d6230dd5d1d34e35ed49ec47fb7ec0a47c7b55aa | 5a945acc1eb6b9427787b3612d9b2c772081cb73 | refs/heads/master | 2022-11-11T14:49:03.723404 | 2020-06-10T21:26:29 | 2020-06-10T21:26:29 | 248,755,855 | 0 | 0 | null | 2020-06-09T18:46:45 | 2020-03-20T12:58:08 | C++ | UTF-8 | C++ | false | false | 2,588 | hpp | ID.hpp | /*
* ID.hpp
*
* Author: Kordowski Mateusz
*/
#ifndef TRAFFIC_SIM_ID_HPP
#define TRAFFIC_SIM_ID_HPP
#include <limits.h>
#include <memory>
namespace Utils{
/**
* @brief Template of the ID class. Every other ID use this.
*
* @tparam T
*/
template<typename T>
class ID{
pr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.