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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3ba45dbd8a6a26fd67249ebf90f5e4b6d2b9978e | df9b3c94b9aae189112fd1a16b4e4974a364dbee | /src/cpp_lib/narray.h | 9f5173aaabf8182a6896976e5bda5f2f1c587e24 | [] | no_license | ypei92/Latte-Compiler | a16b5b47cf0face6d89ec7bcb3f99c650aa04cd4 | 3015bd93febe1feb2339d8ae01656b4ffe4f9984 | refs/heads/master | 2020-12-24T18:51:06.010591 | 2016-05-16T13:15:20 | 2016-05-16T13:15:20 | 57,238,366 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 657 | h | narray.h | #include <vector>
#include <math.h>
#include <iostream>
using namespace std;
float* xavier(vector<int> dim){
int size = 1;
float fan_in = 1.0;
for(int i = 0; i < dim.size() - 1; ++i){
size *= dim[i];
fan_in *= dim[i];
}
size *= dim[dim.size()-1];
float scale = sqrt(3.0/fan_in);... |
830d115f27ed694409d5f6885d14c4adc9ab7227 | a97304ac7e4391d46c1cde399dc90a4d8422bab0 | /sketch_feb28b — копия.ino | ba1f673c6a1558aa1fa8536a9288596ab8cd2a80 | [] | no_license | TinyAxolotl/AutoLogger | e90ccaa2954f31127b1158df1fc204f6c58444eb | 01abdb7509e54aac5fbe8a8634e253b0721b83d7 | refs/heads/main | 2023-04-18T13:10:46.963138 | 2021-04-28T13:37:13 | 2021-04-28T13:37:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,859 | ino | sketch_feb28b — копия.ino | #include <Wire.h>
#include <SPI.h>
#include <Arduino.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <MPU6050_tockn.h>
#include <BMx280I2C.h>
#include <SD.h>
#define I2C_ADDRESS 0x76
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixel... |
389c5cbdaf433400c3edecff0c2704758e4c3c3b | da1ffd58bffb95b47d48872e2d85facaa0395bcd | /1.tan_c++/9.use_class_obj/c9-8.fun_quote_arg.cpp | 790ec8ba2b0a8c22e2b0e57a98d6e096a67d942a | [] | no_license | wcybxzj/cplusplus_www | 94e303faaa4331220949b81ff5aee1736f722ec9 | eda796f52c8fa88cfae5f8c99817e583785faf02 | refs/heads/master | 2020-04-19T18:29:34.882672 | 2019-01-30T16:22:08 | 2019-01-30T16:22:08 | 168,364,708 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 314 | cpp | c9-8.fun_quote_arg.cpp | #include <iostream>
using namespace std;
class Time{
public:
Time(int h, int m, int s): \
hour(h),minute(m),sec(s){}
int hour;
int minute;
int sec;
};
void fun(Time &t)
{
t.hour = 123;
}
int main(int argc, const char *argv[])
{
Time t1(10, 20, 30);
fun(t1);
cout << t1.hour <<endl;
return 0;
}
|
5266a7ffe4159ce11d6ebcd08a12253c40c2043a | d70ffa58b4cfeb21a9d7d51d530369488b2c07a2 | /Graph Valid Tree.cpp | d3ff16e832291f44c6d0cdbe8ac4e1a523781431 | [] | no_license | pramod3009/leetcode | 0eb0c04e537d4a353114594debc1c792b7783e65 | 5f4e165b7e7d0e99607522a62a1b29d165559a83 | refs/heads/master | 2023-06-21T11:19:05.445737 | 2021-07-25T22:44:50 | 2021-07-25T22:44:50 | 273,813,595 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 842 | cpp | Graph Valid Tree.cpp | class Solution {
public:
bool result = true;
map<int, vector<int>> graph;
void dfs(int node, int parent, vector<bool> &visited){
if(visited[node]){
result = false;
return;
}
visited[node] = true;
for(auto enemy : graph[node]){
if(enemy != ... |
7d7087c442428334c2fb52c0f5d724c21b3917eb | 451a19113f4eab676a23862ea201195b3cf08527 | /src/Image.cpp | 3b288953adfbef254c3dcc31715049fd3715f639 | [] | no_license | daviddoria/PatchMatchImageStack | 49a66ff9a571f13f417bcdb95625bfacb3da0359 | 28f667b26b548d56f99bfe79a3d6800f78a54955 | refs/heads/master | 2021-01-01T20:48:30.956886 | 2012-05-26T11:07:23 | 2012-05-26T11:07:23 | 4,435,912 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,880 | cpp | Image.cpp | #include "main.h"
#include "Image.h"
#include "itkVectorImage.h"
#include "itkImageRegionIterator.h"
#include "itkImageFileWriter.h"
#include "itkRescaleIntensityImageFilter.h"
#include "header.h"
// The rest of the Image class is inlined.
// Inlining the destructor makes the compiler unhappy, so it goes here instea... |
8cb5614b96465ddc0319bc7258bdc72942cd05ef | c26e9d3f92d95f7ce9d0fd5ef2c18dd95ec209a5 | /summer_2k15_coding/codeforces/311/1.cpp | e08002d3880ed7a185224b04ad2cb7e12360fb03 | [] | no_license | crystal95/Competetive-Programming-at-different-platforms | c9ad1684f6258539309d07960ed6abfa7d1a16d0 | 92d283171b0ae0307e9ded473c6eea16f62cb60e | refs/heads/master | 2021-01-09T21:44:28.175506 | 2016-03-27T21:26:26 | 2016-03-27T21:26:26 | 54,848,617 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,071 | cpp | 1.cpp |
#include <numeric>
#include <string>
#include <functional>
#include<stdio.h>
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
#define fr(i,n) for(i=0;i<n;i++)
typedef vector<int> vi;
typedef vector<long long int > vll;
typedef long long int ll;
typedef vector<unsigned long long int > vul... |
bf3a2caff4e9a05c251cade07cf841cdea05cfe3 | 80d926e7590cf3a1a034758101c232d5d346eb1d | /src/petuum_ps_common/include/ps_app.hpp | ee1e2b5a86c15a7143b6c6430d785beba933d5dd | [
"BSD-3-Clause"
] | permissive | thudzj/bosen | ee9a6176cdf2b228a3ea0da4bc445939a00d447a | 6135a86f6a8126e3b46491598eb97fb1de04628b | refs/heads/master | 2020-04-17T03:40:45.702351 | 2016-08-24T02:03:59 | 2016-08-24T02:03:59 | 66,038,408 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,345 | hpp | ps_app.hpp | // Author: Binghong Chen
// Date: 2016.06.30
#include <petuum_ps_common/include/petuum_ps.hpp>
#include <petuum_ps_common/include/system_gflags.hpp>
//#include <petuum_ps_common/include/configs.hpp>
//#include <petuum_ps_common/util/utils.hpp>
#include <thread>
#include <map>
#include <vector>
#include <cstdint>
#incl... |
d937c6016211b615349f20519c673635d9b9f78e | 6f193dc4945caca3e445d016c8743e29cdddf7d0 | /motor1.2.ino | 6bea50376e06cb8d58340fdbe471b51f21348ed9 | [] | no_license | Andreea200318/UTILITY-WEATHER-ROVER | 725b7340fd9051990ad2810e44f72e5cf2d1a377 | 85bd62ff7473092031f79fb6334c6562989e9903 | refs/heads/main | 2023-04-17T18:26:52.129368 | 2021-04-23T16:16:36 | 2021-04-23T16:16:36 | 360,931,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,910 | ino | motor1.2.ino | #include <AFMotor.h>
#include <NewPing.h>
#include <Servo.h>
#define TRIG_PIN A0
#define ECHO_PIN A1
NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE);
AF_DCMotor motor1(1, MOTOR12_1KHZ);
AF_DCMotor motor2(2, MOTOR12_1KHZ);
AF_DCMotor motor3(3, MOTOR34_1KHZ);
AF_DCMotor motor4(4, MOTOR34_1KHZ);
Serv... |
18f8ea33ebf400adb423ef2aa0474859fe2d31e9 | a3cb1c1c73a7057db55951e3704a69634f5f39da | /lib86cpu/x86/frontend.h | 90716da39e7d78dc350a73bc68904370c118b30f | [
"BSD-2-Clause"
] | permissive | killvxk/lib86cpu | 408a4d390fe51c1b8904b35c4e10dac60f07c65b | e8f7dd7233f9f6011bb68f5e3a57f966e9aed6a7 | refs/heads/master | 2023-08-30T18:04:41.280162 | 2021-11-10T10:09:26 | 2021-11-10T10:09:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,020 | h | frontend.h | /*
* x86 llvm frontend exports to translator
*
* ergo720 Copyright (c) 2019
*/
#pragma once
std::vector<BasicBlock *> gen_bbs(cpu_t *cpu, const unsigned num);
void gen_exp_fn(cpu_t *cpu);
void optimize(cpu_t *cpu);
void get_ext_fn(cpu_t *cpu);
StructType *get_struct_reg(cpu_t *cpu);
StructType *ge... |
22397ac826df9c4a30b4547211538f2501f0dec1 | b2bd15f5422b3683531440f616defebdd6b5fa85 | /Hoja1_Ejercicio1.cpp | fc3e7246ebfd1c9d697f4b80130b3ff414928cc7 | [] | no_license | AugustoMorante/Asignacion20 | ccf5b07ffe478aced49631f481f08e546443a8af | efb5641e74357b49fe9b067d8a27086064cfacd0 | refs/heads/master | 2020-06-06T04:46:37.272861 | 2019-06-20T05:48:53 | 2019-06-20T05:48:53 | 192,641,348 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,158 | cpp | Hoja1_Ejercicio1.cpp | #include "stdafx.h"
#include <iostream>
#include <conio.h>
#include <time.h>
#include <stdlib.h>
using namespace System;
using namespace std;
void GenerarValoresMatriz(int** matriz, int &filas, int &columnas) {
for (int fila = 0; fila < filas; fila++) {
for (int columna = 0; columna < columnas; columna++)
{
m... |
0aa8579eb8ff42f5240b64e3d737009ed4842a97 | cb80a8562d90eb969272a7ff2cf52c1fa7aeb084 | /inletTest5/0.05/yPlus | 50ff7a1822fd2f9c6d77fe95b57ce3f649bad35c | [] | no_license | mahoep/inletCFD | eb516145fad17408f018f51e32aa0604871eaa95 | 0df91e3fbfa60d5db9d52739e212ca6d3f0a28b2 | refs/heads/main | 2023-08-30T22:07:41.314690 | 2021-10-14T19:23:51 | 2021-10-14T19:23:51 | 314,657,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,306 | yPlus | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
... | |
014881adf5c21f34c7f1bd5258df22c230fd83bc | 8069c2519f114011f3b50f8133a4616707bb3693 | /homework3/ex1.cpp | ff10f238c815333cecbd3173d7e8c1c022f02ff9 | [
"MIT"
] | permissive | codeworm96/SE105-Programming-1 | 0ccd17a013bb8f6705bbfd1a3bc481b5f2a74052 | 9b82316d33779befcef8c641a85df7137006450a | refs/heads/master | 2020-05-31T11:21:38.466090 | 2015-08-04T06:19:56 | 2015-08-04T06:19:56 | 40,160,067 | 4 | 0 | null | null | null | null | GB18030 | C++ | false | false | 471 | cpp | ex1.cpp | /*本道题目的题号是:1
*要求是:编程求 1!+2!+…+12!,并试着简化程序。
*/
#include <iostream>
using namespace std;
long factorial_sum(int n)
{
int fac = 1;//for factorial
int sum = 0;//for sum
for (int i = 1; i <= n; ++i){
fac *= i;
sum += fac;
}//calculate
return sum;
}
int main()
try{
//no input
cout << "1!+2!+...+12!=" << factorial... |
07fb100f63ede18dcbc999d648600a5878640ca4 | 5380c83245a3cf71deb5bab469ee25e5ec6d402a | /c/sdl/03_event_driven/main.cpp | 38d0ef23b28d34a7d5a46ba300cc48b366b555e5 | [] | no_license | edo9k/learn | e45520ea1f923c6a2f46b830b654eafff593fc53 | 87ee38690e6fa19d3a830df06f0620175dacf1b9 | refs/heads/master | 2023-08-10T05:52:19.844586 | 2023-08-01T21:57:54 | 2023-08-01T21:57:54 | 121,974,250 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,757 | cpp | main.cpp | #include <SDL2/SDL.h>
#include <stdio.h>
// constants
const int SCREEN_WIDTH = 640;
const int SCREEN_HEIGHT = 480;
// declarations
bool init();
bool loadMedia();
void close();
// variables
SDL_Window* gWindow = NULL;
SDL_Surface* gScreenSurface = NULL;
SDL_Surface* gXOut = NULL;
// actual functions
bool init() {
... |
0ffedc38a012a573b196e42c122dc44104404807 | d74ce09a4e4dc5daa0ec1ca03721415bd8a16dd1 | /Mc2Code/MiniCA/csp11/CertKitCsp.cpp | e36413516efbf8ca27b51ba52ba638032594af10 | [] | no_license | zxlooong/minica | cdc01698db3a5c1e31ec8283cf97e67854cb3a14 | f41977c2bc75e277515c47bae8ca7fb7c7c10275 | refs/heads/master | 2020-06-07T13:40:25.399117 | 2013-04-24T03:23:32 | 2013-04-24T03:23:32 | 7,943,806 | 3 | 4 | null | null | null | null | GB18030 | C++ | false | false | 46,020 | cpp | CertKitCsp.cpp | //////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include <Rpc.h>
//#include "dbglog.h"
#include "CBase64.h"
#include "MemTools.h"
#include "Certificate.h"
#include "CertKitCsp.h"
using namespace ... |
d8d6acb7cec7cccbe3fa4d096c6ee06b84385082 | 0674e81a160161996251fb4b063c801330ccd1e2 | /fbhc/2015/qual/C_fariskhi.cpp | 81f5a02d1abb952c34afb4233ee507750bc7ac29 | [] | no_license | joshuabezaleel/cp | 8a2c9b44605810da4367efeb981f822ae5e1e9a2 | 57f365458cca38c3c0fb1f5af1c6b44b74f3b53e | refs/heads/master | 2022-07-19T00:39:34.395495 | 2020-05-23T20:37:20 | 2020-05-23T20:37:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,593 | cpp | C_fariskhi.cpp | #include <algorithm>
#include <bitset>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <set>
#include <vector>
using namespace std;
#define ll long long
#define EPS 1e-9
#define INF 2000000000
#define pb push_back
#... |
8a8e50c29876a28a0e32c6f609a42d4d8f4ea742 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/squid/gumtree/squid_repos_function_4484_last_repos.cpp | a035ebca3c64b35327e5e58ba3cb22f84ed9f16e | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 65 | cpp | squid_repos_function_4484_last_repos.cpp | bool
Store::Disk::doubleCheck(StoreEntry &)
{
return false;
} |
93918ba0bb3760c02ac9b7e9c1b23c331f417f22 | 9b4f4ad42b82800c65f12ae507d2eece02935ff6 | /src/Manage/ThreadContextNull.cpp | 5e6aedc32de246a459bdc96854049db87d3ff1c6 | [] | no_license | github188/SClass | f5ef01247a8bcf98d64c54ee383cad901adf9630 | ca1b7efa6181f78d6f01a6129c81f0a9dd80770b | refs/heads/main | 2023-07-03T01:25:53.067293 | 2021-08-06T18:19:22 | 2021-08-06T18:19:22 | 393,572,232 | 0 | 1 | null | 2021-08-07T03:57:17 | 2021-08-07T03:57:16 | null | UTF-8 | C++ | false | false | 2,366 | cpp | ThreadContextNull.cpp | #include "Stdafx.h"
#include "MyMemory.h"
#include "Text/MyString.h"
#if defined(CPU_X86_64)
#include "Manage/ThreadContextX86_64.h"
Manage::ThreadContextX86_64::ThreadContextX86_64(UOSInt procId, UOSInt threadId, void *context)
{
this->procId = procId;
this->threadId = threadId;
this->context = context;
... |
19e606cd3bcec1a334973c72e822de3af2e34659 | 127469d91e0a53ea340d5c8ff3ca5f3b4e721d46 | /src/GUAxes.cpp | 3ebca4093e52d5a5807ce10e0a836668ffd7f6e9 | [] | no_license | lcls-psana/PSQt | 7b6e33bf2e4d99fc8372ca7284a28c33807e4187 | 274fc69d2bd869640da01b176094911c9f449315 | refs/heads/master | 2021-08-15T20:57:43.407279 | 2020-06-04T00:26:44 | 2020-06-04T00:26:44 | 82,349,695 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,704 | cpp | GUAxes.cpp | //---------------------------------------------------------------------
// File and Version Information:
// $Id$
//
// Author: Mikhail S. Dubrovin
//---------------------------------------------------------------------
//--------------------------
#include "PSQt/GUAxes.h"
//#include "PSQt/QGUtils.h"
#include "PSQt/L... |
59f4d36d75ee58a91c834a2286e87fc3a863c37c | cd72b19d2030f36f78dab52390d092ed3dc8005f | /lib/src/render/fillRenderer.hpp | 55912662a1eb30ffed7d8bf749fbaf3aa1331d4e | [
"MIT",
"DOC"
] | permissive | stitchEm/stitchEm | 08c5a3ef95c16926c944c1835fdd4ab4b6855580 | 4a0e9fc167f10c7dde46394aff302927c15ce6cb | refs/heads/master | 2022-11-27T20:13:45.741733 | 2022-11-22T17:26:07 | 2022-11-22T17:26:07 | 182,059,770 | 250 | 68 | MIT | 2022-11-22T17:26:08 | 2019-04-18T09:36:54 | C++ | UTF-8 | C++ | false | false | 560 | hpp | fillRenderer.hpp | // Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#ifndef GLYPHS_H_
#define GLYPHS_H_
#include "gpu/render/render.hpp"
namespace VideoStitch {
namespace Render {
/**
* @brief A renderer that fills the boundingbox.
*/
class FillRenderer {
public:
FillRenderer() {}
Status draw(uint32_t... |
a53724329289efe014a14251edcce5a62673da1f | 3f90ac7a0e700e87c80e311b551bb30823b41ecb | /src/cheat/features/aimbot/autowall/autowall.cc | ac4226c949ed436392fb1e6293e8f4fce0ebacf3 | [] | no_license | alphauc/polandhack | 6192a630368ebbba228e9be519671b4034f6738f | 853c70a29bb5384ab2256836febf4d1deeb93fa5 | refs/heads/master | 2020-04-19T20:46:33.545562 | 2019-01-30T22:29:00 | 2019-01-30T22:29:00 | 168,424,319 | 15 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 16,850 | cc | autowall.cc | #include "autowall.hh"
namespace features::ragebot{
automatic_wall autowall;
automatic_wall::Autowall_Return_Info automatic_wall::CalculateDamage( sdk::vec3 start, sdk::vec3 end, sdk::base_entity* from_entity, sdk::base_entity* to_entity, int specific_hitgroup )
{
// default values for return info, in case we ne... |
f2890e0f0cc0cbf1d7415a4bfeca2af255bac45e | 79ffba00f7bb09d3c4f428ab0d449a8d1f71b538 | /Knight.h | 0602289ffafd42ef65304633b7dabef9e6db8b98 | [] | no_license | TMalicki/Alpacator-SFML | c933ceb3935aa9a315048520985f6f640640e56a | dbe72867727d1d797ea20031f6026f9e66aa9a7c | refs/heads/master | 2020-12-20T17:58:30.402723 | 2020-07-30T14:24:04 | 2020-07-30T14:24:04 | 236,162,535 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 974 | h | Knight.h | #ifndef KNIGHT_H
#define KNIGHT_H
#include <iostream>
#include "Hero.h"
using namespace std;
class Knight : public Hero
{
private:
public:
Knight(string n, string prof = "Knight", int h = 120, int s = 5, int d = 10, int agil = 1, int stam = 3) : Hero(n, prof, h, s, d, agil, stam) {}; // dlaczego w lis... |
041f0c2a865d3088a13e6d59f8a308636d6df6ac | 6633da8501899ad0e926a42986326fb29513b67d | /src/network/ssf/layer/data_link/circuit_helpers.h | 8b9278d073401d3d72a1851e370d6080d276a490 | [
"BSD-3-Clause",
"OpenSSL",
"MIT",
"BSL-1.0"
] | permissive | gdraperi/ssf | 4218782e94b3d4c8a29270a505647c8d97a0a485 | ee4aff98abc1fcebcab1c5cf77e213d04d9f9e29 | refs/heads/develop | 2021-08-25T16:47:28.529205 | 2017-11-17T14:32:52 | 2017-11-17T14:32:52 | 111,932,788 | 1 | 0 | null | 2017-11-24T15:30:16 | 2017-11-24T15:30:16 | null | UTF-8 | C++ | false | false | 2,791 | h | circuit_helpers.h | #ifndef SSF_LAYER_DATA_LINK_CIRCUIT_HELPERS_H_
#define SSF_LAYER_DATA_LINK_CIRCUIT_HELPERS_H_
#include <list>
#include <sstream>
#include <string>
#include <boost/asio/io_service.hpp>
#include <boost/property_tree/ptree.hpp>
#include "ssf/utils/map_helpers.h"
#include "ssf/layer/parameters.h"
#include "ssf/layer/... |
8dc36ae2a5bff6865aa414959350295da57a45b6 | 17e32121c8e8ffbe114ec438466afca7ed8f316b | /touhou/SDLEngine/ShooterInput.cpp | 1a48db4dc7f29c1ec202814a55e1e768da4f0769 | [
"MIT"
] | permissive | axt32/tohoxp | ee21a46de62f579f10a6927d2741c7bacb960c8b | 1dee92da45f8adb2d6475154bd73f940d30e8cf3 | refs/heads/master | 2022-10-17T18:29:41.550294 | 2020-06-14T09:51:23 | 2020-06-14T09:51:23 | 272,163,237 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 4,617 | cpp | ShooterInput.cpp | #include "ShooterInput.h"
ShooterInput :: ShooterInput()
{
for (int i = 0 ; i < MAXKEYCOUNT; i++)
{
PreviousKeyInput[i] = false;
}
FlushInput();
bGotFocus = false;
}
void ShooterInput :: InitInput()
{
SDL_StartTextInput();
}
void ShooterInput :: FlushInput()
{
for (int i = 0; i < MAXKEYCOUNT; i++)
{
Prev... |
07748593877c2f9dde83dfd39dd0aef6cba7e741 | d3d6d2d6394c45fe8bb30ef502098e6c229d9797 | /Assembler/Assembler.cpp | a9a91285f8ace7d299b953de49ff7679eeb98d41 | [] | no_license | liwei1024/ca | 51da4dbbb08e4f544eb2ed8c8692fcb5aed2d51f | ded158be0e016030f24513d3ab684ba3643b9f93 | refs/heads/master | 2020-04-15T11:08:29.934786 | 2019-03-19T10:51:51 | 2019-03-19T10:51:51 | 164,616,118 | 26 | 14 | null | null | null | null | UTF-8 | C++ | false | false | 169 | cpp | Assembler.cpp | #include "Assembler.h"
bool assembler::assembler(XEDPARSE *parse)
{
return (bool)XEDParseAssemble(parse);
}
bool assembler::autoAssembler(char * instr,bool x64)
{
} |
55b88b2022c9841d6c03065ac1bb7e7a047cc6b9 | f1ee65fbe1ffc43c2aac45e41515f1987eb534a4 | /src/net/third_party/quiche/src/quiche/quic/core/frames/quic_ack_frequency_frame.cc | 9d2fc31dad187d694ad4a6eb276251702b113e3d | [
"BSD-3-Clause"
] | permissive | klzgrad/naiveproxy | 6e0d206b6f065b9311d1e12b363109f2d35cc058 | 8ef1cecadfd4e2b5d57e7ea2fa42d05717e51c2e | refs/heads/master | 2023-08-20T22:42:12.511091 | 2023-06-04T03:54:34 | 2023-08-16T23:30:19 | 119,178,893 | 5,710 | 976 | BSD-3-Clause | 2023-08-05T10:59:59 | 2018-01-27T16:02:33 | C++ | UTF-8 | C++ | false | false | 1,045 | cc | quic_ack_frequency_frame.cc | // Copyright (c) 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "quiche/quic/core/frames/quic_ack_frequency_frame.h"
#include <cstdint>
#include <limits>
namespace quic {
QuicAckFrequencyFrame::QuicAckF... |
6841e430d4aaacbbf20179325f71363caac14ed7 | e1b592074c550149f43c1dce0a4d4ece26bce92c | /Graphs/all paths from source to target.cpp | 49d75ee5087f2a9ac97ff9a132d9e07e120e98f4 | [] | no_license | taruvar-mittal/DSA-Solutions | 2155ccc170c372f92c60fa5acd3676ec4891baf9 | 2a23a688fc553d28d9beb7965c5b2b1db2f8f266 | refs/heads/master | 2023-08-17T07:14:46.680402 | 2021-09-25T15:57:04 | 2021-09-25T15:57:04 | 358,480,177 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,651 | cpp | all paths from source to target.cpp | /*
Leetcode 797. All Paths From Source to Target
ques:-
Given a directed acyclic graph (DAG) of n nodes labeled from 0 to n - 1, find all possible paths from node 0 to node n - 1, and return them in any order.
The graph is given as follows: graph[i] is a list of all nodes you can visit from node i (i.e., there is a di... |
5a6db65dd679678f459090e29c91866b89cdf832 | 942629fb731650dc6341463aabde18132881f7ff | /IfcPlusPlus/src/ifcpp/reader/ReaderUtil.cpp | 88b66c139ed5c32311f51c1e550d08a433fabcef | [
"MIT"
] | permissive | shelltdf/ifcplusplus | 335b7352ac3e4a0979be02d6a23289182a1940d7 | 120ef686c4002c1cc77e3808fe00b8653cfcabd7 | refs/heads/master | 2021-05-07T19:19:27.968924 | 2019-05-03T13:58:14 | 2019-05-03T13:58:14 | 184,751,293 | 1 | 1 | MIT | 2019-05-03T12:26:00 | 2019-05-03T12:26:00 | null | UTF-8 | C++ | false | false | 22,751 | cpp | ReaderUtil.cpp | /* -*-c++-*- IfcQuery www.ifcquery.com
*
MIT License
Copyright (c) 2017 Fabian Gerold
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the ... |
ed8f6d8dcf594e1ec96aa9cb4ebbdcb763c1e48a | 4797932534f11408f701a79654072ee28623d0be | /HashTable/singlylinkedlist.h | 5d6b1a889de7c392c1d3fc0084bb578e042b7c1f | [] | no_license | Stephen-Anderson-2000/Advanced-Software-Engineering | 6d030e2b663370be5afbc243a69b72b2d749a4b4 | 8d61d618286ade254540bc723086938766d059c6 | refs/heads/master | 2023-05-11T12:13:29.171441 | 2021-05-28T21:11:51 | 2021-05-28T21:11:51 | 312,627,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,716 | h | singlylinkedlist.h | #ifndef SINGLYLINKEDLIST_H
#define SINGLYLINKEDLIST_H
template<typename K, typename I>
struct SinglyLinkedList
{
using KeyType = K;
using ItemType = I;
SinglyLinkedList();
struct Node;
Node* head;
void insert(KeyType, ItemType);
void insertRec(KeyType, ItemType, Node*);
ItemType* loo... |
0e28c4578c31a3b292e84a03b9a42485a5d7a653 | 5e4be5370dd3e71354ac4c5bdff42c42dff54073 | /main/i_session_delegate.hpp | ffbf14915dbde587745fddf49fbfefd9b4487ff9 | [
"MIT"
] | permissive | jukorp/rollkit | 8ea02b1db0f776ad9462f649bb34f1517fa6004e | 04cdeba2fad804304a23c66673f58c400c891847 | refs/heads/master | 2020-03-26T18:35:05.638927 | 2018-08-10T03:58:44 | 2018-08-10T03:58:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 321 | hpp | i_session_delegate.hpp | #ifndef I_SESSION_H_DELEGATE_HPP
#define I_SESSION_H_DELEGATE_HPP
#include "request.hpp"
#include "i_session.hpp"
class ISessionDelegate {
public:
ISessionDelegate() {};
virtual ~ISessionDelegate() {};
virtual void request_recv(Request& new_request, ISession* session) = 0;
};
#endif // I_SESSION_DELEGATE_HPP... |
6c2c73f2ad10f5e9a8a9b6ee6ce32b27d0352dcf | 6b5357388049b43be7b5fb3933ef883a147ec012 | /RobotCommonLib/ISerializable.h | ea0e485e320e46e1de6acb73bfb0267f17f1686d | [] | no_license | akosnagy2/Diploma | eb1dc3c2c642aea22eb52ab00cda468c1789ce4c | 00753e658347b4b8fddc7f3b1223b320ed53b4eb | refs/heads/master | 2021-01-23T21:33:58.306157 | 2015-06-25T20:57:50 | 2015-06-25T20:57:50 | 24,590,168 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 328 | h | ISerializable.h | #pragma once
#include <json/value.h>
#include <iostream>
class ISerializable
{
public:
friend std::ostream& operator<<(std::ostream& os, ISerializable& obj);
friend std::istream& operator>>(std::istream& is, ISerializable& obj);
virtual Json::Value getJsonValue() = 0;
virtual void setFromJson(Json::Value& value)... |
6f850a23dbd528763f4bb881a3813154bf737ded | 0e9e809421e6ffbef28fa1d638fd597a30bbe621 | /fresh/whs.cpp | ab8b22fe5dd90fc52f8d719048eea65eae7f608e | [] | no_license | johnskie/CS_453_Lab_03 | 84db1ecb3e38cde066dc4ffb47920f6b652e2125 | d75bb0e8c32d29144d869de197d1a658430697df | refs/heads/master | 2021-01-10T09:57:01.339367 | 2015-11-24T11:26:17 | 2015-11-24T11:26:17 | 45,752,884 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,018 | cpp | whs.cpp | #include <fstream>
#include <stdio.h>
#include <string.h>
#include <sstream>
#include <stdlib.h>
#include <iostream>
#include "Process.h"
#include <vector>
#include "readin.h"
using namespace std;
/*vector<Process> readInFile(char* filename){
std::ifstream file(filename);
std::string str;
std... |
c04f5968d0a86a2a3e93847d3c8bdefcb0af7389 | 841f0a393aa42f9d2a420cc5a807bfd2729a45d7 | /header/afd.h | 942cb408f8e1c8ba903fdada8ceda609018def2d | [] | no_license | DanielPBL/tp_lfa | 3796aff2589c7cf9309f9e33cd910ad988452c80 | c875e573e1e1da857863bda61010a92c3a14d639 | refs/heads/master | 2020-12-31T06:09:08.744809 | 2016-05-29T14:23:24 | 2016-05-29T14:23:24 | 56,291,143 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,004 | h | afd.h | #ifndef __AFD_H__
#define __AFD_H__
#include "estado.h"
#include "transicao.h"
#include <string>
#include <list>
typedef struct ESTADO_COMPOSTO {
Estado *e1;
Estado *e2;
Estado *comp;
} EstadoComposto;
enum Operacao { INTERSECAO, UNIAO };
class AFD {
private:
std::string nome;
std::list<Estado*> estados;
std:... |
84760e5aa909f7d49aa28104a1ea4f1e1f66b46f | 544df57d672532fd8f9595693f8e8cc00489aa0c | /series.cpp | c6f715fddefb2a8493407fa8ddc663e553322291 | [] | no_license | moukraintsev/oop_project | 05e4799b1075570dbfe76eecaac33eb86ba80a30 | c1d8c825b5705c8d712202ac0d73fa30c2d98f7a | refs/heads/main | 2023-01-30T15:05:41.995177 | 2020-12-14T12:49:15 | 2020-12-14T12:49:15 | 321,340,916 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,160 | cpp | series.cpp | #include "series.h"
Series::Series()
{
this -> numberOfSeasons = 0;
this -> numberOfEpisodes = 0;
}
Series::Series(const std::string &nameSource, const int &yearSource,
const std::string &countrySource ,const std::string &durationSource,
const bool &isViewedSource,
... |
ad4a2c322f3970b24182f6937db2d47beb4afbda | 86d197c0e128dbc715771bdbab45f2000f0dc08f | /src/OpCodes.hpp | 55bb9c42cff9542ebb9fda6b7f8633c8c865d236 | [] | no_license | HarbingTarbl/Nemu | 5fc9af4c1fb8580ca5f3e44d1ad378f84a5b2e6f | fd73c04e7455d300dc3deca57af30fbc024e7a8f | refs/heads/master | 2021-01-02T22:57:08.772966 | 2014-04-22T02:02:01 | 2014-04-22T02:02:01 | 16,090,089 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,688 | hpp | OpCodes.hpp | #pragma once
#ifndef _OPCODES_H
#define _OPCODES_H
#include <cstdint>
class CPU;
namespace InstructionTable
{
typedef void(*Callback)(CPU&);
struct InstructionPack
{
Callback Pre;
Callback Exec;
uint8_t Size;
uint8_t Cycles;
const char* Name;
};
const extern InstructionPack Table[256];
const Instr... |
ad1004652018b129d98d505d11155861f46a9273 | abc4cd2f20e873ae23b969252813987ff028d0df | /Projects/project3/store.cpp | 00d18a32c2b1e62f7dfc4e9dd8fe7ca430d20e67 | [] | no_license | Reido50/CSE-232 | 7b291440d4c733336464bb4513aca28a5e978dd3 | 6bd6af37a4ed85d5d854b09fb64d2de27072eba2 | refs/heads/master | 2022-04-24T17:32:05.725968 | 2020-04-26T18:19:09 | 2020-04-26T18:19:09 | 233,287,864 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 855 | cpp | store.cpp | #include "store.h"
#include "item.h"
#include<iostream>
using std::ostream; using std::endl;
#include<string>
using std::string;
#include<algorithm>
using std::find_if;
Store::Store(const Store& s){
name_ = s.name();
location_ = s.location();
items_ = s.items();
}
long Store::getItemsSize(){
return st... |
8e6d193b739e5cdf0e4298ce7c4398a85b204b6e | f78d413c62a60b100f9412074a3eec9ce72af16c | /test/test_1.cpp | 721ce053b53f89e1d31f65b605e6496786730b39 | [
"MIT"
] | permissive | Galfurian/expar | 7bdef526ee8f813b483361b86403fb661028855b | ad3db23c8b3b16b706374de11cc1969f61832690 | refs/heads/main | 2023-06-03T19:53:19.485582 | 2021-06-29T15:13:13 | 2021-06-29T15:13:13 | 380,176,326 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,798 | cpp | test_1.cpp | #include "expar/parser.hpp"
#include <iostream>
class ExpDebugPrinter : public expar::ExpBaseVisitor {
public:
void visit(expar::AstBinary &e) override
{
std::cout << "AstBinary[";
if (e.left)
e.left->accept(*this);
else
std::cout << "NULL";
std::cout << ... |
395d1d5647bd5bd4d26be17a353952fdb0773cc8 | 389129460c5e453ac882f02fc601c239ba66cbc5 | /Classes/OpenLayer.cpp | 493addcb538024b0117dfbd2869044a9c4d28f50 | [] | no_license | wangjunchi/pong | 2eca1e771383920abf2a33c8af370344b5b6e7df | 716de1a6ae86d14620cb0dfc34ea40beacbbc951 | refs/heads/master | 2020-03-07T14:12:39.666681 | 2018-04-02T12:49:16 | 2018-04-02T12:49:16 | 127,521,190 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,538 | cpp | OpenLayer.cpp |
#include "OepenLayer.h"
bool OpenLayer::init()
{
Size winsize = Director::getInstance()->getWinSize();
Label *label = Label::createWithSystemFont("Pong!", "", 48);
label->setPosition(Vec2(winsize.width / 2, winsize.height*0.8));
this->addChild(label);
Label *labelStart = Label::createWithSystemFont("Sta... |
7a2c70fce473f1c16f9320f6a83173083f471462 | 4b9b8e3a6807df68023b71926036817eabb0c575 | /Decorator/Decorator Pattern/Updated/AddBlackSugar.cpp | 42e204548bfb318f58031de9a035aa57c991eed2 | [] | no_license | duongbaochan/Group3-19APCS1-CS202-Project | 5a62e5cbdbf07e0c0d6ce7f8adcb891eb2bf4e87 | 25551c1254cafcad474a112c5f36d6b6a7ba9bc6 | refs/heads/master | 2023-02-14T02:23:30.545543 | 2021-01-09T01:13:08 | 2021-01-09T01:13:08 | 313,612,688 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 304 | cpp | AddBlackSugar.cpp | #include "AddBlackSugar.h"
//Concrete Decorator
AddBlackSugar::AddBlackSugar(MilkTea* base_milk_tea) : AddTopping(base_milk_tea) {}
string AddBlackSugar::serve()
{
return milk_tea->serve() + " + Black Sugar";
}
unsigned long long int AddBlackSugar::price()
{
return milk_tea->price() + 2000;
} |
a5e3953bad6fdbf6af598d109cf7caca9f36726d | c794c764f56868eff07c5ab821eced2dc3e8ae15 | /source/arduino/bobina/Command.h | 7f1300e39c657c02e861dc16910be3f8f257672d | [] | no_license | cjsatuforc/Bobina | 905039f611f8c0f934711eacf9417ecb8f27d23e | fb7597f2f98daedb8162af8d10e18846979e72cd | refs/heads/master | 2020-04-04T16:21:01.245417 | 2016-09-05T15:38:20 | 2016-09-05T15:38:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 538 | h | Command.h | #ifndef COMMAND_H
#define COMMAND_H
/*
* Builtin Commands
*/
#define NO_COMMAND 0
#define MOVE_ON 1
#define MOVE_BACK 2
#define MOVE_RIGHT 3
#define MOVE_LEFT 4
#define TEST_MOTORS 5
/*
* Commands mode
*/
#define AUTOMATIC_MODE 99
#define MANUAL_MODEq 88
/**
* Sends commands to the Robot. It can be
... |
c73ed3917b16b37124e9269f2852bbd01511681e | 746b47dc3c71be2bfa24ae5fa35014a2e45084be | /icode.cc | 41fbcb755e249bc5554af67e3c2173e6cb95cd14 | [] | no_license | sahilsaiyad/Compiler | b6b631000d3515c29d8066b5410a03dc28246593 | 26205d03066a9499770290a5bcce017e4bef173f | refs/heads/master | 2022-02-22T23:19:32.688593 | 2022-02-05T09:44:01 | 2022-02-05T09:44:01 | 201,766,823 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,525 | cc | icode.cc | Instruction_Descriptor::Instruction_Descriptor (Tgt_Op op, string nam, string mnn, string ics, Icode_Format icf, Assembly_Format af){
inst_op = op;
mnemonic = mnn;
ic_symbol = ics; /* symbol for printing in intermediate code */
name = nam;
ic_format = icf; /* format for printing in intemediate code */
assem... |
f8a5aebf8a68cadcea6204ceef540b4e5d142c9f | e24b9f5970e7b128df0212276e1679f3d4a0c046 | /src/led.cpp | 6f036b7254168cda0745bf0ac8ed83cacdb3ddac | [] | no_license | Ficik/esp8266-led-strip | 5e6647315e214f21714692c89819405e8706f7c7 | bd0df2dffa17632b37360b590aed42c1ce213b30 | refs/heads/master | 2021-04-06T01:00:03.316411 | 2018-03-11T14:47:58 | 2018-03-11T14:47:58 | 124,766,622 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,724 | cpp | led.cpp | #include "led.h"
#define COLOR_TAIL 16
#define COLOR_STEP 16 // COLOR_TAIL * COLOR_STEP >= 255
CHSV currentColor = CHSV(0, 0, 255);
CHSV lastColor = currentColor;
CHSV previousColor = CHSV(0, 0, 0);
char state = 1;
int changePosition = 0;
int isChromaOn = 1;
int hue = 0;
CRGBArray<NUM_LEDS> leds;
// ws2811
void app... |
84c2d8e913db7b0456a96a9976798be850117206 | fea74fe7df1e5d5cc5ef170b5f8fb53339e11d6d | /automation/main.cpp | 94561284b679222a8bca6e89b3bdcd434ac551f8 | [] | no_license | osanir/somecodes | 0db2e7e8fb6f4abe23388377c478edc5426bc2a2 | 9f2b0f546531bb6735f498cdebcbf2ddd9fe060d | refs/heads/master | 2020-08-02T17:56:58.520459 | 2019-09-28T07:16:06 | 2019-09-28T07:16:06 | 211,455,696 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 161 | cpp | main.cpp | #include <iostream>
#include "club.h"
using namespace std;
int main(){
Club myClub;
myClub.open_db();
myClub.show_menu();
myClub.close_db();
} |
aa4042c8adf6686e1139c540842ed43da11bfcea | 578350453e9325b26ee64307c81d56ed08ee711d | /src/linux/ServoInterface/ServoInterface.cpp | 5d00881573bb2d01ab78f59b7f142850f5c07c50 | [] | no_license | x-sven/himbeere | 69ea0a9f1411824ce37b3e5cfebd3bb41bcb7eb2 | f5b345891bedcf4635443d6943ff1dc8b278db88 | refs/heads/master | 2020-05-17T15:47:42.610146 | 2015-08-23T10:43:16 | 2015-08-23T10:43:16 | 8,897,883 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,483 | cpp | ServoInterface.cpp | #include "ServoInterface.h"
#include "../../src/crc16/crc16.h"
ServoInterface::ServoInterface(Stream *stream):
num_channel_max(7),
m_stream(NULL),
reciever_state(0),
reciever_couter(0),
rx_channel(NULL)
{
rx_channel = (uint16_t*)malloc(num_channel_max*sizeof(uint16_t));
memset(rx_buffer, 0,... |
92ac57bf11333a15bf8ae2fba53547a7695481b4 | 31a97191e9583f367d7b992aefd54a84417b6e89 | /ctdl/daycontongbangk.cpp | e09c07663654f2218704616c60d5712f8afc54df | [] | no_license | Keybinhoainam/codecpp | 97200e0f585d46724ac4a02b2647d16e7c305715 | 7f5c00cc4299b0122878c8550caa7a49d01ddcf9 | refs/heads/main | 2023-07-13T17:10:44.983890 | 2021-08-24T14:22:57 | 2021-08-24T14:22:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 670 | cpp | daycontongbangk.cpp | #include<bits/stdc++.h>
using namespace std;
int check;
void kt(int n,int k,int a[],long long tong,int b[],int t,map<int,bool> c,int bd)
{
if(tong==k)
{
check=1;
cout<<"[";
for(int i=0;i<t;i++)
{
if(i<t-1)cout<<b[i]<<" ";
else cout<<b[i];
}
cout<<"] ";
}
for(int i=bd;i<n;i++)
{
if(tong+a[i]<=k)... |
36779303aaa1a2ade83a5883ace5fe360adf6a51 | 9fb456a0f1cc77d148a9c5334c084c2a65630592 | /cornellbox/Eyeo2012/Catalog/src/Star.cpp | 249bb94cce12cef1dd11dc2c5d88c83a293f2604 | [
"Apache-2.0"
] | permissive | eighteight/CinderEight | 4deba73910eb3e02d2f881da303205159a77f052 | d9dfc6a0ad9a9e6c5b82624971127f0335d91639 | refs/heads/master | 2021-06-19T14:46:18.448625 | 2021-01-16T20:55:22 | 2021-01-16T20:55:22 | 16,152,693 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,478 | cpp | Star.cpp | //
// Star.cpp
// StarMap
//
// Created by Robert Hodgin on 11/26/11.
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
#include "Star.h"
#include "cinder/CinderMath.h"
#include "cinder/Rand.h"
#include "cinder/gl/gl.h"
#include "cinder/Text.h"
#include "cinder/app/AppBasic.h"
using namespace ci;
... |
5131f0485b7301f2aeb73a13e14146e14bf4dc13 | 67ed24f7e68014e3dbe8970ca759301f670dc885 | /win10.19042/SysWOW64/xwreg.dll.cpp | 9d09c463ba211e986bae9b51ff5182ee721ca87f | [] | no_license | nil-ref/dll-exports | d010bd77a00048e52875d2a739ea6a0576c82839 | 42ccc11589b2eb91b1aa82261455df8ee88fa40c | refs/heads/main | 2023-04-20T21:28:05.295797 | 2021-05-07T14:06:23 | 2021-05-07T14:06:23 | 401,055,938 | 1 | 0 | null | 2021-08-29T14:00:50 | 2021-08-29T14:00:49 | null | UTF-8 | C++ | false | false | 206 | cpp | xwreg.dll.cpp | #pragma comment(linker, "/export:DllCanUnloadNow=\"C:\\Windows\\SysWOW64\\xwreg.DllCanUnloadNow\"")
#pragma comment(linker, "/export:DllGetClassObject=\"C:\\Windows\\SysWOW64\\xwreg.DllGetClassObject\"")
|
d6198cf68980f6d9366507ada44011adfca3664e | 9422bca38b8aae235f344334dd2fc031d124f406 | /verify/aoj/DSL_1_A.test.cpp | 5530969755cee1b875d35ca89ea1d8d7d2bf4dd7 | [
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | debabrota1604/CPtips_cplib | ce2c24c2ae7d9c416c9d8b41ab7e4d3370ff998c | 3c8eda6155237cc987bba0e8bf7509f366d63ba3 | refs/heads/master | 2023-03-19T17:13:22.746275 | 2021-02-21T13:58:52 | 2021-02-21T13:58:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 346 | cpp | DSL_1_A.test.cpp | #define PROBLEM "http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=DSL_1_A"
#include "template.cpp"
#include "data-structure/union-find.cpp"
#include "util/fast-io.cpp"
int main() {
int n = IN, q = IN;
UnionFind uf(n);
rep(q) {
int c = IN, x = IN, y = IN;
if (c == 0) uf.merge(x, y);
else OUT((... |
d78d768b857b100cbdb4c93b705ae73fc2e16aa6 | 7147c899790036e20743abc82abd5e02a0617fc0 | /client/GraphTool.cpp | 506ddaad01b5dc8ea69275a1422cb9810faa3aca | [] | no_license | ckcks12/SafeDesk | a33b92d1540206aa4c9dc9fcf6d6e60ffa00d525 | 7d5ed72f2eef089b3ae54ccece90e33ab06a68db | refs/heads/master | 2021-01-21T04:11:30.826591 | 2016-11-15T15:44:36 | 2016-11-15T15:44:36 | 66,625,956 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,509 | cpp | GraphTool.cpp | //
// Created by lec on 2016. 11. 2..
//
#include "GraphTool.h"
//template<typename T>
//Mat GraphTool::drawGraph(vector<T> vec, int width, int height, Scalar color) {
// Mat mat(Size(width, height), CV_8UC3);
// T max = 0;
// for( size_t i=0; i<vec.size(); i++ )
// {
// if( vec[i] >= max )
// ... |
ff743cf660a85349df18e269a524a1f28c162305 | f529d03f30c39c8a82cff5320863094bef74732b | /amazon246/Clock_angle.cpp | d6f4c5f7bd7fbe72d68104a33a599e6035b54a4b | [] | no_license | ashutosh28/DS_ALGO | c99971414bdd39963f123c8b7a0ee9bff21d98c4 | 370a211dcc5d3ff1921adb571b9c622613a10608 | refs/heads/master | 2021-01-19T00:38:42.982581 | 2017-04-04T14:48:26 | 2017-04-04T14:48:26 | 87,192,728 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,207 | cpp | Clock_angle.cpp | //============================================================================
// Name : Clock_angle.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#inclu... |
5d320b4e259575c9c0ec281a4d0bc972f93f43d5 | c32ee8ade268240a8064e9b8efdbebfbaa46ddfa | /Libraries/m2sdk/ue/game/vehicle/S_WheelInitData.h | 5b313adb7bffe62f59aa2af206e68b99b14230e4 | [] | no_license | hopk1nz/maf2mp | 6f65bd4f8114fdeb42f9407a4d158ad97f8d1789 | 814cab57dc713d9ff791dfb2a2abeb6af0e2f5a8 | refs/heads/master | 2021-03-12T23:56:24.336057 | 2015-08-22T13:53:10 | 2015-08-22T13:53:10 | 41,209,355 | 19 | 21 | null | 2015-08-31T05:28:13 | 2015-08-22T13:56:04 | C++ | UTF-8 | C++ | false | false | 597 | h | S_WheelInitData.h | // auto-generated file (rttidump-exporter by h0pk1nz)
#pragma once
#include <ue/game/crashobject/S_AddDeformPartsInitData.h>
namespace ue
{
namespace game
{
namespace vehicle
{
/** ue::game::vehicle::S_WheelInitData (VTable=0x01E65200) */
struct S_WheelInitData : public ue::game::crashobject::S_AddDeformPartsInit... |
13341b7c13d6ee6948a3e1282d01bc314971ebf4 | 72c82550fc7c547894df97f71933418f176dfa7d | /main.cpp | 5be099a5e458f47ac52c901d70a4c0c7ea8d285b | [] | no_license | PuKoren/opengl-b-splines | 054690ff01ab9372ef8b00ea7526d8f77c488226 | b98c4ccb01c0ba1d247a220ce9d1588a2ae86cb7 | refs/heads/master | 2016-09-06T00:48:45.485542 | 2013-05-21T08:00:03 | 2013-05-21T08:00:03 | 9,568,785 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,903 | cpp | main.cpp | #include <stdio.h>
#include <string.h>
#include <GL/freeglut.h>
#include "Application.h"
#include "config.h"
void displayText(float x, float y, int r, int g, int b, const char *string);
void keyboard(unsigned char key, int x, int y);
void keyboardSpecialKeys(int key, int x, int y);
void mouse(int button, int state, in... |
1de244ce2378de992c72d71310eaea7e5c7f31cd | 3bb233c305fa678255d740bfa54cd885e63db2ba | /5º Semestre/Laboratório de Projeto de Algoritmos/Tarefas/AS03_Altura.cpp | 7ee95a24b8b571286d69af070423e010f805bf20 | [] | no_license | rithienatan/PUCMG-CC | 124cb7d72508522cfebb5727bc4394eac67c1cd1 | dece46c8d5e37dca6536bd964ec189a258ec333d | refs/heads/master | 2022-06-13T09:43:16.554384 | 2022-06-07T19:31:45 | 2022-06-07T19:31:45 | 207,550,174 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,576 | cpp | AS03_Altura.cpp | /**
* @author Rithie Natan Carvalhaes Prado
* Matricula: 541488
* @version 0.1.0
*
* Função de complexidade:
* quicksort: n log(n)
* main: n * (n + quicksort + n) = n²log(n) + 2n²
*
* O(n²log(n))
*/
/*----- includes -----*/
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include ... |
fdd2520212b78fa1e8002d6907089b30cd49458e | bf361141e8af9ede987ea3faa89017cfc2c5e183 | /src/storage/storage.cc | 08af99621b40f4384f3e73e3dd108405d1fd77b5 | [
"Apache-2.0"
] | permissive | xiangliu886/mxnet | 4ad3ace7c887c8e8ce8771a49df884e4f106ecfd | f778bfe930c7f3c7043a7e98535abb9d82bae6ad | refs/heads/master | 2021-01-17T23:00:07.742295 | 2015-09-30T14:26:05 | 2015-09-30T14:26:05 | 43,232,809 | 1 | 0 | null | 2015-09-27T03:28:20 | 2015-09-27T03:28:17 | null | UTF-8 | C++ | false | false | 3,248 | cc | storage.cc | /*!
* Copyright (c) 2015 by Contributors
*/
#include <mxnet/storage.h>
#include <mshadow/tensor.h>
#include <dmlc/logging.h>
#include <array>
#include <mutex>
#include <memory>
#include "storage_manager.h"
#include "naive_storage_manager.h"
#include "pooled_storage_manager.h"
#include "cpu_device_storage.h"
#include ... |
2eab2e69e40507e160611b88224a64a52a9c32f0 | 1e0ecf70b6ea487de3fa985bb2c2699773aeee3f | /C++/Retired_Code/Lexathon-MIPS.cpp | 48728eec198692908d1faa89ef839c7fe5f74a94 | [] | no_license | kevincvanhorn/lexathon-mips | 8700426e780774afc7e9d22a69fc70717541cb1d | 7981a66d1117e767fc1e753c969552e0b1866fa5 | refs/heads/master | 2020-05-01T03:47:37.069578 | 2016-12-02T04:46:48 | 2016-12-02T04:46:48 | 68,539,851 | 0 | 0 | null | 2016-12-01T22:55:00 | 2016-09-18T18:35:30 | Assembly | UTF-8 | C++ | false | false | 6,921 | cpp | Lexathon-MIPS.cpp | //Author(s): Kevin van Horn
// Nishant Gurrapadi
// Thach Ngo
//Prof: Nhut Nguyen
//Assignment: Lexathon Project
//Class: CS3340.501/ Computer Architecture
//Due: 1 December, 2016
#include <iostream>
#include <fstream>
#include <iomanip>
#include <random>
#include <string>
usi... |
b257c119881eb9dd8bb8e8ca502060d50dc7bd66 | b10479a8b9187f885f1486a9fb6aaba368872b59 | /Parser.hpp | c7e51544710edc87477b85cb3539d959e9d2b881 | [] | no_license | dronperminov/RPNCalculator | 898f059084d481ad9133903a8d834b89a8e6f658 | db2f77b0fab6ef8d0e3a02f302967b15baf0f31f | refs/heads/master | 2020-08-12T07:09:36.446239 | 2019-10-13T09:39:19 | 2019-10-13T09:39:19 | 214,713,388 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,874 | hpp | Parser.hpp | #pragma once
#include <iostream>
#include <string>
#include <vector>
class Parser {
std::string expr; // строка выражения
bool IsOperator(char c) const;
bool IsBracket(char c) const;
bool IsLetter(char c) const;
bool IsDigit(char c) const;
bool IsLetterOrDigit(char c) const;
public:
Parser(const std::string... |
de5cad3e1aa1ae988763d936f48caa78710113b8 | 33035c05aad9bca0b0cefd67529bdd70399a9e04 | /src/boost_compute_container_flat_set.hpp | 5faefb12fef50977ee08643e1479894cba505dba | [
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | elvisbugs/BoostForArduino | 7e2427ded5fd030231918524f6a91554085a8e64 | b8c912bf671868e2182aa703ed34076c59acf474 | refs/heads/master | 2023-03-25T13:11:58.527671 | 2021-03-27T02:37:29 | 2021-03-27T02:37:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 48 | hpp | boost_compute_container_flat_set.hpp | #include <boost/compute/container/flat_set.hpp>
|
a2fbe3ec06acc1a2797003e82ceca896949976f1 | 390241b7131e0d7652b5fba9884e8bfe5aa08f83 | /MainUI/Logical/SettingSub/TextSettingLogic.h | 38e9bc3875ce26d6cdc0fcefb58a9eb57ca7b62f | [] | no_license | hongzhuxuke/VlsClient | 718762b2fdd0494753fd5193ac83a51f19271c3d | 64c4eb7f8aa62d875cb8aa7727ec538f551e627f | refs/heads/master | 2022-12-23T17:50:47.136684 | 2020-09-25T07:31:44 | 2020-09-25T07:31:44 | 296,022,926 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 683 | h | TextSettingLogic.h | #ifndef __TEXT_SETTING_LOGIC__H_INCLUDE__
#define __TEXT_SETTING_LOGIC__H_INCLUDE__
#pragma once
class TextSettingDlg;
class TextSettingLogic {
public:
TextSettingLogic(void);
~TextSettingLogic(void);
public:
BOOL Create();
void Destroy();
// 处理消息
void DealMessage(DWORD adwMessageID, void* apDa... |
e2420500907af23b9862d42d9e165b01c2e70899 | c9fec000e3e16b7b94079ca9ae39eb9a4dc3e384 | /tp2/clientThread.h | d8630d16838cda2c3a73a2ce6d064561d028f871 | [] | no_license | jpraymond/ift2245 | 212f934f5bcd7f4e0e72385efca2300ae215cbb6 | 188dddc0525eda466a337fc14ae36b52cae57f65 | refs/heads/master | 2021-03-24T12:25:17.473157 | 2015-04-22T17:59:20 | 2015-04-22T17:59:20 | 30,256,074 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,198 | h | clientThread.h | #ifndef CLIENTTHREAD_H
#define CLIENTTHREAD_H
#include <string>
//POSIX library for threads
#include <pthread.h>
#include <unistd.h>
class ClientThread {
public:
int ID;
static int portNumber;
static int numClients;
static int numResources;
static int numRequests;
ClientThread();
~ClientThread();
void cr... |
1f4ef0f4de89c58224eafb566d69218ca1687693 | 09fb445742ff40791b0f49958c7af22dc9291c37 | /pageRank_hls/amdpool/pageRank.cpp | 4b0c636274362213cfda9a0cd763949bffe38122 | [] | no_license | xiaotan2/meng-reconfigurable-computing | a87dbaf577ea4065602730220b06a48d73b56049 | 6c42101f2905ba7143b4c74bc804f692bf805ae9 | refs/heads/master | 2020-04-06T06:58:35.682020 | 2016-08-01T04:56:29 | 2016-08-01T04:56:29 | 42,365,460 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,643 | cpp | pageRank.cpp | //=========================================================================
// pageRank.cpp
//=========================================================================
// @brief : A PAGERANK implementation of sine and cosine functions.
#include <hls_stream.h>
#include <iostream>
#include "pageRank.h"
//--------------... |
de4dc1d85b38bdfe04e4022c9ba68158367b7f81 | daa23f97a52485eabc1d548f3323c13eaaf9b89d | /interface/FullVector.h | 53399e7c066eab328ef47eab9b19ba9e04ee4fcc | [
"Apache-2.0"
] | permissive | felicepantaleo/helix-fitting | 40c76e5dfe9c3f301f5caf2cc10bb81ab5efe56f | d1540156430f0e4ea85a9fd0e0f08e3447f0ec3f | refs/heads/master | 2020-12-24T06:37:32.525886 | 2016-11-11T10:56:54 | 2016-11-11T10:56:54 | 73,467,198 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,768 | h | FullVector.h | /*!
* \file FullVector.h
* \brief FullVector = StateVector + covariance matrix
*
* 5x5 covariance matrix added.
* Space for storing residuals is provided also.
*
* \author Wolfgang Waltenberger
* \date Thu 05 Jul 2001 15:15:46 CEST
*/
#ifndef FullVector_H
#define FullVector_H
#include "DetElement.h"
#include... |
3abddd6696e6eef6cf4977f779c295233cf4982a | b02410b3e3b1cbe56cd5d434e6284e6ee0f93f6f | /External Iterator/External Iterator/List.cpp | 35cc7fd886d845db7804f1f31ff98d835db29e04 | [] | no_license | blake27182/CS2420 | 37529065fda4a9f0689712e8662471118ef1b57a | dc4a59aefb283df7e579c42e28b57be66d60841c | refs/heads/master | 2022-02-24T11:26:38.029563 | 2019-09-11T17:26:02 | 2019-09-11T17:26:02 | 198,278,597 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,893 | cpp | List.cpp | #include "List.h"
void List::deallocator(Node* cursor){
if(cursor->next == nullptr){
delete cursor;
} else {
deallocator(cursor->next);
delete cursor;
}
}
List::~List(){
deallocator(head);
}
List::List(){
head = nullptr;
tail = nullptr;
}
Iterator List::begin(){
r... |
cc8e9b381bba8a4d5e0c3e641d9a4d47cd6cfdab | 4bcc9806152542ab43fc2cf47c499424f200896c | /tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types_test.cc | 1f21ab98c8746a52b2b26cd3badde9b6decbef48 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | tensorflow/tensorflow | 906276dbafcc70a941026aa5dc50425ef71ee282 | a7f3934a67900720af3d3b15389551483bee50b8 | refs/heads/master | 2023-08-25T04:24:41.611870 | 2023-08-25T04:06:24 | 2023-08-25T04:14:08 | 45,717,250 | 208,740 | 109,943 | Apache-2.0 | 2023-09-14T20:55:50 | 2015-11-07T01:19:20 | C++ | UTF-8 | C++ | false | false | 4,223 | cc | convert_tf_quant_types_test.cc | /* Copyright 2023 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
eda74350dbba4bb422853b6d0aaf04aae49ecade | e83488c383a71a4e20ab39374a953bb016d025cf | /AtCoder/Brown/ABC157C.cpp | 5b1d8eb1eb8f5feb3df9a39e5c9a3b167935214e | [] | no_license | uechoco/CompetitionProgramming | 1cf41971b03ad47fd05a83b582bb2915d600d99b | e922f25d29f95f7f9c22a41bfa98dc5979b4890f | refs/heads/master | 2023-01-06T17:07:53.403586 | 2020-11-03T13:30:57 | 2020-11-03T13:30:57 | 268,006,857 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,491 | cpp | ABC157C.cpp |
#include <bits/stdc++.h>
using namespace std;
// syntax sugar: `for (int i = 0; i < N; ++i)`
#define rep(i, N) for (int i = 0; i < (int)(N); ++i)
// syntax sugar: `for (int i = 0; i < N; ++i)`
#define REP(type, name, beginValue, endCondValue) \
for (type name = beginValue; name < endCondValue; ++name)
// syntax sug... |
b402937327724d8d8164c360a82badb9e2b0669c | dc6550b7f51cdfec7e0769dabec21ee21cec56f1 | /tests/cpp/data/test_sparse_page_raw_format.cc | 7226558808999f7f1cc29ecfb32f263e0db28f85 | [
"Apache-2.0"
] | permissive | huaxz1986/xgboost | 748527f5d8a05054ac7d6ab3629c5cfd28b50671 | 962a20693fd5e6266618edeef6c43b35e42fa675 | refs/heads/master | 2023-06-11T02:19:29.836548 | 2023-06-05T00:05:38 | 2023-06-05T00:05:38 | 131,370,480 | 3 | 4 | null | 2018-04-28T03:51:00 | 2018-04-28T03:51:00 | null | UTF-8 | C++ | false | false | 2,301 | cc | test_sparse_page_raw_format.cc | /**
* Copyright 2021-2023, XGBoost contributors
*/
#include <gtest/gtest.h>
#include <xgboost/data.h> // for CSCPage, SortedCSCPage, SparsePage
#include <memory> // for allocator, unique_ptr, __shared_ptr_ac...
#include <string> ... |
0fa05f6fbfa251df23bc11fac7fde1fc10ec91bb | d69210f40e45bec837e34c0b4ed46a6bdbf06d1b | /include/Misc/FrameRateCalculator.h | 07818ee9f8186c4f83e6e26da83d8e92772aa31e | [
"MIT"
] | permissive | jambolo/Misc | 5871ffb3dc6490fd191a9b6c6c3e0fb4fe16e0b3 | 0b2779c9bb1954294a722bddd51dc2ad5e449a1c | refs/heads/master | 2021-01-11T11:45:11.631294 | 2020-12-08T23:57:25 | 2020-12-08T23:57:25 | 76,819,398 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,279 | h | FrameRateCalculator.h | #if !defined(MISC_FRAMERATECALCULATOR_H_INCLUDED)
#define MISC_FRAMERATECALCULATOR_H_INCLUDED
#pragma once
#include <chrono>
//! A class that keeps track of the frame rate.
class FrameRateCalculator
{
public:
//! Constructor.
FrameRateCalculator();
//! Updates the state and computes the new frame rate ... |
d0a1dea9d86e55d2e9e9362fafbff5a13bd60e53 | 04314015734eccb309857652e73944be8996fedc | /src/ExternLibs/fox/src/FXArrowButton.cpp | 7b614530f5e91fbea3409460e2d4bf7ac69f50c5 | [] | no_license | onexianjian/tsiu | 0ed1c2df3f39a445e039d1ac8752a189dbfe21e9 | 7f37d79588d3655ec52f7cfd04019e332b5bcdf7 | refs/heads/master | 2020-05-20T09:22:21.261314 | 2015-06-11T06:41:18 | 2015-06-11T06:41:18 | 185,498,769 | 1 | 0 | null | 2019-05-08T00:38:11 | 2019-05-08T00:38:11 | null | UTF-8 | C++ | false | false | 17,283 | cpp | FXArrowButton.cpp | /********************************************************************************
* *
* A r r o w B u t t o n O b j e c t *
* ... |
2b88d28ecf84344d3ec6225d142493b9a9c69a4a | a92708d28a0ec6ddf083ae42a47e35f2121f0eba | /foundation/graphic/lite/frameworks/ui/include/font/ui_muti_font_manager.h | 671afa4facc1fbfd7d25e432a074416f0ffdde17 | [
"Apache-2.0"
] | permissive | km1042412/my-OHOS | 322eca402c28eb68272c58214243ecb8a0960b3c | 3c74564d9c6c3b33b836c6a3cd1a6dbc6d4bc18e | refs/heads/main | 2023-03-28T05:36:56.244181 | 2021-03-16T06:25:01 | 2021-03-16T06:25:01 | 348,194,410 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,485 | h | ui_muti_font_manager.h | /*
* Copyright (c) 2020 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
8d1fe86ff0d018a12af8e522b5ffddbec4bbf598 | 796fce2ea689d64583ca0011f934886d6ad9b5bb | /Classes/BattleBuilding.cpp | 97ba6874c3885a9ee076353eedf4048a11c31c4a | [] | no_license | hackerlank/cocgame | 7fcd0b0e3bb5d3fab7c780a7250637d086ac8d84 | 390370cfb126e6cc7191bff85ba2dcc2e38a4652 | refs/heads/master | 2020-06-14T23:25:04.333232 | 2013-11-10T13:37:18 | 2013-11-10T13:37:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,108 | cpp | BattleBuilding.cpp |
#include "BattleBuilding.h"
#include "GameUtil.h"
CCBattleBuilding::CCBattleBuilding()
:isEnemy(false)
,isDying(false)
,isCastle(false)
,fSpeed(0)
,fRange(480)
,nDamage(2)
,nHP(1000)
,nOriginHP(1000)
{
}
CCBattleBuilding::~CCBattleBuilding()
{
}
CCBattleBuilding* CCBattleBuilding::create(const char *pszFileName)
{... |
da16b30f85ab33b95c1fd0e82f5a15191d1fc083 | 753679167aa71bd60ec7a87892291ecd60cea9c3 | /UpDate OS Scheduling/FCFS.cpp | 5479e785f0b1c04dd94d2064e09772350307f6ab | [] | no_license | SumonKantiDey/Univ-Lab-Work | fcdfaa4ad2fa02549df183f88b8503f212b71c04 | d4a6c9b043ae56eb51bfa642f2a63d673a53290d | refs/heads/master | 2021-01-22T01:54:28.885605 | 2018-06-23T21:26:27 | 2018-06-23T21:26:27 | 81,015,557 | 0 | 0 | null | 2017-02-05T19:16:26 | 2017-02-05T19:16:26 | null | UTF-8 | C++ | false | false | 1,604 | cpp | FCFS.cpp | #include<bits/stdc++.h>
using namespace std;
string pp[10];
int B[10],A[10],TBr[10],C[10],TAT[10],W[10];
int main()
{
cout << "First Come First-Served Scheduling"<<"\n";
cout <<">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"<<"\n";
cout <<"Number of process \n";
int n,ww = 0;
cin >> n;
for(int i = 1... |
e1c25647d28e8440266e648c514a478edea26f1f | b93d253b0fd1229597518cbfa62f0900b5689b24 | /test/common/minimize_composed_function_test.cpp | 5db4f99c51946568f999d45f86ad7e076007f5eb | [
"BSD-2-Clause"
] | permissive | praveenmunagapati/charge | 3e95e58e13dc16d998cf59bd7b58fcf7cd86ef1c | 85e35f7a6c8b8c161ecd851124d1363d5a450573 | refs/heads/master | 2020-04-13T16:39:17.330291 | 2017-12-26T14:51:24 | 2017-12-26T14:51:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,192 | cpp | minimize_composed_function_test.cpp | #include "common/minimize_composed_function.hpp"
#include "../helper/function_comparator.hpp"
#include "../helper/function_printer.hpp"
#include <catch.hpp>
using namespace charge;
using namespace charge::common;
TEST_CASE("Combine linear and PWL function") {
LimitedHypOrLinFunction f{1, 2, LinearFunction{-0.5,... |
c7854389bef589e35252b977c5c2b29ca001371a | 9fa46c7489fba285740fe0b0fd1acd330e469c79 | /map.cpp | 84ba50c57191e179f0b54362c32244528cfa852e | [] | no_license | NexusGrid/Sibir | 44b72ac6efb290ae77819595bcc9a6917070fa3b | 34bbad3e4ab2de6494033a3cee517e423afa4068 | refs/heads/master | 2020-03-16T00:15:06.953181 | 2018-05-28T00:13:31 | 2018-05-28T00:13:31 | 132,287,035 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 718 | cpp | map.cpp | #include "map.h"
#include <iostream>
void map::setLength(int x)
{
mapLength = x;
}
void map::setHeight(int x)
{
mapHeight = x;
}
int map::getLength()
{
return mapLength;
}
int map::getHeight()
{
return mapHeight;
}
map::map()
{
mapLength = 20;
mapHeight = 20;
}
map::~map()
{
}
void map::initM... |
48855d9faa18f23d5b8845277350509570717b4f | 76b2f3df691fa986d66f8e496ef87feec5f3eb25 | /WakeMEup/Codes/RX_TX_WebServer/RX_TX_WebServer.ino | 9107841c7dcd7aa6915518c1dc14e77a8ef62fad | [] | no_license | udareechk/Projects | 45cfb0fbb789dbb71ccc64980a4640f7fd402353 | 46476c689e314698deca7513e5908f9c3790aa78 | refs/heads/master | 2021-01-12T10:52:27.329733 | 2017-08-31T13:33:25 | 2017-08-31T13:33:25 | 72,740,044 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,457 | ino | RX_TX_WebServer.ino | #include <ESP8266WiFi.h>
#include <WiFiClient.h>
// size of buffer used to capture HTTP requests
#define REQ_BUF_SZ 90
// size of buffer that stores the incoming string
#define TXT_BUF_SZ 50
const char* ssid = "WiFi iData_469C";
const char* password = "12345678";
WiFiServer server(80);
const int ledPin = D12... |
d80f620e47a2a9fc07836a30c6846b348b894e30 | 39064b3c6307323d9b3e5c0e287622bd0c2b25bf | /LittleGame/idlist.h | 16ccdc24c89431c72e51340abdc2f9406d318158 | [] | no_license | yukyduky/LittleGame | b8cf0a298208bca56b0ef832bbc7288c42618516 | f02a57a8bd3106e065163fccc4189e4264d4d895 | refs/heads/master | 2021-05-12T02:02:54.926686 | 2018-03-15T10:40:56 | 2018-03-15T10:40:56 | 117,570,550 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,609 | h | idlist.h | #pragma once
#ifndef IDLIST_H
#define IDLIST_H
#include <list>
#include <vector>
#include <unordered_map>
#include <queue>
#include <functional>
template<class T>
class idlist
{
private:
std::list<size_t> m_AvailableIDs;
std::priority_queue<size_t, std::vector<size_t>, std::greater<size_t>> m_AvailableIndexes;
std... |
a70082ccecd311ce6d0d1f5374df020d7c0e859d | 46f157b7257a89cec68132ec69c6443f5b7469a7 | /ModelViewer/SubgridPage.h | a12b4191716f897fbd6f149aeb24ac2fa808feaa | [] | no_license | Phylian/modelview | 08cbce6866df6fd3fcf888e7393fcf92af4d1a24 | 36e02312d46bbba7c72f02be6209a74b1a2afc15 | refs/heads/master | 2021-06-25T02:55:44.926109 | 2017-08-24T23:53:15 | 2017-08-24T23:53:15 | 100,531,819 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,038 | h | SubgridPage.h | #if !defined(AFX_SUBGRIDPAGE_H__C4133468_03FF_11D4_8108_00C04F61038F__INCLUDED_)
#define AFX_SUBGRIDPAGE_H__C4133468_03FF_11D4_8108_00C04F61038F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SubgridPage.h : header file
//
/////////////////////////////////////////////////////////////////////... |
6f4aab59447dff06684c329b748455b632f7f62a | ae56ce265c64cfcabf9c8b2d8aaf3be0edf8ed4f | /lab01-05/src/ntree.h | e3f114308edcdcde9edf6aea7ab9287b9c0cb36d | [] | no_license | rod98/MAI_OOP | 0af6cc682ed19c088cdf97921a0f7f88efd23e5c | be113661bb93e70de9bfde17dd7649a7ab68e127 | refs/heads/master | 2020-04-17T15:47:31.182605 | 2019-01-20T22:17:41 | 2019-01-20T22:17:41 | 166,713,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 726 | h | ntree.h | #ifndef NTREE_H
#define NTREE_H
#include <memory>
#include "trap.h"
template<class T> class Ntree {
public:
Ntree();
Ntree(std::shared_ptr<T>& val);
Ntree(std::shared_ptr<T>&& val);
~Ntree();
void add(std::shared_ptr<T>& val, int *path);
void add(std::shared_ptr<T>&& val, int *path);
void del(int *p... |
aa12178a671273ef75bc561a4338c12ae6a5599a | 417836b8bca49dfbd0f55fcc616161fb97b87ba7 | / my-simple-code/src/mysdk/database/mysql/QueryResult.cc | 3cb2704b76a513dc72a0905ac0aec159647a41b6 | [] | no_license | befollow/cppGameFrame | 636c729d4fe4b44b36e4d2190773b0a4ec0e0ea1 | c494a489e0cdde7e95712fd543b709cb33586bb4 | refs/heads/master | 2020-03-20T08:51:16.215723 | 2015-03-19T06:44:49 | 2015-03-19T06:44:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 947 | cc | QueryResult.cc |
#include <mysdk/database/mysql/QueryResult.h>
using namespace mysdk;
ResultSet::ResultSet(MYSQL_RES *result, MYSQL_FIELD *fields, uint64 rowCount, uint32 fieldCount):
m_rowCount(rowCount),
m_fieldCount(fieldCount),
m_result(result),
m_fields(fields)
{
m_currentRow = new Field[m_fieldCount];
assert(m_... |
2f4365a36d5f7943e01368f842e024a196a78f9b | 287a97cf97fd9f3108452789e9537522c064ff97 | /_old/template_v1/数学/lucas_std.cpp | 414051cbe3a4d56885f50166fe61c9599c08fa43 | [] | no_license | mollnn/XCPCHandbook | 4e083c872f8ddcf83bd9cc2132d7c2f62af1f303 | acc6f07521bf59927ba762ba953c0e4ea647cc42 | refs/heads/main | 2023-03-31T11:25:34.593525 | 2021-04-02T05:08:18 | 2021-04-02T05:08:18 | 331,952,549 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 655 | cpp | lucas_std.cpp | // Lucas std
// input n,m,p
// output C(m,n+m) mod p
// p is a prime, O(p*log(n)/log(p))
#include<bits/stdc++.h>
#define N 100010
using namespace std;
typedef long long ll;
ll a[N];
int p;
ll pow(ll y,int z,int p){
y%=p;ll ans=1;
for(int i=z;i;i>>=1,y=y*y%p)if(i&1)ans=ans*y%p;
return ans;
}
ll C(ll n,ll m){... |
ea031b8012083a64ee0341b06820dd08cedd50e4 | a7764174fb0351ea666faa9f3b5dfe304390a011 | /src/RWStepRepr/RWStepRepr_RWCompoundRepresentationItem.cxx | cab5229eed22fc7ef404c060e8a217c5ba29595c | [] | no_license | uel-dataexchange/Opencascade_uel | f7123943e9d8124f4fa67579e3cd3f85cfe52d91 | 06ec93d238d3e3ea2881ff44ba8c21cf870435cd | refs/heads/master | 2022-11-16T07:40:30.837854 | 2020-07-08T01:56:37 | 2020-07-08T01:56:37 | 276,290,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,154 | cxx | RWStepRepr_RWCompoundRepresentationItem.cxx | #include <RWStepRepr_RWCompoundRepresentationItem.ixx>
#include <TCollection_HAsciiString.hxx>
#include <StepRepr_HArray1OfRepresentationItem.hxx>
#include <StepRepr_RepresentationItem.hxx>
RWStepRepr_RWCompoundRepresentationItem::RWStepRepr_RWCompoundRepresentationItem () { }
void RWStepRepr_RWCompoun... |
e871052e712e4c0d64f025fc6c69b39e7da5da3a | 2292df0f8b4670bb979b92b4e797fb31686be083 | /面向对象基本案例/main.cpp | 7252f07c1a89d3d655ab405694ac9da30e4d48d5 | [] | no_license | LiuYiZhou95/LeetCode | 25877207a15283d9aa1885d3be6eb428aebedfca | 2bcbdac2b5fed4f46fff30951cabc2ddbbc45ffe | refs/heads/master | 2020-08-27T19:47:43.276752 | 2019-10-25T07:24:54 | 2019-10-25T07:24:54 | 217,474,743 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 396 | cpp | main.cpp | //
// main.cpp
// 面向对象基本案例
//
// Created by B612 on 2019/10/18.
// Copyright © 2019年 action.zhou. All rights reserved.
//
#include <iostream>
#include "Audience.h"
#include "Comedy.h"
int main(int argc, const char * argv[]) {
// insert code here...
Audience * audience=new Audience();
Comedy* comedy=new... |
daed7a793b48c6ee5bad4084136799c36c30a4bb | 5a44b5f9712ae3cead027d735bc5568a6c132679 | /testing/old_openFoam/openFoam1/shallow/shallow50/0.1/p | 56844c5d2ac965f135d37a5fd96d92c70f9d08eb | [] | no_license | georgenewman10/cfd | d12e86198ac8e8bf7345a0fc20311c0b94bbeda0 | 1d8faa9d852545f16920c2b02273a68af9db19ae | refs/heads/master | 2022-01-06T00:26:14.191816 | 2019-05-23T14:54:09 | 2019-05-23T14:54:09 | 170,887,037 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,867 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6.0
\\/ M anipulation |
\*-----... | |
82ac7e63c3ee8d3264de49fc13f4f909be92492b | a5a04c9377fa7d405788045ea4d3ae49eaa74ec5 | /src/bl_program.cpp | c6533db815ff494a09530bada72ddec406207d9d | [] | no_license | bonnefoa/bull | 895256852b0f06d5c749252f4e2b59724a1007d5 | 8ffb35819bd3f6dc42dff75c221e8ca84f34cfc7 | refs/heads/master | 2020-03-30T17:22:49.790294 | 2013-07-12T08:02:27 | 2013-07-12T08:02:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,345 | cpp | bl_program.cpp | #include "bl_program.h"
#include <stdio.h>
#include <bl_util.h>
#include <bl_log.h>
void BlProgram::loadProgram()
{
if (programId == 0) {
programId = glCreateProgram();
INFO("Initialized program with id %d\n", programId);
} else {
for(unsigned int i = 0; ... |
daf3a94598bdc1bdc27551a10b37609f744bd26f | 987de44706784422b68b9e38623dc053e312f721 | /main.cpp | 26dcb56c02f130a299939db34ef7aa01f047af33 | [] | no_license | YMYmiemie/taobao | e93a8ace4690ab496a13e5fbb2c06b92a1af057c | 591d3c790278436574689f083db9ac8fd8c562d2 | refs/heads/master | 2020-04-21T08:47:21.548868 | 2019-02-26T07:52:40 | 2019-02-26T07:52:40 | 169,429,665 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,500 | cpp | main.cpp | #pragma once
#include"admin.h"
#include<iostream>
using namespace std;
int main()
{
int n(0);
cout << "欢迎进入网点购物管理系统" << endl;
cout << "==========================================" << endl;
cout << "1.用户登录 2.用户注册 3.管理员登录 4.退出" << endl;
cout << "==========================================" << endl;
co... |
04793c369401acd43fffe40c240abe71ca886aac | 87636ec4189f02435221d4705386383445511001 | /brown-ros-pkg-read-only/experimental/rlrobot/icreate_nav/src/.svn/text-base/rlglue_icreate_env_codec.cpp.svn-base | 0debc296c847e6e87fe3c56bdaff26b26c940948 | [] | no_license | mainchuh/ROSMAV | 349bfc6b2bff4869b17a357ccdc44177aefd174e | 8988d98c45b6599ddc38dcc2f1e0c7d8b1f27f36 | refs/heads/master | 2021-01-21T15:57:29.119669 | 2013-05-13T13:05:57 | 2013-05-13T13:05:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,847 | rlglue_icreate_env_codec.cpp.svn-base | /**
This is a copy of RL_client_environment for the irobot_createa couple
of specific calls filled in. To customize the codec, just
look for places where default calls are happening, like:
env_init, env_start, env_step, etc, etc.. and then write a bit of code to
emulate the same behavior using whatever project you are... | |
c3207baa47de5d293e9596502f7b39527bd2df8b | 1cb7eb93e807642d756cc5e67bdd143ee1b786e7 | /cc/test-chart-modify.cc | cd3870c3e47560870143a869b3fa03bbc8c80fcb | [
"MIT"
] | permissive | acorg/acmacs-chart-2 | fcd7f6be003f6a8050b634c5bf63ddef6dee3092 | b584c0c8c63b72f552078583bac87d48436f0780 | refs/heads/master | 2022-09-12T10:29:03.726010 | 2022-08-31T07:55:20 | 2022-08-31T07:55:20 | 108,879,170 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 37,548 | cc | test-chart-modify.cc | #include <iostream>
#include <unistd.h>
#include <cstdlib>
#include <array>
#include "acmacs-base/argc-argv.hh"
#include "acmacs-base/filesystem.hh"
#include "acmacs-base/read-file.hh"
#include "acmacs-base/temp-file.hh"
#include "acmacs-base/enumerate.hh"
#include "acmacs-chart-2/factory-import.hh"
#include "acmacs-c... |
3de156738b8a8dbb9940275c0e6fce0ef5893181 | 8899da7ed2494e87d502cccdc3884a2b3e0e671e | /VideoSmokeDetection/VasIO.cpp | 80072065332b00dcd190b29bde7a53b639c0530a | [] | no_license | powerlic/VSD | 552f9c228528c028dd85147e1e07a8c1c6196534 | c5e5056804c08410e4c58a1fe8fbc415e836c1fc | refs/heads/master | 2021-01-01T18:19:06.287153 | 2017-07-25T11:55:42 | 2017-07-25T11:55:42 | 98,299,661 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,116 | cpp | VasIO.cpp | #include"stdafx.h"
#include "VasIO.h"
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/text_format.h>
namespace vas
{
using google::protobuf::io::FileInputStream;
using google::protobuf::io::FileOutputStream;
using google::protobuf::io::Ze... |
43eab0650a06981ef7fff04ba82a0f307b36eef0 | 60c1712c4b41fe624d2093b7a743f27c2d539cd0 | /hackerrank/equal_stacks.cpp | 66f08842d0f0d07ef4a1cf33da8c752e2cf1818f | [] | no_license | agkee/competitive_programming | a67e46ac6288c6c0566028a1080d1513f83149bd | 9feb3599d9d96bc1d53972834c5ed51f4f651d36 | refs/heads/master | 2023-01-07T07:00:13.988752 | 2020-10-30T04:03:25 | 2020-10-30T04:03:25 | 255,014,174 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 717 | cpp | equal_stacks.cpp | #include <vector>
using namespace std;
int equalStacks(vector<int> h1, vector<int> h2, vector<int> h3) {
int sum1 =0 , sum2=0, sum3=0;
for(int h: h1) sum1 += h;
for(int h: h2) sum2 += h;
for(int h: h3) sum3 += h;
reverse(h1.begin(), h1.end());
reverse(h2.begin(), h2.end());
reverse(... |
b9536175d9e0eac1ac33d28c7d5f3da8f46e8f91 | a0423109d0dd871a0e5ae7be64c57afd062c3375 | /Aplicacion Movil/generated/bundles/login-transition/build/Android/Preview/app/src/main/include/Fuse.Common.Blitter.h | d7872db63c37acfdb1c52d16aa7832eac8aa5eec | [
"Apache-2.0"
] | permissive | marferfer/SpinOff-LoL | 1c8a823302dac86133aa579d26ff90698bfc1ad6 | a9dba8ac9dd476ec1ef94712d9a8e76d3b45aca8 | refs/heads/master | 2020-03-29T20:09:20.322768 | 2018-10-09T10:19:33 | 2018-10-09T10:19:33 | 150,298,258 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,841 | h | Fuse.Common.Blitter.h | // This file was generated based on C:/Users/JuanJose/AppData/Local/Fusetools/Packages/Fuse.Common/1.9.0/Blitter.uno.
// WARNING: Changes might be lost if you edit this file directly.
#pragma once
#include <Uno.Float2.h>
#include <Uno.Object.h>
#include <Uno.Runtime.Implement-476e2792.h>
namespace g{namespace Fuse{nam... |
b244b3143bdb9cc1d3eeb9751d7573ce82cbde12 | ecf336b92bd77b279942ddc4b326f4620b1076c6 | /Server/Client.h | d44e4648ce705f675b063c5f0a444729107a9092 | [] | no_license | Sp00nyMan/Chat | fddde87b42e7a9168b21a0249ef60659d9c48cf0 | ebc3ee80addd08d587e374ab91ef0325de4875e4 | refs/heads/master | 2022-04-12T13:01:40.689144 | 2020-03-26T16:18:37 | 2020-03-26T16:18:37 | 250,224,719 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 254 | h | Client.h | #include <string>
class Client {
public:
long int id;
std::string name;
int socket;
Client(const std::string& name, long int id, int socket)
{
this->name = name;
this->id = id;
this->socket = socket;
}
};
|
771f15d716dee58b4b23a94224ea7584b9ebaf5b | 783e25073c359443fbd3feb6744cf4440e3194e5 | /hw3/GenScatterHierarchy.h | 56656fbd179526b8897dd89f07b4c8c4fc26563f | [] | no_license | alfekka/metaprog | 964a0b8a60393b6a3c418ebdd963f89d7405835c | c2032ffe80fccb47d7730951d07c2f4b996321eb | refs/heads/master | 2020-09-07T14:52:16.667730 | 2019-11-25T00:26:49 | 2019-11-25T00:26:49 | 220,816,251 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,221 | h | GenScatterHierarchy.h | //
// Created by mila on 10.11.2019.
//
#pragma once
#include "listt.h"
template <class TList, template <class> class Unit>
class GenScatterHierarchy;
template <class Head, class ... Tail, template <class> class Unit>
class GenScatterHierarchy<TypeList<Head, Tail ...>, Unit>:
public GenScatterHierarchy<class TypeList... |
a9376a9bc9b1b76cdb8d2b46805af4907a5b5300 | b1a78fa0f8f60c665301e22cd341a622086275a1 | /include/lgl/Texture2D.h | a883fa91b97a67c1a87a481b6229c56be62baff1 | [] | no_license | kyungminkim7/learn_opengl | 359e7e6bcc643b79c416ba9833e7109971b90426 | a4ad69c1faaab0f49f6928e5cbd4b9fdb67293cf | refs/heads/master | 2021-12-04T06:03:56.606073 | 2021-10-08T03:12:36 | 2021-10-08T03:12:36 | 144,912,381 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 241 | h | Texture2D.h | #pragma once
#include <memory>
#include <string>
namespace lgl {
class Texture2D {
public:
explicit Texture2D(const std::string &pathname);
void bind();
private:
std::shared_ptr<unsigned int> texture;
};
} // namespace lgl
|
ab8097d3f1575f4ea40b4f3f3c67ab247b16e895 | bc32feaf4022092bb0de69e2263174297d0aa49e | /constructor_overloading.cpp | d62c7e2a395bab179e5006df8567e3e2715d6dd4 | [] | no_license | aanantt/C_program | 595d4a81e700ddf3573a7e73decea9e44536cdeb | 38178527411bcd88c5947f858bb7571ec9cfc817 | refs/heads/main | 2023-05-19T14:52:14.938205 | 2021-06-06T18:16:33 | 2021-06-06T18:16:33 | 374,432,555 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 709 | cpp | constructor_overloading.cpp | #include<iostream>
using namespace std;
class deposit{
int principal;
int time;
float rate;
float total_amt;
public:
deposit();
deposit(int p, int t, float r);
void calc_amt(void);
void display(void);
};
deposit::deposit(){
principal=time=rate=0.0;
}
deposit::deposit(int p, int t,float r ){
principal=p... |
d3385586d994c5a5774b52b819b294bbd91d5eed | ff31b52ee8e08e5386ac38d13359b328d2b907c5 | /GAME/Actors/Player/PlayerAnimations/PlayerAnimations.cpp | c9fefc7e930c5d01060909f1a7245caf8b17a97e | [] | no_license | kychka/sfml-game-test.reborn | c1194d250fdf1234145fcedf668f199359c14f38 | b3b1946e93264c7a04a457e167bac0c1a48d3121 | refs/heads/master | 2021-01-10T08:01:53.186911 | 2016-03-03T19:16:45 | 2016-03-03T19:16:45 | 51,251,717 | 9 | 5 | null | 2016-03-03T19:16:45 | 2016-02-07T15:07:16 | C++ | UTF-8 | C++ | false | false | 230 | cpp | PlayerAnimations.cpp | #include "PlayerAnimations.h"
PlayerAnimations::PlayerAnimations()
{
}
PlayerAnimations::~PlayerAnimations()
{
}
void PlayerAnimations::init()
{
animations.emplace( Entity::ANIM_JUMP, std::make_shared<JumpAnimation>() );
}
|
171ecbebdd144df58752c8e6f7c57de732058041 | edb8292c3ed53b9e81eab4a1ef66f6b234c21a1f | /Code/EntityItem.h | 07794f43a3ec29dbc9f2785daafc74b315102ebd | [] | no_license | Exploratory-Studios/Fear-Of-The-Dark | 6bdacbea391c0034bee6e27e09ee5019dfaf2f4f | 05c3faa4e0863ad15ccaec482e23eda181a3d163 | refs/heads/master | 2023-06-30T13:18:53.787366 | 2023-06-14T16:53:55 | 2023-06-14T16:53:55 | 98,566,800 | 4 | 1 | null | 2019-04-07T01:44:12 | 2017-07-27T18:07:35 | C++ | UTF-8 | C++ | false | false | 524 | h | EntityItem.h | #pragma once
#include "Entity.h"
#include "Item.h"
class EntityItem : public Entity {
public:
EntityItem(glm::vec2 pos, unsigned int layer, unsigned int id);
EntityItem(glm::vec2 pos, unsigned int layer, EntityIDs id);
virtual ~EntityItem();
void init();
void init(SaveDataTypes::EntityItemData& data);
virt... |
44190c32c7fa5300c71db88f7eaba7a81485d23b | 5f1724bcf33b4d4223e26f003dc8d2fbfc5bbcca | /exp 3/code.ino | f2819bd17bb5affc2c850d059fb5fecc2bfc478f | [] | no_license | tiwariaditya-cu/BEEE_CU19 | da88422eb1d28a7d15ec3fbba68a653e38b95e3f | b930938d8c57c0856d15ac29d92b4f201295ce87 | refs/heads/master | 2020-07-28T09:58:43.841470 | 2019-11-03T18:08:03 | 2019-11-03T18:08:03 | 209,387,276 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 434 | ino | code.ino | void setup() {
for(int x = 10; x <= 13; x++){
pinMode(x, OUTPUT);
}
}
void loop() {
for(int x = 10; x <14; x++){
allLEDsOff();
if(x!=13){
digitalWrite(x, HIGH);
digitalWrite(x+1, HIGH);
delay(200);
}
else
digitalWrite(x, HIGH);
digitalWrite(x-3, HIGH);
delay(200);
allLEDsOff()... |
25ff80aa8dff7f6efb0a902f8cc4beb9c7c622e0 | c35afc59d4065bcfb3376af51464455082a7ccd9 | /src/AOAReciver.h | bb3022d66bfc5ba1476772e22ea061f817c96df2 | [
"Apache-2.0"
] | permissive | zoseliu/SerialPort | df7cc9ccf6f4565081304d87505a9f3459907bd8 | e2c6fbf92c5f1156c33d9611336e9c15761cc174 | refs/heads/master | 2020-03-19T01:04:24.387860 | 2018-05-31T03:36:42 | 2018-05-31T03:36:42 | 135,520,431 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 329 | h | AOAReciver.h | /*
* AOAReciver.h
*
* Created on: May 25, 2018
* Author: leon
*/
#ifndef AOARECIVER_H_
#define AOARECIVER_H_
#include "LocationFrame.h"
class AOAReciver {
private:
unsigned char lastKeys;
bool open;
public:
AOAReciver();
void onReceiveData(unsigned char *mFrame);
~AOAReciver();
};
#endif /* AOARECIV... |
e47dc75e7c2ec499e2758b49fff34e7cf31f27f4 | 96e63fc690bc12d3d95a947a3f5ed52b7c7d79dc | /project_3/Code/main.cpp | ec85bbece06bebf0cd659ae61b3f13e5674bb8c8 | [] | no_license | AlexYinHan/Compiler_Projects | baacd1b7025f6cb34e069e5695122f92fb367e02 | 63f41b6076a07a1d3ab480c208e7c947cf3ab3f2 | refs/heads/master | 2020-04-16T09:53:41.645579 | 2019-01-29T10:30:10 | 2019-01-29T10:30:10 | 165,481,219 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,003 | cpp | main.cpp | #include "common.h"
#include "parseCommon.h"
#include "SemanticAnalyzer.h"
Node* treeRoot = NULL;
SyntaxErrorFlag syntaxErrorFlag = NO_SYNTAX_ERROR;
LexErrorFlag lexErrorFlag = NO_LEX_ERROR;
int main(int argc, char** argv) {
if(argc <= 1)
{
return 1;
}
FILE* f = fopen(argv[1], "r");
if(!f)
{
... |
d51026233588c9afd74ac4022128512c3a15e69e | b0069cfa317b9281f064a7fbd9d1463c33ee1ac4 | /Firestore/core/src/util/path.h | 27fe6907088e97a592843590210d855a41e8d190 | [
"Swift-exception",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | firebase/firebase-ios-sdk | 5bb2b5ef2be28c993e993517059452ddb8bee1e6 | 1dc90cdd619c5e8493df4a01138e2d87e61bc027 | refs/heads/master | 2023-08-29T23:15:28.905909 | 2023-08-29T21:49:41 | 2023-08-29T21:49:41 | 89,033,556 | 5,048 | 1,594 | Apache-2.0 | 2023-09-14T21:11:30 | 2017-04-22T00:26:50 | Objective-C | UTF-8 | C++ | false | false | 6,138 | h | path.h | /*
* Copyright 2018 Google
*
* 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 w... |
92ec57e469135f31dad3a5fce558ae1e1e5b7799 | 1fa349ea3a835bd0bf421514080751aea352796d | /ChildrenOfOsi/ChildrenOfOsi/ConversationLogObj.cpp | 18e2930668174f022c2b26d120cfd58db95b53a0 | [] | no_license | EronLake/Children-of-Ase | 10208f9d728a0bbc9c9bbb2a0d601e0b4f20f864 | e12e0182104927bb4f2d5824515e72cd1a5b5a91 | refs/heads/master | 2022-11-29T00:15:23.377916 | 2020-08-13T21:10:02 | 2020-08-13T21:10:02 | 78,604,222 | 3 | 0 | null | 2017-06-28T20:28:32 | 2017-01-11T04:58:42 | C++ | UTF-8 | C++ | false | false | 1,208 | cpp | ConversationLogObj.cpp | #include "ConversationLogObj.h"
#include "ConversationPoint.h"
#include "stdafx.h"
#include "ConversationPoint.h"
ConversationLogObj::ConversationLogObj()
{
who = 0;
conv_point = nullptr;
number_of_times_said = 0;
Memory* mem = nullptr;
topic = std::make_pair(0, mem);
}
ConversationLogObj::~C... |
463f6e9be46f3802c3d8a7928cfbb0633987d9d8 | c427c20feaa857327f32c7e3ec2c69e90b478281 | /MyCpp/MyPro/MyNet/MyNet.h | b5480da08b2173825b55e402f980d30df05760c4 | [] | no_license | chenhuidong/MyGit | 039dc4cf356c458eac6c69617b47407f5e353ff4 | 93f92110a0696562765e0a6c424193f05b81c124 | refs/heads/master | 2020-04-03T23:29:40.094276 | 2019-03-28T09:31:36 | 2019-03-28T09:31:36 | 33,935,620 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,003 | h | MyNet.h | #ifndef __MY_LIB_MY_NET_H_
#define __MY_LIB_MY_NET_H_
#include "MyStdAfx.h"
#include "MyTR.h"
#include <boost/asio.hpp>
#include <boost/bind.hpp>
using namespace boost;
using namespace boost::asio;
#include "student.pb.h"
namespace MMyLib
{
typedef boost::shared_ptr<ip::tcp::socket> sock_pt;
class MySessionBase
{
p... |
9597c0502d8ee72407fcd7c8b0d464de9b90b2b3 | c33f5ff31cbb46c3a151abf0752e9d9f9267099d | /mainwindow.cpp | e06e0a74d050f63ec594e088e984046f5cdf61df | [] | no_license | BluePerception/BluesPub | d72db669c3fa6bdceaa4000baaa6bfb7f1fc885b | f26fb20f2c46c53e5b6c1b3933221e1c1cc263c2 | refs/heads/master | 2021-06-27T06:27:10.265644 | 2017-09-16T09:36:23 | 2017-09-16T09:36:23 | 103,062,008 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 470 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <iostream>
using namespace std;
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow), actualview(0){
ui->setupUi(this);
}
MainWindow::~MainWindow(){
delete ui;
}
void MainWindow::change(QWidget* m){
if (actualvi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.