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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d9396f324fdaba0c109f92eb0467e09a3b43fd14 | 5e411717964a28a7930b92bf6d1e2262187b4bdb | /src/custom/shared/ZMQFilter.cpp | 09e2ec21ab4d673df0e753db4f6a2a5c703e1243 | [
"MIT"
] | permissive | cronelab/bci2000web | 20e3babbd13a6f17596c69e17b396df039b67a6a | 33624101181d1956f6b10fa6b901c053f1c54b6e | refs/heads/master | 2022-10-21T08:10:20.378512 | 2022-02-22T21:41:00 | 2022-02-22T21:41:00 | 75,337,424 | 5 | 2 | MIT | 2021-12-21T16:22:47 | 2016-12-01T22:12:41 | C++ | UTF-8 | C++ | false | false | 4,708 | cpp | ZMQFilter.cpp | ////////////////////////////////////////////////////////////////////////////////
// $Id: $
// Author: Shiyu Luo <sluo15@jhu.edu>
// Description: A filter that sends/receives states and signals over a
// TCP facilitated WebSocket (RFC6455) connection. Can be instantiated
// several times using subclasses... |
2f5471a985263be0b77c23cf8e255129b367e2df | 86ac31bc8c933f75f1ea0ab537027b5bb3e112b4 | /stack_que/stackasque.cpp | b09948b230a7e0cd070626d1e7a6b6fd6136e0c7 | [] | no_license | deepaksharma36/cpp-practice | cd708d8c2afffbe93d6ae12c18097bb781068a1e | 9fbdcc49d53827c1d71f1151bf615f53e67923ac | refs/heads/master | 2022-04-24T16:46:08.255951 | 2020-05-01T05:24:42 | 2020-05-01T05:24:42 | 260,383,537 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,024 | cpp | stackasque.cpp | #include<iostream>
#include<stack>
#include<stdexcept>
using namespace std;
class Queue{
public:
//explicit Queue():
void enque(int i){
first_.push(i);
}
int deque(){
if(second_.empty()){
while(!first_.empty()){
second_... |
15481943d7a9fa9d7aaf7bd2c36593699b9bcb9f | aeee4da6479d772e84f1375fc7bd4db6ed8046fb | /Source/Hackathon/MoveCamera.h | 0367696adececd7871b2bc0162084fc23f6f80e2 | [] | no_license | prdadhich/Hackathon | f3611f2f41fc93bfc570ecc5eef78066e0aa5bac | 8837463fa9da827f2e229b85486999483ad6a44a | refs/heads/main | 2023-07-16T15:54:28.632949 | 2021-08-31T15:42:41 | 2021-08-31T15:42:41 | 401,757,824 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,746 | h | MoveCamera.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include "Engine/TriggerVolume.h"
#include "MoveCamera.generated.h"
UCLASS()
class HACKATHON_API AMoveCamera : public APawn
{
GENERATED_BODY()
public:
// Sets defaul... |
23be6d6fb1a46befb82f1d1aa87370a5d2eb728c | 06dd3a241e1200edf52c0ec7d2f19482b0b99412 | /Exercicios Modificados/cap 9/ex-9_3.cpp | e9b02d64a6981c8be4b0a242d1785afc8736f5c0 | [] | no_license | thiagogsilv4/Compiladores_ | d568282b4345fb974916cb5a1da384968ce5765d | 78c0db17f982bb1f59ae23e455afb47e721edfd8 | refs/heads/master | 2021-05-17T07:16:24.855956 | 2020-05-24T23:10:07 | 2020-05-24T23:10:07 | 250,692,687 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 381 | cpp | ex-9_3.cpp | #include<stdio.h>/*Inclusão da Biblioteca padrão de entrada e saída*/
/*de acordo com a explicação do PDF*/
int func(int x, int *y) {
x += 2;
*y += 2;
y += 2;
return x * *y;
}
int main() {
int vec[] = { 1, 2, 3, 5, 7, 9, 11, 13, 17 };
printf("%d\n", func(5, vec));
printf("%d\n", func(3, vec... |
f51ea610d970dfa93d805acceb57d37c4c5104cd | 87b9f656a7c2f409f31617a351b9cf712c543025 | /tests/world/main.cpp | 99005c8cefc77de997b0aff2c3efa12bb549fc3b | [] | no_license | paragonjh/unitTest | f78932624a414c79f79f200842f7193fb297d19b | 0c04d2256f1c6fe5b7f2f54e3ed35b32dd0bf943 | refs/heads/master | 2022-11-12T10:57:31.020714 | 2020-06-30T14:47:51 | 2020-06-30T14:47:51 | 276,127,014 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,132 | cpp | main.cpp | #include "cpptest.h"
#include "polygontypes.h"
#include "circle.h"
#include "world.h"
#include <iostream>
void testWorldGetAllArea()
{
Point points[4] = { { 5, 0 }, { 15, 0 }, { 15, 20 }, { 5, 20 } };
Rectangle rect(points);
Circle circle( 5, 5, 15);
World world;
world.add(&rect);
world.add(... |
17d5be1efc41f2d8bd095ba8a4eafce2e4ab7d96 | 1c3fe73c2fb60be880d24f5d34b3637469bf8819 | /crypto.hpp | 22273261547b3c61f72c7840548ac93e0acd7292 | [] | no_license | oceanboi1337/Chrome-Password-Stealer | 2c50378f462412115819459234d242a25c5e089f | fe87e06054fb06cff8cae94814dd65c7788dc3c4 | refs/heads/main | 2023-07-15T04:41:26.380666 | 2021-08-28T00:04:12 | 2021-08-28T00:04:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 335 | hpp | crypto.hpp | #include <string>
#include <vector>
#include <iostream>
#include <windows.h>
#include <openssl/evp.h>
namespace crypto
{
std::string base64_decode(std::string data);
std::string base64_encode(std::string data);
std::vector<unsigned char> v80_decrypt(const std::string &key, std::vector<unsigned ... |
2afa386ada5d437ea2902861dfb42e59915f32e2 | 7e70df5c34d19d6ea6fdb574c4421686afbdcc42 | /include/remollGenCompton.hh | 8ad6d6e22d24a03f2bd20660e205a8951ed037ac | [] | no_license | spiesr/compton_sim | 1fee54e4ccebf8f2425d9818468ff6869b4906f8 | 29284ccf6fa4a3cdd7693226cc7bd0faf71dee11 | refs/heads/master | 2016-09-06T13:59:07.368545 | 2015-06-25T19:57:40 | 2015-06-25T19:57:40 | 38,070,574 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 269 | hh | remollGenCompton.hh | #ifndef __REMOLLGENCOMPTON_HH
#define __REMOLLGENCOMPTON_HH
#include "remollVEventGen.hh"
class remollGenCompton : public remollVEventGen {
public:
remollGenCompton();
~remollGenCompton();
private:
void SamplePhysics(remollVertex *, remollEvent *);
};
#endif
|
b9e0bf56aaa41632d212767f355b82afed1e1b99 | 9b8ee7a681cf875fdc4322f568f7400fa67fc14c | /recoglize/src/deviation_recognize/src/charging_station_detector.hpp | 314cda49f7397e2011f205decda3a8c4e8e2e6dc | [] | no_license | jie104/learngit | 8442ddd9f460710ad0d504749e83647faae085b7 | b5aed9eef4d548939d28c5fb11cf30cd18350d42 | refs/heads/master | 2023-04-28T20:37:43.518840 | 2023-04-16T14:54:53 | 2023-04-16T14:54:53 | 329,828,443 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,656 | hpp | charging_station_detector.hpp | //
// Created by lfc on 19-2-14.
//
#ifndef PROJECT_CHARGING_STATION_DETECTOR_HPP
#define PROJECT_CHARGING_STATION_DETECTOR_HPP
#include <sensor_msgs/LaserScan.h>
#include <vector>
#include <stack>
#include "line_solver.hpp"
namespace detector {
struct ChargingStationInfo { //充电桩尺寸信息
double topline = 0.216;
... |
7eea78bb7392c117ce66c6e4097f4fe1a8a9ce68 | 005af42f3ce88a3dad5fb032146b496ba13f31ad | /apps/graph/values/derivative_parameter_controller.cpp | 98ee15cb3968cbe372285d44979db829cc725ab6 | [] | no_license | magickazer/epsilon | 4359401d16ca14632180496ef89616cb65faf976 | 37e7686b60fc490c59ebd887f7d862a5af7aee23 | refs/heads/master | 2023-08-10T17:15:04.392177 | 2021-09-03T14:17:22 | 2021-09-03T14:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,142 | cpp | derivative_parameter_controller.cpp | #include "derivative_parameter_controller.h"
#include "values_controller.h"
#include "../app.h"
#include <assert.h>
using namespace Escher;
namespace Graph {
DerivativeParameterController::DerivativeParameterController(ValuesController * valuesController) :
SelectableListViewController(valuesController),
m_hideC... |
ef6c0a086a3054dbe4cae5bcd5af6f51a7114124 | 9d1888f2df896f70b5eafb6fdccb8ceb14c66e5a | /Hackerrank/almostsorted.cpp | 8c1c3ff71f4db6149f8d02bd5c751d9808da20b5 | [] | no_license | VPai8/Competitive-Programming | b7e20be432c2a0f1d2bf37e3cc8da032afff6337 | 99b4b9c825e5713e1c15098f6115905096764f56 | refs/heads/master | 2020-03-22T18:08:31.081636 | 2018-07-18T15:37:10 | 2018-07-18T15:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,944 | cpp | almostsorted.cpp | #include <bits/stdc++.h>
using namespace std;
vector<string> split_string(string);
// Complete the almostSorted function below.
void almostSorted(vector<int> arr) {
vector<int> sorarr=arr;
int i,j;
sort(sorarr.begin(),sorarr.end());
int len=arr.size(),a[2],x=0;
for(i=0,j=0;i<len;++i)
if(arr[i... |
43712ed6f46f22d79ab8dd323342ad84ce15a45a | 0f731db71e7d4f68ae20bcf3a341ac22bf7b749a | /2020/src/day1/main.cxx | 42660bb6b2ed9d279d2c2d025358b55af6b1319c | [] | no_license | HenricWatz/AOC | 90c9496a189000ef16749d3823116955aee57687 | fd9e03aaba7835440136e8ef8a54dd2c581d37c0 | refs/heads/master | 2021-06-22T17:45:56.778498 | 2020-12-13T11:57:26 | 2020-12-13T11:57:26 | 159,917,373 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,448 | cxx | main.cxx | // A simple program that computes the square root of a number
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
/*
--- Day 1: Report Repair ---
After saving Christmas five years in a row, you've decided to take a vacation at a nice resort on a tropical island. Surely, Christmas will go on without you.
... |
8a60adf78dd5dbc165ce04db84830e515b4b4911 | 66a5927f6cda20412f15e1713fdd3ce888d287a6 | /internalconnector/internalcatalogconnector.h | 7a94d1171e0627f3a41dd9886fd368cb09adfde0 | [] | no_license | JeroenBrinkman/IlwisCore | 0011a4321fe4babd9ecc19f7d1bff081a9a6fa3f | a49435ff463be3e07a2f9cab063b0b59464566ae | refs/heads/master | 2021-01-15T20:38:31.136714 | 2013-10-02T06:45:34 | 2013-10-02T06:45:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 575 | h | internalcatalogconnector.h | #ifndef INTERNALCATALOGCONNECTOR_H
#define INTERNALCATALOGCONNECTOR_H
namespace Ilwis {
namespace Internal {
class InternalCatalogConnector : public Ilwis::CatalogConnector
{
public:
InternalCatalogConnector();
static ConnectorInterface *create(const Resource &, bool);
bool loadItems();
bool canUse(con... |
b5f2c2ac44006d2760b7ae44aa87898ce60ab891 | 8b4202f42c9ccf571a8a18f4022fe64736cde9fa | /Firmware/LED_PCB/LED_PCB.ino | 7a250dd2cb70a1a0e8f70ffaf4540b10e8667a10 | [
"MIT"
] | permissive | EEJeffMan/LED_Lamp | 987bd92896c9fc758a8a13e7b0a232acb970254f | f0919a965bf1643d92ce49e0d5692117b5cb5620 | refs/heads/master | 2020-04-17T14:41:37.963172 | 2019-11-08T13:05:58 | 2019-11-08T13:05:58 | 166,667,320 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,634 | ino | LED_PCB.ino | /*
* Name: LED_LAMP
* Author: EEJeffMan
* Date: 3/9/19
*
* Replace bulb in desk lamp with LEDs.
*
* MCU is ATTINY85, using the guide below to install support for this chip in Arduino:
* http://highlowtech.org/?p=1695
*
* This was found courtesy of the following post:
* https://oscarliang.com/program-at... |
8f3183f1d6bfd35d3416290162b23085e9994e02 | 311047553f96fcabf7ea9ca2906705481c9be85a | /ER-StaticAnalysis/source/ER/relationship.h | 5ada182e67fc1821da6087c95e19ad1c066aa38e | [
"MIT",
"BSD-3-Clause"
] | permissive | asugeno-projects/safer | 478a2f5a7bbdc330507c41b037acf98a20035819 | 8024f7cdc0d565079c885b1bac0372627898450f | refs/heads/master | 2021-06-27T20:17:41.100346 | 2017-09-05T01:42:14 | 2017-09-05T01:42:14 | 67,341,685 | 0 | 0 | null | 2017-09-05T01:42:15 | 2016-09-04T11:44:46 | C++ | UTF-8 | C++ | false | false | 3,375 | h | relationship.h | /**
* @file relationship.h
* @date 2016/01/31
* @author Akihiro Sugeno
* @par Revision
* $Id$
* @par Copyright
* Copyright 2015 Akihiro Sugeno
* @par History
* - 2015/07/03 Akihiro Sugeno
* -# Initial Version
*/
#ifndef RDS_ER_STATICANALYSIS_SOURCE_ER_RELATIONSHIP_H_
#de... |
f5fc5a68ebc90bcd337d8bfc1a090c1b0bcfdbf1 | caccabb04d1d4035081ab06f8cd83e6a954fe75d | /C/Pointer Operation/Exercise_21.cpp | db7bd28fbe5f39fd563d07e3e61d82629d58a04d | [] | no_license | intanpuspita/College-Projects | 92e08406d3400e5970e73b482bce6c0ea78dcd1b | a7424ac80fa4e208ab0adf66d01328a0b1f98b2f | refs/heads/master | 2021-05-16T02:49:11.475136 | 2019-01-21T04:16:09 | 2019-01-21T04:16:09 | 40,521,389 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,281 | cpp | Exercise_21.cpp | /*----------------------------------------------------------------------------*/
/* File : list1.c */
/* Deskripsi : contoh deklarasi list dan pemakaian makro */
/* Dibuat oleh : Tim Dosen SDP */
/* Tanggal : 13-09-2001 */
/*----------------------------------------------------------------------------*/
#include<stdlib.... |
50e837690e1721a62bf55f9bcc08153b652ffa84 | c1f937093bcf854a77794e0dfd87893e38e6a496 | /AtCoder/ABC/054/A.cpp | 37723f7f718f2ed28c5ec495b9e7b112eda390ae | [] | no_license | PochecoPachico/Procon | 346c19113000d454793400199a4fbef944876a02 | fd9abd45236eab8bf3695bf310c7c344a254f3d8 | refs/heads/master | 2023-05-16T10:28:06.508439 | 2021-06-06T01:27:49 | 2021-06-06T01:27:49 | 335,154,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 477 | cpp | A.cpp | #include <iostream>
#include <cmath>
#include <vector>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
struct edge { int u, v; ll w; };
ll MOD = 1000000007;
ll _MOD = 1000000009;
double EPS = 1e-10;
int main() {
int A, B;
cin >> A >> B;
if (A == B) {
cout << "Draw" << endl;
} e... |
c58b6162ee81c425bf283bb7a690da5959b32a49 | 439666d3845c4c4ef018703db8bb72b9d95e30af | /BOJ/01000/1748_수이어쓰기1.cpp | 8d99d7561564be84a1f0a7c9d68f10f09938981b | [] | no_license | tjddus/PS | 8f94554d1828b5add062978ef71e2e161f953b59 | af3d8dd2922ae6f8a29bae7ac24bdd4044607900 | refs/heads/main | 2023-04-27T13:45:28.453300 | 2021-05-14T10:49:00 | 2021-05-14T10:49:00 | 318,990,390 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 455 | cpp | 1748_수이어쓰기1.cpp | #include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;
int n, cnt, nSize;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
cin >> n;
int temp = n;
while (temp > 0)
{
temp /= 10;
nSize++;
}
for (int i = 1; i < nSize; i... |
bcfbb2987be256522244256fae560444f4b36e59 | 85b07155a9997bbebf4c682983b8fc99152cb090 | /ItemType.cpp | 7645cdb8beb550f81d808460285911ae1141abba | [] | no_license | CodecoolBP20171/cpp-mighty-text-adventure-return-funnyteamname | add3bb4d79be2ddd772a683ef6c1e517c65d45c0 | 194d61b3f693384de4908ca1ad52d0517e05e330 | refs/heads/master | 2021-07-11T21:51:31.490911 | 2017-10-13T05:43:46 | 2017-10-13T05:43:46 | 106,258,985 | 0 | 0 | null | 2017-10-12T20:00:28 | 2017-10-09T08:50:11 | C++ | UTF-8 | C++ | false | false | 64 | cpp | ItemType.cpp | //
// Created by apha on 2017.10.11..
//
#include "ItemType.h"
|
413564d3e2f8de602a8a221ef41105bf3b298877 | 2a2c909ca11664fbfe3bbac77b60d9ff68c6f3d4 | /Unit Converter/Unit Converter2.cpp | b386afe8b5c6478e13be03339f32e12a41d40f84 | [
"MIT"
] | permissive | sunjerry019/RandomCodes | d8049ca188d7f0daeee4a9b43d119ab026a9027c | 4402604aaeee63bb1ce6fa962c496b438bb17e50 | refs/heads/master | 2021-01-12T14:32:02.077792 | 2019-05-19T15:42:48 | 2019-05-19T15:42:48 | 70,065,532 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 54,647 | cpp | Unit Converter2.cpp | // Unit Converter.cpp : Defines the entry point for the console application.
//
#include<iostream>
using namespace std;
int main()
{
int a,b,c;
double answer;
char fc;
double n;
start:
system("cls");
cout<<"Unit Converter"<<endl<<"----------------------------";
cout<... |
f57a752a86b7184a218ade9a179f4d89205d5ebd | bc1852a71f53224f1e14639064da39a42d1a5c6c | /ConsoleApplication1/ConsoleApplication1/TourNearestNeighborDistanceLimit.cpp | aa2c3ae500b91ef866c93495d6e40891478411c1 | [] | no_license | valeriapolozun/Repo | 8ebe4a58afe6fbdd83da30ddcbad2fca47fc9833 | f087924ccd2ee5303117f31803fad2bddc5a552e | refs/heads/master | 2020-05-17T02:55:42.392113 | 2013-08-20T11:29:20 | 2013-08-20T11:29:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,357 | cpp | TourNearestNeighborDistanceLimit.cpp | #include "TourNearestNeighborDistanceLimit.h"
#include <iostream>
using namespace std;
TourNearestNeighborDistanceLimit::TourNearestNeighborDistanceLimit(string inputFile): OrienteeringProblemWithPickupsAndDeliveries(inputFile)
{
unvisitedNodes.assign(problemSize,1);
unvisitedNodes[0]=0;
unvisitedNodes[1]=0;
wh... |
0ae7350b6fa151a503fd95b7933804fc5e493fd7 | 64d701984a4990752567ea0d1b1e509f6885b1b9 | /Contests/2019_NgodingSeru/Final_E_PermainanPoin.cpp | 067e641e9b37b81847697664333dce229f44a302 | [] | no_license | yonasadiel/cp | a74ca774e50000eac13a3ab3e73f117027903c81 | 45461651beb8b9d23ef52148cddf7960fe6a820b | refs/heads/master | 2023-05-13T01:37:18.228579 | 2023-05-03T06:56:36 | 2023-05-03T06:56:36 | 96,586,727 | 5 | 2 | null | 2017-10-15T09:13:57 | 2017-07-08T00:59:17 | C++ | UTF-8 | C++ | false | false | 1,259 | cpp | Final_E_PermainanPoin.cpp | #include <bits/stdc++.h>
#define ll long long
#define fi first
#define se second
#define pii pair<int, int>
#define mp make_pair
#define MOD 1000000007
using namespace std;
int r, c, b;
ll dp[202][202][400];
int main() {
scanf("%d%d%d", &r, &c, &b);
for (int i = 0; i < r; i++) {
for (int j = 0; j < c;... |
a65c364ef5e8cf8cd5f3984f72b435810838439f | 801e726cfeaba3a61c569af7184586b208b73d98 | /fibonacci_dynamic.h | ed6f9f82af4d3a90fb3fe7783f2fe7245c99abb6 | [] | no_license | Protezeusz/dynamic_lern | a44d83e0bf51844541f83ec6b5d7052896fe19e0 | 84b087c2441f68c585ba860f089f8d718a915daf | refs/heads/master | 2021-01-01T13:56:11.012754 | 2020-02-10T13:18:55 | 2020-02-10T13:18:55 | 239,307,878 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 465 | h | fibonacci_dynamic.h | #ifndef FIBONACCI_DYNAMIC_H
#define FIBONACCI_DYNAMIC_H
#include <chrono>
#include <vector>
class Fibonacci_dynamic
{
public:
Fibonacci_dynamic();
unsigned long long get_result(short n);
long double get_time();
private:
long double op_time = 0;
unsigned long long r=0;
std::vector<unsigned lo... |
3d7728534bce7570bf729f4b22ac0f01447f6867 | 6f84d2d3d45623ea2af7418f395c778ae9e2e238 | /main1.cpp | 2aa03fc817f62c77f702ec21128ae0d3d33d8bfa | [] | no_license | AngryAndry/patterns | 1d7b14b762d460966f5f7cd6399f1602f6019ecc | 6749da7b4b6471dffcae7a095ad52a29a6b54432 | refs/heads/main | 2023-08-11T13:32:45.921316 | 2021-09-28T10:58:34 | 2021-09-28T10:58:34 | 411,242,823 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,351 | cpp | main1.cpp |
/*
* В экзаменационной работе реальзовал несколько паттернов:
* 1 Строитель - используется для создания "дел"
* 2 Адаптер - он переводит Case в строку и наоборот для сохранения\загрузки в фаил
* 3 Команда - инкапсулирует данные приложения и дает возможность управления им
* 4 Синглтон - заключенно само приложен... |
101452d3d92fa1be9fe089d439dacbf12d62c679 | 120eb6e3eefd4083d719ab90ed288c88fcedfaed | /game/properties/AttackDef.cpp | c5d7471468973ae7d3a699ac09b3e654332cde07 | [] | no_license | AspidT/Zerlight | b111d6c874033b1bccef1780d8479f216d0239b0 | 2fb6d713580f4b93217274ee8f655b5af0682a07 | refs/heads/master | 2020-04-18T18:59:39.029017 | 2019-01-28T16:47:29 | 2019-01-28T16:48:51 | 167,700,733 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 891 | cpp | AttackDef.cpp | //
// Created by tatiana on 23.12.18.
//
#include "AttackDef.h"
namespace properties
{
AttackDef::AttackDef()
{
}
AttackDef::~AttackDef()
{
}
bool AttackDef::isPhysicalAttack() const
{
if ((AttackType==game::AttackType::Swing) || (AttackType==game::AttackType::Thrust) || (A... |
03698624cdc41a76f9d26b3cda27188ba8a6b510 | f768967fcb2469d14cf63ec808d57385719ef72d | /module03/ex01/ScavTrap.cpp | 851e346123112fc3429be8112e149cd13aaf375c | [] | no_license | qfeuilla/42PiscineCPP | 8dfe1f2a243d3ec945126f039146cf7088c167e8 | 9967ea8df9746b5497b3039d0c604f1650948d57 | refs/heads/master | 2022-12-12T02:35:05.437998 | 2020-09-02T09:38:19 | 2020-09-02T09:38:19 | 291,027,773 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,504 | cpp | ScavTrap.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ScavTrap.cpp :+: :+: :+: ... |
204c6e844eab3a63cf88c274ac5cb3643b99bcf1 | bd933e89b2520c8eae9b52123358f23ea89c8a77 | /hw2/csvt32745/q2/_vector.cpp | a879f813bccbd15df61e21ef0b30efd157438822 | [] | no_license | yungyuc/nsdhw_20sp | 54609627c8aa1ae45865ad8e1972d17ab40483e6 | 5dce6df707f89e06267800f3fd549a1c2bd1f22e | refs/heads/master | 2020-12-01T19:44:48.184338 | 2020-06-16T06:45:11 | 2020-06-16T06:45:11 | 230,746,067 | 1 | 18 | null | 2020-06-21T08:41:55 | 2019-12-29T12:18:17 | C++ | UTF-8 | C++ | false | false | 645 | cpp | _vector.cpp | #include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <iostream>
#include <vector>
#include <cmath>
#include "float.h"
namespace py = pybind11;
float radian_between_2dvecs(std::array<float, 2> vecA, std::array<float, 2> vecB)
{
float a = vecA[0]*vecA[0] + vecA[1]*vecA[1];
float b = vec... |
1ae1fb7a5a126769288f2bd45d3a423928940d4f | 878e853c0652b50f063a458ae10c2a40f0e211db | /Gra.h | 425c37b281f6d3345d5201f06e0c8d2333601513 | [] | no_license | tomekl007/monopoly | 6252498bddcb86f3ec335ea643a56ede5bd51265 | 9446d485e5e6696e7f3c71f595f626a0bfd0038b | refs/heads/master | 2021-01-25T05:16:31.012563 | 2013-01-12T15:27:12 | 2013-01-12T15:27:12 | 7,576,777 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,238 | h | Gra.h | #ifndef Gra_h
#define Gra_h
#include <iostream>
#include <string>
using std::string;
using std::cout;
using std::endl;
using std::cin;
class Gracz;
class Komplet;
class Pionek;
class PoleWlasnosc;
class KompletPol;
class GraPlanszowa;
///klasa gracz, obiekt tej klasy to bedzie nowy gracz wchodzacy do gry
class Gra... |
4c3ca776da92587464ae635dfc8378ee95d287bb | 6ed1e7095055c6cdd6f2f36d91599e09db4a6a23 | /Localspacetouch/Source/Localspacetouch/Private/LSActor.cpp | 778e26be22fcc3522c3e19914a51868e1dca757b | [] | no_license | liupanfengfreedom/Localspacetouch | 66090ecd1a2a98f123e4e1cbea338a7a99318712 | f207f865d000d57d4d309cb537d5216aaa16c921 | refs/heads/master | 2023-01-13T01:54:35.040184 | 2020-11-20T03:33:43 | 2020-11-20T03:33:43 | 313,541,901 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,760 | cpp | LSActor.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "LSActor.h"
#include "MobileTouchActorComponent.h"
#include "Engine.h"
#include "Components/StaticMeshComponent.h"
#include "UObject/ConstructorHelpers.h"
#include "Components/SceneComponent.h"
#include "Kismet/KismetMathLibrary.h... |
7321f6b3067c2ba7f846549b77f2050396aa88bf | d33ebe324818f711d482410f87a1f692a99037f9 | /tools/fastdef.h | cf598d7d545a1b3c5f2d6e9bf9402f5537156957 | [] | no_license | xiazt/Virtual-Endoscopy | 3cd1791696270ae1e0f1a7fee6dbcfd6391e1d6b | 604194d9de6ca7d652f55c6634494da7a3209ce6 | refs/heads/master | 2020-03-28T23:19:00.797582 | 2016-05-20T03:13:48 | 2016-05-20T03:13:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 498 | h | fastdef.h | #ifndef FASTDEF_H
#define FASTDEF_H
# include <vtkSmartPointer.h>
# include "initials.h"
#define Instantiate(obj,class) vtkSmartPointer<class> obj = vtkSmartPointer<class>::New();
//#define vsp(class,var) \
// vtkSmartPointer<class> tmpvar = vtkSmartPointer<class>::New(); \
// var = tmpvar;
template <typename T>
in... |
2cca3eb4bc5ae17d52cbc2ee164bb4a5fe508aa6 | d2e5a604f7405c0f665456b75d100a9f6fee3b91 | /removeDuplicatesSortedArr/t.cpp | 1b86e82d99985cfec647b15e763b4f9ff000433f | [] | no_license | verif/leetcode | d7346d74131659663087362212566e812ba248cc | 3684012b5a65d1328688a5429293a0ec9cad7ddc | refs/heads/master | 2021-01-19T13:25:32.383453 | 2015-11-04T07:23:55 | 2015-11-04T07:23:55 | 22,996,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,081 | cpp | t.cpp | /*
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array A = [1,1,1,2,2,3],
Your function should return length = 5, and A is now [1,1,2,2,3].
*/
#include <iostream>
using namespace std;
class Solution {
public:
int removeDuplicates(int A[... |
38967e9a93a21c8ca73678219bd6f698332b023c | cb1fdf09ca9784b93f60f60b719085e4b258f6ee | /fixture2.h | 6c279e34605d3c8c9b8898f8f1ac7339d4335a73 | [] | no_license | bekiS/SkuskaOsg | 12da8f5585c2ecbbd04e23cd6326003f361cc685 | c8f6d187efd141be8a765dc26260f5e41559a7f6 | refs/heads/master | 2016-09-05T14:57:47.318391 | 2015-05-04T06:29:54 | 2015-05-04T06:29:54 | 30,609,189 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,084 | h | fixture2.h | #ifndef FIXTURE2_H
#define FIXTURE2_H
#include <osg/Geode>
#include <osg/Geometry>
#include <osgManipulator/TranslateAxisDragger>
#include <osgManipulator/TrackballDragger>
class Fixture2
{
public:
Fixture2();
osg::ref_ptr<osg::MatrixTransform> getFixture(){ return _transG; }
osg::ref_ptr<osg::Drawable> g... |
32510639f3b9538e5966913c359551bd045cbe9d | e0904d35f0b89fed8ebdeb6e08864c0208006954 | /MeshLib/MeshSearch/ElementSearch.h | 49aa0ef3a0f76aa7cb5decb1926c2634db9fa9c9 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ufz/ogs | e3f7b203ac960eeed81c3ad20e743b2ee2f4753e | 073d0b9820efa5149578259c0137999a511cfb4f | refs/heads/master | 2023-08-31T07:09:48.929090 | 2023-08-30T09:24:09 | 2023-08-30T09:24:09 | 1,701,384 | 125 | 259 | BSD-3-Clause | 2021-04-22T03:28:27 | 2011-05-04T14:09:57 | C++ | UTF-8 | C++ | false | false | 5,109 | h | ElementSearch.h | /**
* \file
* \copyright
* Copyright (c) 2012-2023, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include <limits>
#include ... |
1457fe791d2d83c2d8cfad2e5844cc752c0763e9 | 9eaa698f624abd80019ac7e3c53304950daa66ba | /ui/widgets/talkwidget.cpp | 8f0ff420c52660997ac67683d49f6fe9ac078229 | [] | no_license | gan7488/happ-talk-jchat | 8f2e3f1437a683ec16d3bc4d0d36e409df088a94 | 182cec6e496401b4ea8f108fb711b05a775232b4 | refs/heads/master | 2021-01-10T11:14:23.607688 | 2011-05-17T17:30:57 | 2011-05-17T17:30:57 | 52,271,940 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,719 | cpp | talkwidget.cpp | /******************************************************************************
** Author: Svirskiy Sergey Nickname: Happ
******************************************************************************/
#include "talkwidget.h"
#include "messagewidget.h"
#include <QtGui>
TalkWidget::TalkWidget(QWidget *parent, QWidge... |
c8eaf0353b8a4570fd5af4774a7124d5ae63816e | ba11c8c6d48edc57e2ca0c5624ee2d1990a51102 | /practice/1359/5.cpp | 084d54d49b04ee14b28101e606568f207b03422c | [] | no_license | vishu-garg/competetive-programming | 5cf7c2fc4d0b326965004d94e9c8697639c04ec3 | 7f9a6a63372af0c63a1fea6e9aae952a34bc849c | refs/heads/master | 2021-07-11T14:47:13.459346 | 2020-08-10T13:52:30 | 2020-08-10T13:52:30 | 189,592,039 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,733 | cpp | 5.cpp | #include<bits/stdc++.h>
#include<algorithm>
using namespace std;
#define ll long long
#define ld long double
#define rep(i,a,b) for(ll i=a;i<b;i++)
#define repb(i,a,b) for(ll i=a;i>=b;i--)
#define err() cout<<"=================================="<<endl;
#define errA(A) for(auto i:A) cout<<i<<" ";cout<<endl;
#def... |
7ee8071122f5804b8c919f3057194f844f902922 | 577aeed5f1cf0d6f632d9586e25984b1b67b18cc | /src/Superficies/Grilla.cpp | c3030e02153f8aeb33cce232c43c1cd1d9aedae0 | [] | no_license | jorgeCollinet/fiuba-tp-sistemas-graficos-2013 | 508a8675e84027acfc534cd96f520085b7afc3e2 | 3cccb92d84fa51751d3529f60e78d7b2f9d4b301 | refs/heads/master | 2021-05-28T21:08:47.918958 | 2013-12-20T17:25:46 | 2013-12-20T17:25:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,638 | cpp | Grilla.cpp | #include "Grilla.h"
GLenum Grilla::MODO = GL_LINES;
Grilla::Grilla (myWindow* passed_window, int size) : Superficie (passed_window) {
this->modo = Grilla::MODO;
this->vertex_buffer_size = 12*(2*size +1);
this->vertex_buffer = new GLfloat[this->vertex_buffer_size];
this->normal_buffer_size = this->v... |
c2dfe1c66ed9902ffde83aa817483f2263391dc8 | f950882940764ace71e51a1512c16a5ac3bc47bc | /src/EmbDB/EmbDB/DB/BTreePlus/spatial/Point/PointSpatialInnerCompress.h | 54bb4ade6a874bed0cd3e763d5ad6c35d17e2e82 | [] | no_license | ViacheslavN/GIS | 3291a5685b171dc98f6e82595dccc9f235e67bdf | e81b964b866954de9db6ee6977bbdf6635e79200 | refs/heads/master | 2021-01-23T19:45:24.548502 | 2018-03-12T09:55:02 | 2018-03-12T09:55:02 | 22,220,159 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,431 | h | PointSpatialInnerCompress.h | #ifndef _EMBEDDED_DATABASE_SPATIAL_POINT_BTREE_PLUS_INNER_NODE_COMPRESSOR_H_
#define _EMBEDDED_DATABASE_SPATIAL_POINT_BTREE_PLUS_INNER_NODE_COMPRESSOR_H_
#include "CommonLibrary/FixedMemoryStream.h"
#include "../../../../CompressorParams.h"
#include "SpatialPointCompressor.h"
#include "CommonLibrary/ArithmeticCoder.h"... |
a4e3bd9f5819e199022ed1173e5c64144e475ffc | 4d73490bf48a9a619ab0d6e064ab4652b4ab198c | /BattleTank/Source/BattleTank/TankPlayerController.h | 7c10f06ea6a4573cd32a7456481f0935f6507fd7 | [] | no_license | minomiya/01_BattleTank | 7b09031cf0f9e041da50d2747df7c16ab9f8318a | 28b6fb1b3ca548bfaf9a634eab6dc09248a2d5ca | refs/heads/master | 2020-05-01T07:08:50.366198 | 2019-05-08T23:17:48 | 2019-05-08T23:17:48 | 177,345,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,144 | h | TankPlayerController.h | // Copyrights LateGameStudios Ltd.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/PlayerController.h"
#include "TankPlayerController.generated.h"
class UTankAimingComponent;
class ATank;
/**
*
*/
UCLASS()
class BATTLETANK_API ATankPlayerController : public APlayerController
{
GENERATED_BODY()
p... |
85abf09cdf8880fb744779cd39ca0feda68ad5a3 | 2771ff9396c41a33078a112408d04d222e99535e | /DrinkBook/DrinkBook/Haus.h | bc03524862c8cacf68d672fc3fd978fdb9253677 | [] | no_license | dzpalova/OOP-FMI | fc2179f82f6757d2ca838af885bb3505b6f5a324 | 468bcb84c8c33e3f35f9c9bc01cfdbb4f34c56dd | refs/heads/master | 2020-05-25T14:41:44.508153 | 2019-06-03T21:17:10 | 2019-06-03T21:17:10 | 187,349,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 333 | h | Haus.h | #include "Club.h"
const double HAUS_MIN_PRICE_VODKA = 30.0;
const double HAUS_MIN_PRICE_WHISKEY = 40.0;
class Haus : public Club {
int numDJ;
virtual void setMinPriceVodka(double);
virtual void setMinPriceWhisley(double);
virtual Club* clone() const;
public:
Haus(const char* = "", double = 0.0, double = 0.0, i... |
871f5ec2507d7c346246758df89d6ccdf4b953de | 4b28074774821a2dc4921f14feaa83336fc087a7 | /InetTar/Server/InetTarifDlg.h | b2aeac32763b9b4e8db0e2c17cdb6d2a311d7b1e | [] | no_license | laz65/internet | b7522fcac209e7b1432ed4c6fbb0f6c88d47f660 | fbeef8aa030d55b10147c98cc0f412b2473904cf | refs/heads/master | 2021-01-10T09:16:09.346241 | 2015-10-03T06:38:12 | 2015-10-03T06:38:12 | 43,551,883 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 3,716 | h | InetTarifDlg.h | // InetTarifDlg.h : header file
//
#include "afxwin.h"
#if !defined(AFX_INETTARIFDLG_H__78696A70_83ED_11D4_945E_0050044D962D__INCLUDED_)
#define AFX_INETTARIFDLG_H__78696A70_83ED_11D4_945E_0050044D962D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//////////////////////////////////////////////... |
cfec341579c4fd90d2fc90c39c8872da838d4e23 | e7d6c366aba9cecb0ab837dcf4eb9a289e7836c0 | /Wifi/WifiNetwork.h | 766a649ea3f282e7d88f18d49d8e77d164d763ba | [] | no_license | OTTeam/CaptainAdhocClient | 525bd0a08528f3ba4c187c4a0529db62c84f72fc | 8c78042fd32a7f302bb2dc657c7330b0834d5226 | refs/heads/master | 2021-01-22T21:32:14.258964 | 2012-03-20T13:54:35 | 2012-03-20T13:54:35 | 3,647,550 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 680 | h | WifiNetwork.h | #ifndef WIFINETWORK_H
#define WIFINETWORK_H
#include <QObject>
#include <Windows.h>
#include <adhoc.h>
#include "NetworkNotificationSink.h"
class WifiNetwork : public QObject
{
Q_OBJECT
public:
WifiNetwork (IDot11AdHocNetwork *);
virtual ~WifiNetwork();
bool Connect(QString password);
bool Disco... |
d7054df67db26531642c90a012d607ad56e09e18 | d495474e5da770c6dabc9ea4b65c9085b6af9290 | /saRoamMonitor/src/ssnet.cpp | d997e710f746ee9e7c296d186239aea17d8e144d | [] | no_license | zhengxiexie/signalingContext | 43b9f51e721942f7f802a4c27a0891f4614d1a5f | 44a5f7e5058ae4b264c18499e40827f5768bf638 | refs/heads/master | 2016-09-05T14:23:17.771539 | 2014-04-12T04:49:04 | 2014-04-12T04:49:04 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 28,582 | cpp | ssnet.cpp | /**
* Copyright (c) 2010 AsiaInfo. All Rights Reserved.
* Creator: zhoulb email:zhoulb@asiainfo.com
* Modified log:
* 1> zhoulb 2010-03-01 Create
* 2>
* Description:
* 漫入漫出客户上下文文件处理函数,读取分拣后的信令文件,排序。主程序调用
* 错误代码范围:
* R2001 -- R3000
**/
#include "sspublic.h"
#include "ssnet.h... |
5dbb7b69b06368c7a6f6da3077d28cecf883c277 | b5b26ef51f513c52db8a5cbb5f2e1302376a1a53 | /src/bluetooth/BtTypes.hpp | 1675d9da3901e476a79c833454a7932ab7f369a5 | [] | no_license | dmarc0001/spx42Control | e1a99f8416add2955183e80fca354ab5f09ec6e2 | 55dc266f05388793bb29b54233b6684508db712c | refs/heads/master | 2021-07-08T00:30:03.577217 | 2021-03-25T08:40:58 | 2021-03-25T08:40:58 | 67,631,728 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 595 | hpp | BtTypes.hpp | #ifndef BTTYPES_HPP
#define BTTYPES_HPP
#include <QBluetoothAddress>
#include <QHash>
#include <QPair>
#include <QQueue>
#include <QString>
namespace spx
{
//
// ein paar Typendefinitionen, um die Sache lesbar zu machen
//
//! device MAC, device Name
using SPXDeviceDescr = QPair< QString, QS... |
fe6be8c8a0491b2f52ad5ba28676ee58317942c2 | 2f7226a693b9702ec8d84677aa0bca63f3c05de7 | /Platformer/Debug.cpp | 7ce8d07cca8a61575bfcd6c7134d8440ae6bc04c | [
"BSD-3-Clause"
] | permissive | sauerkrause/chessnut | 0d44f55daa02583bd28587b1520cb6e6005933bf | 77e5ff4b57e84d6343f1b423d17942f390b5d564 | refs/heads/master | 2021-01-15T13:01:48.912051 | 2013-08-23T00:39:58 | 2013-08-23T00:39:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,547 | cpp | Debug.cpp | #include <string.h>
#include "Debug.h"
#ifdef DEBUG_ENABLED // this will allow for compilation to skip when debug is not enabled.
Debugger g_cDebugger;
Debugger::Debugger()
{
m_bOutputToDebugger = true; ///< output to debugger.
m_bPrependFileInfo = true; ///< output filename and line in debug messages.
... |
9525616fdd935b7ff57b832ef0926556ac0f763f | 9184e230f8b212e8f686a466c84ecc89abe375d1 | /arcseventdata/tests/lib/test_Histogrammer4.cc | c5ba7f6d91445d94375a2a300e23285a8459c85c | [] | no_license | danse-inelastic/DrChops | 75b793d806e6351dde847f1d92ab6eebb1ef24d2 | 7ba4ce07a5a4645942192b4b81f7afcae505db90 | refs/heads/master | 2022-04-26T17:37:41.666851 | 2015-05-02T23:21:13 | 2015-05-02T23:21:13 | 34,094,584 | 0 | 1 | null | 2020-09-10T01:50:10 | 2015-04-17T03:30:52 | Python | UTF-8 | C++ | false | false | 1,359 | cc | test_Histogrammer4.cc | #include <cstring>
#include <iostream>
#include "histogram/EvenlySpacedGridData_4D.h"
#include "arcseventdata/Event.h"
#include "arcseventdata/Event2Quantity.h"
#include "arcseventdata/Histogrammer.h"
using namespace ARCS_EventData;
//4D
class Event2pdpt: public Event2Quantity4<unsigned int, unsigned int, unsigned ... |
858da48317d5419dfd011f532d5586c2fedbb2f2 | 52b6797078fbda2048c85ba586d5f87055c906ee | /Medium/longest-palindromic-substring.cpp | 08f5549977e54216995fde871263cf4fba966cf9 | [] | no_license | bhawan0407/leetcode | e7401cfb2a91d0e89c9ad9187e778bbbe9d704f8 | c5ca594faf331e7a0a68b86f4c36736c8edd36c7 | refs/heads/master | 2022-12-02T13:57:25.856792 | 2020-08-24T13:20:58 | 2020-08-24T13:20:58 | 276,657,866 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,195 | cpp | longest-palindromic-substring.cpp | class Solution {
public:
string longestPalindrome(string s) {
int n = s.length();
int ans = 0;
int count = 0;
int x = 0;
int y = 0;
int j,k;
for(int i = 0; i < n; i++)
{
k = i;
j = i;
... |
f87d5e0d8599cdfe8c2e3c112026322223f28f0f | 4e14a9f752f39613138b07ab348403d0461bb11a | /intermediate/vectoresyMatrices/examenes.cpp | e23e162f602bb79a5e6fb7a39adb1c297d78be16 | [] | permissive | eduardorasgado/CppZerotoAdvance2018 | 2184a4341ad49c94c8300d1da909bdc63f48a2df | 909cc0f0e1521fd9ca83795bf84cbb9f725d9d4f | refs/heads/master | 2021-07-25T18:43:30.530066 | 2020-04-14T09:26:46 | 2020-04-14T09:26:46 | 147,120,147 | 1 | 1 | MIT | 2018-10-05T11:04:04 | 2018-09-02T20:40:29 | C++ | UTF-8 | C++ | false | false | 1,288 | cpp | examenes.cpp | #include <iostream>
using namespace std;
int main(){
cout << "***CALCULO DE EXAMENES***\n";
float examen1, examen2, examen3;
int aprobadosTodos = 0;
int aprobaronUnExamen = 0;
int aprobadoUltimo = 0;
// datos para 5 alumnos
for(int i = 1; i <= 5; i++){
cout << i << ". Digite la not... |
3ad24d1743ad443083606b9b9d2f377b735ee176 | 6e304ef47b4640de70af55430a9b56136ca2e055 | /combinations.cpp | 570a481ba4898d6bb1c28a4028739b5f9f80a4a6 | [] | no_license | zhanjl/LeetCode | 9e6361475b83e83eecd0d684c5c4d3fc58c49671 | 9407d12119f27b322ba484b50948816018e24a27 | refs/heads/master | 2021-01-21T11:37:22.008471 | 2015-06-23T09:14:49 | 2015-06-23T09:14:49 | 24,532,015 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 485 | cpp | combinations.cpp | //循环递归
void generate(int n, int k, int beg, vector<int> item, vector<vector<int> > &res)
{
if (k == 0)
{
res.push_back(item);
return;
}
int i;
for (i = beg; i <= n+1-k; i++)
{
item.push_back(i);
generate(n, k-1, i+1, item, res);
item.pop_back();
}
}
v... |
50b97215d96b19c6d8af805734e5cc5806f3d8df | 69f51c429ddbf1e147b55477982df97df7b2ef4c | /MoistureSensor/moisture.cpp | b9d5a296d536bc4b40ea8f5b1fa985500b04cabf | [] | no_license | albaniac/PlantAutoWateringSystem | bfb531fae6bd1bca335bf44ce4098aa3232363a8 | 803c6c91b95ff64ebc3dff43c243763939a2eadd | refs/heads/master | 2020-04-11T22:50:30.598589 | 2018-06-01T23:04:58 | 2018-06-01T23:04:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 983 | cpp | moisture.cpp | #include "moisture.h"
#include "Arduino.h"
int moisturePin,
moisturePowerPin,
soil;
moisture::moisture()
{
}
moisture::moisture(int mPin)
{
moisturePin = mPin;
}
moisture::moisture(int mPin, int mPowerPin)
{
moisturePin = mPin;
moisturePowerPin = mPowerPin;
pinMode(moistur... |
d6cbd4a8f3e7a264d85f5be20ec4201f1b7d3133 | 59bc21cd74ec37710d7f01e9b21a1f13b52ecadf | /PEG Judge/COCI08 #1 - Skocimis.cpp | 519a3d7e690c66a7f7029b11156a71c0cf0d816b | [] | no_license | Md-Sanaul-Haque-Shanto/Competitive-Contest-Problesm-Solutions | c10d631fab4360f20556a19f26d5375c3e948b9a | 94466ba2e1d46555863f57a84614a4d67ae9acfb | refs/heads/master | 2020-03-19T18:49:53.064243 | 2018-06-10T16:58:42 | 2018-06-10T16:58:42 | 136,827,312 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 548 | cpp | COCI08 #1 - Skocimis.cpp | /*
Bismillah Hir Rahmanir Rahim
Md Sanaul Haque Shanto
Email : mdsanaulhaqueshanto@gmail.com
Solution Date : Jan 12/17, 12:18:12 am BDT
Problems Link: https://wcipeg.com/problem/coci081p1
*/
#include <algorithm>
#include <iostream>
using namespace std;
inline
void use_io_optimizations()
{
ios_base::sync_wit... |
368ee6d79d7618b5c47c636b4a5cd634cce0fe01 | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /library/cpp/json/fast_sax/unescape.cpp | 72109b0b5e697ff9c3d42d2522b9bf48e21c16b9 | [
"Apache-2.0"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | C++ | false | false | 201 | cpp | unescape.cpp | #include "unescape.h"
#include <util/string/escape.h>
TStringBuf UnescapeJsonUnicode(TStringBuf data, char* scratch) {
return TStringBuf(scratch, UnescapeC(data.data(), data.size(), scratch));
}
|
90219be089dc139e12260e60dfdb4834dbf4b338 | 7111fd2245ff26b940f483514a3f06da87ba1aa8 | /StandardSelectionSet.h | deae8e01daf565e3b6c552289fa6c129d2d01702 | [] | no_license | FuzzyCat444/GlowTetris | d020aa2a5116f0bd4ce79e1bf0dee3f97b5874b4 | bb5e6669a012767a3e3556e075bb5ac04d7dbb22 | refs/heads/master | 2023-02-02T20:26:05.646459 | 2020-12-21T21:04:44 | 2020-12-21T21:04:44 | 323,447,415 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 287 | h | StandardSelectionSet.h | #pragma once
#include "Selection.h"
class StandardSelectionSet
{
public:
Selection boxSelection();
Selection lineSelection();
Selection tSelection();
Selection squiggleSelection();
Selection reverseSquiggleSelection();
Selection lSelection();
Selection reverseLSelection();
};
|
3f1b9e148b7ab56c63333d4d4634f4cb05c4655e | f9478afe649d1734412a1c10ad953e2c82be1cb9 | /src/draw/Drawable.h | d508bb5711f7b389e9b30d0b7d14f1927390c5d8 | [] | no_license | blaavogn-games/voxel-world | bb7657dcc51b3098a4e1e48ff4299165cac5d38d | 2b27c0b18e9743d77e027b84b088fc6e14e846be | refs/heads/master | 2021-01-24T07:30:39.758251 | 2017-06-04T22:47:26 | 2017-06-04T22:47:26 | 93,345,939 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | h | Drawable.h | #ifndef DRAWABLE_H
#define DRAWABLE_H
#include "../geom/Vector2.h"
#include "../shader/Shader.h"
class Drawable
{
protected:
Vector2 position;
public:
Drawable(float x, float y) : position(x,y){};
virtual ~Drawable(){};
virtual void Draw(float time) = 0;
virtual void SetPosition(Vector2 pos) = 0;
V... |
ff06fe1574bfddbe3ebc18eb782998fd2b9f430a | 65ac7d055ae41f6d9dcb132314ab64f775f7426f | /Enlivengine/Enlivengine/Core/System.hpp | 671597fe009b379f21c54f44227d3a39d65174c1 | [] | no_license | brucelevis/Enlivengine | 62185c5eeadf5c350c8c28e95daffd011f2dedce | 30c082b5f1211615d9d96589d5d90cba75626a0b | refs/heads/master | 2023-02-03T16:45:51.990544 | 2020-12-23T02:27:54 | 2020-12-23T02:27:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 297 | hpp | System.hpp | #pragma once
#include <Enlivengine/Platform/Time.hpp>
namespace en
{
class World;
class System
{
public:
System(World& world);
virtual ~System();
virtual void Update(Time dt);
virtual void Render();
protected:
World& mWorld;
};
} // namespace en |
706e73575b2cbe21afd830d82eab6216c2e744e4 | 2251dbb6945597e3d2f3ef34aeb2f01561a2c607 | /main.cpp | 334b7b9d8b9480b64ead5b4655238dc326bb25e7 | [
"MIT"
] | permissive | mlitola/HeroesWakeup | a57ab0819404a5e3e4d0816ab43e92a0c9c1d419 | 25cdc58932e2452f4913db84934a06553fa2ea50 | refs/heads/master | 2020-04-25T03:04:10.476596 | 2019-04-07T17:10:21 | 2019-04-07T17:10:21 | 172,463,157 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 360 | cpp | main.cpp | #include <QApplication>
#include <QHBoxLayout>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MainWindow w;
w.resize(800, 480);
w.setStyleSheet("background-image: url(./graphics/background_native.png);");
w.show();
return app.exec();
}
void quitApp(Q... |
54e9478e8b915402c7a07d0c851bf06d1d512fca | 41c37b62efe5a89ee3f4df25e6b21d55f5eb54fb | /common/ByteContainer.h | 103ae16182dff0cc55eac7a61e36885be1dd0df2 | [] | no_license | wtrsltnk/HLLoader | 20b57e01e302c1dcb5f83bfc03c574b4bddcd2bf | de286162c4c0ecb78c5b29f87cd525f8f4e98df8 | refs/heads/master | 2020-12-03T00:36:15.635730 | 2017-07-02T21:05:36 | 2017-07-02T21:05:36 | 96,048,973 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 865 | h | ByteContainer.h | // ByteContainer.h: interface for the CByteContainer class.
//
//////////////////////////////////////////////////////////////////////
#ifndef BYTECONTAINER_H
#define BYTECONTAINER_H
typedef unsigned char byte;
typedef unsigned short word;
class CByteContainer
{
private:
char* ByteData;
int ByteLength;
int ByteP... |
729d1acb54054d4451db5de0765812bfb4461cf0 | c2d240ed4fb89d563b4a85b8fc1281de0919e28d | /may/4/devstr.cpp | b09b454bc5b94c6b8c28b02010110a0d15879c90 | [] | no_license | tyrion94/codechef | 116cd982b5f98daf9351841a20ad2945514b7147 | 98bb41facd948fddf74da40d36613f9bd1a9e879 | refs/heads/master | 2016-09-05T20:47:35.460840 | 2015-06-12T18:45:05 | 2015-06-12T18:45:05 | 37,321,249 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 656 | cpp | devstr.cpp | #include<iostream>
using namespace std;
int main()
{
long long int test; cin>>test;
while(test--)
{
long long int n,k;
char a[100000];
cin>>n>>k;
cin>>a;
long long int ctr ;
int flag ;
if(k == 1);
else
{
for(long long int i = 0 ;i<n-k;i++)
{
ctr = flag = 0;
for(long long int j = i+1;j<i+k+1;j++... |
20ec7011e8ec49ac75f4a3b9005b371b795c4729 | f06cc732009049850e39af375c209d019c5b2641 | /LISP Interpretor/src/sexpression.h | 2fa51fd1ce516b20ded5624434e841ac6e6149c0 | [] | no_license | rajaditya-m/Lisp-Interpreter | b74fab642a030494fea658204c866219397cbe27 | 0df847c6c04896f5d2168d19c23170eb36400a2d | refs/heads/master | 2020-05-18T03:14:58.072802 | 2013-03-23T01:25:35 | 2013-03-23T01:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,319 | h | sexpression.h | //
// sexpression.h
// LISP Interpretor
//
// Created by Rajaditya Mukherjee on 2/22/13.
// Copyright (c) 2013 Rajaditya Mukherjee. All rights reserved.
//
#ifndef __LISP_Interpretor__sexpression__
#define __LISP_Interpretor__sexpression__
#include <iostream>
#include <cstring>
using namespace std;
class SExp
{
... |
2902d5e041f098a924778625c92307ad452a224a | c84a674914b53d5a2f74538b1f42c76fd2be60fa | /SOS/transmitter/transmitter.ino | ab980a0591f4f3cb6a2ac27a07cb43473368339e | [] | no_license | DSERIOUSGUY/EC_WHEEL | a90bbc016d9e6cf21df01012faefb6ffcebf29ce | f4d618d1e631b246fc364942a277adfda9e8e209 | refs/heads/main | 2023-04-03T17:08:56.853621 | 2021-03-30T17:46:50 | 2021-03-30T17:46:50 | 340,031,201 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,298 | ino | transmitter.ino | //------------Header Files------------//
#include<Adafruit_SSD1306.h>
#include<painlessMesh.h>
#include <Wire.h>
//#include <Arduino_JSON.h>
//------------Mesh Definitions------------//
#define MESH_PREFIX "testMesh"
#define MESH_PASSWORD "password"
#define MESH_PORT 5555
// to control your personal... |
d61d95261be718c066ca6ba4a1d0779bac5a5eff | b5b3a404b62d634eab649f8529456a97da2d8481 | /source/Ashes/Ashes/Src/Image/StagingTexture.cpp | 0b38ecdb9afa90fafe061447cb16bf02be9ba966 | [
"MIT"
] | permissive | sunshadown/Ashes | c977b0330fcebce5fdc200a5d08dbaa6c47e5b1f | 1b14f064c65cbdd40b6fe543188355189e91b5c2 | refs/heads/master | 2020-04-16T12:38:03.434323 | 2019-01-11T22:10:19 | 2019-01-11T22:11:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,473 | cpp | StagingTexture.cpp | /*
This file belongs to Ashes.
See LICENSE file in root folder.
*/
#include "Image/StagingTexture.hpp"
#include "Core/Device.hpp"
#include "Core/Exception.hpp"
#include "Image/Texture.hpp"
#include "Image/TextureView.hpp"
#include "Miscellaneous/Offset2D.hpp"
#include "Sync/BufferMemoryBarrier.hpp"
#include "Sync/Imag... |
5171791f7a5d170bb4358345c36e38dc2b006262 | c3b63aa34e4922006535867a6fe7c7517f2cf73b | /Display.h | 72a6580a4ba86b47b238e07a396f8645b60f4ead | [
"MIT"
] | permissive | mserafin/Excavator-Simulator | ebcd0ff2cf4b87f2688b47637e67a1f2a1cc65b6 | 2768ae563cfbe065af29491067619f5a71b646fd | refs/heads/master | 2020-03-24T19:35:02.759030 | 2018-08-08T19:55:36 | 2018-08-08T19:55:36 | 142,935,006 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 244 | h | Display.h | #pragma once
#include "Arduino.h"
#include "LiquidCrystal_I2C.h"
class Display : public LiquidCrystal_I2C {
public:
Display();
void display(String text, bool clear = true, uint8_t x = 0, uint8_t y = 0);
protected:
private:
};
|
59a20f0ac627565f32e2851800a72eb1091160cc | fca2b354b8aec94d383dbeb95af050a41029ae0a | /Unity-iPhone/Classes/Native/Bulk_UnityEngine_2.cpp | 65f0ebbb82a4d6069c9afdeaac04b91c0fd58b09 | [] | no_license | woodygreen/Unity3DTouchWithTodayExtension | 1d3c4eec4665286564f366a5109da8a0997e97ac | 865c3e06b48d68dea020d11eb09d7b45f6643040 | refs/heads/master | 2021-07-14T16:01:22.818212 | 2017-10-18T02:03:39 | 2017-10-18T02:03:39 | 107,346,399 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,035,082 | cpp | Bulk_UnityEngine_2.cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "object-in... |
c283841577e477e8678116ba7a6d8b12c60f8a39 | 803a0bd067f1bfb2b5f4974255404f5f138025ee | /OpenCV/Day3/Day3_3.cpp | 9314f7ea23eae06752dd2504d715e8b266b7ceb8 | [] | no_license | LEEJINJU-1214/Hustar_3 | 55f0212ffb8e051eabd3744c6149920335c2d490 | 9e5ad344e86ff3ab5f2bbf623b6d212d9a79359a | refs/heads/main | 2023-06-24T12:12:07.086985 | 2021-07-27T08:56:21 | 2021-07-27T08:56:21 | 387,365,675 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,506 | cpp | Day3_3.cpp | //1. 예제_8.5.1의 rotation() 함수를 이용해서 영상 파일을 입력 받아서 300,100 좌표를 기준으로 30도 회전하도록 프로그램을 작성하시오.
#include <opencv2/opencv.hpp>
using namespace cv;
using namespace std;
uchar bilinear_value(Mat img, double x, double y) {
if (x >= img.cols - 1) x--;
if (y >= img.rows - 1) y--;
//4개 화소 가져옴
Point pt((int)x, (int)y);
int A... |
1beb9cfa86c878c3e89ceb5c4b5e4cbe6bde6875 | a9c04cb86b2b595e041a0cbbafc2382ff9d3cb72 | /327/Games/Card Game Workspace/Cards/Cards/main.cpp | f6795f1c23175e75833bc71a49b1fd702e61308a | [] | no_license | Crisco849/School | daefb9f0a3eafd9e183a2321814c3577bcadd2ef | 374faeee838ca45f6963cd969745c53ec2c4d4be | refs/heads/master | 2022-12-30T10:48:48.323891 | 2020-10-17T13:40:13 | 2020-10-17T13:40:13 | 302,448,595 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,506 | cpp | main.cpp | #include "cards.h"
#include <string>
#include <iostream>
#include <stdio.h>
using namespace std;
cards allCards[2];
void updateStats(int cardOne, int cardTwo){
allCards[cardOne].set_minion_values(allCards[cardOne].getAttack(), (allCards[cardOne].getDefense() - allCards[cardTwo].getAttack()), allCards[cardOne].getProt... |
55f8e2c7dcda2c0eb8da33dca6322e59fb80e35a | b3c62d591863dcec5f8a894110d8675bc0a3d061 | /Model/SpringsObjects/SpringsObject.cpp | faf4a5a8d7244f5cdff4be4161c5c15c62391bc3 | [] | no_license | XjtrX/MassSpringsModel | f03f9f881a182816614d7f76ee406d367729285d | 64e1a37e0f88f750a5099cef773bcf299ec88513 | refs/heads/master | 2021-01-25T10:06:44.158662 | 2014-04-07T14:47:19 | 2014-04-07T14:47:19 | 22,841,046 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,857 | cpp | SpringsObject.cpp | #include "SpringsObject.h"
#include <math.h>
using namespace std;
//#include "exact-ccd/vec.h"
//#include "exact-ccd/rootparitycollisiontest.h"
#include "3DMath/ParticleState.h"
#include "3DMath/MathRotation.h"
SpringsObject::SpringsObject(const int &particlesCount, const int &springsCount, const int &structuralSpr... |
b02a535154203348e9de88c841a6ea43e2353116 | 317d8c971a0edfd4e2270577503a76892df23bfb | /pointers.cpp | 3ce77883e11354f7c22b5185d18b286a213474eb | [] | no_license | shambala1337/Cpp | 7f46e8172b1abea08067828a1b0319b948ff221f | 6686cebc5fed250b15a2e4a688d84a55d2b2eebf | refs/heads/master | 2020-04-08T20:11:00.571829 | 2019-04-19T15:09:20 | 2019-04-19T15:09:20 | 159,687,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 381 | cpp | pointers.cpp |
#include <iostream>
using namespace std;
int main() {
int fish = 5;
cout << &fish << endl; // address in memory of fish
int *fishPointer; //dont need to use a star more than once
fishPointer = &fish; // pointer is a special type of variable with a memory address as a value
cout << fishPointer ... |
465b56932377d7116f8338b6f65f054eb29b4aa2 | 1117718ae9f303469f7e28bdb3bcfd781ca3d494 | /Query.cpp | 6677f45b8647da616ec349defeed7f4b018661c9 | [
"Apache-2.0"
] | permissive | Anemone95/context-sensitive-reachability | 049ffb8bfddb51db78dc6e3907b32d5cac416d47 | a8ca263f080dced86a27b903320939e7a92b2ef1 | refs/heads/master | 2023-07-11T00:17:53.262307 | 2021-08-17T16:23:00 | 2021-08-17T16:23:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,884 | cpp | Query.cpp | #include "Query.h"
//Query::Query() {
// initFlags();
//}
//Query::Query(const char* grafile) {
// initFlags();
// ifstream in(grafile);
// if (!in) {
// cout << "Error: Cannot open " << grafile << endl;
// return;
// }
// else
// cout << "reading " << grafile << endl;
// g = Graph(in);
// in.close();
// gsize = g... |
4d3cc83751c0a5a77d794f81b37c4b0e91db24bd | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/httpd/gumtree/httpd_repos_function_364_httpd-2.2.19.cpp | b420afe2ebe409386c4e0b26e73df7d4cdba12e5 | [] | 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 | 2,500 | cpp | httpd_repos_function_364_httpd-2.2.19.cpp | static int dav_method_checkin(request_rec *r)
{
dav_resource *resource;
dav_resource *new_version;
const dav_hooks_vsn *vsn_hooks = DAV_GET_HOOKS_VSN(r);
dav_error *err;
int result;
apr_xml_doc *doc;
int keep_checked_out = 0;
/* If no versioning provider, decline the request */
if (... |
0a1a6970f7b7f10856136e95022176bf71875ae1 | 4b998d81b33c0374c195b7d5d4907bc4e9f65f87 | /include/SceneManager.h | 5485a15c618801e506369a71161824f48b52ce67 | [
"MIT"
] | permissive | Genocidicbunny/TimewhaleEngine | 3e4f317cf8e1bd11750529f8873716f8d0f8ea82 | 6f38be50c832adf9fe4d3026d022d6db5e0eeccd | refs/heads/master | 2021-01-01T17:57:51.031950 | 2013-10-19T02:40:05 | 2013-10-19T02:40:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,344 | h | SceneManager.h | /*
*
* Scene Manager class
*
*/
#pragma once
#ifndef __TIMEWHALE_SCENEMANAGER_H_
#define __TIMEWHALE_SCENEMANAGER_H_
#include <unordered_map>
#include <unordered_set>
#include <list>
#include <string>
#include <memory>
#include "Scene.h"
#include "SceneTable.h"
#include "InstanceID.h"
namespace Timewhale {
clas... |
00242d2873d55ac594901c708d48fdecfd569b37 | 79face6fd87721bba49a03131c5ccc11b7e0c5de | /wasm/src/gl/program.h | 27017396b5cfd0da8dc0eb02b3495dcc29b736f1 | [
"MIT"
] | permissive | ps100000/libgraph | 17890f558ea59167cee633e68160af0c38ceb9a9 | da504ab9017082d62bfc7520e0bf11865ba7a673 | refs/heads/master | 2023-06-03T17:02:42.646598 | 2021-06-08T19:33:43 | 2021-06-08T19:33:43 | 365,260,281 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 711 | h | program.h | #ifndef _PROGRAMM_H_
#define _PROGRAMM_H_
#include <string>
#include <memory>
#include <GL/glew.h>
#include "gl_object.h"
#include "context.h"
class program: public gl_object, public context {
private:
program(GLuint program_id);
program(std::string vertexfile, std::string fragmentfile);
GLint previous_progr... |
770e66106220bbe04cf0787b80cd524d7a5b6d78 | fffa3b706f8a6611083a5dca098e721da3bbcdda | /March of the Bombs_Server/Context.h | 388f6e9e998c8edeac8d4acad2f8011e0cb41e96 | [] | no_license | Jereq/March-of-the-Bombs | bdd882969cf87bfae309935232fb4729b49721a7 | 5f0fb3082939709001614b4a0c80530e50a5c6b4 | refs/heads/master | 2021-01-24T06:13:40.349734 | 2013-05-15T17:08:50 | 2013-05-15T17:08:50 | 3,366,632 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,407 | h | Context.h | #pragma once
#include <set>
#include <boost/enable_shared_from_this.hpp>
#include <PacketManager.h>
#include "Player.h"
class Context
: public boost::enable_shared_from_this<Context>
{
public:
typedef boost::shared_ptr<Context> ptr;
typedef boost::weak_ptr<Context> w_ptr;
virtual void join(Player::ptr const& p... |
b227dfa232e1cc4189dcd24c9296b9cbcc773bf0 | 8ecb2cd22575f9bad97103493af6d604eaf65ae4 | /includes/IArtificialInteligence.hpp | 95f186444ce908212958c4e7dccd763ab0093e57 | [] | no_license | bogardt/gomoku | 7ef3f0dc28da579c529b83b81ab4409763777f1b | 6855356f59d1f4b34ff21a10be75cea962634560 | refs/heads/master | 2021-01-12T07:20:18.355986 | 2016-12-20T10:36:24 | 2016-12-20T10:36:24 | 76,947,576 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 250 | hpp | IArtificialInteligence.hpp | #ifndef IARTIFICIAL_INTELIGENCE_HPP
# define IARTIFICIAL_INTELIGENCE_HPP
# include "Map.hpp"
class IArtificialInteligence
{
public:
virtual Map::Coordinates *computeNextAction(const Map &map) = 0;
};
#endif /* IARTIFICIAL_INTELIGENCE_HPP */
|
31d78382bb1dd11b61f48c345d69f2f7c09dea0d | be55eb2440e4c8911eafad71853ed4626695ecd0 | /Lab_3.3-B/BitString.cpp | 791a8e2a9fe261c01bbab0425d8003797c292616 | [] | no_license | YuliiaOsadchukkk/Lab_3.3-B | 017799ca9dc14bcc30665bf4f833127621e1c828 | 81c546c32b4c8aafdcf0ae57aa8184a0d46d0141 | refs/heads/master | 2023-04-27T16:50:02.111578 | 2021-05-13T14:09:59 | 2021-05-13T14:09:59 | 367,064,155 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,563 | cpp | BitString.cpp | //BitString.cpp
#include "BitString.h"
BitString operator ^ (const BitString& a, const BitString& b)
{
BitString t;
t.SetFirst(a.GetFirst() ^ b.GetFirst());
t.SetSecond(a.GetSecond() ^ b.GetSecond());
return t;
}
BitString operator << (const BitString& a, int n)
{
BitString t = a;
long tmp[2];... |
6e860ffa796a5573da064779f668f556cec292bb | 85cce50c27d7bbd6d098ec0af7b5ec712ad6abd8 | /CodeChef/C++/CodeChef_Buy1Get1.cpp | fa7fe8cbf29d6656a16d7c4365a7d975f3f2a988 | [] | no_license | saikiran03/competitive | 69648adcf783183a6767caf6db2f63aa5be4aa25 | c65e583c46cf14e232fdb5126db1492f958ba267 | refs/heads/master | 2020-04-06T07:04:06.577311 | 2016-10-05T08:28:19 | 2016-10-05T08:28:19 | 53,259,126 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 558 | cpp | CodeChef_Buy1Get1.cpp | #include <iostream>
#include <string>
using namespace std;
int main()
{
std::ios::sync_with_stdio(false);
int test;
long long int count;
string jewels;
cin >> test;
while(test--)
{
int alpha[52] = {0};
count = 0;
cin >> jewels;
for(int i=0; i<... |
3097759bc8d9e09d3250f1416eed1d6b974b2bfa | 20d5373911038240cab9de653225e45e2998a519 | /client/srcs/entityInitialiser.cpp | 952addcaeefae5f8bab9211b4005142a8f850d52 | [] | no_license | barug/R-type | 900fee0aabd824265194b5d87e9606f22c14aa95 | 5b13c254ea52f483c0d8be96b69cda7e9bb572f1 | refs/heads/master | 2021-01-19T10:48:10.436258 | 2017-01-31T16:08:23 | 2017-01-31T16:08:23 | 82,204,023 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,075 | cpp | entityInitialiser.cpp |
#include "entityInitialiser.hpp"
void initializePlayerShip(EntityManager &entityManager,
int entityId,
va_list args)
{
PhysicComponent *physComp =
static_cast<PhysicComponent*>(entityManager.getComponent(entityId,
PhysicComponent::name));
SpriteComponent *spriteComp =
static... |
02cc08b8e7cd38d613da4ffb2a4f25fe6bdd2fbb | d5d18cdbf78c2edd5093cf1680c5124ff49a1368 | /src/BinaryConverter.cpp | 304da33478ff8d60d4d8b9a3ce1c3f1d5534bc43 | [] | no_license | Akrobate/genetic-neuron | 2201cadbf1ef2f093029997e88ab7d3d01d3069d | f918fc44f66ea852936b5942533cf7f4e71df011 | refs/heads/master | 2016-09-05T16:09:47.535057 | 2014-02-24T19:30:16 | 2014-02-24T19:30:16 | 33,071,197 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,038 | cpp | BinaryConverter.cpp | #include "../include/BinaryConverter.h"
BinaryConverter::BinaryConverter()
{
//ctor
}
BinaryConverter::~BinaryConverter()
{
//dtor
}
void BinaryConverter::printBinary() {
for (int i = 0; i < this->binaryTab.size(); i++) {
if (this->binaryTab[i]) {
printf("1");
... |
c714c4e3cd1a80ea0ad47c249f2d0dcc88213e5e | d8bab638248606cb91fd9d9e87983b5a5e018130 | /LeetCode/面试题10.10. 数字流的秩.cpp | e9d67208e9533c9d92110275e2cf47af8d3c3024 | [] | no_license | ning2510/Think-twice-Code-once | cbb8c06a6b55b6c74e4361ecf879b14b0a0e74de | 45e2fb2448cd85df451722e562fc146db5910cde | refs/heads/master | 2023-01-01T00:04:47.509070 | 2020-10-24T07:01:07 | 2020-10-24T07:01:07 | 264,395,014 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 830 | cpp | 面试题10.10. 数字流的秩.cpp | class StreamRank {
public:
int n = 50000, m = 0;
vector <int> c;
int lowbit(int x) {
return x & (-x);
}
void update(int i, int x) {
while(i <= n) {
c[i] += x;
i += lowbit(i);
}
}
int get_sum(int i) {
int ans = 0;
while(i > 0)... |
b3a40f6969b8b6f3efc181807ae62786f366b1a3 | 7a01fb04eda4110409e65f8880520bc4fcb8f4a6 | /Introduction_to_Programming/ITP1_8_C.cpp | 40bd8b25eaab311e6c1480b097aabde149ebbf31 | [] | no_license | rawsk/AOJ | 392ee01226181163bc947645adc1e3cc70ca71ac | 2fbfd8cff3a824e539ed9896971ccdfa862a2d51 | refs/heads/master | 2021-05-31T22:25:32.637611 | 2016-06-23T08:24:40 | 2016-06-23T08:24:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 312 | cpp | ITP1_8_C.cpp | #include <iostream>
#include <cctype>
using namespace std;
int main(){
char c;
int count[26] = {0};
while(cin>>c){
//if(c=='\n') break;
int num = tolower(c) - 'a';
count[num]++;
}
for(int i=0;i<26;i++){
char alphabet = i + 'a';
cout << alphabet << " : " << count[i] << endl;
}
}
|
a85a981d4a20050be88ff67d8db0cff90f794a9f | 1e15ef03b494d1e491b42ca580395c8001d97df1 | /using_markers/src/basic_shapes.cpp | 667c03c43ae20cbd2ab14ac9a278fb8536b3cdfe | [
"MIT"
] | permissive | steinzwerink/rviz | c07a41388f73ed92d47de7a993f45dfe8676e3c4 | 5cbe5f72f7f2d846e41bfedcf4c8a70a32697300 | refs/heads/master | 2020-06-02T12:25:01.307729 | 2019-10-31T11:24:48 | 2019-10-31T11:24:48 | 191,153,476 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 299 | cpp | basic_shapes.cpp | #include <ros/ros.h>
#include <visualization_msgs/Marker.h>
#include <sensor_msgs/JointState.h>
#include <tf/transform_broadcaster.h>
void chatterCallback(const sensor_msgs::JointState::ConstPtr& msg)
{
ROS_INFO("I heard: [%f]", msg->position[0]);
}
int main( int argc, char** argv )
{
} |
d8abfebe22100629bfbde8921352aec4becafba8 | 2f557f60fc609c03fbb42badf2c4f41ef2e60227 | /PhysicsTools/RooStatsCms/interface/FeldmanCousinsBinomialInterval.h | 8988aa6063171942bc1622ba91630006474722e2 | [
"Apache-2.0"
] | permissive | CMS-TMTT/cmssw | 91d70fc40a7110832a2ceb2dc08c15b5a299bd3b | 80cb3a25c0d63594fe6455b837f7c3cbe3cf42d7 | refs/heads/TMTT_1060 | 2020-03-24T07:49:39.440996 | 2020-03-04T17:21:36 | 2020-03-04T17:21:36 | 142,576,342 | 3 | 5 | Apache-2.0 | 2019-12-05T21:16:34 | 2018-07-27T12:48:13 | C++ | UTF-8 | C++ | false | false | 745 | h | FeldmanCousinsBinomialInterval.h | #ifndef PhysicsTools_RooStatsCms_FeldmanCousinsBinomialInterval_h
#define PhysicsTools_RooStatsCms_FeldmanCousinsBinomialInterval_h
#if (defined (STANDALONE) or defined (__CINT__) )
#include "BinomialNoncentralInterval.h"
#else
#include "PhysicsTools/RooStatsCms/interface/BinomialNoncentralInterval.h"
#endif
struct F... |
c5bf26fe2cfcd1b93e4ca69f64e8f605ceacb717 | ef6174304d7c6a8c83d1b8c7f13447d67ca25941 | /P_8_Material/Power.cpp | 0c006871ce7bd2168f3188a825670a1e89d7b15e | [] | no_license | aabedraba/practicas_material_alumnos | 15cb45e8d72ced7d329598e2929417cfbacb31a3 | 94ed18236a178b1110983dbd83a074a51a724e0b | refs/heads/master | 2021-01-20T05:37:28.747556 | 2018-04-03T19:37:49 | 2018-04-03T19:37:49 | 101,458,162 | 0 | 0 | null | 2017-08-26T02:55:19 | 2017-08-26T02:55:19 | null | UTF-8 | C++ | false | false | 1,986 | cpp | Power.cpp | /**
* @file Poder.cpp
* @author algarcia
*
* @date 6 de abril de 2016
*/
#include <stdexcept>
#include <sstream>
#include "Power.h"
Power::Power( string name, string description, string affectsTo, float destructiveCapacity ) :
_name(name), _description(description), _affectsTo(affectsTo),
_destructiveCapacity(d... |
206d0cd22ea6e33df0b849c1fb34d4cec2a9ba14 | 94699ef655bc79cdf83573b022107150ed734c48 | /transaction.h | 2bbecf45a28546214d5117ae4e6e55f33a61648e | [] | no_license | tyyama/CSS-343-Project-4 | f18408670b75bb572937c7383838dc1a403d4fff | b391b3b1dc4fdd124cfc4f13c538678f1383af85 | refs/heads/master | 2021-01-09T06:34:50.349656 | 2016-06-09T06:22:06 | 2016-06-09T06:22:06 | 60,425,770 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 535 | h | transaction.h | //Implementation Group:Billy Agung Tjahjady and Tyler Yamamoto
//6-8-16
//Program 4 Implementation
#include <iostream>
#include "movie.h"
using namespace std;
class Transaction{
public:
static Transaction *read_commands(string transType); //Factory Method
char getTransactionType();
Movie ... |
f241899874a566750490fae186f6b1734e99f1c2 | 0726c8bd994943bcde43443b3a76b94ede9ad845 | /PointOfSale/processfingerprint.h | 9708455ad5dcc322b3c9ed4e1979051e1202ca98 | [
"MIT"
] | permissive | pablovicente/fingerprint-payment-system | b1eed039fd62cdab3cdae8e60fe1bd1e9dc69a1e | c8e7eb4ca6059c9240e6f9150237d02d435e40c4 | refs/heads/master | 2021-04-29T04:31:13.897824 | 2017-01-04T08:24:55 | 2017-01-04T08:24:55 | 77,994,749 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,447 | h | processfingerprint.h | #ifndef PROCESSFINGERPRINT_H
#define PROCESSFINGERPRINT_H
#include <opencv2/opencv.hpp>
#include "opencv2/imgproc/imgproc.hpp"
#include <boost/thread.hpp>
#include <QObject>
#include <QThread>
#include "ConstantsFingerprint.h"
#include "mathoperation.h"
#include "normalize.h"
#include "segmentation.h"
#include "orie... |
3398816bbe24c87e4bcabdb6574a4ce03c988311 | 3a50c0712e0a31b88d0a5e80a0c01dbefc6a6e75 | /thrift/lib/cpp2/protocol/TableBasedSerializer.cpp | cd4b4c3221a843ccb69727ec66450658c3d9d87d | [
"Apache-2.0"
] | permissive | facebook/fbthrift | 3b7b94a533666c965ce69cfd6054041218b1ea6f | 53cf6f138a7648efe5aef9a263aabed3d282df91 | refs/heads/main | 2023-08-24T12:51:32.367985 | 2023-08-24T08:28:35 | 2023-08-24T08:28:35 | 11,131,631 | 2,347 | 666 | Apache-2.0 | 2023-09-01T01:44:39 | 2013-07-02T18:15:51 | C++ | UTF-8 | C++ | false | false | 4,450 | cpp | TableBasedSerializer.cpp | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... |
806d428189029aa106d7a3582075c3e88d2a951a | 3c5c46a7ff8c75a261b5261599bc0d98bb87eff4 | /QtApp/QStock/QStock/Data/YahooHistoryItem.h | 9ccec7927cc4ac9f5b8c73ef03ca60d04b91784b | [] | no_license | deepblueparticle/QStock | 8aac6ce16c342adcbdffc46f6f1258f070a36fa4 | 618f29bb2cffe8c15cc9c9d8ac22ab8cd77ee046 | refs/heads/master | 2020-03-20T19:04:07.098250 | 2018-03-01T04:45:06 | 2018-03-01T04:45:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 761 | h | YahooHistoryItem.h | #ifndef HAHOOHISTORYITEM_H
#define HAHOOHISTORYITEM_H
#include "types.h"
#include <QString>
#include <QDate>
enum{
YahooHistoryItemDate,
YahooHistoryItemOpen,
YahooHistoryItemHigh,
YahooHistoryItemLow,
YahooHistoryItemClose,
YahooHistoryItemVolume,
YahooHistoryItemMaxAdj,
YahooHistoryI... |
e58073092a59590561996f793ddeebd47f4b3e42 | fd5808fd77fc2bc4603bee0a6e81fcb09ffba78e | /Character.h | 41fe38aa159f31fe445b872a6303376b5f902a8f | [] | no_license | alextnlr/ProjectTacticalRPG | f9fbaa8d32ee73d7079900802b14b47fa751ada8 | f43469b2f8ea76cc7aa72bd174b636392133f7bc | refs/heads/master | 2023-02-12T23:36:28.089198 | 2021-01-04T15:25:17 | 2021-01-04T15:25:17 | 297,907,941 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,236 | h | Character.h | #ifndef Character_H_INCLUDED
#define Character_H_INCLUDED
#include "FileFunctions.h"
#include "Spell.h"
#include "StatusList.h"
class Character
{
public:
//Constructors
Character(int pv, int ac, vector<Spell> spells, string nom, int team, int x, int y);
Character(Character const& copie);
//Simpler Ge... |
e66d9b7e1c283366176bd1133a79639738ddf13b | 9e790064e86b7c91e271752db4f5ab1a29f17c87 | /src/myWordBook/mainwindow.h | 37a27fec85293fb0010222cc1c5c761804c4bed1 | [] | no_license | XeonWangYue/simpleRecite | 9c165031ac36381a1d722c4cbf402837241366bc | d749fdbef41405d8e73145ee1d9ccf5480a68a2f | refs/heads/main | 2023-03-11T19:50:44.886055 | 2021-03-01T15:19:28 | 2021-03-01T15:19:28 | 343,429,103 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 402 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "recite.h"
#include "mymain.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private:
Reci... |
ec1b5cf4c43b7a83adc689d6713885cce5961703 | 6b8fff0eeb75ad266af0ec2b9e9aaf28462c2a73 | /GCJ_Dataset/Data/aknow/2974486_5644738749267968_aknow.cpp | 2561c1176cf6a1427091c9676b38177e35579907 | [] | no_license | kotunde/SourceFileAnalyzer_featureSearch_and_classification | 030ab8e39dd79bcc029b38d68760c6366d425df5 | 9a3467e6aae5455142bc7a5805787f9b17112d17 | refs/heads/master | 2020-09-22T04:04:41.722623 | 2019-12-07T11:59:06 | 2019-12-07T11:59:06 | 225,040,703 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,718 | cpp | 2974486_5644738749267968_aknow.cpp | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
#define clr(x) memset((x),... |
432d31b1792de75edeb7ebb5050ac5c451f2d3b0 | 4128d4107121bece31bdce392b0b03af55f7ede9 | /for_each.cpp | 81a09b8ff3300c2ed52f790353f90e1f2d40609a | [] | no_license | ankitsaini84/CPP-Notes | 57f566c0d403dacb6306e43b958bc7092ceec23f | b63af7ecd327d808dcd60bcd6bffa8a281cb031c | refs/heads/master | 2023-02-10T11:07:20.028786 | 2021-01-09T06:28:26 | 2021-01-09T06:28:26 | 321,050,343 | 1 | 0 | null | 2020-12-25T11:14:09 | 2020-12-13T11:37:19 | C++ | UTF-8 | C++ | false | false | 1,270 | cpp | for_each.cpp | /**
* NOTE: FOR-EACH loops are also known as RANGE-BASED FOR-LOOPS
* Syntax -
* for(element_declaration : array)
* statement;
*
* The loop wil iterate through each element in array, assigning the value of the current
* array element to the variable decalred in element_declaration.
* TIP: For best results,... |
2fcd77711bf52a1c1b4cc1337b2d73d01bdcc2e5 | 6761b1265c3fa0661468acd93bd9a8949963088f | /Assignment Solutions/Week 3/3-7.cpp | 9ae4fb65fc837d9f2bff1109812d3ad4d90e732a | [] | no_license | doomsday861/Algorithmic-Toolbox | a5f1d8040ac3888686811c1268a9373b5f603bc5 | f7c3c350a685be450cc0c0e7895f1aa035d0dbcf | refs/heads/master | 2022-06-21T09:29:56.278606 | 2020-05-13T15:51:44 | 2020-05-13T15:51:44 | 263,664,922 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 541 | cpp | 3-7.cpp | #include<bits/stdc++.h>
using namespace std;
using std::vector;
using std::string;
#define ll long long
bool duh(string a, string b)
{
string ab = a.append(b);
string ba = b.append(a);
return ab.compare(ba)>0?1:0;
}
string largest_number(vector<string> a) {
sort(a.begin(),a.end(),duh);
string ans ="";
for(l... |
289963369527747d7cd19f3257228566ce63f5ec | e7b10df7054f5c9b35cbefd5502dbde907093369 | /code/core/test/checks/literal_checks_test.cc | 30aa724a75d953727ebf4c625e278637185738af | [] | no_license | zmanchun/insieme | 749b2ce1b32fed04d715d2b702cddb3b6610f36d | d6c7fda913b771408d8fe9e2c10d097dd5800def | refs/heads/master | 2020-12-29T00:26:14.946984 | 2015-11-19T15:52:58 | 2015-11-19T15:53:31 | 46,570,918 | 0 | 1 | null | 2015-11-20T15:43:09 | 2015-11-20T15:43:09 | null | UTF-8 | C++ | false | false | 7,793 | cc | literal_checks_test.cc | /**
* Copyright (c) 2002-2015 Distributed and Parallel Systems Group,
* Institute of Computer Science,
* University of Innsbruck, Austria
*
* This file is part of the INSIEME Compiler and Runtime System.
*
* We provide the software of this file (below described as "INSIEME")
* under... |
209faccb330680bfcc05875ed1bab1b83d014ad1 | 156437c3b20716b79c111523784d723c5d388412 | /1sem/16 из задавальника.cpp | 16fe12224e394424c37c029e4ddbaaf919dc4795 | [] | no_license | heyfaraday/coding_1year | fd9203e9a44b32e423798085e3be568fa197aecb | b84c67d8a4c166498072b9b65949dba09b498520 | refs/heads/master | 2021-03-24T12:49:44.777739 | 2017-07-18T23:07:29 | 2017-07-18T23:07:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,200 | cpp | 16 из задавальника.cpp | #include <conio.h>
#include <math.h>
#include <stdio.h>
struct fraction {
char sign;
int ch, zn;
void In() {
scanf("%d", &ch);
scanf("%d", &zn);
reduce();
}
void reduce() {
sign = 1;
if (ch * zn < 0) {
sign = -1;
ch = abs(ch);
zn = abs(zn);
... |
4cf2a2462b12f568f8864e718dfd9fe99899f64d | 693b19cd36f52a503b8ac1c9b54b9be6aeea9e76 | /componentes/TMS Component Pack/TMS Scripter Studio Pro/Source/FormScript.hpp | 8fed609855adc321966a77347b78d05761a697d6 | [] | no_license | chinnyannieb/Meus-Projetos | 728e603b451ea4262f9e6f4bf7e3dd05f0d1e79e | 6e08497c8fc45c142d7be1c4408f02fa524cd71f | refs/heads/master | 2020-12-25T23:58:02.724867 | 2015-07-05T11:45:08 | 2015-07-05T11:45:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,688 | hpp | FormScript.hpp | // CodeGear C++Builder
// Copyright (c) 1995, 2010 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'FormScript.pas' rev: 22.00
#ifndef FormscriptHPP
#define FormscriptHPP
#pragma delphiheader begin
#pragma option push
#pragma option -w- // All warnings off
#pr... |
9024c083fee33763c44cfefcbdacb5ad46562082 | dfe96e9fa52e009f9bcb4077e643e38e10c5d5c5 | /LCD_162.ino | 136202dc3a8733681d4e9c6fba255d10adb89d49 | [] | no_license | xj4v1x/arduino | 7ba76ad0c3064c1db005096449aa58b0bfce4be4 | 162d6703aa491b40ac0cdac9aaa489273aace281 | refs/heads/master | 2021-04-09T15:29:22.892001 | 2019-05-26T20:51:44 | 2019-05-26T20:51:44 | 125,735,121 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,692 | ino | LCD_162.ino | #include <LiquidCrystal.h>
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
byte A_Button = 5;
byte B_Button = 6;
byte lcd_backlight = 2;
bool light = true;
byte menuIndex = 0;
bool menuCursor = 0;
const int menuMax = 4;
const char menuItems[menuMax][15] = {
"Set Date/Time",
"Set Alarm",
"Config",
"Exit"
};
v... |
6107e2b1d39f075e9a07dcfca858f6366d96ed54 | 8f72438d5f4ca7219df3ae7799c3282faab5e33e | /Uva/Uva 10887 Concatenation of Languages.cpp | 76b554cd20e1d126dae0e20d34dfeed057e9a991 | [] | no_license | mdzobayer/Problem-Solving | 01eda863ef2f1e80aedcdc59bbaa48bcaeef9430 | a5b129b6817d9ec7648150f01325d9dcad282aed | refs/heads/master | 2022-08-15T22:04:18.161409 | 2022-08-08T11:46:00 | 2022-08-08T11:46:00 | 165,687,520 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 924 | cpp | Uva 10887 Concatenation of Languages.cpp | #include <iostream>
#include <set>
using namespace std;
set <string> mysetA, mysetC, mysetB;
int main() {
string s;
int t, i, test, n, m;
cin >> test;
//cin.ignore();
for (t = 1; t <= test; ++t) {
cin >> n >> m;
//cerr << "n is " << n << " m is " << m << endl;
cin.ignore(... |
e2698cb6680968e477d56805dfaa288cee208bff | bb9796d2f5d32cb97ae1f6494ee102bdef67ac4a | /cpp/pasha_and_tea_557_B.cpp | cbafd2c5c511c67adf7f3d59fdc757a5c9c1a1c9 | [] | no_license | DhruvSharma845/codeforces | 4e7d929b73b3937bc82de0030386f6a43ac68927 | 32e6de613a2033c6897f4de9a3795c99576dafba | refs/heads/master | 2023-06-09T00:47:44.665308 | 2023-06-01T13:10:13 | 2023-06-01T13:10:13 | 219,108,405 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 796 | cpp | pasha_and_tea_557_B.cpp | #include <iostream>
#include <vector>
#include <algorithm>
#include <iomanip>
auto main() -> int {
int N, W;
std::cin >> N >> W;
std::vector<int> cupCaps(2*N, 0);
for (int i = 0; i < 2 * N; i++) {
std::cin >> cupCaps[i];
}
std::sort(cupCaps.begin(), cupCaps.end());
double li... |
66827d1a877a5b1563583219ff6cc2ae4da34fe9 | f6d925cadb47810bbc233f77061f86463e548b2f | /Trie.h | 709d55283978aca2911692ff7bcb20c2ff61b2ac | [] | no_license | jsarraffe/Tries | a17d82b4b3483a3618388f7d65868fd00eddc977 | 582f40c5c6d9a3e3c84e6c67e788d80afd6f4c7a | refs/heads/master | 2023-04-17T05:48:01.069741 | 2021-04-23T23:10:31 | 2021-04-23T23:10:31 | 358,740,880 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,353 | h | Trie.h | //
// Created by jsarraffe on 4/14/2021.
//
#ifndef PROJECT3B_TRIE_H
#define PROJECT3B_TRIE_H
#include <map>
#include <vector>
class TrieNode{
public:
TrieNode(char c) : c(c), isEndOfWord(false), isVisited(false){
children.resize(26, nullptr);
}
bool &_isEndOfWord(){return isEndOfWord;}
... |
ec5345a7237a08fb5713fa25db06400234b3b8e3 | 2bf1feb41888adbee1756a280b77a4274536b5ae | /src/nnet-cache.cpp | 3855e79f680367159564a76408f8829062743486 | [] | no_license | Liao-YiHsiu/StructureNN | 407f77d49f15cd7a8ceb1c7732d23c0177e3758c | d1160fa8f3067bfc1aea314029d0be779f214e01 | refs/heads/master | 2020-06-04T05:43:06.250622 | 2015-07-12T03:01:52 | 2015-07-12T03:01:52 | 29,764,650 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,305 | cpp | nnet-cache.cpp | #include "nnet-cache.h"
CNnet::~CNnet(){
Destroy();
}
void CNnet::Propagate(const CuMatrixBase<BaseFloat> &in, CuMatrix<BaseFloat> *out, int index) {
// -----------------------------------------------
// setup buffers
if (index >= propagate_buf_arr_.size()) {
propagate_buf_arr_.resize(index + 1);
... |
f467fcaab61d089543e10b770364aec52ca0f023 | 3424a66b4d809a4e196d303bb23dafa7118a9ce6 | /vwcardashmega/CanBusReader.cpp | 8d689250565e38c1c70afe4542ab5c65b0d40b13 | [] | no_license | clkasd/vwcardasharduino | e438cd78d30c420100405e42a47b1a4655d7daca | 7b9482c484d3598b072c2cdfa6740cfc16109254 | refs/heads/master | 2016-09-13T05:44:49.532090 | 2016-05-25T13:18:15 | 2016-05-25T13:18:15 | 59,660,411 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,257 | cpp | CanBusReader.cpp | //
// CanBusReader.cpp
// Library C++ code
// ----------------------------------
// Developed with embedXcode+
// http://embedXcode.weebly.com
//
// Project vwCarDash
//
// Created by Aykut Celik, 18/05/16 18:20
// Aykut Celik
//
// Copyright (c) Aykut Celik, 2016
// Licence <#license#>
//
// See CanBusRe... |
23d40ddb08a789237c4bfdc7118e8d98c897f795 | 0eb84ec824fb34c18a87a4b50292d6cb41d15511 | /ComponentRobotinoConveyerBeltServer_OPCUA/smartsoft/src-gen/params/ParameterStateStructCore.hh | 36586ab4bfddcc640beecc16aec09ce513b7aa5f | [] | no_license | SiChiTong/ComponentRepository | 1a75ef4b61e37be63b6c5ec217bfb39587eecb80 | 19b79ae0112c65dddabcc1209f64c813c68b90d6 | refs/heads/master | 2023-07-12T13:01:10.615767 | 2021-08-25T09:59:28 | 2021-08-25T09:59:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,298 | hh | ParameterStateStructCore.hh | //--------------------------------------------------------------------------
// Code generated by the SmartSoft MDSD Toolchain
// The SmartSoft Toolchain has been developed by:
//
// Service Robotics Research Center
// University of Applied Sciences Ulm
// Prittwitzstr. 10
// 89075 Ulm (Germany)
//
// Information abo... |
52b21fb26b51093c33607577551ac2c5736a2b14 | 8d21ca5f48bc41087929d8c33b8e63053a3991ad | /src/main.cpp | f3bfb53806f4dc3d6980222e710ed96bd54209c2 | [] | no_license | hwshenmin/MessageSender | b347a6bd85cd6763e620c97ef9a088e0be76a3cd | 878ceeb9c245fed07f137db0da6f2ce4c6522b1f | refs/heads/master | 2020-05-23T08:04:39.199889 | 2014-06-24T01:27:50 | 2014-06-24T01:27:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 758 | cpp | main.cpp | #include "stdafx.h"
#include "MainGuard.h"
#include "MessageSender.h"
#include "Parameter.h"
#include "CommandLineHelper.h"
void main(int argc, char* argv[])
{
MainGuard main_guard( argc, argv );
CommandLineHelper command_line_helper;
ParameterPtrList parameters = command_line_helper.get_parameters();
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.