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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c1ab229c8f49eaf3b88c74d726bdac36e2283b1b | 44db1ec8d639d2e78583e2844e5de1b38a1ca26f | /C(++)/W32/AirHockey/Text.cpp | 74e0f72a1acaadd6bf9a026d8c41c54af62af65d | [] | no_license | braindef/code | adfb4e8980fd0fdbf23e051a5ffad72be22ae12d | f6fbaf3f1b1c41df391c706278b5bcb4e83d2ac2 | refs/heads/master | 2020-04-01T08:00:59.721124 | 2018-10-14T20:02:56 | 2018-10-14T20:02:56 | 153,013,739 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 8,441 | cpp | Text.cpp | #include "GDef.h"
#include "Utilities.h"
#include "D3d.h"
#include "Text.h"
#include <d3dx9tex.h>
LPDIRECT3DSURFACE9 textbitmap;
char* text; //ein Zeiger, der genrell allen Text speichert, der am Bildschirm erscheinen soll"
int* textcolor; //die Farbe jedes Zeichens, das im text Zeiger steht
int textlen; /... |
d36fbb96a8778695a64def5d2dd7c1a0361450ea | e63a9ab6b2c2875aa350567a39371b1722dd0780 | /Algoritmos/lista_8_repetição/exercicio7/main.cpp | d6391dce1af7cf15f0efd95910dec434c45686da | [] | no_license | furiossam/codeblocks | 29120f5e68b35494b1d71c05656046eac1845a2c | 2a6916fd425142a7c61aa95fcd576429e14c5063 | refs/heads/master | 2021-01-24T18:58:09.646855 | 2018-07-24T13:32:04 | 2018-07-24T13:32:04 | 86,161,822 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,204 | cpp | main.cpp | #include <iostream>
using namespace std;
int main()
{
int cont,n;
double altura_mulheres=0,media_altura=0,altura,homens=0,mulheres=0;
char sexo;
do
{
cout << "Digite o numero de pessoas para o caluculo da media: " << endl;
cin >> cont;
n = cont;
}
while (cont < 1 )... |
80bd99d5bbae4b98a2b01f4df7a0c78a787d264d | c251c69949132212bf15432136104380719cbbfd | /SQF/dayz_code/Configs/CfgWeapons/Pistols/G17.hpp | 92d88e35ba2c3be11651b11291650519812e1697 | [] | no_license | DayZMod/DayZ | fc7c27ab4ceb9501229b0b952e6d0894fe6af57a | 42368d7bbf0c85e51ddc75074a82196a21db9a55 | refs/heads/Development | 2021-01-23T16:26:17.696800 | 2019-01-26T16:24:58 | 2019-01-26T16:24:58 | 10,610,876 | 173 | 176 | null | 2020-03-26T14:26:53 | 2013-06-10T22:31:23 | C++ | UTF-8 | C++ | false | false | 4,141 | hpp | G17.hpp | class G17_DZ : glock17_EP1
{
model = "z\addons\dayz_communityweapons\g17\g17.p3d";
picture = "\z\addons\dayz_communityweapons\g17\data\w_g17_ca.paa";
displayName = $STR_DZ_WPN_G17_NAME;
magazines[] =
{
17Rnd_9x19_glock17,
17Rnd_9x19_glock17SD
};
delete FlashLight;
class Attachments
{
Attachment_Su... |
572b7b1540b15f954515a23bad7edad0e5b7e83e | f90f6df156623241b0e5969470c753d1bd3751e6 | /2021/10/c++/part-1.cc | a182c72adcdd549f4df086ae02df412664a91cde | [] | no_license | llllllllll/advent-of-code | f8065f6e6a8bd82c5ed3b65f97c91e3c41be1d35 | 6a76eb1e22acb09dd08429c56a84ca0803e6bff8 | refs/heads/master | 2022-12-17T14:30:27.340282 | 2022-12-07T06:42:21 | 2022-12-07T06:42:21 | 225,741,670 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,229 | cc | part-1.cc | #include "aoc/aoc.hpp"
int score(std::string_view cs) {
constexpr auto closes = [] {
std::array<char, 256> closes;
closes[')'] = '(';
closes[']'] = '[';
closes['}'] = '{';
closes['>'] = '<';
return closes;
}();
constexpr auto scores = [] {
std::array... |
36cbcb38e12b4638f044b2d1d27a02e8ed5a52ec | 84bf029dab37d24efe8d81f998b6ea4d9aa6977f | /Library/MyTools/Cleaner.h | a314f9fcac6b6e941b329e04773d8deb9513e67a | [] | no_license | 181847/LuaNet | ab57a115c7e17b5f8b050c614847f9a709b98ef0 | 39a72717a74215ebdb3cb6a12d2bb4ae6b20e60c | refs/heads/master | 2021-09-05T09:32:34.015651 | 2018-01-26T03:48:33 | 2018-01-26T03:48:33 | 111,977,193 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 259 | h | Cleaner.h | #pragma once
#include <functional>
class Cleaner
{
public:
Cleaner(std::function<void(void)> cleanFunc);
~Cleaner();
Cleaner(const Cleaner&) = delete;
Cleaner& operator = (const Cleaner&) = delete;
private:
std::function<void(void)> cleanFunction;
};
|
ca79620f37b50f190da6d68296ee6885d2f5bb41 | a5f3b0001cdb692aeffc444a16f79a0c4422b9d0 | /main/autodoc/inc/ary/loc/locp_le.hxx | f1aa8c6442e3e0d297aa260ffdf85eec6f04689d | [
"Apache-2.0",
"CPL-1.0",
"bzip2-1.0.6",
"LicenseRef-scancode-other-permissive",
"Zlib",
"LZMA-exception",
"LGPL-2.0-or-later",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-philippe-de-muyter",
"OFL-1.1",
"LGPL-2.1-only",
"MPL-1.1",
"X11",
"LGPL-2.1-or-later",
"GPL-2.0-only",
... | permissive | apache/openoffice | b9518e36d784898c6c2ea3ebd44458a5e47825bb | 681286523c50f34f13f05f7b87ce0c70e28295de | refs/heads/trunk | 2023-08-30T15:25:48.357535 | 2023-08-28T19:50:26 | 2023-08-28T19:50:26 | 14,357,669 | 907 | 379 | Apache-2.0 | 2023-08-16T20:49:37 | 2013-11-13T08:00:13 | C++ | UTF-8 | C++ | false | false | 2,196 | hxx | locp_le.hxx | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
8edd8371bf2135e9f6336efa64fac2bd09e2bbfd | 8e7d655025a743cea93a0f5526076a77505a1022 | /src/Plane.cpp | f84ce5fbfff11a4943f19076c221ee1fca6e0e1a | [] | no_license | roukaour/trace | b855c6ec9e2ee302845f95c84d1edb5ddd68749a | 5cbb1cff9b33d5e3039df77bcfaf0e7214336528 | refs/heads/master | 2021-05-14T13:03:16.600141 | 2018-01-05T20:53:19 | 2018-01-05T20:53:19 | 116,424,816 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,632 | cpp | Plane.cpp | #include <GL/glut.h>
#include "Plane.h"
#include "Entity.h"
#include "Vector.h"
#include "Ray.h"
/**
* The default constructor; yields an xz plane containing the origin.
*/
Plane::Plane() : Entity(), normal(0, 1, 0), distance(0), scale(1e4) {}
/**
* Returns the intersection of the given ray and this ... |
d36cccebd81ba41610b89c445ffcfbafa768872d | 10205456a67a08eaebead48ec11166974bd4224e | /Maths.h | b1da0e33cb0f5707187e6c7c52ec7257bccd7771 | [] | no_license | C-RJohnston/Advanced-Pong | 219ce908f68a291df4a2de0b164e062b1630b6d1 | 6bcce0ce86e9f62de7d2f3f04ec087dd726ddefb | refs/heads/master | 2022-04-07T16:02:35.109036 | 2020-02-18T01:38:18 | 2020-02-18T01:38:18 | 221,807,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 384 | h | Maths.h | #pragma once
#include "Engine.h"
#include <iostream>
float dot(Vector2f vector1, Vector2f vector2);
Vector2f normal(Vector2f vector);
Vector2f project(Vector2f vector1, Vector2f vector2);
void printVect(Vector2f vector);
float findAngle(Vector2f vector1, Vector2f vector2);
float value(Vector2f vector);
Vector2f rotate... |
ccc990458351b6e3eff3815ab3ee6a8a0288a66b | 6d04f5e0565bcd618c961e04a386db414a0d3268 | /Level.6.2.2.Visitor.Pattern/Liquor.h | 29e6fe3f392c185e5bf53ae0357adc29c4c26e0a | [] | no_license | mamccorkle/CPSC.2376.Code.Examples.2020.Update | 095fbedca949a6867edabc4148516963b598f0b7 | d31aedf0be5e5e465c659a43eb9be53b48c58417 | refs/heads/master | 2023-03-12T17:00:52.019296 | 2021-02-16T16:02:38 | 2021-02-16T16:02:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 251 | h | Liquor.h | #ifndef LIQUOR_H
#define LIQUOR_H
#include "GroceryItem.h";
class Liquor : public GroceryItem
{
public:
Liquor(float price) : GroceryItem(price) {}
double accept(iVisitor& visitor) override
{
return visitor.visit(this);
}
};
#endif // !LIQUOR_H
|
d74fa3974df011c300e4eddfc478daafd3c3f4bf | eafc5ac599f2e96c3ca61612abb109eba2abe655 | /conjugateHeat/k3.0_noRadNoB/9600/bottomAir/p | 5e344dffc878d5a6559b900e14378c5ca496d3f1 | [] | no_license | kohyun/OpenFOAM_MSc_Thesis_Project | b651eb129611d41dbb4d3b08a2dec0d4db7663b3 | 11f6b69c23082b3b47b04963c5fc87b8ab4dd08d | refs/heads/master | 2023-03-17T22:34:57.127580 | 2019-01-12T07:41:07 | 2019-01-12T07:41:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 38,274 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
... | |
13d5e59c14ad200a080b65c173c1d1e97c2373de | fbe60fa0d8e888bfdcf20beb2ef062f0f24fbcbd | /Algorithms/sum-of-square-numbers.cpp | 99e5bbf3564aa85a908a61ce4bf9ebb4b9e43987 | [] | no_license | aman1228/LeetCode | 552e5feff8a67c05ba318efa3a8a2d121ab64636 | 76a3d6878719643cbca59643ff8e697498411498 | refs/heads/master | 2023-04-03T13:27:06.340091 | 2021-04-18T00:15:51 | 2021-04-18T00:20:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,024 | cpp | sum-of-square-numbers.cpp | /*
* @lc app=leetcode id=633 lang=cpp
*
* [633] Sum of Square Numbers
*
* https://leetcode.com/problems/sum-of-square-numbers/description/
*
* algorithms
* Easy (32.62%)
* Likes: 373
* Dislikes: 247
* Total Accepted: 50.4K
* Total Submissions: 154.6K
* Testcase Example: '5'
*
* Given a non-negativ... |
ad56ff3fe18fbbf202208baa53c8fd1bf0bbfab8 | 38b9daafe39f937b39eefc30501939fd47f7e668 | /tutorials/2WayCouplingOceanWave3D/EvalResults180628-Eta/58.8/p | 893bf74fdf2e6f92b78d334253d2fb8f03d53563 | [] | no_license | rubynuaa/2-way-coupling | 3a292840d9f56255f38c5e31c6b30fcb52d9e1cf | a820b57dd2cac1170b937f8411bc861392d8fbaa | refs/heads/master | 2020-04-08T18:49:53.047796 | 2018-08-29T14:22:18 | 2018-08-29T14:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 187,089 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.1 |
... | |
1565feb1556b59822634ce78b82f684518c8dc71 | 4e83bd0ab8225427c1d3b6f1bebd3128416b842d | /Source/Renderer/NuklearGUIRenderer.h | fb3c1a6a85dc6e0286f0b75d532cb37c520572d9 | [
"MIT"
] | permissive | DavidTheFighter/KalosEngine | 2d7c33d1fae27dc1a70f73caf52d8a69303d40bb | 4c550114066bee1c41d08f38f5b692e567e96c27 | refs/heads/master | 2022-05-01T03:52:04.209638 | 2022-03-13T16:33:14 | 2022-03-13T16:33:14 | 161,925,778 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,264 | h | NuklearGUIRenderer.h | #ifndef RENDERER_GUIRENDERER_H_
#define RENDERER_GUIRENDERER_H_
#include <common.h>
#include <RendererCore/RendererEnums.h>
#include <RendererCore/RendererObjects.h>
class Renderer;
typedef struct
{
svec2 vertex;
svec2 uv;
svec4 color;
} nk_vertex;
typedef struct
{
Texture fontTexture;
Textu... |
9003c21e159c1b7571399513adb53d20f6314f43 | 50ea9e4aee22b625d8fff2ca3358facbfa2a3b59 | /servo-with-encoder/servo_with_controller/servo_with_controller.ino | 1baf271b0f9ebf24a8118bb1fc4103de55b2ebab | [] | no_license | Reales666/arduino-scripts | 87de1979fbed0ff4a16352bb744c1a1cd98a1aa6 | 7d959fc5cd1c1a9ba47fc6866fa9e22452f8abb4 | refs/heads/master | 2023-07-20T03:13:54.649008 | 2023-07-14T12:16:08 | 2023-07-14T12:16:08 | 244,210,027 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,813 | ino | servo_with_controller.ino | /*
This sketch shows how to control a 180º servo with a encoder.
*/
#include <Servo.h>
// Servo configuration
int SERVO_PIN = 9;
Servo myServo;
int servo_angle = 0;
int prev_servo_angle = 0;
// Encoder configuration
#define encoder_output_a 2
#define encoder_output_b 3
#define encoder_switch 4
int state_a;
int pr... |
7f986005067caa6045c1e6b1adc6c7f2b94182d3 | fd273c92bc61788fcd4c4cfb11d36cdc2ed4a816 | /src/Rendering/Utils/render_utils.h | 22c7d2afbf901fc0df68ea197676b2d336588913 | [] | no_license | halpersim/seeds | e1278c8c211f10db3745c3b272b8534b326d1a65 | de9a37acf42927e4fa7fd7d6e270e8ad745b5450 | refs/heads/master | 2023-07-14T14:11:20.252151 | 2021-05-23T09:50:48 | 2021-08-26T18:09:53 | 340,577,360 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,638 | h | render_utils.h | #pragma once
#include "uniform_naming.h"
#define STB_IMAGE_IMPLEMENTATION
#include <stb\stb_image.h>
namespace my_math {
int int_log(int base, int x){
int ret;
for(ret = 0; x != 0; x /= base, ret++);
return ret;
}
int int_pow(int exp, int x){
int ret;
for(ret = 1; x != 0; ret *= exp, x--);
return re... |
a2c386769d11921125734ce4a8753b570622ea17 | 3ae80dbc18ed3e89bedf846d098b2a98d8e4b776 | /header/Media/APE/APEFile.h | 7d824db1de2603bcfdeef1639608061f697892a9 | [] | no_license | sswroom/SClass | deee467349ca249a7401f5d3c177cdf763a253ca | 9a403ec67c6c4dfd2402f19d44c6573e25d4b347 | refs/heads/main | 2023-09-01T07:24:58.907606 | 2023-08-31T11:24:34 | 2023-08-31T11:24:34 | 329,970,172 | 10 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 291 | h | APEFile.h | #ifndef _SM_MEDIA_APE_APEFILE
#define _SM_MEDIA_APE_APEFILE
#include "IO/StreamData.h"
#include "Media/MediaFile.h"
namespace Media
{
namespace APE
{
class APEFile
{
public:
static Media::MediaFile *ParseData(NotNullPtr<IO::StreamData> data);
};
};
};
#endif
|
ef6b0f8553d437fd242a0ae2502a38ab27bbb73c | bd9de700605da2278a92020a2814b699daedec57 | /codility/lesson14_1_MinMaxDivision/lesson14_1.hpp | 6ab33353de31f9ff1a73cc31355520ab378cfc69 | [] | no_license | WuHang108/petit-a-petit | 8b177771e004341a166feb1a156153098f5d5d89 | e173df8333f9a4070aee5ee65603fed92d2abf6b | refs/heads/master | 2021-11-18T15:36:40.059510 | 2021-10-16T17:10:02 | 2021-10-16T17:10:02 | 230,759,303 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,015 | hpp | lesson14_1.hpp | #include "../basic_io.hpp"
using namespace std;
bool block_size_is_valid(vector<int>& A, int max_block_cnt, int max_block_size) {
int block_sum = 0, block_cnt = 0;
for(int n:A) {
if(block_sum + n > max_block_size) { // 超出最大大小限制时建立新块
block_sum = n;
block_cnt ++;
} else {
... |
4016a6180ebda372f2d79552bcd13c07fce6aca2 | 079323affaab612276ae508e042892051178a0a7 | /字符串操作/字符串操作/main.cpp | a77e83d81a341d67f9f22afc229c613067e31c4a | [] | no_license | Kyle-fang/CPP-Learning-Notes | a4416d4309646c517a62dde5a2c3caea6dcad162 | 9139559fcb63dc4f0cda7e731f3d85bd0b531c00 | refs/heads/master | 2020-07-06T09:32:34.699075 | 2019-09-21T07:50:19 | 2019-09-21T07:50:19 | 202,972,492 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,021 | cpp | main.cpp | //length和size函数
/*
#include<iostream>
#include<string>
using namespace std;
int main() {
string firstName;
string fullName;
firstName = "Alexandra";
cout << firstName.length() << endl;
cout << firstName.size() << endl;
fullName = firstName + "kyle";
cout << fullName.length() << endl;
cout << full... |
d5bb4afa47fac580858358e0aa0f6b87a03e9c38 | 9424d10937ccea19d08860379294b4dbeb4e2ad4 | /testing/wheel_ir_sensors/wheel_ir_sensors.ino | a926284ab68c77161db7ffe08f5004e0707f713e | [] | no_license | ProtoProtonas/TDP4_rover | 15a8f0941b7d402c7da30ee71d2cea2c9f809753 | 4a4441d54a47b351f099c5a549ad107c383c8cae | refs/heads/master | 2023-04-25T11:05:43.833697 | 2020-02-29T20:03:23 | 2020-02-29T20:03:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,602 | ino | wheel_ir_sensors.ino | // main loop timing
#define high 14
#define main_loop_frequency 100 // in Hertz
long int now = 0;
long int next_time = 0;
long int started = 0;
int period = 1000/main_loop_frequency; // in milliseconds
unsigned int up_counter = 0;
// motor angle (IR ON/OFF pairs)
#define motor_ir_led1 12
// motor speed variables -... |
9594e42b2c96f315be888395b39002e90f68cac1 | 83acc2dfef8b5ca2c81b859418be18b63144f20b | /libsrc/grabber/amlogic/AmlogicGrabber.cpp | 90d76a856902f1f4010b37fb348b50ef28ecf7bb | [
"MIT"
] | permissive | zlokomatic/hyperion.ng | c57e248111484b8a4f6314ad8ad4c2ffbb251441 | 4dfe1e87f14c24ee02b51f7aef0ec58ecaf71430 | refs/heads/master | 2020-03-23T15:28:13.968519 | 2018-07-20T19:28:49 | 2018-07-20T19:33:26 | 141,750,318 | 1 | 0 | MIT | 2018-07-20T19:29:27 | 2018-07-20T19:29:27 | null | UTF-8 | C++ | false | false | 7,913 | cpp | AmlogicGrabber.cpp | // STL includes
#include <algorithm>
#include <cassert>
#include <iostream>
#include <QFile>
// Linux includes
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/types.h>
// Local includes
#include <utils/Logger.h>
#include <grabber/AmlogicGrabber.h>
#... |
d0a2e6aa88d1b0a0a86acfa85081d55f37b29933 | a754da405bc3d2d2d1d8940d7d277c63bf2b7768 | /graphics/text_element.cpp | e3069737d2559ea78219f2edff0976d3a5b1ed32 | [
"Apache-2.0"
] | permissive | icyleaf/omim | 3a5a4f07890e6ad0155447ed39563a710178ec35 | a1a299eb341603337bf4a22b92518d9575498c97 | refs/heads/master | 2020-12-28T22:53:52.624975 | 2015-10-09T16:30:46 | 2015-10-09T16:30:46 | 43,995,093 | 0 | 0 | Apache-2.0 | 2019-12-12T03:19:59 | 2015-10-10T05:08:38 | C++ | UTF-8 | C++ | false | false | 3,565 | cpp | text_element.cpp | #include "graphics/text_element.hpp"
#include "graphics/overlay_renderer.hpp"
#include "graphics/glyph.hpp"
#include "graphics/glyph_layout.hpp"
#include "base/logging.hpp"
namespace graphics
{
TextElement::TextElement(Params const & p)
: OverlayElement(p),
m_fontDesc(p.m_fontDesc),
m_auxFontDesc(p... |
72b8988459b3d903f6571cc38651371ca7887bed | 2a2e65c2212b5b973cf412d314a2108eeb390dd7 | /src/gpu/convolution_gpu.cpp | b7922f38b7372ae8435328eb9c5dd1f0f3473690 | [
"BSL-1.0",
"Apache-2.0"
] | permissive | lws-team/clDNN | b6c567f0bda9415fa5486a49a175f1638cbde96e | 6f5c9f231ae720c106670a153ab60469d5a6ff2f | refs/heads/master | 2020-12-02T18:11:48.656930 | 2017-06-14T11:46:38 | 2017-06-14T11:46:38 | 96,490,804 | 0 | 0 | null | 2017-07-07T02:27:31 | 2017-07-07T02:27:31 | null | UTF-8 | C++ | false | false | 33,921 | cpp | convolution_gpu.cpp | /*
// Copyright (c) 2016 Intel Corporation
//
// 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... |
8877ed66ceefcb07c0ee207617c1264876e31043 | 87a600d36a5757969ead7e235c93e3530d72b43a | /abm_product/bak/app_guard/login_f.cpp | 19c9107c467da6f4c90a2f9f78fcdd0cb40eabef | [] | no_license | xkmld419/learning | 3c3cad407d03bf693bcd863794cca7fb8a5df99a | 128ffa1496c43c36b83f266522bd49b28184499f | refs/heads/master | 2023-07-12T16:54:50.647834 | 2021-08-21T15:41:42 | 2021-08-21T15:41:42 | 45,075,836 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,541 | cpp | login_f.cpp | /*VER: 2*/
/* Copyright (c) 2001-<2003> Wholewise, All rights Reserved */
/* #ident "@(#)login_f.c 1.0 2002/03/18 <AutoCreate>" */
#ifndef _LOGIN_F_Q_H_
#define _LOGIN_F_Q_H_
#endif
#include "login.h"
#include "ProcessInfo.h"
#include "mainmenu.h"
#include "password.h"
#include <unistd.h>
Control *login... |
6a828a40fb539a9cad40e85ede7d35ccb67b4bb8 | f0b1a191fdd5868839afca66361f1612ef9e57c7 | /GS/src/Fileutils.h | f1843cb5e905c29f2a6beb420f9ec35a2f72a6ba | [
"BSD-2-Clause",
"Zlib"
] | permissive | vsrz/CS699 | cfdf30a65c6903f0a0cabe024808ba2329fdf8bf | d10db61d263eaedb2447c5c1972f62fb10db0480 | refs/heads/master | 2020-06-08T22:04:26.615033 | 2014-11-16T06:49:41 | 2014-11-16T06:49:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 503 | h | Fileutils.h | #ifndef FILEUTILS_H
#define FILEUTILS_H
#include <fstream>
#include <string>
#include <iostream>
#include <stdlib.h>
#pragma once
class Fileutils
{
public:
static bool writeFileToDisk(std::string data, std::string filename, std::ios::openmode openmode = std::ios::app);
static std::string getFileExtension(std::stri... |
faf5b2650b5f90e45eac6f0ec5cccb83518af7a2 | d19b9a486e215ad1a43714b59ea1c87839690ae9 | /D3DX9 basic/cScene.h | cdad574e44549f0514d44faf7f8310c6309b93e3 | [] | no_license | wakeup5/Learning-3D-Lesson | f1d0647a2760e3c3e99ced1d2b4cd6d274b3c913 | 4b0a77411987284428ad56b52e90e574ed2d56d5 | refs/heads/master | 2020-04-23T19:07:35.004510 | 2015-10-14T05:19:19 | 2015-10-14T05:19:19 | 171,392,128 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 283 | h | cScene.h | #pragma once
class cScene
{
private:
public:
cScene(void);
~cScene(void);
//4총사함수를 추상함수로......
virtual void Init() = 0;
virtual void Release() = 0;
virtual void Update( float timeDelta ) = 0;
virtual void Render() = 0;
private:
};
|
b441238bb2c62950f438a8cc9ea9adfee3b0087c | 3eef0c9a03e78678b5392b42687840e24e43e03c | /Proyecto1/Temperatura/ejercicio4.cpp | 78b5d537351838884827a8d043905d1dde9ee330 | [
"MIT"
] | permissive | CallmeTorre/Sistemas_Distribuidos | b42e328fd20ce9c792dccbbd6a20d2486830ff00 | 32e444f37f459dc6a43c0de427f5b78d32f06ee2 | refs/heads/master | 2020-04-19T01:28:36.322563 | 2019-05-31T16:08:35 | 2019-05-31T16:08:35 | 167,873,115 | 1 | 0 | MIT | 2019-05-31T02:55:10 | 2019-01-28T00:01:51 | C++ | UTF-8 | C++ | false | false | 474 | cpp | ejercicio4.cpp | #include "Temperatura.h"
#include <stdlib.h>
#include <iostream>
using namespace std;
int main(){
Temperatura temp(32);
temp.printTempKelvin();
temp.printTempCelsius();
temp.printTempFarenheit();
temp.setTempFarenheit(32);
temp.printTempKelvin();
temp.printTempCelsius();
temp.print... |
66e9eb673b85549c342a58a5cf6ffedfe84c749b | 539afdb26abc5364ea24b1df5101163cfb0f75fe | /Backend/Sources/Discovery/Networks.inl | de6bd4a543d8eaa8472c78c8590ba9d69b4ad96f | [] | no_license | SophistSolutions/WhyTheFuckIsMyNetworkSoSlow | 78cb14e0426a52159e7953454a79ba94821aed8c | ef8a168d84c18e8ea57c0638cd182081be98a9ce | refs/heads/v1-Release | 2023-08-18T17:02:57.113091 | 2022-09-10T15:27:24 | 2022-09-10T15:27:24 | 82,410,140 | 12 | 1 | null | 2023-01-09T14:21:04 | 2017-02-18T19:15:50 | C++ | UTF-8 | C++ | false | false | 616 | inl | Networks.inl | /*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
#ifndef _WhyTheFuckIsMyNetworkSoSlow_BackendApp_Discovery_Networks_inl_
#define _WhyTheFuckIsMyNetworkSoSlow_BackendApp_Discovery_Networks_inl_ 1
/*
********************************************************************************
************... |
6cd418448f23b0c8f67856b8092e05f534b0f571 | e7b9f885fe533f0108f519b4fa61c62833197e7c | /TemplateLang/10-11_recursion.h | b489e18451444de0b5ed9fdecec1c188cabc396e | [] | no_license | nanlan2017/lang-cpp | 64770ad0c4d08e28d08b79439681f18f238646fa | bcbb90e20bcf86cceb99fe2e9644e8bb2ce11b0e | refs/heads/master | 2022-05-27T15:01:11.351121 | 2019-03-01T16:59:04 | 2019-03-01T16:59:04 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 6,474 | h | 10-11_recursion.h | #ifndef h_recursion
#define h_recursion
#include "10-10_cons_list.h"
//! 把递归都搞成尾递归
//! ▇▇▇▇▇▇▇▇方式:把循环更新的状态栈也放在递归参数中
//! ▇▇静态代码不存在对同一数据的多次求值: Fib<3>::Ret 无论出现多少次,只会求值一次 (不同于动态代码中的 fib(3) 调用)
//x==========================================================================================================
inline in... |
d9d56f02c526d65c09de01ea98b528d39a720a42 | 279cbc736b4ba079a2d97a26dc907639c0870ac8 | /Source/ProjectAlpha/Public/Items/PItem.h | b5e51491557f61e6a8eb80d60fc05f202e361904 | [] | no_license | DavidePonzini/ProjectAlpha | 8321e99babcbe99402ddb949c71bbefe70c7e4f7 | a4a8e42a7fe8cc9dbfb17ab53c42d9ccab090803 | refs/heads/master | 2021-01-17T01:00:31.350776 | 2017-02-03T16:47:12 | 2017-02-03T16:47:12 | 44,094,896 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 972 | h | PItem.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "ProjectAlpha.h"
#include "PItemSlot.h"
#include "PInventoryComponent.h"
#include "PItem.generated.h"
UCLASS(Blueprintable, BlueprintType)
class PROJECTALPHA_API UPItem : public UObject
{
GENERATED_BODY()
public:... |
0a3d60cc9b28f6915a6173e871f9485b576e2c3f | 2419ea588db0968952eb9cc8da28ef74d4ae695c | /C++/Q1 - Two Sum.cpp | 9e2218eca8acdab643c20af11529fd62e2907d5c | [] | no_license | kyeung7/LeetCode-Work | 6ac718b7c2b101544fd0276d1a066050d197bdad | c0464e520423b7ba2a56fffb52db03afc75bd5f2 | refs/heads/main | 2023-02-10T10:56:01.590797 | 2021-01-11T14:30:38 | 2021-01-11T14:30:38 | 314,261,722 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 994 | cpp | Q1 - Two Sum.cpp | /* Given an array of integers 'nums' and integer 'target', return (in
any order) the indices of the two numbers such that they add up to the
target. Each input has one solution, so no duplicate returns. */
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
// Create empty array
... |
90dae86510f5cedcd48faf7e01b4ef0958b16667 | 26cb8292150fbda8221abba4577f130985918e51 | /Zadanie3/Wektor.cpp | 9342a1cc9f66a7d8bb7f57cf41b76f6a9a50a7b3 | [] | no_license | Yumenoshi/Mathematics-in-Graphics | 5f10e03341747a9c36700848ff67b2c60ae353c7 | cd6e78ace95b7edc37eb494282e3511cca3e4cfe | refs/heads/master | 2020-05-04T21:02:42.148704 | 2019-06-06T08:54:57 | 2019-06-06T08:54:57 | 179,462,031 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,977 | cpp | Wektor.cpp | #include <iostream>
#include <math.h>
class Wektor {
private:
float x, y, z, w;
public:
//zadanie
Wektor(float x, float y, float z) {
this->x = x;
this->y = y;
this->z = z;
this->w = 0.0;
}
Wektor() {
this->x = 0.0;
this->y = 0.0;
this->z = 0.0;
this->w = 0.0;
}
Wektor(float value) {
this->x ... |
2609ad9e3115ac6bb1e1bfae7de1162b7d01d73b | 4fce4b0725e32dc383ee0e553eedbbdbc37bc647 | /arduino-esp8266/readable_4arduino/readable_4arduino.ino | 854dd60aee05bcb3e9030c02d683ed8806635459 | [] | no_license | thanh-coder/smartHome | 091b3bee4d87aef4b4e225893a30db3497cf2acd | f47ebc0406a592e7c556fdcf52d18195e88e41d5 | refs/heads/master | 2020-04-15T22:39:52.374057 | 2019-01-10T15:45:31 | 2019-01-10T15:45:31 | 165,081,605 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,688 | ino | readable_4arduino.ino | #include <ArduinoJson.h>
#include "dht.h"
#include <SoftwareSerial.h>
#include <SerialCommand.h>
// speaker define
int speaker = 9;
//motor define
int motorWind = 8;
//MQ2 gas define
int mq2Sensor = 6;
//PIR define
int pirSensor = 7;
//dht initialization
dht DHT;
#define DHT11_PIN A0
int temp = 0, humi = 0, gas = 0, ... |
bd606525b89365b75c33ef420c7477c426841edc | d14b5d78b72711e4614808051c0364b7bd5d6d98 | /third_party/llvm-16.0/llvm/include/llvm/ExecutionEngine/Orc/EPCIndirectionUtils.h | 354984b540a9fc65d898f9e92912edafea487ae9 | [
"Apache-2.0"
] | permissive | google/swiftshader | 76659addb1c12eb1477050fded1e7d067f2ed25b | 5be49d4aef266ae6dcc95085e1e3011dad0e7eb7 | refs/heads/master | 2023-07-21T23:19:29.415159 | 2023-07-21T19:58:29 | 2023-07-21T20:50:19 | 62,297,898 | 1,981 | 306 | Apache-2.0 | 2023-07-05T21:29:34 | 2016-06-30T09:25:24 | C++ | UTF-8 | C++ | false | false | 8,637 | h | EPCIndirectionUtils.h | //===--- EPCIndirectionUtils.h - EPC based indirection utils ----*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
7a5aaff83018af8fb069e66e21b941ceacf1ea81 | 083e6cb5db50cf4ef4760bf3dc9ce2900332b9f6 | /Codeforces_dp/A-apple.cpp | f38b013b56b8773ffaeb2acd93bd7e90c26e7480 | [] | no_license | Mostafiz2000/Dynamic-Programming | 6b90aa82cc5e510b5913edd408c317de578cc7a3 | 6f81a93ab8cfb0eb48004012f044fabdfcd0d222 | refs/heads/main | 2023-03-08T11:23:53.842563 | 2021-02-23T13:44:11 | 2021-02-23T13:44:11 | 341,560,739 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 542 | cpp | A-apple.cpp | #include <bits/stdc++.h>
#define mcm(a,b) (a*b/__gcd(a,b))
typedef long long ll;
using namespace std;
ll L=10000000000000ll,N,M=1,S,V[100005],a,b;
vector<ll> E[100005];
void f(int n, int p, ll d)
{
M=mcm(M,d);
if(d>S||d<0){cout<<S; exit(0);}
if(E[n].size()==1&&n>1)L=min(L,d*V[n]);
for(int v:E[n])if(... |
073b4eb4e9ce58f7282ff640559779d4b8672159 | fd02283e58d39c4e4068b98c02720ca4c5c176f2 | /windows/wrapper/impl_org_webRtc_RTCRtpTransceiverInit.cpp | 6f1e58beb4b4c7fbf23810469c5a39d61ffc91ee | [
"BSD-3-Clause"
] | permissive | fibann/webrtc-apis | 4dbfd3c3fc962250718be0e82a850e784dad6740 | 0d303d62f7e6483cf4b57c24ef295c487b0c28dd | refs/heads/master | 2021-08-18T05:56:40.132259 | 2019-05-07T15:55:13 | 2019-05-07T15:55:13 | 214,481,189 | 0 | 0 | BSD-3-Clause | 2019-10-11T16:21:52 | 2019-10-11T16:21:52 | null | UTF-8 | C++ | false | false | 3,995 | cpp | impl_org_webRtc_RTCRtpTransceiverInit.cpp |
#include "impl_org_webRtc_RTCRtpTransceiverInit.h"
#include "impl_org_webRtc_enums.h"
#include "impl_org_webRtc_RTCRtpEncodingParameters.h"
#include "impl_org_webRtc_pre_include.h"
#include "api/rtptransceiverinterface.h"
#include "impl_org_webRtc_post_include.h"
using ::zsLib::String;
using ::zsLib::Optional;
using... |
906db57b2a6680d233b883141c1d795c141f59ab | a2d278126e6af978afbdbd60ccae47ca4ef51191 | /10. Backtracking/0. Basics/3. Fibonacci/fibo.cpp | a58481dc304a63c55218afd6a46f19a97a2b33d3 | [] | no_license | rohinarora/InterviewBit | 4514599717426b16a3c7e6a657b215d16859ea16 | 35d46a3ec86be7e276eb7402588818a2b4788122 | refs/heads/master | 2020-12-09T10:54:06.895255 | 2020-01-18T21:28:00 | 2020-01-18T21:28:00 | 233,282,644 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,140 | cpp | fibo.cpp | #include <iostream>
#include <string>
#include <stdio.h>
#include <ctype.h>
#include <vector>
using namespace std;
using namespace std::chrono;
int interative_fibo(int n){ // idea of simulation
if (n<=1){
return n;
}
int res;
int p1=0;
int p2=1;
for (int i=2;i<=n;i++){
res=p1+p2;
p1=p2;
p2=r... |
12a30151b99cc4791bd1eb2606a83e16a0152c2c | 25aa3563f57ef8d32c2989d0ed239edbbb841228 | /BZOJ/bzoj1877.cpp | 72d5a2f4eb31da2177f8a51487615cd9a11b2566 | [] | no_license | tonglin0/Algorithm-Problems | 491e809b1d874cb6339cebde6f87ca7382af9b5a | 22d6ee385d67ac54dcf070f891f1e6053401e83f | refs/heads/master | 2020-04-08T19:24:24.304575 | 2018-11-24T17:00:15 | 2018-11-24T17:00:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,809 | cpp | bzoj1877.cpp | #include<cstdio>
#include<iostream>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<ctime>
#include<vector>
#include<queue>
#include<string>
#include<map>
#include<cctype>
#include<algorithm>
#define INF (int)1e9
#define lint long long
#define llu unsigned long long
#define eps 1e-8
#define MN 408
using na... |
85935d14c2e0bdd127068916fc644821164eb874 | ee23947a5d11a41cdaf1fe8b51fc8b50a21985cf | /Project/src/graphwindow.cpp | 9115b1c9e23daed387594f6646621279936766e4 | [] | no_license | hanley91/OO-Design-Project | 7540d87bdeadcdfede74c0e8c81396a35f2319a7 | 1309ae51a3a827f3df2d933dbe294a539ec233c2 | refs/heads/master | 2021-03-12T22:41:28.196329 | 2015-05-17T23:06:54 | 2015-05-17T23:06:54 | 35,785,995 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,326 | cpp | graphwindow.cpp | #include "graphwindow.h"
#include "ui_graphwindow.h"
#include <iostream>
#include <QErrorMessage>
#include <ctime>
GraphWindow::GraphWindow(QWidget *parent) :
QDialog(parent),
ui(new Ui::GraphWindow)
{
ui->setupUi(this);
QObject::connect(ui->visible, SIGNAL(pressed()), this, SLOT(visibleMean()));
... |
a5c55836afd42c0066ca53648bf6637e5c3ce666 | a4c22ce405514188e87c7258bcab33d4cd7f123a | /Mutex.cpp | a83ef5d4f0a861e8886c85730cc069b7d7424cdc | [] | no_license | odashi/DGS | 30f0b20724d6239a29209309b9ca43502f79a84b | 8d25e888db32f7f83f9447e4f2a434945bb48be1 | refs/heads/master | 2016-09-05T21:47:24.878232 | 2012-12-23T05:22:41 | 2012-12-23T05:22:41 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 878 | cpp | Mutex.cpp | // Mutex.cpp
#include "Mutex.h"
#include "Game.h"
// 共通の初期化処理
void DGS::Mutex::open()
{
// ミューテックス生成
mutex_ = ::CreateMutexA(NULL, TRUE, name_.c_str());
Win32ErrorCode err;
if (!mutex_)
throw Win32Exception(err);
// 既に取得されているかどうか
duplicated_ = (err == ERROR_ALREADY_EXISTS);
}
// c-tor
/... |
905b2c2e711d2d50c71c333dc20705cbf6971c52 | 0860e9e03bd624e518a41fd1e27008818907b78d | /src/ui/vartext.h | daa2bdcf520f1512a0da09f16d4c3b7700ed9f36 | [] | no_license | phi-fell/GRAEngine | bd2b734200542c2059a7608345395118ed904a01 | 64698335d182aeb4ccacec3ae2e956a39dba99aa | refs/heads/master | 2021-10-27T15:21:23.320691 | 2018-10-31T19:27:23 | 2018-10-31T19:27:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,039 | h | vartext.h | #ifndef GRAE_ENGINE_VARTEXT_H
#define GRAE_ENGINE_VARTEXT_H
#include "text.h"
#include "system/environment.h"
namespace GRAE {
class VarText : Text {
private:
std::string raw;
public:
VarText(Resources *res, Gen *gen) : Text(res, gen) {
raw = string;
refresh();
}
virtual ~VarText() {
... |
c3190899f89b7feb0f942ce1dad47d22ee77dbd8 | fb594e45f79a3c137cac55b29375d216899bb513 | /RoboTV/src/thanatos.cpp | c22b5fb0b01c68c53244f09fdefa5d5f5f9f417d | [] | no_license | pancreasio/Thanatos_Arrives | 21338e53f1179a219e8a7ffabd1721e60fba368f | 9a1daed93724f453d750d80ff2ed59c39b9da561 | refs/heads/master | 2020-12-04T06:09:33.424770 | 2020-02-27T12:24:30 | 2020-02-27T12:24:30 | 231,647,458 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,094 | cpp | thanatos.cpp | #include "thanatos.h"
namespace gamespace
{
thanatos::thanatos()
{
}
thanatos::thanatos(float xPosition, float yPosition, cursor* gameCursor)
:animatedSprite(xPosition, yPosition, 24.f, 24.f, "../res/assets/thanatos_spritesheet.png", 2, 3, 8, 8)
{
cursorInstance = gameCursor;
AABB.x = actualRectangle.x +... |
f5a82f36a26674ac01ad700d1268098220b2ab78 | 8d2b0740e3f9f4ac079634d05829ecf7b114cf2b | /static_analyzer/quirrel_parser.h | 4fb73481d6ffb755b1e509cdc4ec20eaa081113f | [
"MIT"
] | permissive | GaijinEntertainment/quirrel | aeb7d029ebc3bbe952bcf7452d3c046da0b0aa74 | 480f6b34b37766ef9cf2ffe3fe64fad9eea950a0 | refs/heads/master | 2023-08-24T09:31:55.594394 | 2023-08-22T13:27:55 | 2023-08-22T13:43:50 | 196,634,891 | 84 | 25 | MIT | 2023-09-13T10:38:45 | 2019-07-12T19:30:47 | C++ | UTF-8 | C++ | false | false | 4,882 | h | quirrel_parser.h | #pragma once
#include "quirrel_lexer.h"
#include <new>
#define ALLOW_FUNCTION_PARAMS_WITHOUT_COMMA 1
#define ALLOW_ASSIGNMENT_IN_LAMBDA 1
extern FILE * out_stream;
#define NODE_TYPES \
NODE_TYPE(PNT_UNKNOWN, "unknown-op") \
NODE_TYPE(PNT_NULL, "null") \
NODE_TYPE(PNT_INTEGER, "int-number") \
NODE_TYPE(PNT_... |
b48342e0bf9038cc7462cfe85fcf6b2cb157bbc8 | f7acf859c264f115af38103142c7ed0304177d0a | /src/vehicle.cpp | 711e8ab563491af75f3bf42211d7e23e96be6d1b | [
"BSD-3-Clause"
] | permissive | patnolan33/ENPM808_Final | 90a7e334f5de3fe671c9df13ec38623efcd81504 | 6a7c9c7f561521805d625b5acc5021c79635e50f | refs/heads/master | 2021-01-20T00:39:43.030920 | 2017-05-09T20:51:12 | 2017-05-09T20:51:12 | 89,165,820 | 0 | 1 | null | 2017-04-25T14:01:57 | 2017-04-23T19:11:48 | C++ | UTF-8 | C++ | false | false | 3,787 | cpp | vehicle.cpp | /*********************************************************************
*
* Software License Agreement (BSD License)
*
* Copyright (c) 2017, patnolan33
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condi... |
662b4824e12d6aaaff3913a9505f6fc3dd40f5aa | 72e77a6bb54f1ef043cc4a9208b65a115fe3fee4 | /source/include/vm_interpreter_opcode_funcs.hpp | 433b6725b0d9b69b0751d7ce99842cfaa25e1e3c | [] | no_license | 0xABADCAFE/exvm | f69b20be6cd2c506d354e8c8ea319fd919f4b386 | 7b73989f0241d408e50a085d53a67de1c135560d | refs/heads/master | 2021-06-03T02:30:28.032960 | 2020-05-07T16:43:34 | 2020-05-07T16:43:34 | 93,942,045 | 5 | 0 | null | 2018-04-10T13:53:12 | 2017-06-10T13:50:30 | C++ | UTF-8 | C++ | false | false | 2,007 | hpp | vm_interpreter_opcode_funcs.hpp | //****************************************************************************//
//** **//
//** File: vm.hpp **//
//** Description: Virtual Machine definitions *... |
9c719fdbc32817f526041d5b4d9e233a524d73b1 | ec9efe0040e2fad8c552dcd81796fe4263576a2b | /src/rabbits_and_foxes/raf_gui/visual_world.cpp | 96f19225a83917092c48cb05495b4636982e9297 | [] | no_license | menuet/experiments | 5a9be1c40b2ac123c99e71136e311ddd5b48bf0e | ac34c3d4f940e94eb8ed0527830fb3f7135e286b | refs/heads/master | 2020-12-12T05:37:18.527925 | 2020-05-09T22:51:20 | 2020-05-09T22:51:20 | 34,752,991 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,077 | cpp | visual_world.cpp |
#include "visual_world.hpp"
#include "board.hpp"
#include "pieces_ranges.hpp"
#include "visual_app.hpp"
#include "visual_config.hpp"
#include <sdlxx/assets.hpp>
namespace raf { namespace raf_v1 { namespace visual {
World::World(sdlxx::Repository<sdlxx::Texture>&& textures)
: m_textures{std::move(textures... |
65748d226a4025192a93de41b46eae7fa87bb934 | 367e8612cb116ac46d08856127a05d78d1fc03f1 | /Engine/OGF-Core/Core/Types.h | 53a2cfb6349f4ac805bc8ae2e7406799fba5647b | [
"MIT"
] | permissive | simon-bourque/OpenGameFramework | a1c848ec9b203d23831a07dbca978b93495fb41d | e0fed3895000a5ae244fc1ef696f4256af29865b | refs/heads/master | 2023-02-08T17:44:21.387079 | 2020-12-22T20:52:48 | 2020-12-22T20:52:48 | 83,928,624 | 5 | 0 | MIT | 2020-12-22T20:52:50 | 2017-03-04T22:24:01 | C++ | UTF-8 | C++ | false | false | 273 | h | Types.h | #pragma once
#include <cstdint>
typedef int8_t int8;
typedef uint8_t uint8;
typedef int16_t int16;
typedef uint16_t uint16;
typedef int32_t int32;
typedef uint32_t uint32;
typedef int64_t int64;
typedef uint64_t uint64;
typedef float float32;
typedef double float64;
|
4db58950c85b2c4ae615f73d20d56fe27b78ec41 | 8cc7062f4355ddb8f905724a9f2a2ef3e8eb8acb | /main.cpp | b17a089ab7fb7fed0787bbe8a42106173ac322f3 | [] | no_license | Magda98/cpp-lab | 553198174d2c5211cc8504f88c42a0a8b42393e1 | b9049e4ff655a2e9ff06959be7ef5b3dd7f14815 | refs/heads/master | 2021-11-30T07:36:39.933338 | 2019-01-21T22:47:05 | 2019-01-21T22:47:05 | 161,403,872 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,301 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include "Data.h"
#include "Napis.h"
#include "Pracownik.h"
#include "ListaPracownikow.h"
#include "Kierownik.h"
//L03 Kochman Magdalena
int main() {
int war = 1;
char x;
Napis imie, naziwsko, napis;
int lp;
bool kier = false;
Data data(1,1,1);
ListaPracownikow lista;
... |
9004bfef7f08412ead14f0081db7b9f5aa21cb8e | ec2d2b50d7128bd5a4a5d64deb72c94999846dc4 | /Hexapod/SteeringControl.h | 09095224c76b138416a7ad868de305098ff9df76 | [] | no_license | etienne-p/ArduinoHexapod | 7c174d8c3608afd1627c10b3d835375cea61f3a4 | b6c980792ffb74dbdc3a6f97c22f57d10aba7119 | refs/heads/master | 2021-01-11T17:54:33.464516 | 2017-03-09T01:52:10 | 2017-03-09T01:52:10 | 80,072,781 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 310 | h | SteeringControl.h | #ifndef STEERING_CONTROL_H
#define STEERING_CONTROL_H
#include <RCSwitch.h>
#include "Vec2.h"
#include "Util.h"
#include "Consts.h"
class SteeringControl
{
public:
void setup();
void update();
float getLeft();
float getRight();
private:
RCSwitch mySwitch;
float left;
float right;
};
#endif
|
1b598a0755a44713c0fcfcea9866c33c03dfca39 | 52b45e7f578edaca886a367ab311b05c580b7f14 | /memory_mapped_file.h | a5d5b8710e6d5cc30dd644c00af597c6f684927e | [
"MIT"
] | permissive | ebudai/sprylog | 070474594b9250c343f079e8ad4f1d8af3c212f5 | 4315fe2abda9494f4b6e7e2606ec8c97dea78e0d | refs/heads/master | 2021-01-19T11:05:59.546555 | 2017-04-23T15:59:10 | 2017-04-23T15:59:10 | 87,929,991 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,902 | h | memory_mapped_file.h | #pragma once
#define NOMINMAX
#include "argument.h"
#include <algorithm>
#include <Windows.h>
namespace spry
{
struct memory_mapped_file
{
memory_mapped_file(const char* filename, uint64_t page)
: base(nullptr)
, offset(0)
, file_handle(INVALID_HANDLE_VALUE)
, mapping_object(INVALID_HANDLE_VALUE)
{... |
aa0be8d4f5c1d2da448d63d17bb8bf1ba5bd3e10 | 1cebd4251cd4cc093427501e3f71cb2d0cdaad41 | /SistemaAlzeimer/Arquivo.h | 255e4b7f935ff7d48d2250bb33eb36b11e4487c8 | [] | no_license | IgorBertuol/TrabalhoAlzeimer | f863b5e71799d5b5cd4580d7f0036e5c5e996de2 | c37a1b422f4e6df97a4b090694a85d8632be9664 | refs/heads/master | 2021-01-02T09:32:45.289269 | 2014-10-30T01:16:52 | 2014-10-30T01:16:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 270 | h | Arquivo.h | #include <fstream>
#include "Paciente.h"
#include "Lista.h"
//#include "Tratamento.h"
#include <cstdlib>
#ifndef ARQUIVO_H
#define ARQUIVO_H
class Arquivo{
public:
fstream arquivo;
void escreverArquivo(Lista*);
Lista *lerArquivo();
};
#endif // ARQUIVO_H
|
7e08c57df154c5805bf2591c6af166b78cbe90c5 | 39e908318696a9f43d4de8e05be1c4676d95def6 | /Grade/Source.cpp | 93ab1f92fd67f0269cad00fffb6d0e98a3026bde | [] | no_license | Napassawan/Grade | 8a4fa9984503ad40139933555d387e09672ce1f0 | c4d4ad6d4b8e9d952598437dd4592ff0cc4ed2d7 | refs/heads/master | 2022-12-29T06:38:36.943442 | 2020-10-23T17:27:09 | 2020-10-23T17:27:09 | 306,703,302 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 567 | cpp | Source.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
char n;
void grade(char);
int main()
{
printf("Enter grade: ");
scanf("%c", &n);
grade(n);
}
void grade(char n)
{
if (n == 'A' || n == 'a')
{
printf("The score is [80,100]");
}
else if (n == 'B' || n == 'b')
{
printf("The score is [70,80)");
}
else if (... |
8ffd37291d3242c551cfe56c93b174e313b30cd1 | ffb19ac43e565a82bec3512829892b63faca2cc4 | /InputOutput/SteadyReader.h | ce562de719422a2e39319934c5ab0242aeab88d7 | [] | no_license | arashkarshenass/Harmonic2D | 82dd6fefbeed791fab140659c796c54ea92a7c03 | 9664c60dd4ca33c354f699b3a4577b8110e44780 | refs/heads/master | 2020-03-25T09:09:02.901437 | 2018-08-09T03:38:24 | 2018-08-09T03:38:24 | 143,650,254 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 460 | h | SteadyReader.h | /*===================================
Steady Solution Class Header
====================================*/
#ifndef INPUTOUTPUT_STEADYREADER_H_
#define INPUTOUTPUT_STEADYREADER_H_
class Mesh;
class SteadyReader {
public:
SteadyReader(char pubname[],Mesh*);
double** GetPrimitiveDomain() const;
double** GetUnDom... |
e0877143e3d09b083852a2c5b8d192bcfba30247 | e140c1c7087d6a4e130ebde2ce7962c40ee7fd0c | /codeforces/1288/D.cpp | 5313a922d06b5d8302c4df5d4ee1b308903c0a8c | [] | no_license | diptayan2k/CP-Submissions | 543ccf94b4d43b6f040f975ccce834e883a5efc7 | dc32f1dd474cf250f71795f991132f3d52cc1771 | refs/heads/master | 2023-02-05T15:26:51.480986 | 2018-07-03T14:25:00 | 2020-12-21T10:20:15 | 323,290,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,545 | cpp | D.cpp | #include <iostream>
#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ll long long int
#define f(i,a,b) for(ll i=a;i<=b;i++)
#define g(i,a,b) for(ll i=a;i>=b;i--)
#define F first
#define S second
#define mp make_pair
#define pb push_back
#define mh make_heap
#... |
2685dc668c99dd0e46915f40529b3b49fa9db258 | 95a43c10c75b16595c30bdf6db4a1c2af2e4765d | /codecrawler/_code/hdu4930/16214979.cpp | 130e133fbaa7cd705bbb00f4523c723071eedf3f | [] | no_license | kunhuicho/crawl-tools | 945e8c40261dfa51fb13088163f0a7bece85fc9d | 8eb8c4192d39919c64b84e0a817c65da0effad2d | refs/heads/master | 2021-01-21T01:05:54.638395 | 2016-08-28T17:01:37 | 2016-08-28T17:01:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,549 | cpp | 16214979.cpp | #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <string>
#include <queue>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
#define RD(x) scanf("%d",&x)
#define RD2(x,y) scanf("%d%d",&x,&y)
#define clr0(x) memset(x,0,sizeof(x))
typedef long long LL;
int u... |
822076e4c45cd00d2782ebb225ec0553ca53e6c1 | b35d9ba06f808245bd14b2d9e6b798e66d6b110f | /TerrainRenderer/TerrainRenderer/FPS.h | 8de482c8c55ca8daf4bedd3714cdfe98bc2e1047 | [] | no_license | kbliss94/TerrainRenderer | afcb2352d4def6c4c1f72d8b58cd9fb795f3ae60 | 70ae692f5c818e354d2dbf7aa8fa348ae4ba4fbe | refs/heads/master | 2021-01-22T02:04:36.854951 | 2017-07-28T05:05:37 | 2017-07-28T05:05:37 | 92,331,522 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 469 | h | FPS.h | #ifndef _FPS_
#define _FPS_
#pragma once
//linking
#pragma comment(lib, "winmm.lib")
#include <windows.h>
#include <mmsystem.h>
namespace TerrainRenderer
{
class FPS
{
public:
//!Constructor
FPS();
//!Copy constructor
FPS(const FPS& rhs);
//!Assignment operator
FPS& operator=(const FPS& rhs);
//... |
dd063ff6f9c6bfd98eb708a2446ac5e8a52fe655 | 4d0a3d58bd66e588a50b834a8b8a65a5dac81170 | /Graphics/42run/sources/parsing.cpp | fd1674fadcca98245ff54708f07b622d8049fb4f | [] | no_license | fredatgithub/42 | 0384b35529a42cf09bbe6dc9362b6ad5c5b3e044 | 7c1352ab9c8dda4a381ce5a11cd3bbbfad078841 | refs/heads/master | 2023-03-17T09:47:48.850239 | 2019-12-15T18:13:13 | 2019-12-15T18:13:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,035 | cpp | parsing.cpp | #include <fcntl.h>
#include <unistd.h>
#include "gnl.h"
#include "parsing.h"
static void read_float(char const *s, float *values, int nb_values)
{
char **tmp;
int i;
i = 0;
tmp = ft_strsplit(s, ' ');
if (tmp && ft_strlen_tab(tmp) >= nb_values)
{
while (i < nb_values)
{
values[i] = atof(tmp[i]);
... |
a87e100314aa8edfc7ebf1120767e31a0a319261 | 316ae195b731b05b2f5a08d6e666efa08c48d5d9 | /lib/program.cpp | af59c395ae0eaee00a10914d3ca1770b1e5af5a3 | [
"MIT"
] | permissive | Mogby/Processor | 7110a6bf997f8e8f4e6f3b93ed10c779b94acd73 | 6a2c0ea9ebddebb218377cf15b59ba02c7019758 | refs/heads/master | 2020-07-22T01:02:43.334328 | 2019-09-07T20:51:44 | 2019-09-07T20:51:44 | 207,024,674 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,005 | cpp | program.cpp | #include "program.hpp"
#include "instruction.hpp"
#include "util.hpp"
#include <fstream>
#include <regex>
namespace NCPU {
void TProgram::ReadFromAsmFile(const TString &filename) {
Wipe();
TString asm_line;
std::vector<TString> asm_lines;
std::ifstream input(filename);
while (std::getline(input... |
a2d065e8ef56323a91a56f14cffa490cd6cf966e | 44ffe14c37baf3b16932c00677d8b35575f32755 | /src/xtopcom/xdata/xdata_defines.h | 9ca8364bd2efb9847f3de1ec678bcb6f755c6686 | [] | no_license | telosprotocol/TOP-chain | 199fca0a71c439a8c18ba31f16641c639575ea29 | 1f168664d1eb4175df8f1596e81acd127112414a | refs/heads/master | 2023-07-25T01:24:34.437043 | 2023-06-05T01:28:24 | 2023-06-05T01:28:24 | 312,178,439 | 13 | 46 | null | 2023-07-18T01:09:29 | 2020-11-12T05:38:44 | C++ | UTF-8 | C++ | false | false | 515 | h | xdata_defines.h | // Copyright (c) 2017-2018 Telos Foundation & contributors
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
#include <string>
#include <vector>
#include "xdata/xdata_common.h"
#include "xdata/xblock.h"
#include "xba... |
251a5b20758e85f20013c35eda99a0f99d7cab68 | 1aaaf8af0d720b00c03454cc105e3e99ebdd993b | /2336 [HNOI2011]任务调度((模拟退火或)二分答案+贪心).cpp | ede7915f1ec486f18b1ab8e0c77969d91cc0df05 | [
"Apache-2.0"
] | permissive | wwt17/BZOJ | 2b6858fb68c3654a9c18861f1e3775c825e539fd | b8b41adf84cd91f68616149dcfdf374b9721b11c | refs/heads/master | 2021-01-20T17:26:29.071661 | 2018-10-02T17:02:35 | 2018-10-02T17:02:35 | 63,025,417 | 12 | 6 | null | null | null | null | GB18030 | C++ | false | false | 2,691 | cpp | 2336 [HNOI2011]任务调度((模拟退火或)二分答案+贪心).cpp | /*
可以模拟退火,2^n枚举第3类的方案,先按某个值排序,随机交换两个位置
原创确定性算法:同样2^n枚举第3类的方案,有如下性质:1.A机器的安排一定是所有第1类在前、第2类在后,B机器同样;2.第1类的在两机器中的相对位置相同,第2类同样。这样就可以二分答案,对于每一类,前面的挤在最前面,后面的挤在最后面,记录当前放完的位置的两个指针的差dis。合法方案必须满足a<=dis(不重叠)。然后贪心地放使得dis减小最大的合法方案。
*/
#include <cstdio>
#include <algorithm>
#include <queue>
using namespace std;
const int N=22;
int ... |
86717f163eb9fddf984cbd5c04f2bd67cfbb39c1 | cd790fb7e8ef78b1989531f5864f67649dcb1557 | /uva12897(DecodingBabyBoos).cpp | 079ad91e5eb93bef5cd64a0f02a0d76f95ca39d1 | [] | no_license | FatimaTasnim/uva-solution | 59387c26816c271b17e9604255934b7c8c7faf11 | c7d75f0a5384229b243504dfbef4686052b9dea8 | refs/heads/master | 2020-03-27T22:23:18.611201 | 2018-10-23T05:53:46 | 2018-10-23T05:53:46 | 147,226,519 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 684 | cpp | uva12897(DecodingBabyBoos).cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
string str,st;
char ch1,ch2;
int t,p;
scanf("%d",&t);
while(t--)
{
cin>> str;
st="ABCDEFGHIDKLMNOPQRSTUVWXYZ";
scanf("%d",&p);
getchar();
for(int i=0;i<p;i++)
{
scanf("%c %c",&ch... |
0c64814e322c405e92a92a6246b87b3909f46747 | ec23361e00e5ceb661205689a3b902d16eb62a90 | /KeyBot.cpp | 46b4b10769bd3bdcc48f9e8e084f7d5125699a6c | [] | no_license | kleborgn/KeyBot | 90b2325148ae6ccf8843424c1388a08c9b72b087 | 50068e5b1735f951742bd6373e272ad399ebd23a | refs/heads/master | 2022-11-06T20:21:26.992702 | 2020-07-08T15:57:11 | 2020-07-08T15:57:11 | 278,133,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,079 | cpp | KeyBot.cpp | #include <iostream>
#include <Windows.h>
#include <vector>
void ecrireTexte(std::wstring texte) {
std::wstring msg = texte;
std::vector<INPUT> vec;
for (auto ch : msg)
{
INPUT input = { 0 };
input.type = INPUT_KEYBOARD;
input.ki.dwFlags = KEYEVENTF_UNICODE;
... |
fe6f36689c85fd320b70ef6c703b16e838cc5905 | 7abbb21f2734f7bb72d125eef2bc6114abb28043 | /src/link/TimedPacket.h | 8acb105693c8b2679c44ee66d58946cbb8d8f6f5 | [
"MIT"
] | permissive | dneuge/cvr | 4fbe7246d20185941d85b769d2801e6eb097a11b | 516547dca0672c92aa4f4a37712e6135e7f6b011 | refs/heads/master | 2021-01-17T17:24:51.884891 | 2016-07-24T21:19:56 | 2016-07-24T21:19:56 | 64,080,149 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 343 | h | TimedPacket.h | #ifndef TIMEDPACKET_H
#define TIMEDPACKET_H
class TimedPacket {
public:
TimedPacket(unsigned long long, unsigned long long, char*, unsigned long long);
unsigned long long index;
unsigned long long timestampMillis;
char* data;
unsigned long long dataLength;
};
#endi... |
b15bd7bbf5dc77aa1877b58d700f6bc31da315a6 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/b6/6a182702c72414/main.cpp | 5c45e212dd4f20b68d9297a939c45c900e1cfeef | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 169 | cpp | main.cpp | #include <cstddef>
int main()
{
const std::size_t N = 100;
int* a = new int[N];
for (std::size_t n = 0; n < N; ++n)
a[n] = n;
delete[] a;
} |
043366512fd2aac4389a469a5342e0642f4cbcfb | 775b2a3073cd6f95dc0ba0b1e59152ed81c2eca5 | /Hack and Slash/Hack and Slash/src/Window.cpp | 250ecaa4e475e075c3915db6d255b4bbd990b4a9 | [
"MIT"
] | permissive | JoanStinson/HackAndSlash | bb21400d60318d6300b8eade79eb6ab8fd5c00ad | db4881a6830e2358939708533ef15494aba9adbf | refs/heads/master | 2022-09-29T14:02:37.880932 | 2022-09-16T17:28:26 | 2022-09-16T17:28:26 | 205,892,711 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 778 | cpp | Window.cpp | #include "Window.h"
#include <iostream>
Window::Window(const string &name, const int screenWidth, const int screenHeight, const int screenScale)
: NAME(name), SCREEN_WIDTH(screenWidth), SCREEN_HEIGHT(screenHeight), SCREEN_SCALE(screenScale) {
// Setup SDL
if (SDL_Init(SDL_INIT_EVERYTHING) != 0) {
SDL_Quit();
co... |
24de51870e2d8f2a77eaab4602c9417e0eafeea2 | fec94f8104b82de6b8a68aeb9d5b5626fc270f81 | /MPAGSCipher/processCommandLine.cpp | aacf5bc9da90754b8e302e5031099e4fbbe7ed24 | [
"MIT"
] | permissive | artemis-beta/mpags-cipher | 955f8152bb7822aad68ac13429880f3183aae3bb | 2f868e3a0c1c98f15a8d4682971e9e1cd31743ee | refs/heads/master | 2021-01-21T07:30:13.563330 | 2015-11-27T15:48:05 | 2015-11-27T15:48:05 | 44,805,046 | 0 | 0 | null | 2015-10-23T10:02:42 | 2015-10-23T10:02:42 | null | UTF-8 | C++ | false | false | 3,374 | cpp | processCommandLine.cpp |
//**************************************************************************************
//
// Command Line Input Checking Function
//
// Kristian Zarebski, October 30th 2015
//
// Checks user input and also returns help if requested
//
//***************************************************************************... |
c59f19c7e63656da1dcd1bd041cea79342540da6 | 8a4aa8a32a25557c64e5d8d2d280c97156de0d34 | /OpenTESArena/src/World/Province.cpp | 2c382c4fb4606071bdffbb18539681a37b311125 | [
"MIT"
] | permissive | basecq/OpenTESArena | c7cb83a52cf0f9c74677fa1974389c90d2684979 | 5e9b76de631c3bd8a9cbeead12eef04bd3c9767a | refs/heads/master | 2021-01-22T19:32:09.232031 | 2016-04-11T21:54:09 | 2016-04-11T21:54:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,463 | cpp | Province.cpp | #include <cassert>
#include <map>
#include "Province.h"
#include "LocationName.h"
// City-state/Town/Village map location names. Doesn't include dungeons.
const auto ProvinceCivilizations = std::map<ProvinceName, std::vector<LocationName>>
{
// Black Marsh.
{ ProvinceName::BlackMarsh, { LocationName::Al... |
aaf92c58bb3fbfc999c16b73ee0b1c42d505b019 | 785df77400157c058a934069298568e47950e40b | /include/TModel_Surface.hxx | e3411b6975e7db4c41bdf55bc5e5da399df411f1 | [] | no_license | amir5200fx/Tonb | cb108de09bf59c5c7e139435e0be008a888d99d5 | ed679923dc4b2e69b12ffe621fc5a6c8e3652465 | refs/heads/master | 2023-08-31T08:59:00.366903 | 2023-08-31T07:42:24 | 2023-08-31T07:42:24 | 230,028,961 | 9 | 3 | null | 2023-07-20T16:53:31 | 2019-12-25T02:29:32 | C++ | UTF-8 | C++ | false | false | 2,815 | hxx | TModel_Surface.hxx | #pragma once
#ifndef _TModel_Surface_Header
#define _TModel_Surface_Header
#include <Entity2d_Box.hxx>
#include <Entity3d_Box.hxx>
#include <TModel_Entity.hxx>
#include <GModel_SurfaceGeometry.hxx>
#include <TModel_FaceOrientation.hxx>
#include <vector>
#include <memory>
namespace tnbLib
{
// Forward Declarations
... |
9dfaf7a493ff8bbe8f13f7ed5c6f676550cf81bf | 29ea99fef222cd816098044917037d5e221c3c6e | /common/Matrix4.cpp | ae27739c35d86150c3b9cf2b16f4be794416483f | [] | no_license | msavva/stanford-scene-database | 6178bade67a2aff4b8766b28b3fa4bad2fb05719 | a077ae379b8e5de63f78f58c4a9d7f06f8152f67 | refs/heads/master | 2016-09-05T11:11:28.901823 | 2015-03-26T05:25:01 | 2015-03-26T05:25:01 | 32,908,918 | 17 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 5,767 | cpp | Matrix4.cpp | //
// Matrix4.cpp
//
#include "Matrix4.h"
Matrix4 Matrix4::Transpose() const
{
Matrix4 Result;
for(unsigned int i = 0; i < 4; i++)
{
for(unsigned int i2 = 0; i2 < 4; i2++)
{
Result[i2][i] = _entries[i][i2];
}
}
return Result;
}
Matrix4 Matrix... |
7417abc49c9c50f1f7953011e8ea00b9bdeb5879 | e29c1365c01a693c5fff034eb17c6080372fdb31 | /scripts/scripthelperbb_stub.cpp | f2ae323104f9e56861e46cb6f7dea4fa5160a522 | [] | no_license | ClaudiuHNS/OGLeague2 | 574968399bf1141bb03c978ceadbb0c1d8f6b580 | e974de5a2e15d6b403fbf2aa739de25dedad36df | refs/heads/master | 2020-05-24T17:54:23.468796 | 2017-06-08T01:32:59 | 2017-06-08T01:32:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,253 | cpp | scripthelperbb_stub.cpp | #include "scripthelperbb.h"
void ScriptHelperBB::BBSetCameraPosition(sol::stack_object passThrough, sol::stack_object perBlockParams)
{
}
void ScriptHelperBB::BBIsPathable(sol::stack_object passThrough, sol::stack_object perBlockParams)
{
}
void ScriptHelperBB::BBTeleportToKeyLocation(sol::stack_object passThrough, so... |
b7a69817695ce3916bc1010b9bc8691cda72d42c | 091afb7001e86146209397ea362da70ffd63a916 | /inst/include/nt2/include/functions/negs.hpp | 2ef68c2814605c4ece541826c3f2e0ffed8c9b9e | [] | no_license | RcppCore/RcppNT2 | f156b58c08863243f259d1e609c9a7a8cf669990 | cd7e548daa2d679b6ccebe19744b9a36f1e9139c | refs/heads/master | 2021-01-10T16:15:16.861239 | 2016-02-02T22:18:25 | 2016-02-02T22:18:25 | 50,460,545 | 15 | 1 | null | 2019-11-15T22:08:50 | 2016-01-26T21:29:34 | C++ | UTF-8 | C++ | false | false | 158 | hpp | negs.hpp | #ifndef NT2_INCLUDE_FUNCTIONS_NEGS_HPP_INCLUDED
#define NT2_INCLUDE_FUNCTIONS_NEGS_HPP_INCLUDED
#include <nt2/arithmetic/include/functions/negs.hpp>
#endif
|
52bdf2149ccf3bc3b0d1623f68b7d46461055b0c | a20685c0761987c4c1b4d75402f782d560d9e39b | /src/DAQ.hh | 6e5f14cb46f6515499fe24a910a32c63de9c87a7 | [
"MIT"
] | permissive | satriabismiansyah/quadcopter_controller | 74a872b0e6821a479ad3bdc6cfafb524d583c1c5 | bf0246f5bd6523a74f9e8dbf3522d6a525170166 | refs/heads/master | 2020-12-30T11:40:10.953606 | 2016-06-19T06:35:55 | 2016-06-19T06:35:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 59 | hh | DAQ.hh | // place holder for DAQ module. Currently not part of build |
1264a62d2b4fa5d4da6f3810b6cc5006f6817a34 | 40582adf8e069725d919874ff119b565478aec9c | /twil/ui/window.hpp | 8c448efc6dcab7c037d61ee19c10bf2e0af113d4 | [] | no_license | det/Twil | 010de64e5fc33b2acae3c2a2bdc1b024ff91a91c | 75bc2c2a120e32c28a72ee15dec6388434723644 | refs/heads/master | 2021-01-10T20:05:14.347599 | 2014-12-30T22:03:00 | 2014-12-30T22:03:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,199 | hpp | window.hpp | #pragma once
#include "window.hxx"
#include "application.hxx"
#include "container.hpp"
#include "keyboard_handler.hpp"
#include "mouse_handler.hpp"
#include "unit.hpp"
#include "window_base.hpp"
#include "window_handler.hpp"
#include "data/event.hpp"
namespace twil {
namespace ui {
using namespace u... |
05a47beeadd2c791172baf1217fcbad2fdd1d483 | da7558c9ca8756d9482f462b27613d1054117468 | /Atividade 04 algoritmo (Lista 05).cpp | 25673584c6a6c55f003149d471ab174fb863cf2a | [
"Apache-2.0"
] | permissive | CaioL-ops/studious1 | 95f73c1f84780302f929c51b77af53323e0cf232 | 91a018b55b87edae65e703e09ba79f67c4d6b0c0 | refs/heads/main | 2023-06-02T00:19:49.514951 | 2021-06-15T20:00:29 | 2021-06-15T20:00:29 | 377,279,512 | 0 | 0 | null | null | null | null | MacCentralEurope | C++ | false | false | 998 | cpp | Atividade 04 algoritmo (Lista 05).cpp | #include<stdio.h>
#include<stdlib.h>
#include<locale.h>
int main(){
setlocale(LC_ALL, "Portuguese");
printf("==============================\n");
printf("A empresa da cidade de můveis:\n");
printf("==============================\n");
int můveis;
do{
printf("Os můveis disponibilizados por essa e... |
36e659e93aa2a79abc24f1050d4a7c137df1ff0d | 636394fc4967123179dd2dc935f437e735c6d38a | /export/windows/obj/src/flixel/system/ui/FlxSystemButton.cpp | 8ceee43fd98ab4a9f6edc7b221baa98559c46afe | [
"MIT"
] | permissive | arturspon/zombie-killer | 865e6ef3bdb47408f9bfea9016f61bf19b2559c7 | 07848c5006916e9079537a3d703ffe3740afaa5a | refs/heads/master | 2021-07-18T16:44:26.556092 | 2019-05-04T13:56:08 | 2019-05-04T13:56:08 | 181,805,463 | 0 | 1 | MIT | 2021-07-16T23:18:46 | 2019-04-17T02:50:10 | C++ | UTF-8 | C++ | false | true | 15,556 | cpp | FlxSystemButton.cpp | // Generated by Haxe 4.0.0-rc.2+77068e10c
#include <hxcpp.h>
#ifndef INCLUDED_flixel_system_debug_DebuggerUtil
#include <flixel/system/debug/DebuggerUtil.h>
#endif
#ifndef INCLUDED_flixel_system_ui_FlxSystemButton
#include <flixel/system/ui/FlxSystemButton.h>
#endif
#ifndef INCLUDED_flixel_util_IFlxDestroyable
#includ... |
5562087837fc5bc625b66b02e12f810c50b76a6e | c4031d170e03b61e81eacedd4e9d21d0718eab7d | /Trabalho_01/Grafo.cpp | acf1971a24525b6b39888c5af7d516a1edaf0dc2 | [] | no_license | giselegs/Trabalho_de_Grafos | 96889ef53da46f7a38d8af7725606400c80dd263 | 152570a1de3a33c2078f94774ff2329eae2ef461 | refs/heads/master | 2021-01-16T21:29:49.939978 | 2015-03-29T19:52:49 | 2015-03-29T19:52:49 | 33,086,051 | 0 | 0 | null | 2015-03-29T19:31:42 | 2015-03-29T19:31:41 | null | UTF-8 | C++ | false | false | 3,507 | cpp | Grafo.cpp | #include "Grafo.h"
#include <iostream>
using namespace std;
/* -------------------------------------------- CLASSE GRAFO ------------------------------------------ */
// Encontra um Vertice com a id dada
Vertice* Grafo::encontraNo(int id) {
Vertice *v = this->primeiroNo();
while (v) {
if... |
f22a87d0c7433c2923e13f8cc93cfb8db75926e7 | 26108c7f4d30c0489d488138abb22e9c3488eee0 | /Software/PumaTx/test/i2cTools.cpp | c966dfade34931827032edbd80aaf828f03b1292 | [
"MIT"
] | permissive | PumaFPV/PumaTX | dd938a65675f75b70cefcd2c4f7893dc55465bce | e716a49c5652ca587b173e480a373764c4acaa45 | refs/heads/master | 2023-03-11T23:14:07.547692 | 2023-03-08T09:29:52 | 2023-03-08T09:29:52 | 187,527,135 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,367 | cpp | i2cTools.cpp | void scannerMlx()
{
debug.println ();
Serial.println ("I2C scanner. Scanning ...");
byte count = 0;
mlxI2C.begin();
for (byte i = 8; i < 120; i++)
{
mlxI2C.beginTransmission (i); // Begin I2C transmission Address (i)
if (mlxI2C.endTransmission () == 0) // Receive 0 = success (ACK response)... |
2e5775599ff6775ed974e126935f171bfafdd0a1 | 7a61a36876492ccf24ae8b79746588fd41807d7a | /DSP/extensions/FunctionLib/tests/TTCircularEaseOutFunction.test.cpp | b32862f98773f600a63c7581f762e6cc78f6d831 | [
"BSD-3-Clause"
] | permissive | EQ4/JamomaCore | 9b5924e5ef71626338060cd86d79494de85e524a | 6599423c33fbdf1ecc8e52592b36499f31338276 | refs/heads/master | 2021-01-15T14:59:04.391384 | 2015-11-19T16:23:34 | 2015-11-19T16:23:34 | 46,895,884 | 1 | 0 | null | 2015-11-26T00:51:17 | 2015-11-26T00:51:17 | null | UTF-8 | C++ | false | false | 8,860 | cpp | TTCircularEaseOutFunction.test.cpp | /** @file
*
* @ingroup dspFunctionLib
*
* @brief Unit tests for the Jamoma DSP #TTCircularEaseOutFunction of the #TTFunctionLib
*
* @details Derived from Sam Hocevar's public domain C/C++ implementation of Robert Penner easing functions
*
* @authors Trond Lossius
*
* @copyright Copyright © 2014 by Trond Lossi... |
46401293acec29f3af2d2c01042c88fe46c36def | 73625210a42669b35ca0842c97b56ec0f75f7508 | /COD4/NinjaPlugin/Globals.h | 891dd49d9ce0816b3baf8078b435a7f1e2154890 | [] | no_license | CWest07/All-COD-Xbox-360-Cheat | d0dc29bf2337a06acf4f93efb178aabf6c6996d4 | 1325dd6e7ad291ba65b360f1fe16b2b72bb816c4 | refs/heads/main | 2023-08-22T13:12:34.732700 | 2021-09-27T19:44:40 | 2021-09-27T19:44:40 | 411,021,084 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,894 | h | Globals.h |
#include "stdafx.h"
#include "Config.h"
#include "Utilities.h"
#include "XBLSMsgr.h"
#include "MemoryManager.h"
#pragma once
#pragma warning (disable: 4244)
#pragma warning (disable: 4826)
#define docryptoBypass(a,b) ((QWORD)((QWORD)( ((QWORD)0x710e7a17d2b42090) * ((QWORD)(b)) ) ^ (~(QWORD)(a))))
#if defined(PATC... |
8c81ce865f4b81d32ec6f140ad03521e9accd60c | 89ce354ba63c4d8e02415a06cef5d642baff3ccb | /linux/rpmspec/rpmbuild/BUILD/myapp-1.0/main.cpp | 5893743b270d4e71e402a3749c138a0f4a9476f7 | [] | no_license | hempnall/codeexamples | d71b152c4cf2329b6909f10adf1df9b8986589e4 | 3374ffc7ecff7f8da3fede4e6e0884e6d73219e6 | refs/heads/master | 2021-01-10T10:39:38.710619 | 2017-02-03T20:00:59 | 2017-02-03T20:00:59 | 44,268,256 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 146 | cpp | main.cpp | #include <iostream>
#include <exports.h>
int main() {
std::cout << "Testing this rpm thing...." << std::endl;
say_something();
return 0;
}
|
3ade819b07c31cf0292302ff37802ffc8f413556 | 6ec6dc541ee5f381717af8eaa942d0e89b3e5487 | /NTNU/CP3/practice/prince.cpp | 62e00280e4b7a5af38bef5329203ba68130a593a | [] | no_license | kizato1018/computer-programming | af001af24d876a6a79c5b5f3954c0e0b2a2a8ff3 | 96014692c9dd319b8e8cc13988cd5cf3028846d9 | refs/heads/master | 2023-06-02T04:38:07.292430 | 2021-06-17T06:10:09 | 2021-06-17T06:10:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,898 | cpp | prince.cpp | #include <iostream>
#include <string.h>
using namespace std;
class Attribute
{
// TODO: declare operator << as a friend
friend ostream & operator << (ostream &os, const Attribute &rhs);
public:
// TODO: operator +=
Attribute & operator += (const int num) {value_ += num; return *this;}
// TODO: operator... |
e56eccd586f66e73657005f55e4e5c262ed4056f | b87270a73f53109845e97aa4b0a18dc71d234f1a | /1796.cpp | c589630c98e67f5592a4ac5a944f98c2ee247e2b | [] | no_license | zhanghaichao520/hdu | 850393fa7fc71894c58e2ec61ecef80f9d87ec5f | b7d4f372d86f159c32d3ab9030491d504f7903d1 | refs/heads/master | 2020-03-15T04:57:15.526625 | 2018-05-03T10:16:02 | 2018-05-03T10:16:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 723 | cpp | 1796.cpp | #include <cstdio>
#include <iostream>
#include <string>
#include <cmath>
#include <algorithm>
using namespace std;
__int64 n,a[20];
int sum;
__int64 flag=0;
__int64 gcd(__int64 x,__int64 y)
{
if(x<y)
{
int t=x;
x=y;
y=t;
}
if(y==0) return x;
else return gcd(y,x%y);
}
void dfs(int i,__int64 lcm,int p... |
5ff680df5463b6e339c631678bd70499eb7d6ec3 | 9dbd9b0c79d70aa34501dd615c35d64c7dc4fc97 | /src/BirdsEyeTranslationReader.cpp | fbd07fe089245923eba7d9804f467802d84e7191 | [
"MIT"
] | permissive | Zhao-Shiwen/vision-of-movement | 1a55f7e20070fc174bebac28528d460e66e6aafc | c413f956a181253da98da31f8f60fdb3f2ddd51f | refs/heads/master | 2022-03-24T11:29:37.475548 | 2013-08-01T19:31:23 | 2013-08-01T19:31:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,245 | cpp | BirdsEyeTranslationReader.cpp | /**
* \file
* \date 21.02.2013
* \author Michał Orynicz
*/
#include "BirdsEyeTranslationReader.hpp"
#include "ImageEdgeFilter.hpp"
#include <opencv2/imgproc/imgproc.hpp>
#include "DrawingFunctions.hpp"
#include <iostream>
#include <opencv2/highgui/highgui.hpp>
bool horizontalPoint2Compare(cv::Point2f p1, cv::Poi... |
aa2c5afe58c070332f0d46598c890ed93560b969 | ab5f396f3164eb4f5fab793c23c5ebe2b7fbef59 | /main.cpp | da064f60575f877e33cdb499094721a8441860d7 | [] | no_license | intgeek/BillSplitter | 55191a24f1c846d94ba916005606ab5293c7841c | 17c732d1285fcc0de60ac66949c3a6ea5c85d214 | refs/heads/master | 2021-01-18T17:41:20.841369 | 2016-10-26T10:36:19 | 2016-10-26T10:36:19 | 71,992,573 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,708 | cpp | main.cpp | //
// main.cpp
// BillSplitter
//
// Created by Shwetabh Singh on 18/08/16.
// Copyright © 2016 shwetabh. All rights reserved.
//
#include <vector>
#include <map>
#include <algorithm>
#include <utility>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <string>
#... |
1fd0e98b0a113b05d4ca0df29ed732d0f12aba74 | d1ac9e5a19a0e720e2f79d24eb4808a3075e3607 | /include/hash_table.h | 0fcdb71381afa0e1d141cfca5cbfd7aa818849b0 | [
"MIT"
] | permissive | Samana/algorithms | db804acdf32e2e9bff2e526792cbbd68b1719dc4 | d81d1a693c6fa1d5fb1ce903b05faf9d7267158d | refs/heads/master | 2021-01-17T11:24:16.190232 | 2014-11-27T03:33:21 | 2014-11-27T03:33:21 | 10,540,035 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,888 | h | hash_table.h | /*******************************************************************************
* DANIEL'S ALGORITHM IMPLEMENTAIONS
*
* /\ | _ _ ._ o _|_ |_ ._ _ _
* /--\ | (_| (_) | | |_ | | | | | _>
* _|
*
* GENERIC HASH TABLE
*
* Features:
* 1. separate chaining for resolving c... |
69e218c926648c9351f4ca1bb6b1f5a1c41d742b | da529d2dc5a0fe631be3a1c0b5823873037f250f | /Variable_Sized_Arrays.cpp | 2b5b908e6ada403c5f85a11c79287dc2532bd3fc | [] | no_license | rupa99/CPP-Core-Skills | 850e62c954c0bebf5bf841378aa9d003e56365f5 | 36f4dd0099da9295f8fce02739353ed13bce7913 | refs/heads/master | 2020-06-17T23:19:53.841305 | 2019-07-09T23:34:43 | 2019-07-09T23:34:43 | 196,096,227 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 996 | cpp | Variable_Sized_Arrays.cpp | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
// CREATE: a vector of vectors
int x = 0;
int y = 0;
int numofItt = 0;
int sizeodfIndivA... |
7a75dffb1f78fbecf05089ab70abe80bad19da9b | 61e1f8d80d36218c7e2d93b8dcaec1ad297b4ffa | /framework/include/transport/packet_sender.h | 0c609ca040c0058b1934d9e50d0df7f3a8f4b7f4 | [] | no_license | dongdong-2009/test | 6dcebc2aee2cc24563292edafa0ec2dbc2240040 | c824d4a40952a48b12c2142678896027119dacb3 | refs/heads/master | 2021-05-31T13:21:10.698705 | 2016-05-16T05:05:00 | 2016-05-16T05:05:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,908 | h | packet_sender.h | #ifndef PACKET_SENDER_H
#define PACKET_SENDER_H
#include <map>
#include <string>
#include <thread>
#include <boost/signals2.hpp>
#include <service/runable.hpp>
#include <service/active_queue.hpp>
#include <service/passive_queue.hpp>
using namespace zhicloud::service;
using std::string;
namespace zhicloud{
namesp... |
15e98e91f82d153fd08355ec99095bdbfe0d8f38 | b032b2b9e0153bb6ebaaa0e47bac5f762bbabe05 | /Day02-17.04.2020/MoveZeroes/MoveZeroes.cpp | c5a74a05e9b257573518d3500b058111c1014326 | [] | no_license | SourabhYelluru131/just-lockdown-problems | 408701ef5eebd627075fe5e3e4c0f78d0580acac | 557c97e94786fd259bfd2927b401b6e50970c34b | refs/heads/master | 2022-12-06T21:07:49.327794 | 2020-08-01T07:41:07 | 2020-08-01T07:41:07 | 256,180,808 | 0 | 0 | null | 2020-08-01T07:41:08 | 2020-04-16T10:21:22 | C++ | UTF-8 | C++ | false | false | 446 | cpp | MoveZeroes.cpp | // https://leetcode.com/problems/move-zeroes/
class Solution {
public:
void moveZeroes(vector<int>& nums) {
int cnt=0;
for(int i=0;cnt<nums.size();i++){
if(nums[i]==0){
nums.erase(nums.begin()+i);
nums.push_back(0);
if(nums[i]==0){ // ... |
e22434f8f187b79a9ec768a908a00723f3b15fd3 | 9a369ace9dd8fc47c132b32aec4e50d4a606aaf4 | /C++/Basic-Features/hello-world.cpp | 81fe78db2f748446d699b5fe04622a12c9488b2d | [] | no_license | LokeshBonta/Academic-Projects | 602cc59029fb3e243fda789df897a271096483d3 | eb6af97b7e225f4e0d6d8b81b142af58a44bdbc9 | refs/heads/master | 2022-10-03T21:05:13.797498 | 2022-09-17T17:00:11 | 2022-09-17T17:00:11 | 227,907,465 | 0 | 0 | null | 2020-07-28T15:02:23 | 2019-12-13T19:21:41 | Jupyter Notebook | UTF-8 | C++ | false | false | 193 | cpp | hello-world.cpp | /*
Lokeswara Rao Bonta
15-5-2020
*/
using namespace std;
#include <iostream>
int main() {
cout << "Hello World \t" << "C++" << endl;
//Return exit code to the operating system
return 0;
} |
cd305f7c564673d02b4ff6380009622d5518955d | 115c5ee776f2bbeea89353d887bd27b02c7dd862 | /Internet AppWare Source Code/AW16_2/OBJECTS/PAGE/PG_EVENT.CPP | 6569aee2b7f40a601a02b86c169d20ab3ef101ce | [] | no_license | benbucksch/AppWare | f9a894140d6bc95d2d27f5ed7d8df51fc57b9709 | 321ced6e94030c25ba36c781dc92ddb7c2508c09 | refs/heads/master | 2020-07-12T23:31:34.160706 | 2014-10-08T17:17:07 | 2014-10-08T17:17:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,934 | cpp | PG_EVENT.CPP | ///////////////////////////////////////////////////////////////
//
// (c) 1993 Novell, Inc. All rights reserved.
//
// THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND
// TREATIES. NO PART OF THIS WORK MAY BE USED, PRACTICED, PERFORMED,
// COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED,... |
6a7c365af075d80391c715f1ab88c7286b42e31f | 7ae5855273584800a5508659b435c937839ac12d | /BulletTest/BulletTest/RigidOBJDemo.h | fbdb5ad837a18178e20eb773a12c218e07011104 | [] | no_license | liuyuwang2016/BulletTest | 274fbcef30403824fd61d08ab2d76aa1b36a819b | 5838047d1200a2dbff2087251ee6fef26eacabc0 | refs/heads/master | 2020-03-18T01:43:31.279503 | 2018-06-20T12:45:46 | 2018-06-20T12:45:46 | 134,156,581 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 551 | h | RigidOBJDemo.h | #ifndef RIGIDBODYDEMO_H
#define RIGIDBODYDEMO_H
#include "BulletOpenGLApplication.h"
#pragma managed (push,off)
#include <btBulletDynamicsCommon.h>
#pragma managed (pop)
class RigidOBJDemo : public BulletOpenGLApplication {
public:
RigidOBJDemo();
~RigidOBJDemo();
virtual void InitializePhysics() override;
virt... |
72af6a4b8d5567a776aa2338494d7fc6d1c0e7f3 | 4e77b2c4abad712465b3ba92590343b583c4af89 | /source/Subtractions.cpp | ed5b6e88ab936bf8277c88496c6399d59cdaa2cb | [] | no_license | maxxboehme/subtractions | d057ae96a9527e5f4ee2cd610cd255a751681f71 | de809fc1243e79581560f9f1b2facfe4140f2e62 | refs/heads/master | 2021-01-13T01:54:37.238790 | 2014-10-30T22:03:31 | 2014-10-30T22:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,516 | cpp | Subtractions.cpp | #include <iostream>
#include <algorithm>
#include <climits>
#include <cstring>
#include <vector>
#include <string>
#include "prints.h"
/**
* Subtract the lesser number from the larger one. If they equal substract one number from the another.
*
* @param a 1 <= a <= 10^9
* @param b 1 <= b <= 10^9
* @return number ... |
c9730bba9cf62b69a056c7a262c61a719dce74e8 | 88b130d5ff52d96248d8b946cfb0faaadb731769 | /storage/src/tests/frameworkimpl/status/statustest.cpp | 0db5f2cf6b0b67c49a8e5835923417456d3852e9 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | vespa-engine/vespa | b8cfe266de7f9a9be6f2557c55bef52c3a9d7cdb | 1f8213997718c25942c38402202ae9e51572d89f | refs/heads/master | 2023-08-16T21:01:12.296208 | 2023-08-16T17:03:08 | 2023-08-16T17:03:08 | 60,377,070 | 4,889 | 619 | Apache-2.0 | 2023-09-14T21:02:11 | 2016-06-03T20:54:20 | Java | UTF-8 | C++ | false | false | 9,095 | cpp | statustest.cpp | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/storageframework/defaultimplementation/component/componentregisterimpl.h>
#include <vespa/storage/frameworkimpl/status/statuswebserver.h>
#include <vespa/storageframework/generic/status/htmlstatusre... |
40458151cad8b1f1d0d33c173aeaceb335abbd2c | ac04f9050cfe2d283fae545c5ef5e17364c25ca4 | /src/util/watch_time.h | 2e7bd8505cb78666eba466c64c238813ba313675 | [] | no_license | cnsuhao/FreeGameEngine | 9c0365c0d75c7757c441737ff577186173adaa97 | 7bdc3daf6aecacb9a851ec635824867cd0b5a2a7 | refs/heads/master | 2021-07-07T10:39:10.553300 | 2017-10-05T06:28:52 | 2017-10-05T06:28:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,968 | h | watch_time.h | //
// watch_time.h
// liborange
//
// Created by zhoubao on 14-5-9.
// Copyright (c) 2014 jjgame. All rights reserved.
//
#ifndef __liborange__watch_time__
#define __liborange__watch_time__
#ifndef _RELEASE
#include "util_config.h"
#include "singleton.h"
#include <map>
namespace ora
{
class NumberNode
... |
162f4815fe79a995d783c56e05aadc07317c0c33 | 19cd87c46d877333454bb82f14512f9b13714a0d | /source/gfx3d.h | 9d294e9f36364660456efe9d4ebefa042e6de0ba | [] | no_license | TheMrIron2/DeSmuME-PSP | 7cd3296d67874865b28f996ed6089ec680621c6e | 28cb56ece0e7378e75e78c01e57de7f569672803 | refs/heads/master | 2022-05-07T12:20:59.981897 | 2021-03-14T03:15:59 | 2021-03-14T03:15:59 | 144,074,778 | 91 | 17 | null | 2020-11-27T23:24:15 | 2018-08-08T22:38:05 | C++ | UTF-8 | C++ | false | false | 22,969 | h | gfx3d.h | /*
Copyright (C) 2006 yopyop
Copyright (C) 2008-2015 DeSmuME team
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.
... |
2e53739e4efadfee4cbcd68047836f7dd14ff98d | 0ab72b7740337ec0bcfec102aa7c740ce3e60ca3 | /include/data/geometry/distance-buffer-simple.h | cbdf7aa4fe79614780bfe1ffb8d220eaaed184b5 | [] | no_license | junwang-nju/mysimulator | 1d1af4ad7ddbe114433ebdadd92de8bb3a45c04f | 9c99970173ce87c249d2a2ca6e6df3a29dfc9b86 | refs/heads/master | 2021-01-10T21:43:01.198526 | 2012-12-15T23:22:56 | 2012-12-15T23:22:56 | 3,367,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,526 | h | distance-buffer-simple.h |
#ifndef _Distance_Buffer_H_
#define _Distance_Buffer_H_
#include "data/basic/unique-parameter.h"
#include "data/name/distance-buffer-property.h"
namespace std {
template <typename T>
struct DistanceBufferSimple : public Vector<UniqueParameter> {
typedef DistanceBufferSimple Type;
typedef Vector<UniqueP... |
8ab68dfcc08408f377daaf30015421e6e3c6c7e6 | f2bfe92bcb233798fc9c49ed22748d8c7571706a | /SkyEngine/Device.cpp | 83c74a7f67f9942da3825906aec5092173d3444f | [] | no_license | am17/SkyEngine | d5ed9064daa00151a3dec182cd328b2f369555eb | 5882ba9a267fbfb134e1eff44cb026a3ebd30302 | refs/heads/master | 2021-01-23T02:05:44.370183 | 2017-06-19T20:27:47 | 2017-06-19T20:27:47 | 92,908,018 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,812 | cpp | Device.cpp | #include "stdafx.h"
#include "Device.h"
#include "D3D11DeviceImp.h"
Device::Device()
:_pDeviceImpl(nullptr)
{
}
Device::~Device()
{
if (_pDeviceImpl)
{
delete _pDeviceImpl;
_pDeviceImpl = nullptr;
}
}
bool Device::init(HWND m_hwnd, int screenWidth, int screenHeight, bool fullscreen)
{
_pDeviceImpl = new D... |
5fd0afe19da756a832064ce6b83ade1e225049e0 | bb01edaac9e544cf344caf10ecb0e4f757ae922c | /src/SkinUIDemo/ButtonDialog.cpp | df58b6e1e32af18b33ffd19ff862e50ce3810ad5 | [] | no_license | weypro/Ice-Project-Manager | fc35efec2ec48e803abf93601aed5a369d463387 | cfe3dd1b8bd68630fda803089913a119b18497c6 | refs/heads/master | 2020-03-30T04:26:23.684754 | 2018-10-01T11:59:36 | 2018-10-01T11:59:36 | 150,742,629 | 1 | 0 | null | null | null | null | ISO-8859-9 | C++ | false | false | 629 | cpp | ButtonDialog.cpp | #include "stdafx.h"
#include "ButtonDialog.h"
SKINUI_BEGIN_MESSAGE_MAP(CButtonDialog, CSkinDialog)
ON_SKINUI_COMMAND(IDC_BUTTON1, OnButtonClicked)
ON_SKINUI_COMMAND(IDC_BUTTON2, OnButtonClicked)
ON_SKINUI_COMMAND(IDC_BUTTON3, OnButtonClicked)
ON_SKINUI_COMMAND(IDC_BUTTON4, OnButtonClicked)
SKINUI_END_MESSAGE_MAP()... |
44b05a9ff435b8f2154ac1139c2017aa6c1958d7 | 5f8d31c311e37e1b0af45f1b9705883ade20d077 | /ns/src/MemoryAllocator/src/CPlusPlusLevel.cp | c30d2c82eb50adc192c1d3819dacfb82a0db8925 | [] | no_license | acolchagoff/mozz | e64325b16ed135bbad4abb99dade0437e8ae5a7c | ff6798c307e3bbdae6dfe0da23cfe3c594908255 | refs/heads/master | 2023-06-23T14:44:03.842724 | 2018-03-06T13:10:33 | 2018-03-06T13:10:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,757 | cp | CPlusPlusLevel.cp | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* So... |
b800d0e852931b9770167ae03034e529cfe7667d | b9606c302edeb76b52ab22bdccd596d9f7a94209 | /modules/task_1/kukushkina_k_lexicograph/lexicograph.h | e28d7f638f20707f42e73eb547042a26eff4069b | [] | no_license | DrXlor/pp_2019_autumn | 31f68a32f2fc334f4ce534161fb32c8cb70baf1c | e01960c714ad1e86d68cbf3be551741106dc908d | refs/heads/master | 2020-09-20T11:56:11.773825 | 2019-11-26T09:00:15 | 2019-11-26T09:00:15 | 224,469,332 | 2 | 0 | null | 2019-11-27T16:11:27 | 2019-11-27T16:11:26 | null | UTF-8 | C++ | false | false | 424 | h | lexicograph.h | // Copyright 2019 Kukushkina Ksenia
#ifndef MODULES_TASK_1_KUKUSHKINA_K_LEXICOGRAPH_LEXICOGRAPH_H_
#define MODULES_TASK_1_KUKUSHKINA_K_LEXICOGRAPH_LEXICOGRAPH_H_
#include <string>
std::string generateString(const int length);
bool isFragmentOrdered(const std::string source);
bool isStringOrdered(const std::string s... |
f7b0d9db745103a2d7297c2af624cea0175dcc5c | 658dd4a71ce689ef6338894628d8cdb59a595ba5 | /COJ/KhozmoS-p3542-Accepted-s915877.cpp | 83b5c0eb40aa00b086c076df7c3f2f3c00f9874a | [] | no_license | KhozmoS/Competitive-Programming-Solutions | 4d8be747efc7feb29a5f70dc6c1ea1bd26c9e78c | 9cb7b6e500854ab22fc405c2c5c4f444e06e7056 | refs/heads/master | 2021-02-04T09:17:18.818228 | 2020-02-28T01:24:11 | 2020-02-28T01:24:11 | 243,648,605 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,162 | cpp | KhozmoS-p3542-Accepted-s915877.cpp | #include<bits/stdc++.h>
#define MAXN 105
typedef long long LL;
using namespace std;
typedef pair <LL , LL> par;
int n , t , p;
queue <LL> cola;
bool mk[MAXN];
int cost[MAXN];
vector <par> adl[MAXN] ;
LL dijk()
{
for(int i = 2 ; i <= n ; i++)cost[i] = 1000000000;
cola.push(1);
while(!cola.empty())
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.