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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e117cd6a0af36ed209e04753482edd51c8ea58d1 | d7dacb8800693b89ea9255e476b80e8c0fbb69fa | /Server/ClientTest/ClientTest.cpp | 2b1d4d09c2aea68adefdb3cd7879eb22976e7369 | [] | no_license | ardar/ycmonitor | 1dc86235d3592758f9961f67f92a802d568de825 | f322e7e55782e4f91ca0a58863dfa6b20a318bb9 | refs/heads/master | 2020-07-01T23:06:23.677034 | 2013-05-31T10:38:09 | 2013-05-31T10:38:09 | 10,076,210 | 1 | 1 | null | null | null | null | GB18030 | C++ | false | false | 9,674 | cpp | ClientTest.cpp | // ClientTest.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include "ClientTest.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
#define MONITOR_INI_FILE ".\\D3Client.ini"
// 唯一的应用程序对象
CWinApp theApp;
ID3Client* pClient = ID3Client::CreateInstance();
using namespace std;
static int nImageNum = 0;
vector<D3SearchIt... |
d2e4b48db06e41bf4b9e483cfa0a651de4d4d60e | 90d88d5df9df3c6d64b3f22de38e1d7278b94ef9 | /MyDataStructure/Queue.h | 53f39bc51f168a4c791951e99afa6fdfd867268b | [] | no_license | wwwonekey/Data-Structures-Implemented-By-Me | 0f3a80b2be84fe683e0358ac4c86e974d59f4250 | 33910e932e343ed2a2bb5beccf99cb4628f86e4a | refs/heads/master | 2020-09-20T21:13:32.740888 | 2017-07-13T07:59:18 | 2017-07-13T07:59:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,284 | h | Queue.h | //
// Queue.hpp
// MyDataStructure
//
// Created by 杜臻 on 17/3/28.
// Copyright © 2017年 杜臻. All rights reserved.
//
#ifndef Queue_h
#define Queue_h
#include <stdio.h>
#include <iostream>
using namespace std;
template<class T>
class Queue {
public:
Queue(int MaxQueueSize);
bool IsFu... |
18efec0528780ce0b1db3599ece92b30f2c3a14f | 0bcd128368e2de959ca648960ffd7944067fcf27 | /tests/RecordingXfermodeTest.cpp | 47c80122f0e36dedf0bc5d3b5981bdf912262732 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google/skia | ac6e39179cd33cf0c8a46d29c1a70bf78b4d74ee | bf6b239838d3eb56562fffd0856f4047867ae771 | refs/heads/main | 2023-08-31T21:03:04.620734 | 2023-08-31T18:24:15 | 2023-08-31T20:20:26 | 15,773,229 | 8,064 | 1,487 | BSD-3-Clause | 2023-09-11T13:42:07 | 2014-01-09T17:09:57 | C++ | UTF-8 | C++ | false | false | 6,149 | cpp | RecordingXfermodeTest.cpp | /*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkBBHFactory.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkBlendMode.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkIma... |
fb1d299ea13012daaf1a8f4ddc4c529bf14d38e8 | 21b7eb6181835c0e32bc13b9e323a29b43c50e19 | /CodeForces/732B.cc | a04e1d1ba21568771ab8b64990cd7c0e96bd446a | [
"Unlicense"
] | permissive | wabilin/OJSols | 0d65ae9cf8ae77b5af009038c876ee284fb83814 | 8a9e9ca9a9c25acd81a7847c9d8e8439ef041d5f | refs/heads/master | 2021-06-02T10:10:50.537486 | 2021-02-01T11:09:55 | 2021-02-01T11:09:55 | 71,791,712 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 814 | cc | 732B.cc | #include <cstdio>
#include <vector>
void n1case(int k);
int main(int argc, char** argv)
{
int n, k;
scanf("%d %d", &n, &k);
// if (n == 1) {
// n1case(k);
// return 0;
// }
// commented and AC... WTF?
using namespace std;
vector<int> plan(n, 0);
for (int i = 0; i < n; i += 1) {
sca... |
866d172b3bec019d067e1db312645b804f3f0f67 | 0f835bc34c99d9a776b6ecf308d4acb723539870 | /spheregenerator.h | c1299f2bba9905cf34f39010f5e4e075011242df | [] | no_license | jacobmoroni/SnowGlobe | 526380a8684543cd056ec114bd0a3593228fc555 | 4c7c9144af2fb36d24810ec7637864e92657a769 | refs/heads/master | 2023-07-30T16:41:56.444181 | 2021-09-17T18:30:37 | 2021-09-17T18:30:37 | 407,608,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,363 | h | spheregenerator.h | #ifndef SPHEREGENERATOR_H
#define SPHEREGENERATOR_H
#include <QDialog>
#include "vector.h"
struct SphereGenSettings
{
public:
int num_spheres{10};
double rad_max{1};
double rad_min{.2};
double mass_max{10};
double mass_min{2};
double cr_max{.2};
double cr_min{1};
double vel_max{6};
... |
15fbf1488fb674be9ffd0fff42c05a3d515751f9 | 28ba55f26d0e49502a6a7dcd7ca7359f9c9eb2af | /다리 만들기(dfs 시간초과).cpp | eff5b723df43ce90204d251e4afe90bbb1a7ee1e | [] | no_license | moonshot2/BOJ | 7fcea32d703064843050756af403db2043ce299d | 37d38608d65a5ba332a57d6b31ef129fedf469a8 | refs/heads/master | 2023-06-22T20:01:13.693826 | 2021-07-22T06:55:24 | 2021-07-22T06:55:24 | 138,481,939 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,593 | cpp | 다리 만들기(dfs 시간초과).cpp | #include <iostream>
using namespace std;
int n;
int map[101][101];
bool visit[101][101];
int check[101][101];
int xy[4][2] = { {0,1},{1,0},{-1,0},{0,-1} };
int MIN = 9876;
void min(int a, int b) {
if (a < b)
MIN = a;
else
MIN = b;
}
void dfs(int y, int x, int cnt) {
visit[y][x] = true;
map[y][x] = cnt; //몇번 섬... |
e67e97a347458b6f692f6708d9904541e0a1cf53 | ce5e253b71be0bb49d239114b0c02b94f715dfe8 | /code/base/export/base_datatypes.h | 4251cc6651f2dfb10832b030b8b3cea2f1923a5f | [] | no_license | PrabhuSammandam/JaSmartObject | fcc2516a685fc985cc35e49b8c8661536197727c | c9e6df7ed9ef9c0c6ff5c8e4c7ded9e86cc0fe0d | refs/heads/master | 2021-01-22T01:47:53.503329 | 2018-12-21T14:37:17 | 2018-12-21T14:37:17 | 102,236,037 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 469 | h | base_datatypes.h | /*
* base_datatypes.h
*
* Created on: Dec 6, 2018
* Author: psammand
*/
#pragma once
#include <cstdint>
namespace ja_iot {
namespace base {
struct data_buffer_t
{
data_buffer_t(){}
data_buffer_t( uint8_t *pu8_data, uint16_t u16_data_len ) : _pu8_data{ pu8_data }, _u16_data_len{ u16_data_len } {}
boo... |
7f406ca1217845839f1b4a3a1515bc313377e849 | ce7cd2b2f9709dbadf613583d9816c862003b38b | /SRC/engine/steperrorscaling.swg | c7ebcbf28c37519d68b69fbf5ca5364ab7a8c434 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | usnistgov/OOF3D | 32b01a25154443d29d0c44d5892387e8ef6146fa | 7614f8ea98a095e78c62c59e8952c0eb494aacfc | refs/heads/master | 2023-05-25T13:01:20.604025 | 2022-02-18T20:24:54 | 2022-02-18T20:24:54 | 29,606,158 | 34 | 7 | null | 2015-02-06T19:56:26 | 2015-01-21T19:04:14 | Python | UTF-8 | C++ | false | false | 1,318 | swg | steperrorscaling.swg | // -*- C++ -*-
/* This software was produced by NIST, an agency of the U.S. government,
* and by statute is not subject to copyright in the United States.
* Recipients of this software assume all responsibilities associated
* with its operation, modification and maintenance. However, to
* facilitate maintenance we... |
b7d2e15935ea17def149afd4449168e746503bfe | 62b238dbe178f289c8b69375328fffd92f9fdd07 | /Languages/C++/zero_sum_subarray.cpp | 41c27244882cb8c515e7d2c4c71f3ce91862ca72 | [
"MIT"
] | permissive | swetasingh0104/Hacktober2021 | 45df0558177a3378b46e72450fb4d6e7a1bfd43e | e8b896dcf1993b724a7d73e2d33cfd21d106168d | refs/heads/main | 2023-08-15T13:14:35.232042 | 2021-10-06T16:49:42 | 2021-10-06T16:49:42 | 414,298,783 | 1 | 0 | MIT | 2021-10-06T16:58:25 | 2021-10-06T16:58:24 | null | UTF-8 | C++ | false | false | 454 | cpp | zero_sum_subarray.cpp | #include <bits/stdc++.h>
using namespace std;
bool zerosubarray(int arr[],int n)
{
unordered_set<int>s;
int presum=0;
for(int i=0;i<n;i++)
{
presum+=arr[i];
if(presum==0)
return true;
if(s.find(presum)!=s.end())
return true;
s.insert(presum);
... |
c8d20e673d704a5299bcac4e4508f0027d1da54f | aa62761e127f1fca3fd6f9aa8b3a3ee83381d38b | /die_roll.cpp | 4a49dc7aa8f868a944fa14e7e397399d4edb27d4 | [] | no_license | vickymhs/CodeForces-Submissions | 60487bd33e5ea2bae0c55685ad75b284a15d2cef | 7406daf60c9c977ba2d4d2222e148b65fa4d41fa | refs/heads/master | 2020-06-25T04:01:01.177983 | 2019-10-31T12:18:37 | 2019-10-31T12:18:37 | 199,194,765 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 367 | cpp | die_roll.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int y,w,d,c=0,i;
cin>>y>>w;
i=max(y,w);
for(int j=i;j<=6;j++)
c++;
switch(c)
{
case 1:cout<<"1/6";
break;
case 2:cout<<"1/3";
break;
case 3:cout<<"1/2";
break;
case 4:cout<<"2/3";
break;
case 5:cout<<"5/6";
break;
case 6:cout<<"1/1... |
b6324e17ad2655ec6dc92c227eae1bbfd327fa5d | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /RecoTracker/TkDetLayers/src/PixelRod.cc | ed9ab9941190fcf1a8867d692d1b36a5122189c4 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 3,812 | cc | PixelRod.cc | #include "PixelRod.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "TrackingTools/DetLayers/interface/MeasurementEstimator.h"
#include "TrackingTools/DetLayers/interface/DetLayerException.h"
using namespace std;
typedef GeometricSearchDet::DetWithState DetWithState;
PixelRod::PixelRod(vector<... |
3fedffd0051f9511e76c8e76d719aadb7f3a06dd | 81e132452000d7c5f7ffe9e29140f8dc1d769f4d | /project/PlatformHttpServer/main.cpp | 06373901362f3cf2825f5674a0a99e72a766e969 | [] | no_license | commshare/nanomsg_demo | 3f1f5fbf452557ba749516ddfd8920658106b9b8 | 6c2094d85029e2ecf3f3af13df892df67bff9458 | refs/heads/master | 2020-03-30T15:25:41.099955 | 2017-09-08T08:09:20 | 2017-09-08T08:10:41 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 808 | cpp | main.cpp | // PlatformHttpServer.cpp : Defines the entry point for the console application.
//
#include <stdio.h>
#include <signal.h>
#include <algorithm>
#include <event2/thread.h>
#include "libproperties.h"
#include "http_server_business.h"
#include "net.h"
#include "lw_util.h"
int main(int argc, char** argv)
{
if (argc <... |
aa59798e3b073c39de311688c6e895de7e0e0dcc | a5c8941d7f8face4962f506a584edb0efbd16ca6 | /develop/uvsecure/uvsecure-examples/tcp-secure/sighandler.cpp | c397fc1d9476cd61de814dcf13aab635cca8268b | [
"MIT"
] | permissive | motoyang/sf315 | 3e365bc1c9dd91d7913a65aaeccf2594e95c3eae | 9ed5affd2c815068793e24932af877cc4aad86c1 | refs/heads/master | 2023-06-27T09:10:27.821676 | 2020-01-04T15:20:22 | 2020-01-04T15:20:22 | 119,141,655 | 1 | 1 | MIT | 2023-06-14T16:07:58 | 2018-01-27T07:02:33 | C++ | UTF-8 | C++ | false | false | 1,253 | cpp | sighandler.cpp | #include <signal.h>
#include <sys/types.h>
#include <unistd.h>
#include <uvplus.hpp>
#include "secureacceptor.h"
#include "business.h"
#include "sighandler.h"
extern uvplus::TcpAcceptor *g_acceptor;
extern Business *g_business;
// --
// SIGUSR2 handler
void sig12_handler(int signum, siginfo_t *info, void *myact) {... |
380f17d1fdba80a5e12c2c59485943fc04d7a893 | 8087268aabb90ca3aa4e655b47e9d61e812a31b2 | /T4/main.cpp | 1fd14e63d3b731db3d59adbe4012e042c91d29f0 | [] | no_license | Edson-source/Prog_II | c68547d045f5131f06f4dedbfb4c2012d79e7b23 | 4565c0b17a4dd905118edbd576fd49397ce631fb | refs/heads/main | 2023-06-19T10:12:15.329079 | 2021-07-11T14:55:45 | 2021-07-11T14:55:45 | 384,952,540 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,476 | cpp | main.cpp | #include "dict.hpp"
int main() {
vector<Dictionary> listdict;
while(true){
if(vrs) cout << "Insert an option" << endl;
if(vrs) cout << "1.Insert the dictionary" << endl;
if(vrs) cout << "2.Show dicitionaries (all)" << endl;
if(vrs) cout << "3.Search (substring for everywhere)" << endl;
if(vrs... |
432971d1c97a56291568f8b182e81e5c02962596 | ccef180ad9162d596a5c7bd9a86ec8815ec5adee | /primeField/primeP.cpp | a0d01b2f1e36fca5b57a35a8e5450928dbf49fdf | [] | no_license | chatrasen/SP_parallel_lib | 68ea413655ca69cb025cefcff8ee0b4d386ef65d | 7a67b4ad6d7f647678e13dc0deef0c8b1e645761 | refs/heads/master | 2020-03-09T01:28:00.066239 | 2018-04-11T07:17:39 | 2018-04-11T07:17:39 | 128,515,204 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,076 | cpp | primeP.cpp | #include <immintrin.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdint.h>
#include <time.h>
#include <bits/stdc++.h>
using namespace std;
__m256i ones = _mm256_set_epi64x(1,1,1,1);
__m256i val128 = _mm256_set_epi64x(128,128,128,128);
__m256i mas = _mm256_set_epi64x(-1,-1,-1,-1);
__m256i ONES = _mm256_set_ep... |
ece53fbb7568572d901b5ad54afedbadd1f24e49 | 17428319e1bbbbae95e6dae94b9ca7b42d59a5fd | /src/Obj/OsaekTimeCtrl/OsaekTimeCtrl.h | 907929dce82855950011085485cb6540476221a9 | [] | no_license | aBetschart/JudoScoreBoard | d85b6057b44ea89aeb6a532aa4f2f22164984be1 | 4afb40255ff5a0b9d66da1a6a3f7a6c1035c4bd9 | refs/heads/master | 2020-03-21T08:35:08.378177 | 2018-07-31T09:56:12 | 2018-07-31T09:56:12 | 138,352,480 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,241 | h | OsaekTimeCtrl.h | ///////////////////////////////////////////////////////////
// OsaekTimeCtrl.h
// Implementation of the Class OsaekTimeCtrl
// Created on: 29-Nov-2017 14:35:09
// Original author: Aaron
///////////////////////////////////////////////////////////
#if !defined(EA_66C9942B_FF0D_4316_8A7E_24DF28EB5DAF__INC... |
a94f70e3824c3c76301ad57e8416d62feb62b1cc | 17310661cbaea41d68baea32c2a977f80f46751f | /Source/CollisionWar/SRC/Base/Widget/TemplateComboBox.h | 7bbb5014d49db94a565acba908e96c18960ad80f | [] | no_license | VectorL1990/CollisionWarBackup | 5540807c23193215d0a50e4826978d5f2430c243 | 8e263ab498f9097c57f6a1ef78719607b66cfc9f | refs/heads/main | 2023-04-10T15:17:05.678311 | 2021-04-23T08:16:05 | 2021-04-23T08:16:05 | 357,766,090 | 0 | 0 | null | 2021-04-23T08:16:05 | 2021-04-14T03:51:57 | C++ | UTF-8 | C++ | false | false | 1,308 | h | TemplateComboBox.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "TextBlock.h"
#include "ComboBoxString.h"
#include "TemplateComboBox.generated.h"
/**
*
*/
USTRUCT(BlueprintType, Blueprintable)
struct FComboBoxDefaultIn... |
93d69a3649ec49b1436f2becd4dac6d9ef50177b | 7149bff09854339f72134820b966dd80f2bae5e1 | /SegmentedSieve.cpp | c299abe9f052774bc68383f6256b7a2076259645 | [] | no_license | mdirshad17/MATHS | 14c9c07fa7bdc995c0404625d12a93898e8e6764 | 675bdbd9b03e3282aaa4a06edb96d49f34419982 | refs/heads/main | 2023-07-18T15:26:59.012899 | 2021-09-08T07:27:11 | 2021-09-08T07:27:11 | 381,811,875 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 674 | cpp | SegmentedSieve.cpp | #include <bits/stdc++.h>
using namespace std;
void SegmentedSieve(int l,int r)
{
int x=sqrt(r);
vector<bool> v(x+1,true);
v[0]=false;
v[1]=false;
for(int i=2;i<=sqrt(x);i++)
{
if(v[i])
for(int j=i*i;j<=x;j+=i)
v[j]=false;
}
vector<bool> v1(r-l+1,true);
for(int i=2;i<=x;i++)
{
... |
6c59b63b44c4d025e551d2414284c06471334ed3 | cf39355caa609c0f33405126beee2739aa3cb77e | /src/library/metavar_util.h | 4a3b675e1be6d5575298dcbaad404292a83e8756 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 2023-06-23T08:15:56.644949 | 2023-05-24T17:58:24 | 2023-05-24T17:58:24 | 169,960,991 | 457 | 107 | Apache-2.0 | 2023-06-14T12:06:12 | 2019-02-10T09:17:48 | C++ | UTF-8 | C++ | false | false | 6,930 | h | metavar_util.h | /*
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "kernel/instantiate.h"
#include "library/replace_visitor.h"
#include "library/delayed_abstraction.h"
namespace lean {
/*
Helper functions for meta... |
aa20e44d75d71a307fb60fe4c2ee4a7f630801f0 | 6e6c1115d3fb51ae368382fa769d672ab94b3fcd | /JigsawPuzzle/src/puzzle_model.h | 5d0d0ff83572fb3faad0b1ba2f2ca1430421da8b | [] | no_license | nanbokku/jigsawpuzzle | e642c135fb1eebbd7154f8151521905c07d9816e | 2d9f20b05da2459c600931d3629f456ee4fec51b | refs/heads/master | 2020-04-08T16:37:21.149537 | 2018-12-14T02:49:17 | 2018-12-14T02:49:17 | 159,526,823 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,689 | h | puzzle_model.h | #pragma once
#include <opencv2/opencv.hpp>
#include <GL/glut.h>
#include "piece_creater.h"
#include "piece.h"
#include "subject.h"
class PuzzleModel : public Subject
{
public:
PuzzleModel(const char* frame_path, const char* file_path);
PuzzleModel(const PuzzleModel& model);
~PuzzleModel();
PuzzleM... |
3306d10d8615767f2e4d4644e4b2a6cfa8bbc8ab | 32bfc176a5db0d59129f3c39381c46b0a520eb86 | /demos/QMPlay/src/plugins/func_associate/incl/func.cpp | 16173bd2f3ae02dcf880ef497aa09d18c66d4404 | [] | no_license | varzhou/Hifi-Pod | 2fb4c6bd3172720f8813fbbdf48375a10598a834 | eec4e27e37bc5d99b9fddb65be06ef5978da2eee | refs/heads/master | 2021-05-28T18:26:14.507496 | 2012-09-16T05:45:28 | 2012-09-16T05:45:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,705 | cpp | func.cpp | void opcje(QWidget*)
{
}
void setSize( QSize s )
{
QRect g;
g.setX(0);
g.setY(0);
g.setHeight(s.height());
g.setWidth(s.width());
f1.setGeometry(g);
}
void Show(QWidget *w)
{
if(w)
{
w->setMinimumSize( f1.minimumSize() );
w->setMaximumSize( f1.maximumSize() );
tmpWidget = w;
}
f1.setParent(tmpWidget);... |
6ad06a2df41a13ec111509eac9320182d455f99a | 334b3f43e1d2ee4c519b8d715eb146934af5a565 | /src/10195.cpp | e9e22c97af5e525ff350c1be36548750549712ac | [] | no_license | cloudrick/UVaOnlineJudge | 2bf423ab898f9ef554e64116549c2ed0a4ef2678 | 8effc51a3bb780bb04c08cb60a5a061cb5b72b0c | refs/heads/master | 2021-01-17T05:04:19.884803 | 2017-02-24T17:32:13 | 2017-02-24T17:32:13 | 83,065,710 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 368 | cpp | 10195.cpp |
#include<stdio.h>
#include<math.h>
int main()
{
double a,b,c,s ;
while(scanf("%lf%lf%lf",&a,&b,&c)==3){
if(a<=0.0||b<=0.0||c<=0.0||
a+b<=c||b+c<=a||a+c<=b){
printf("The radius of the round table is: 0.000\n") ;
continue ;
}
s = (a+b+c)/2 ;
printf("The radius of the round table is: %.3lf\n",2*sqrt(... |
13424ea5b256a263a8732ea46ed9d703bc9a2450 | 5db3009eb36afe7110ed5402be3a9e570c58c540 | /my_plugins/YouCompleteMe/third_party/ycmd/cpp/ycm/IdentifierCompleter.h | 9774c3f89ace916d273430f57d79a2bcd2ad804a | [
"GPL-3.0-only",
"GPL-1.0-or-later",
"MIT"
] | permissive | imfangli/vimrc | ced2c6caece1cf19421c6ea7deb017bec4ca3a27 | d2d14e7d083d70cc8627ddccb5b99c53c3c38be3 | refs/heads/master | 2022-02-01T00:34:31.855421 | 2022-01-22T15:57:28 | 2022-01-22T15:57:28 | 211,766,038 | 2 | 0 | MIT | 2019-09-30T03:15:03 | 2019-09-30T03:15:02 | null | UTF-8 | C++ | false | false | 2,693 | h | IdentifierCompleter.h | // Copyright (C) 2011, 2012 Google Inc.
//
// This file is part of ycmd.
//
// ycmd is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
... |
9ffc0777408972271a199323c3dffd4967d9d101 | f221c2f7a96228d73c193f8ccdc2aa361bc99067 | /src/main.cpp | ed5bbc4d5a6c8f55e824d6d42669c248e423b887 | [] | no_license | eullersaez/TP3_Alg1 | bbaae7d281fd3b32758044362c61859687d0e495 | 612e8e3e31a03053d00d2f41e71dc864cc94eff6 | refs/heads/main | 2023-06-05T16:37:03.576033 | 2021-06-27T03:36:21 | 2021-06-27T03:36:21 | 380,643,040 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,400 | cpp | main.cpp | #include <iostream>
#include <sstream>
#include "headers/metro.h"
int main(){
int N, D, T;
std::string linha; //leitura da primeira linha e atribuicao dos valores nas devidas variaveis.
std::getline(std::cin,linha);
st... |
8b21dbe2c788b82c636676d4baeba2318c1808b1 | c3be513fad32f52a0b3726eb31cdfee262f867d8 | /qmlcamera.cpp | 571f7adf4508432558a3642b884b5e664fb40479 | [] | no_license | vijiboy/declarative-camera | 422b3f7e00b6cbfdd2cedc223eca905176b73945 | 48047426362dfbe428c46df575f2f7ffe6dff867 | refs/heads/master | 2021-03-30T18:11:04.688748 | 2016-02-06T18:36:46 | 2016-02-06T18:36:46 | 47,966,210 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,718 | cpp | qmlcamera.cpp | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as follow... |
1efa0768faa82c601b0018289e5e4d17943b19a0 | 89bd52a9964763348915e64705947297d43c9d62 | /src/Effetti Carte/Fortuna.hpp | 12441a6c61465bcc17a75c0baa135cecf63d5942 | [] | no_license | FrancescoCerio/Gioco-dell-oca-pazza | 32a80fa1b5f2af07da476ba62ab1a04f15b5387f | c25fd4a21745d1aea820449a06a0bd0ae72d1af1 | refs/heads/master | 2020-03-12T22:34:24.015899 | 2018-07-08T14:07:23 | 2018-07-08T14:07:23 | 130,849,810 | 1 | 4 | null | 2018-07-08T14:09:32 | 2018-04-24T12:21:14 | C++ | UTF-8 | C++ | false | false | 358 | hpp | Fortuna.hpp | /*
* Fortuna.hpp
*
* Created on: 01/mag/2018
* Author: polis
*/
#ifndef FORTUNA_H_
#define FORTUNA_H_
#include "../Carta/Carta.hpp"
class Fortuna : public Carta { //sottoclasse di carta
public:
Fortuna();
void effetto_carta(giocatore* g[], int giocatoreCorrente, int n_giocatori, int dimT);
~Fortun... |
34e7904b5e01a901e979856010e76356098993f9 | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/boost_adaptbx/tuple_conversion.h | 2461e2d85fefb355efe186357d092e0233619b9b | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | C++ | false | false | 1,499 | h | tuple_conversion.h | #ifndef BOOST_ADAPTBX_TUPLE_CONVERSION_H
#define BOOST_ADAPTBX_TUPLE_CONVERSION_H
#include <boost/python/tuple.hpp>
#include <boost/python/module.hpp>
#include <boost/python/refcount.hpp>
#include <boost/python/to_python_converter.hpp>
#include <boost/tuple/tuple.hpp>
/* From a recipe given by David Abraham on C++ si... |
b3ba2044d0f88e8213f5a32d32c77c382de92dc1 | 76726498127e40a9e1d9e4a2aad38613494bb7d2 | /src/logistic.cpp | 1741748e03acd22bb2b74eb7f88301a3ba7964f3 | [] | no_license | bbbales2/math-benchmarks | ea413edbb5d481016bffcbb87cf307e043b5584b | 207e6b5d29b055adcf650d297740092e96c690ec | refs/heads/master | 2023-02-05T08:37:32.964850 | 2020-12-21T20:19:50 | 2020-12-21T20:19:50 | 294,805,502 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,598 | cpp | logistic.cpp | #include <benchmark/benchmark.h>
#include <stan/math.hpp>
#include <utility>
#include "toss_me.hpp"
#include "callback_bench_impl.hpp"
template <typename T1, typename T2, typename T3>
struct init {
auto operator()(benchmark::State& state) {
Eigen::VectorXd y_val = Eigen::VectorXd::Random(state.range(0));
Eig... |
5f9313dcdba219d0e6a77aff0e6da046ac6dc7b9 | 18f2227227b6ecd42155106b116db1a83880267d | /first-stage/PARSE/GotIter.h | de29eae3ff0ba2056e609758d72e336e5a92cde1 | [
"Apache-2.0"
] | permissive | jordi-adell/bllip-parser | 1e33415916f43564bc045839908483e4cf373bb2 | 460fbfadeb9b02ef965273fe62c7251c2417c1b3 | refs/heads/master | 2021-01-17T21:23:56.011113 | 2015-11-05T06:49:11 | 2015-11-05T06:49:11 | 45,034,190 | 0 | 0 | null | 2015-10-27T10:43:54 | 2015-10-27T10:43:53 | null | UTF-8 | C++ | false | false | 2,021 | h | GotIter.h | /*
* Copyright 1999, 2005 Brown University, Providence, RI.
*
* 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 b... |
5740ed73d2a6c3ba92895d93b4c3a1d23bec7660 | d996403f0c7b1321717221c99f32bc329ab4727a | /SimpleRenderer/rect.h | e158aec48da55c973bcb9794ca2f98a4b5d4173b | [] | no_license | StephenJun/UnitySimpleRenderer | 54b9a843928ae3b7c649062b6f8897cbf84dce4e | a2e31935b93baf64513c3fc9488fabd0765c57ce | refs/heads/master | 2021-03-04T14:58:57.801945 | 2019-07-25T09:13:19 | 2019-07-25T09:13:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | h | rect.h | #pragma once
class Rect {
public:
int x;
int y;
int width;
int height;
Rect() = default;
Rect(int x, int y, int width, int height)
{
this->x = x;
this->y = y;
this->width = width;
this->height = height;
}
int xmax()
{
return x + width - 1;
}
int ymax()
{
return y + height - 1;
}
}; |
830eafb49ecbd229e8480a6464ac988e04f25615 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-rds/include/aws/rds/model/SourceType.h | 6c913b88df3df68d9cc0f474d81247d90e0d41d3 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 759 | h | SourceType.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds/RDS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace RDS
{
namespace Model
{
enum class SourceType
{
NOT_SET,
db_instan... |
2b9944590f2f9c35046229579eb30e2391202ebc | b8fbe9079ce8996e739b476d226e73d4ec8e255c | /src/engine/rb_scene/janmsprite.h | 4a6fc055eb45ac7815b992f84efab6f34f2cd1c3 | [] | no_license | dtbinh/rush | 4294f84de1b6e6cc286aaa1dd48cf12b12a467d0 | ad75072777438c564ccaa29af43e2a9fd2c51266 | refs/heads/master | 2021-01-15T17:14:48.417847 | 2011-06-16T17:41:20 | 2011-06-16T17:41:20 | 41,476,633 | 1 | 0 | null | 2015-08-27T09:03:44 | 2015-08-27T09:03:44 | null | UTF-8 | C++ | false | false | 5,108 | h | janmsprite.h | /***********************************************************************************/
// File: JAnmSprite.h
// Date: 27.10.2005
// Author: Ruslan Shestopalyuk
/***********************************************************************************/
#ifndef __JANMSPRITE_H__
#define __JANMSPRITE_H__
enum SpriteAlignm... |
102238ba21646006d967cb8037a2fb6613f73e20 | 998f8333196a3b26b07bfff764949164b78d3852 | /src/DslOsdBintr.cpp | 140356560297eb04567ad8e3bb20151e200b1b87 | [
"MIT"
] | permissive | muhammadabdullah34907/deepstream-services-library | b778577852b8852ea3360e160bf101093cfb68bf | c598100058c4e47ceff8e5826d319c0440acde04 | refs/heads/master | 2022-11-21T15:50:20.064878 | 2020-07-01T22:28:20 | 2020-07-01T22:28:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,665 | cpp | DslOsdBintr.cpp | /*
The MIT License
Copyright (c) 2019-Present, ROBERT HOWELL
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 rights
to use, copy, modify, mer... |
520ccbd2a7ea3289d711489b7a45c09b46be3078 | 5330918e825f8d373d3907962ba28215182389c3 | /RecoLuminosity/ROOTSchema/src/FileToolKit.cc | 3a8e1a946efa8594d993f36ea3244b81b60def46 | [] | no_license | perrozzi/cmg-cmssw | 31103a7179222c7aa94f65e83d090a5cf2748e27 | 1f4cfd936da3a6ca78f25959a41620925c4907ca | refs/heads/CMG_PAT_V5_18_from-CMSSW_5_3_22 | 2021-01-16T23:15:58.556441 | 2017-05-11T22:43:15 | 2017-05-11T22:43:15 | 13,272,641 | 1 | 0 | null | 2017-05-11T22:43:16 | 2013-10-02T14:05:21 | C++ | UTF-8 | C++ | false | false | 4,415 | cc | FileToolKit.cc | #include "RecoLuminosity/ROOTSchema/interface/FileToolKit.h"
// STL Headers
#include <fstream>
// Linux
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
// C
#include <cerrno>
#include <cstdio>
#include <cstring>
void FileToolKit::Tokenize(const std::string& str,
std::vector< std::string >& to... |
d6981879f45d4ae1a37aa22381a84c55f40bb5a4 | 3b893cd712e3057712372ee72b74cf2a0a307707 | /Lonely/Lonely/GameLib/Font/Font.cpp | ab63fabcb60fb8fe13842d114e4277c5e6d5312a | [] | no_license | human-osaka-game-2018/Lonely | 9b80f11d06099d3c14935d9212f33084e69dad0f | b3fa7231ed0599b3e5c111d8e480bb174dd52568 | refs/heads/master | 2020-04-02T16:49:10.557991 | 2019-04-19T08:37:20 | 2019-04-19T08:41:00 | 154,630,062 | 0 | 0 | null | 2019-05-02T06:07:40 | 2018-10-25T07:42:55 | C++ | UTF-8 | C++ | false | false | 1,653 | cpp | Font.cpp | /**
* @file Font.cpp
* @brief Fontクラスのソースファイル
* @author shion-sagawa
*/
#include "Font.h"
#include "GameLib.h"
Font::Font()
: m_fontSize(0)
, m_pFont(nullptr)
{
}
Font::~Font()
{
Finalize();
}
// フォントの生成
bool Font::Initialize(int size)
{
IDirect3DDevice9* pDevice = GameLib::Instance.GetDirect3DDevice();
if (... |
5885e71594ecfbf790fda7958858a857d0810c06 | 5a19f0763cccd59abe5617d842301e4e7fe25a13 | /source/hougl/test/hou/gl/test_gl_object_handle.cpp | 29d79b811dbca857c6307aba6ad90a2c2e447d53 | [
"MIT"
] | permissive | DavideCorradiDev/houzi-game-engine | 6bfec0a8580ff4e33defaa30b1e5b490a4224fba | d704aa9c5b024300578aafe410b7299c4af4fcec | refs/heads/master | 2020-03-09T01:34:13.718230 | 2019-02-02T09:53:24 | 2019-02-02T09:53:24 | 128,518,126 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,299 | cpp | test_gl_object_handle.cpp | // Houzi Game Engine
// Copyright (c) 2018 Davide Corradi
// Licensed under the MIT license.
#include "hou/gl/test_gl_single_context.hpp"
#include "hou/gl/gl_context_settings.hpp"
#include "hou/gl/gl_object_handle.hpp"
using namespace hou;
namespace
{
class test_gl_object_handle : public test_gl_single_context
{... |
02d3a9d89382b11074aab405070221b719e8f2ec | 31f0bce32e6192b22989c2d2de54f0c218eb34b9 | /larreco/Genfit/TGeant3/G3Medium.cxx | 84e82c0bdcd7c6f04fc0e4ee62fd8054bebcd70d | [] | no_license | Dr15Jones/larreco | 7e3660ed4b8af50a91a1e98b23d84bffa059b0a8 | 41039550749392e0055318c62fd9b45238e0973e | refs/heads/develop | 2021-01-15T14:24:38.787996 | 2016-05-05T15:31:47 | 2016-05-05T15:31:47 | 58,142,095 | 0 | 1 | null | 2016-05-05T15:42:21 | 2016-05-05T15:42:21 | null | UTF-8 | C++ | false | false | 2,300 | cxx | G3Medium.cxx | /* *************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors... |
38386a066d429ea6674e118ac7162cbff6a3f268 | 8beb9d2f619f5b3a9202509424d11fb9470a0751 | /examples/events.cc | ac52b35bd6e9c091062a5edc7a689b39cd7693c9 | [
"MIT"
] | permissive | GeeLaw/onenote-object-model | 985b2d40b0ab1f4c1e5b85ae0e09ba24666092c3 | 63720381ab856ec31feff4848f548658331306ee | refs/heads/master | 2022-12-13T04:45:53.818248 | 2020-09-03T19:40:06 | 2020-09-03T19:40:06 | 291,966,963 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,692 | cc | events.cc | #include"utils.hpp"
using namespace OneNote15;
struct MyEvents : public IOneNoteEvents
{
/*** IUnknown ***/
STDMETHODIMP QueryInterface(REFIID riid, void **ppv)
{
wprintf(L"QueryInterface(IID = "
"%08lX-%04hX-%04hX-%02hhX%02hhX-%02hhX%02hhX%02hhX%02hhX%02hhX%02hhX"
")\n",
riid.Data1, riid.D... |
9c568b499fe11fd2254611baaa5327a2589651cf | f58ed9e8d9e01999ba1c828ff9768d17898fa461 | /cpp_module_00/ex01/main.cpp | 9f0a4b764ef6c243a31423d22168ce03c4b450ed | [] | no_license | oumeimatt/cpp-module | 3e9748442720413dfa8959ced8745e820ddae92e | 1a11f696dee68dab762d0c2f8846176fba720191 | refs/heads/main | 2023-09-05T03:39:27.501573 | 2021-11-21T21:35:58 | 2021-11-21T21:35:58 | 407,852,284 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,359 | cpp | main.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: ... |
a051835e570cf289e1b7bf23e33c4f0c27ea27f2 | 632a260c17d402528d2637d31e19484ed2dc7781 | /src/particle_filter/SmcParticle.h | d96498ce2eaa660134d0cce10588b2303bec5bb0 | [] | no_license | Mijan/LFNS | ab355b3a73d9943f66926420066068f8bfdab7a9 | fa84cc7c90e9e706c006eaf8ff506dc15cba8f6e | refs/heads/publishable | 2023-06-24T02:32:05.874735 | 2023-06-09T20:56:08 | 2023-06-09T20:56:08 | 184,099,871 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 904 | h | SmcParticle.h | //
// Created by jan on 11/10/18.
//
#ifndef LFNS_SMCPARTICLE_H
#define LFNS_SMCPARTICLE_H
#include <vector>
#include <memory>
namespace particle_filter {
class SmcParticle {
public:
SmcParticle(std::size_t state_size) : state(state_size, 0.0), time(0.0), _weight(0.0) {}
SmcParticle(const... |
41b70773d2ceeae91824da28b67c25e9872000f3 | 2e23464090c2c40f7748e9509073c3a59b4eeb23 | /lib/jxl/patch_dictionary_internal.h | 00e60b2f5c242da9b92ceab5e75882b7efe0918b | [
"Apache-2.0"
] | permissive | xann16/jpeg-xl | c696d54801beabcb6f37bf4d202c9e2e00e9b4d2 | 3f44ccc40341a579dd3d6d2878901ffab2137a1c | refs/heads/main | 2023-07-03T17:10:31.088440 | 2021-08-05T11:02:17 | 2021-08-05T11:02:17 | 393,007,451 | 1 | 0 | Apache-2.0 | 2021-08-05T10:55:37 | 2021-08-05T10:55:36 | null | UTF-8 | C++ | false | false | 4,447 | h | patch_dictionary_internal.h | // Copyright (c) the JPEG XL Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
1d60c4a80c4462440f08bafc47acd04662e1cd72 | ed953b899b3196ef2dfd576554c7e18372c05701 | /tools/pointcloud/src/octree.h | 655320dc69758fa83faf24a6db0d58d18e3f17c4 | [] | no_license | thomaav/slamdunk | 804408c1a0c507b65c88e2b2720e29b24a360942 | 322d61e49b1d637afa1ccf4830b42b2b1923c372 | refs/heads/master | 2020-04-11T12:16:21.235642 | 2018-11-27T14:06:56 | 2018-11-27T14:06:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 612 | h | octree.h | #pragma once
#include <stdlib.h>
struct OctreePoint {
float x, y, z;
};
struct OctreeBoundingBox {
OctreePoint center;
float radius;
};
struct OctreeNode;
constexpr size_t OCTREE_CHILDREN = 8;
constexpr size_t OCTREE_LEAFS = (sizeof(OctreeNode *) * OCTREE_CHILDREN) / sizeof(OctreePoint);
struct OctreeNode {
Oc... |
0bdc353cf4c23e5f34cc169fa970fc63488be700 | 555b6971c92299b14ead2e4cfc90d499e6b971d5 | /Competitive Programming/_notebook/string.cpp | 7ace5d0bd59e3c4f28c80b6ded288984d489e21c | [] | no_license | M-Rodrigues/Programming | dc538cde56545c2477276093617e18385d2401cb | ebc782f721fca3a0ee81449dd78b75f7ef332f5f | refs/heads/master | 2020-04-16T10:48:38.730265 | 2019-08-02T02:47:19 | 2019-08-02T02:47:19 | 165,517,658 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,635 | cpp | string.cpp | #include<bits/stdc++.h>
using namespace std;
const int N = 1e5+5;
// Z-function
int z[N];
void z_func(string &s) {
int x, y; x = y = 0;
z[0]=0;
for (int i = 1; i < s.size(); i++) {
z[i] = max(0,min(y-i,z[i-x]));
while (z[i]+i < s.size() and s[z[i]] == s[z[i] + i])
x = i, z[i]... |
3b7684645df8b05f2f4e022972e56dc37004c894 | 2d744a33e99df029c0986c1de751506c09608477 | /gnui/compat/FL/GNUI_Input.H | 65e24dc53294501b8d9258f6c3a1d1165216b7fa | [] | no_license | Dervish13/gnui | 57475103066312950368bba60181a27d47868fda | f62042c21aad348cf669e22f16e0bf5df07e8a91 | refs/heads/master | 2020-05-07T15:48:11.684477 | 2019-09-18T20:14:19 | 2019-09-18T20:14:19 | 180,652,956 | 0 | 0 | null | 2019-04-10T19:48:14 | 2019-04-10T19:48:14 | null | UTF-8 | C++ | false | false | 799 | h | GNUI_Input.H | #ifndef GNUI_Input_H
#define GNUI_Input_H
#include "GNUI_Widget.H"
#include <gnui/Input.h>
class GNUI_Input : public gnui::Input {
public:
GNUI_Input(int x, int y, int w, int h, const char* l=0) : gnui::Input(x,y,w,h,l) {}
int wrap() const { return type() == gnui::Input::WORDWRAP; }
void wrap(int b) { type(b ? g... |
49d258ffee85464969adeedb0df2f56a9f61ecaa | ebacc5b1b457b08eac119e43c030281c98343aeb | /Boost_Study/FunctionAndCallback/15.cpp | 316d7a70566bd486c7026e54da42a21756fd8ca5 | [] | no_license | deardeng/learning | e9993eece3ed22891f2e54df7c8cf19bf1ce89f4 | 338d6431cb2d64b25b3d28bbdd3e47984f422ba2 | refs/heads/master | 2020-05-17T13:12:43.808391 | 2016-02-11T16:24:09 | 2016-02-11T16:24:09 | 19,692,141 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 711 | cpp | 15.cpp | #include <iostream>
#include <boost/utility/result_of.hpp>
#include <boost/typeof/typeof.hpp>
#include <boost/assign.hpp>
#include <boost/bind.hpp>
#include <boost/foreach.hpp>
#include <string>
#include <boost/rational.hpp>
#include <boost/function.hpp>
using namespace boost;
using namespace boost::assign;
class demo... |
4d4444620f8f1fbee4c3f2fd0dc2e7b9126a5f0f | 6f874ccb136d411c8ec7f4faf806a108ffc76837 | /code/Windows-classic-samples/Samples/Win7Samples/winui/tsf/tsfmark/editsink.cpp | 65e9c1d17dcf33b877d3ecdc5a1f086421b5688f | [
"MIT"
] | permissive | JetAr/ZDoc | c0f97a8ad8fd1f6a40e687b886f6c25bb89b6435 | e81a3adc354ec33345e9a3303f381dcb1b02c19d | refs/heads/master | 2022-07-26T23:06:12.021611 | 2021-07-11T13:45:57 | 2021-07-11T13:45:57 | 33,112,803 | 8 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 4,468 | cpp | editsink.cpp | //
// editsink.cpp
//
// ITfTextEditSink implementation.
//
#include "globals.h"
#include "mark.h"
//+---------------------------------------------------------------------------
//
// OnEndEdit
//
// Called by the system whenever anyone releases a write-access document lock.
//---------------------------------------... |
116450bbdc60c50feccfffca221d5ee0cb92346b | 5d1a4bb6c4e26aa5aac00337be689a25b7349f65 | /diffusion3d/solver/gpu@miyagawa@pfsl.mech.tohoku.ac.jp/MySolver.h | 6c141a6e3112dece24eb2b7d325c3ae81d5ba3a7 | [] | no_license | tjhayasaka/pfsl-gpu-exercise | 10379171dc9a7042d98ff70a90090a4baa78609d | 812ebcb8f23d0cb684807b842009de021a33db70 | refs/heads/master | 2016-09-06T16:00:42.825772 | 2011-07-04T05:35:47 | 2011-07-04T05:35:47 | 1,825,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,394 | h | MySolver.h | //
#ifndef MySolver_h__
#define MySolver_h__ 1
#include "Solver.h"
#include "ArrayAccessor.h"
#include <boost/scoped_array.hpp>
//
template <typename T>
class ScopedCudaArray
{
public:
ScopedCudaArray() :
data_(NULL)
{
}
~ScopedCudaArray()
{
cudaFree(data_);
data_ = NULL;
}
void reset(in... |
3a3fffe57a52d212b4b88465c9e4ad9d7c758044 | c11da72ede8450aad6767eb5d9d6b00cace13042 | /ViroRenderer/VROChoreographer.cpp | f5565a63d44d9478def792497119a8362672c136 | [
"MIT"
] | permissive | mendix/virocore | 192d1e79f5b5d36d920a4608939843c3e808c2d4 | fd3cf5ac4222bb48a5b3af984f0c428ea316d762 | refs/heads/master | 2023-02-17T17:25:58.449812 | 2021-01-06T17:23:28 | 2021-01-06T17:23:28 | 258,201,318 | 1 | 2 | MIT | 2021-01-06T17:28:07 | 2020-04-23T12:54:36 | C++ | UTF-8 | C++ | false | false | 20,782 | cpp | VROChoreographer.cpp | //
// VROChoreographer.cpp
// ViroKit
//
// Created by Raj Advani on 8/9/17.
// Copyright © 2017 Viro Media. All rights reserved.
//
// 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 ... |
001ebb84b58c917d34b0a6e5ff49970459116514 | 7ada3d5c958cfdaeefa3d67d0815bb027006f65f | /Engine/Engine/src/Render/Utility/MaterialLibrary.cpp | d7ccafe5ec0c3a5d0f48d5daba4b5d432a12f9f6 | [] | no_license | JSpink95/cypher | 55778e2db3a842b502027a8d429393837eed0bfb | d6567e685a03a033b3ab447a84ea1b999a76b3ad | refs/heads/master | 2020-11-27T11:55:41.064332 | 2020-02-20T17:17:37 | 2020-02-20T17:17:37 | 229,427,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,301 | cpp | MaterialLibrary.cpp | //////////////////////////////////////////////////////////////////////////
// File : MaterialLibrary.cpp
// Created By : Jack Spink
// Created On : [18/10/2019]
//////////////////////////////////////////////////////////////////////////
#include "Render/Utility/MaterialLibrary.h"
/////////////////... |
291ea2eecf7a806a355c725595369c0b83d8db16 | 67108fc261b796cea22671fddceefc1ca4f47eab | /hw1_ip_filter/src/IpFilter/Boundaries.h | 018bf064616b59c9ca884001a6acad137f733b82 | [] | no_license | jketra/try_git | d9d8e76d01b2c4f066600ecb1ff4b55f5c4e255f | 3ab5caf4bbd12dd842ce78e07dbeb19af7ce27ea | refs/heads/master | 2023-08-06T04:16:08.591632 | 2021-09-23T22:43:08 | 2021-09-23T22:43:08 | 409,750,354 | 0 | 0 | null | 2021-09-23T22:43:09 | 2021-09-23T21:37:06 | C++ | UTF-8 | C++ | false | false | 119 | h | Boundaries.h | #pragma once
namespace hw1
{
template <typename T>
struct Boundaries
{
T min;
T max;
};
} // namespace hw1
|
55f490658d7283daf15c747d009bf513ff34c7a5 | b4638c7b7762e54b00b28a0d56c8e2282846ff52 | /avogadro/rendering/glrendervisitor.cpp | 18710269219e1852b606ffd26ac3b4aded319ee0 | [
"BSD-3-Clause"
] | permissive | OpenChemistry/avogadrolibs | 0b376e4a60432faf8521b8f9ee74109f1f3aee9d | b5239fe587c9ae1494cf1c3aca8c681a0c275bba | refs/heads/master | 2023-08-28T20:30:26.963289 | 2023-08-10T14:54:01 | 2023-08-10T14:54:01 | 4,169,531 | 368 | 167 | BSD-3-Clause | 2023-09-14T19:50:37 | 2012-04-28T18:56:52 | C++ | UTF-8 | C++ | false | false | 2,261 | cpp | glrendervisitor.cpp | /******************************************************************************
This source file is part of the Avogadro project.
This source code is released under the 3-Clause BSD License, (see "LICENSE").
******************************************************************************/
#include "glrendervisitor.h... |
a784e43e78d78f181d0d569d860969abc7c76a34 | edc6c2da8ceaa6de390db6a37aee098c963967fc | /IMonitorDisplay.hpp | d4c3e851615c0b4994ce6d9b99b47306b232c008 | [] | no_license | vtolochk/SysMonitor | a409108e0529c7c31c36de9b873f7a8ab59f8491 | 963d64257ec8cea99985ec7f4bc8aebe6c83201e | refs/heads/master | 2020-03-22T00:05:21.904831 | 2018-07-08T16:05:13 | 2018-07-08T16:05:13 | 139,223,954 | 0 | 1 | null | 2018-07-01T15:35:50 | 2018-06-30T06:07:51 | C++ | UTF-8 | C++ | false | false | 365 | hpp | IMonitorDisplay.hpp | #ifndef I_MONITOR_DISPLAY_H
#define I_MONITOR_DISPLAY_H
#include <iostream>
#include <unistd.h>
#include <sys/sysctl.h>
#include <time.h>
#include <sstream>
#include <mach/mach_host.h>
#include <mach/processor_info.h>
#include <vector>
#include <numeric>
#include <iomanip>
class IMonitorDisplay
{
public:
v... |
56d71934114e646497d34edb38c823a8f5015607 | 6a649591bcc03808e904994dc467d280e26560d4 | /Source/Map/Tile.cpp | 4ba357fb6149f4ac321397b44703d62b282f8686 | [] | no_license | ErosPinzani/Game | d22fcbc6c0132b45d2967c9d43dde6e9b4ab6d4a | 048ecb94173c26aa01de5b003ad7822c3d1af46e | refs/heads/master | 2023-08-12T07:43:28.288693 | 2021-10-14T14:00:33 | 2021-10-14T14:00:33 | 377,490,990 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 542 | cpp | Tile.cpp | //
// Created by erosp on 16/06/2021.
//
#include "../../Include/Map/Tile.h"
Tile::Tile(std::string textureName, float x, float y, bool walkable, bool exit) {
pos = sf::Vector2f (x, y);
sprite.setPosition(pos);
isWalkable = walkable;
isExit = exit;
if (!setUpSprite(textureName))
return;
}
... |
51a2ecfec1b5aa9f59686631824aacff0b4d194b | e01b075a0016465a41960b6e01527b172c6d524c | /recursion/string.cpp | 8d2d86cff745e0e13039e8737610b35643607604 | [] | no_license | nischay123/cplusplusprograms | 4f5b38f829b865cd5cecbb12720b721dc4c25f8b | 3c58d86c0cb821e28e79dfdd5661297a43d44626 | refs/heads/main | 2023-01-28T12:35:47.597234 | 2020-12-12T03:19:00 | 2020-12-12T03:19:00 | 317,742,133 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 531 | cpp | string.cpp | #include <iostream>
using namespace std;
int count(char* str){
if(str[0] == '\0'){
return 0;
}
return 1+count(str+1);
}
void removex(char* str ){
char ch = str[0];
char result[100] ;
if(ch == '\0'){
return ;
}
if(ch!='x'){
removex(str+1);
}else{
int i;
for(i=0;str[i]!='\0';i++)... |
f2be93ca35f73af48b1c045355402929e243bece | a8440388d84b20a4803af7115d63824cb40931b3 | /Week2/Question2.cpp | 7eee8ba4dde09deb6210a84beff0fe66b390ab32 | [] | no_license | Vasudha-2010/DAA- | 2b3a5fc9edb823aebd2ffb608470c42a7d0319b2 | 8d51e53d71e61bf4a7927420d840cedd8aa8a5db | refs/heads/main | 2023-08-15T03:44:59.955121 | 2021-09-23T10:59:24 | 2021-09-23T10:59:24 | 385,831,135 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 858 | cpp | Question2.cpp | #include<iostream>
using namespace std;
void sequence(int arr[],int N)
{
for(int i=N-1;i>=0;i--)
{
int j=0;
int k=i-1;
while(j<k)
{
if(arr[i]==arr[j]+arr[k])
{
cout<<"The indices are : "<<j<<" "... |
392d88fc7247bf383cc9e7285af65e978b52e8f5 | f810d84bc2ab193f654f139d392292668d50602e | /lab2/src/consoleLock.cpp | 41e1c290588c7a0c89f55e3a6500c2fa222119bb | [] | no_license | kirsanium/vorv | 1fe039ef6d19252295997133433108d7cf51b088 | fd1c4507da329e78256e14f8b9f05122da716c01 | refs/heads/master | 2020-09-28T21:34:28.437884 | 2019-12-23T07:15:24 | 2019-12-23T07:15:24 | 226,870,164 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,826 | cpp | consoleLock.cpp | #include <queue>
#include <vector>
#include <mpi.h>
#include "consts.cpp"
#include "asyncRequest.cpp"
using namespace std;
class ConsoleLock {
private:
int rank, size, recipient_amount;
MPI_Comm* comm;
int clock = 0;
int ask_timestamp;
int ask_flag = 0;
MPI_Request ask_request = MPI_REQUEST_... |
7ee28c5d986755b1be3eb5bb7a51e66e09c263d5 | 68bfa9d7a6b267f52354415fc72fada1ddfdc9ab | /src/cast_core/src/MoveRandomChunkToRandomShard.cpp | 949d802578e6432d7ddb721f31e052b365d3a914 | [
"Apache-2.0"
] | permissive | mongodb/genny | 5aa3c3be01d8bd8e5b7c9a9d019c5b206d7e97fb | 788eaf26e3b8b08d76c71d54fb0013befee9b032 | refs/heads/master | 2023-09-06T09:25:21.933670 | 2023-09-05T15:59:07 | 2023-09-05T15:59:07 | 121,291,048 | 44 | 76 | Apache-2.0 | 2023-09-14T16:50:21 | 2018-02-12T19:23:44 | C++ | UTF-8 | C++ | false | false | 7,616 | cpp | MoveRandomChunkToRandomShard.cpp | // Copyright 2021-present MongoDB Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
c69cadfe3f98e475f9b321f6c61c5ab2987d038d | 7ec060657ad54a104c6b260abf9a4fd83b8b142c | /NeuralNetwork.h | 64c023969d6de21302a61d7bdf9699f05b466e3f | [] | no_license | irwin08/NeuralNetwork | 3a68b93fa67e307ff4b280f2fbaed84c44abcdb5 | f30e50ec4c915061d2b166e2a210070602d5c0a5 | refs/heads/master | 2020-03-16T21:16:53.657032 | 2018-05-14T22:24:26 | 2018-05-14T22:24:26 | 132,992,507 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,651 | h | NeuralNetwork.h | #include <Eigen/Dense>
#include <iostream>
#include <vector>
using namespace Eigen;
class NeuralNetwork
{
public:
// Takes in a vector which gives the number of neurons corresponding to a layer.
// For example, a neural net with an input layer with n=3 neurons, a hidden layer with n=5 neurons and an output layer... |
b09592ed031f4f92643a07c1f947f63ff9964cc3 | a6c1222139c2784c1171f66e799861f9779496a5 | /Project1/helloworld.cpp | 84621d28c1d4502d1467a9bdeec8e2adef27b263 | [] | no_license | Anduron/FYS3150 | 82c819546563bcce8634a074b8469802cc3b1e2f | a7f6ad1a8cf11ebcf0209b71e8bbea1387dc2968 | refs/heads/master | 2020-03-27T05:01:54.390925 | 2018-12-14T20:50:55 | 2018-12-14T20:50:55 | 145,988,993 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 274 | cpp | helloworld.cpp | #include <iostream>
#include <cmath>
using namespace std;
int main()
{
int r;
double s;
for (int i = 1; i < 10; i = i + 2)
{
r = i;
s = sin(r);
cout << "r = " << r << ", " << "s = " << s << "\n";
}
cout << "Hello World" << endl;
return 0;
}
|
59fd1c7aa05d863e941540ee817fc5544a9778df | 1e8636fbfcf0bf494bf4c39b6029a7ca50e9e8ad | /physics/physics.cpp | b76afaedddf619b329aa4fa408448feccbf55607 | [] | no_license | dougfrazer/SDP | 1db02c254f6f6d32af247ce2964b6b441eadc8be | d98150753774224d58a6e2b38d061722005a854c | refs/heads/master | 2021-01-20T04:37:27.707162 | 2010-06-08T22:03:49 | 2010-06-08T22:03:49 | 710,413 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,237 | cpp | physics.cpp | /*
* main.cpp
*
* Created on: Jan 19, 2009
* Author: tim
*/
#include <list>
#include <math.h>
#include "types.h"
//sliding friction approx .2
//rolling friction approx .016
const double sliding_friction_constant = .2;
const double rolling_friction_constant = .016;
const double gravity_acceleration = 9.81;... |
dc5dac4f046505aaefaf02d10d161040d05b2c80 | 5576fc68e5090bb2cdef1f042375c5e050da4eac | /算法导论/91/main.cpp | 34cf0aa6a6496b0f65d9ed02b87848e8582b11bd | [] | no_license | xiaogang00/Algorithms | c51bad8891607a6f179981242ac58037a5d0ded1 | a2f7ba31b0e09bb016185dc42ac825156db82d88 | refs/heads/master | 2021-01-13T14:11:26.396201 | 2017-10-01T04:29:58 | 2017-10-01T04:29:58 | 76,168,713 | 1 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 312 | cpp | main.cpp | #include "head.h"
#include "node.h"
#include "queue.h"
#include "makeadj.h"
#include "handle.h"
using namespace std;
int main(int argc, char *argv[])
{
handle_bfs("e:\\in3.txt",0); //º¬²âÊÔÊý¾Ý
handle_dfs("e:\\in3.txt");
system("PAUSE");
return EXIT_SUCCESS;
}
|
324abfbaf5d01cdc51651c813a060404d930aceb | 31956534d3c35e4a6be018461ddb70f5b5a2faef | /rpi_robot_bringup/include/rpi_robot_bringup/basic_data.hpp | c911d9e006e20ea3dcf53300db3d3ed9a7f9dbe5 | [] | no_license | tabris2015/rpi-robot-ros-foxy | 86ec100167731c4323a1471fe1fd1f32c0900b1c | a9e297856d414b0550d402342a7fd51b18df320d | refs/heads/master | 2023-07-03T03:03:22.939477 | 2021-08-09T00:56:49 | 2021-08-09T00:56:49 | 387,272,383 | 9 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 75 | hpp | basic_data.hpp | #ifndef BASIC_DATA_HPP
#define BASIC_DATA_HPP
#define BASIC_FLAG 1
#endif |
e9449c175329017e5602a019e1753f8bca7ddf4a | a9bb2a9d11a57a06e25fee249a76e2ce2343ed13 | /source/Planet.h | 202a8bcd507f2e40926efc511678a866828ca534 | [] | no_license | theomission/VirtualTerrain | f0b11e678f6d484304cfd5aa5c7221bff41024dc | ac05ee3919600dce1d002ea57d7ac97311cd6cf8 | refs/heads/master | 2021-01-20T16:21:33.273669 | 2012-08-27T08:34:12 | 2012-08-27T08:34:12 | 46,342,924 | 1 | 0 | null | 2015-11-17T11:31:37 | 2015-11-17T11:31:37 | null | UTF-8 | C++ | false | false | 487 | h | Planet.h | /*
* Copyright © 2012 Fabian Schuiki
*/
#pragma once
#include "BakedScenery.h"
#include "Camera.h"
#include "SphericalChunk.h"
#include <SFML/Graphics/Image.hpp>
class ElevationProvider;
class Planet
{
public:
const double radius;
vec3 camera_pos_detail, camera_pos_culling, camera_at;
SphericalChunk rootChunk... |
01ba9b5484741bb3c41738cbd6de6984eec5eb96 | ace9852d2b85f5fa083f18d3eb421f508d54cc9d | /include/drivers/keyboard.h | 5fa54b72107a954171f26cc8c906e20762124d50 | [] | no_license | zbyue/ByOS | 19ef746b9a061e4b3c63621a7e62f24726b0ed30 | c287356814167c3d7836f2e563bd551eca721b5a | refs/heads/main | 2023-04-29T08:16:30.912024 | 2021-05-11T07:17:08 | 2021-05-11T07:17:08 | 321,974,153 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,290 | h | keyboard.h | #ifndef __BYOS__DRIVERS__KEYBOARD_H
#define __BYOS__DRIVERS__KEYBOARD_H
#include "../common/types.h"
#include "../hardware/interrupts.h"
#include "../hardware/port.h"
#include "../drivers/driver.h"
#include "../common/io.h"
namespace byos
{
namespace drivers
{
class KeyboardEventHandler
{
... |
1515bca1189a57e998d8cbe9237bd8909ca9d7fe | 1e969d49ac0de1526c99c18c57e5ee9d19455a16 | /src/plane.cpp | e41b35ff127a8219d2086c56adffd21b9d0c81e9 | [] | no_license | RBoshae/BasicRayTracer | 7d9b9a7f2edcd158ea674c68a43fb318c83304ed | d3cae2d6d00bfc183d54ec9afb9d07e9d634f3d4 | refs/heads/master | 2021-08-28T23:14:16.858669 | 2017-12-13T08:07:12 | 2017-12-13T08:07:12 | 112,877,544 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,142 | cpp | plane.cpp | #include "plane.h"
#include "ray.h"
#include <cfloat>
// Intersect with the half space defined by the plane. The plane's normal
// points outside. If the ray starts on the "inside" side of the plane, be sure
// to record a hit with t=0 as the first entry in hits.
bool Plane::
Intersection(const Ray& ray, std::vecto... |
5a88f326ca1b887a8a106775b7fd81e105de123b | 5fc3f6f9c7bd1c8573650d8b8a08718de1e744a4 | /gtaXAudio2/gtAudioSystemXAudio2.cpp | 045aef0aae9e76f5e0f85e05bfc057d1a213cb4e | [
"MIT"
] | permissive | olegkyka/GoST | 14eb01f2b7d0f39e9eecb64e91fb2658af25aa2b | 3927eac6cf564261fb722c006384d4bc68dfb1f9 | refs/heads/master | 2021-04-15T15:01:33.467588 | 2018-03-21T13:36:22 | 2018-03-21T13:36:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,045 | cpp | gtAudioSystemXAudio2.cpp | #include "common.h"
gtAudioSystemXAudio2_7* gtAudioSystemXAudio2_7::s_instance = nullptr;
gtAudioSystemXAudio2_7::gtAudioSystemXAudio2_7( void ):
m_XAudio2( nullptr ),
m_MasteringVoice( nullptr ),
m_ReverbEffect( nullptr ),
m_SubmixVoice( nullptr )
{
s_instance = this;
CoInitializeEx( NULL, COINIT_MU... |
1082dc054928dbe736f25e4960b829b493818633 | d6e7b971f68184439f0ffff0a5dc72dadc6d71ce | /openmp/encrypt_aes_128_cbc.hpp | 091b18940c91e7e01879b5c71367c8b79ffb13d1 | [] | no_license | mg180/PP_CW1 | 0129defc86c3fb82061a19bae5b3e7f9391c632d | ef3a3f69ce2f154d6e1605f74a8ddb7d3eb9151a | refs/heads/master | 2020-04-08T20:16:06.415561 | 2018-12-03T14:23:23 | 2018-12-03T14:23:23 | 159,691,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,659 | hpp | encrypt_aes_128_cbc.hpp | #include <iostream>
#include <stdint.h>
#include <cstring>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <chrono>
#include "utils.hpp"
using namespace std;
class encrypt_aes_128_cbc
{
private:
unsigned char *plaintext;
unsigned char *ciphertext;
unsigned char *iv;
unsigned char *key;
... |
b21779ee7afaf60a925111d250755b3591d3e769 | d30a102c2bd54a2bdb9f6d7e51e53483d5b19bd6 | /qt_fir/des_filter.cpp | 915c8c12965fa0dfa1746813a6940b605b0f8397 | [
"BSL-1.0"
] | permissive | kevinl8890/spuce | 56f1454970a4e1877965bd965d1ceedde9f81e5c | 1fb0d26e8a09f3b6a43fff9f279ca202f03b6294 | refs/heads/master | 2020-04-11T06:02:24.825693 | 2017-10-30T00:39:54 | 2017-10-30T00:39:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,005 | cpp | des_filter.cpp | // Copyright (c) 2015 Tony Kirke. License MIT (http://www.opensource.org/licenses/mit-license.php)
#include "des_filter.h"
#include "make_filter.h"
spuce::make_filter LPF;
spuce::make_filter* pLPF = &LPF;
void lpf_init(int pts) { pLPF->init(pts); }
void reset() { pLPF->reset(); }
void lpf_sel(const char* sel) { pLPF... |
b13f9baedadf6fb35a1ca89cff3a61a2aca0ece8 | 19fd39d32e135b94b36807f8159905aa46d3752a | /src/fpga/processing/data_parallelism/sw/block_rw.cpp | df31bc25dfc693cef662ac2e625a1d8180c6ed74 | [] | no_license | kayhand/sdb_fpga | 48b684364c3e78550a4cc9108d633081a6a93f8b | f4492f10f8c1e05dfe9d3fcb392bd70eb4bfd5a3 | refs/heads/master | 2020-04-17T05:52:48.870576 | 2019-07-09T22:27:45 | 2019-07-09T22:27:45 | 166,301,880 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,600 | cpp | block_rw.cpp | #include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
#include <iostream>
#include <string>
#include "afu_json_info.h"
#include "block_rw.h"
BLOCK_RW::BLOCK_RW(){
fpga_wrapper = NULL;
csrs = NULL;
column_part_pa = 0;
read_buff_pa = 0;
write_buff_pa = 0;
}
BLOCK_RW::~BLOCK_RW(){
del... |
55e734665e5a49498a29165779ce7e61fbef7840 | 735fc9e269eac9410bdabf1f599f954f8649cd0a | /emt/include/emt/emt_include_libevent.hpp | e619833bc61752413c9df07b099970d319aa5283 | [] | no_license | dungeonsnd/lite-libs | a9df4b62c007a9800a9867b915f69883fa777b48 | 38f84bd1cf6f1a43836f43e57fcd1d22b18d706b | refs/heads/master | 2020-04-26T11:19:38.381082 | 2015-11-28T03:21:16 | 2015-11-28T03:21:16 | 26,734,045 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 285 | hpp | emt_include_libevent.hpp | #ifndef _HEADER_FILE_EMT_INCLUDE_LIBEVENT_HPP_
#define _HEADER_FILE_EMT_INCLUDE_LIBEVENT_HPP_
#include <event2/util.h>
#include <event2/event.h>
#include <event2/buffer.h>
#include <event2/listener.h>
#include <event2/bufferevent.h>
#endif // _HEADER_FILE_EMT_INCLUDE_LIBEVENT_HPP_
|
278645c805cb59a8a6e45723ff8fb4e4b48bd638 | 18cb29866271d81a2ba0f9765494ab09fa0a3daa | /Global.cpp | 1df2757680b60441f0e23cd477da5128598a4f03 | [] | no_license | n-agi/JihoonFlight | 597784f8c7d690eb8424b28b721fc16d3769a31d | b412e8adfc162ec21de5a96930adb9f6dd707684 | refs/heads/master | 2021-01-13T11:18:33.363801 | 2017-02-09T06:21:16 | 2017-02-09T06:21:16 | 81,416,521 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,113 | cpp | Global.cpp | #include "Global.h"
LPDIRECT3D9 g_pD3D;
LPDIRECT3DDEVICE9 g_pd3dDevice;
LPD3DXSPRITE g_pSprite;
CBulletManager *BulletManager;
CSceneManager *scm;
map<char*,LPDIRECT3DTEXTURE9> TextureMap;
CPlayer *Player;
bool colCheck ( int x1, int y1, int w1, int h1, int x2, int y2, int w2, int h2 )
{
RECT r1,r2;
RE... |
4ea275c2ed0ea0dff2bf2c3833f7156ed12ae858 | c7177099d63f6de64b1ede0c642887b5565838d9 | /include/awkward/builder/GrowableBuffer.h | 96a8abd7825266572b345ed085c06c839fe3463a | [
"BSD-3-Clause"
] | permissive | piyush-palta/awkward-1.0 | c285c701bb5283348004b10be76c784d524cee5c | a4dad4996c03162db1d83f17c1c2d4adb59a1941 | refs/heads/master | 2021-04-20T22:27:13.832117 | 2020-03-21T00:46:03 | 2020-03-21T00:46:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,506 | h | GrowableBuffer.h | // BSD 3-Clause License; see https://github.com/jpivarski/awkward-1.0/blob/master/LICENSE
#ifndef AWKWARD_GROWABLEBUFFER_H_
#define AWKWARD_GROWABLEBUFFER_H_
#include <cmath>
#include <cstring>
#include "awkward/cpu-kernels/util.h"
#include "awkward/builder/ArrayBuilderOptions.h"
#include "awkward/Index.h"
namespac... |
c4c41d8640ae7262a875b606fd7266d9f8bcc40f | 3974cc24a2de64cd42f3be5f0ed68cebc1dad6b2 | /DesignPatternExamples/DesignPatternExamples/main.cpp | 617fc0a1a6132485488be41b6a9a94350557abe8 | [] | no_license | mcwiet/design_pattern_examples | 572a2e514390ec9ae3dc395c00e760f7a52258eb | 609e7c874ad2aba6dd4ef9e643c93e627ebe2af2 | refs/heads/master | 2020-07-02T02:10:59.792159 | 2020-06-29T17:10:02 | 2020-06-29T17:10:02 | 201,382,111 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 981 | cpp | main.cpp | #include "adapter.cpp"
#include "bridge.cpp"
#include "command_with_undo.cpp"
#include "command_without_undo.cpp"
#include "composite.cpp"
#include "crtp.cpp"
#include "decorator.cpp"
#include "facade.cpp"
#include "factory.cpp"
#include "factory_abstract.cpp"
#include "iterator.cpp"
#include "mixin.cpp"
#include "null... |
855b772dc01ae49458304f98f2bf8a553c442ed2 | 1a04dcb27a37f16fdf5200bff5dd1261e1587e19 | /Arduino Code/IRTransmitter/IRTransmitter.ino | fca19eb5ae6841b51cc58dc2b72db85ac70150ea | [] | no_license | Dibz15/fancy-robot | 130da1eadcf5789fabb594af3d0c51b1b5373623 | 87a67f05d5956ce7135707f283ddcd99ea2d7b48 | refs/heads/master | 2021-09-09T01:59:02.094711 | 2018-03-13T08:36:55 | 2018-03-13T08:36:55 | 113,124,340 | 0 | 0 | null | 2017-12-31T04:05:25 | 2017-12-05T02:59:22 | Python | UTF-8 | C++ | false | false | 585 | ino | IRTransmitter.ino | //This code would generate a modulated 38kHz IR signal
int count;
void setup() {
// put your setup code here, to run once:
//pinMode(4, OUTPUT); //pin 4 is connected to base of the transistor
DDRD = 0b00010000;
}
void loop() {
for(int i=0; i < 2000; i++){ //Turn On an... |
e4c9b86bbd15a74497e1e949ce07a39b179e92d7 | 33aff6f40a02aaeebd0e3bf8a37cff87ba211da0 | /include/face_detection_tracker.h | b8e7cd62bbe84a946d7f36a3cf82308d366dcb72 | [] | no_license | maetulj/face_detection_tracker | 168fb5f1353a3d2724ecda448e8e506ae68d5f6a | 39bf7e87fddc19af992117502969d9b9aeafc41d | refs/heads/master | 2020-06-17T08:12:20.280274 | 2016-12-01T02:50:20 | 2016-12-01T02:50:20 | 75,015,130 | 1 | 1 | null | 2016-11-30T01:08:15 | 2016-11-28T21:18:23 | C++ | UTF-8 | C++ | false | false | 5,807 | h | face_detection_tracker.h | /**
* FILENAME: face_detection_tracker.h
*
* DESCRIPTION:
*
* This file includes the definition of the FaceDetectionTracker class.
* This class firstly converts the sensor_msgs::Image to cv::Mat, then
* it detects the faces in the given image and tracks the faces.
*
*
* AUTHOR: maetulj
*
* START DATE: 2... |
90891212496748187dc9c9f1ac34f285baa065fe | 45a28e75a81d37676bee100c15ac57166a268156 | /proj/Textino/源码/OOP-Proj-TextEditor/PlainTextEdit.cpp | 2308c0ea9814b229c51029e518675f714cfb2e95 | [] | no_license | VickeyZ/OOP | 41394dce2fbd0a315e5f97f2e7bdd755494745ba | 0d96636a2cfacc15b8d1ab503cc479a15f277d5a | refs/heads/main | 2023-03-16T17:35:42.451620 | 2021-03-11T04:33:59 | 2021-03-11T04:33:59 | 346,578,085 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 414 | cpp | PlainTextEdit.cpp | #include"PlainTextEdit.h"
#include<QKeyEvent>
// QPlainTextEdit 重载
PlainTextEdit::PlainTextEdit(QWidget* parent):QPlainTextEdit(parent)
{
setFocusPolicy(Qt::StrongFocus);
}
void PlainTextEdit::keyPressEvent(QKeyEvent* event)
{
if (event->key() == Qt::Key_Tab){
this->insertPlainText(" ... |
a6c368240be603c93bc422f56f4cfb2fb5de2394 | 60a15a584b00895e47628c5a485bd1f14cfeebbe | /controls/BCGControlBar/BCGMainClientAreaWnd.h | edd7b2578e2ccdba6ae13b74d20d06225b4a3758 | [] | no_license | fcccode/vt5 | ce4c1d8fe819715f2580586c8113cfedf2ab44ac | c88049949ebb999304f0fc7648f3d03f6501c65b | refs/heads/master | 2020-09-27T22:56:55.348501 | 2019-06-17T20:39:46 | 2019-06-17T20:39:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,166 | h | BCGMainClientAreaWnd.h | //*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This source code is a part of BCGControlBar library.
// You may use, compile or redistribute it as part of your application
// for free. You cannot redistribute it as a part of a software developm... |
6d67b5e06e415084ddeae2cf4595bb71a1966d3e | 87e76cd4ee1ccf29ae3b0e37500cdd4664103e27 | /InfaArrayWrite.cpp | 4eac98db416afa336045b897fa5d60ab8ed0120d | [] | no_license | Admiree/PROC | cd856f78434a16ae67e48752e75802b63df06efa | 056609832ca08ddc8f9d8f5db9c9a221fbd32a7e | refs/heads/master | 2020-12-30T15:41:34.545525 | 2017-05-25T08:39:15 | 2017-05-25T08:39:15 | 91,162,251 | 0 | 1 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,327 | cpp | InfaArrayWrite.cpp | #include "stdafx.h"
#include <fstream>
#include "array.h"
#include "def.h"
using namespace std;
namespace arrays
{
int CalculationSum(array &array);
int CalculationSum(masOne &masOne);
int CalculationSum(masDouble &masDouble);
int CalculationSum(masTriangle &masTriangle);
void OutMasDouble(masDouble &masDouble,... |
8a1571ee51553374cbe8ded9c9b376e41f039f57 | b0d48471d4ee6774d07e1e163a85e68c1d80cd17 | /include/datahandler.h | 2f614453990368b07ed2530510e8e6dc057bb827 | [] | no_license | ThomasMKarl/QtKanji | 7c83da34bb5328cab38da076daf658dd977d4950 | 609539df92e6b2aa9206d61e78fc50fa7cc062dd | refs/heads/main | 2023-08-31T09:33:36.627003 | 2021-11-03T01:34:21 | 2021-11-03T01:34:21 | 332,829,875 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,853 | h | datahandler.h | #ifndef DATAHANDLER_H
#define DATAHANDLER_H
#include "helper.h"
namespace QtKanji
{
struct Boxes
{
Boxes() = default;
bool hideImi{false};
bool hideKun{false};
bool hideOn{false};
SharedCheckbox imiBox{}, kunBox{}, onBox{};
};
class DataHandler
{
public:
DataHandler() = default;
explicit DataHandler(... |
38f8fb91ca7a4e4a79a5234d040a13befbfdf1e7 | 0c268ff10b68c4a24023ca646bb46c5a125eb84c | /HDU_MultiSchool/day4/g.cpp | 2785bc4e1686a48eb1d02b570fb253bd1404c0af | [] | no_license | TzeHimSung/AcmDailyTraining | 497b9fb77c282f2f240634050e38f395cf1bedbc | 2a69fa38118e43cbeca44cb99369e6e094663ec8 | refs/heads/master | 2023-03-21T21:39:02.752317 | 2021-03-14T03:41:00 | 2021-03-14T03:41:00 | 159,670,822 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | cpp | g.cpp | /* basic header */
#include <bits/stdc++.h>
/* define */
#define ll long long
#define dou double
#define pb emplace_back
#define mp make_pair
#define sot(a,b) sort(a+1,a+1+b)
#define rep1(i,a,b) for(int i=a;i<=b;++i)
#define rep0(i,a,b) for(int i=a;i<b;++i)
#define eps 1e-8
#define int_inf 0x3f3f3f3f
#define ll_inf 0x7... |
689a39ba7c53af9f691fb40d837f59a36bdb4725 | 6dd898a5205fcf09ca4a8e42ec7a93faaca873ac | /factirial.cpp | b28e12522b40c85c3ffcabe90bfbeb71ebdf12e0 | [] | no_license | gauravdubey101/Ds_algo_question_for_placement | eb43f0aa7850a21e1bde1ecdfd9c3faa9b657e32 | 05c962c040635e6a181aeb2a0812a78144f80959 | refs/heads/main | 2023-03-05T23:10:06.247257 | 2021-02-15T18:04:10 | 2021-02-15T18:04:10 | 308,065,856 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 572 | cpp | factirial.cpp | #include<bits/stdc++.h>
using namespace std;
//learning function
//to check prime
bool isPrime(int n){
for(int i=2;i<=sqrt(n);i++){
if(n%i==0){
return false;
}
}
return true;
}
int main(){
// int n1,n2;
// cin>>n1>>n2;
// int fact =1;
//
// for(int i=1;i<=n1;i++){
// fact = fact*i;
//
// }
// c... |
39fd6c2f975b1e6f7a9778a856fdbff5580aec8e | e8d82adb77b43b883bc938c25d1981a118774c23 | /Minion.h | 59e92b0c3488864d194184078054251d124edaab | [] | no_license | warmshowers1/galaga_remake | 9f7214782647d73bcda5f508fb22c649dc8e570f | a74214c9eaec083e35726d910afa144440074eec | refs/heads/main | 2023-01-23T16:24:42.320966 | 2020-12-10T07:10:23 | 2020-12-10T07:10:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 335 | h | Minion.h | #ifndef Minion_h
#define Minion_h
#include "Alien.h"
#if defined WIN32
#include <freeglut.h>
#include "../windows/SOIL.h"
#elif defined __APPLE__
#include <GLUT/glut.h>
#include "SOIL.h"
#else
#include <GL/freeglut.h>
#include "SOIL.h"
#endif
class Minion: public Alien{
public:
Minion(float, float, float, floa... |
5655db85ab7e667dd328e462271788a680f897f5 | 1fc1c628992be7cc95bc49b428594caf57e0b049 | /cpp files/Tree/Binary Search/two sums best.cpp | 5d22ab73c7cd5c62dd1ab61bf1906c9246fa6966 | [] | no_license | av1shek/DSA-NITW | 8150b5646956177fa965a18b2c474db863687705 | fe8219c145fccfaedf0a59867c7d4cc7fb70bdf1 | refs/heads/master | 2023-05-13T21:43:16.393840 | 2021-06-03T09:02:17 | 2021-06-03T09:02:17 | 373,443,487 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,304 | cpp | two sums best.cpp | #include<bits/stdc++.h>
using namespace std;
typedef struct bstnode *bstptr;
void takeInput(bstptr &); /// takes input till -1
void insert(bstptr &, int); /// insert a integer value
void insertNode(bstptr &, bstptr); /// insert a node to with some data value
void printInorder(bstptr); /// p... |
05a5084925ea70f665dd2997f6a3b87f83131f50 | a03abde36205d8d1c690a949cd2f16962b37687d | /A2/graph.h | ed7d9f9893a09f1863d6f9e4613953bc53efecc1 | [] | no_license | chitraa-ramachandran/vertex-cover-probelm | e02eb86027b58b085058276d3eb83fc426759894 | d5ac3357dff8a592a16b7246fbc82f7687e2f431 | refs/heads/master | 2022-11-12T19:34:46.833700 | 2020-07-06T06:23:47 | 2020-07-06T06:23:47 | 277,454,779 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 430 | h | graph.h | #include <vector>
using namespace std;
class graph
{
#define INDEFINITE (~(0x1<<31))
private:
unsigned int vertices_number;
vector<vector<unsigned int>> adjaceny_matrix;
vector<unsigned> edge;
public:
void initialize_graph(unsigned int no_of_vertices);
void clear_all_edges();
void edge_construction(unsigned in... |
7c5bdd7ca40d5cbc611b59e612eba0cc802f7bd7 | 19f1daea6861f2e4f08c76f07ac0f84306d240c8 | /Tools/MiscUtils/include/Tools/MiscUtils/ConcurrentQueue.h | ac30d1004a7ac5d9034980369a8dbb0202129bf8 | [] | no_license | erdoukki/PraeTor | e1ded122c51c45fdacf1f8733173ae509bcdd106 | 42173cfa97612c05a99b9913929e13f5f549e126 | refs/heads/master | 2021-12-23T16:29:22.260165 | 2017-11-18T11:22:16 | 2017-11-18T11:22:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,410 | h | ConcurrentQueue.h | #ifndef TOOLS_MISCUTILS_CONCURRENTQUEUE_H_
#define TOOLS_MISCUTILS_CONCURRENTQUEUE_H_
#include <queue>
#include <boost/thread/mutex.hpp>
#include <boost/thread/condition.hpp>
namespace Tools
{
namespace MiscUtils
{
/**
* @brief Многопоточная очередь
* @tparam T - тип данных очереди
*
* Класс реализует многопото... |
b3bcc46566ca5a884dd45bef3b57a356c64b7e7a | 130caa2001baed165203ab3e73751c218a52c4b1 | /ex680_valid_palindrome_II/solution.cpp | 30e127bd1fbab8a068ccfae4bd1a80a0aca2e285 | [] | no_license | blenz3/leetcode | b3a29e42e64847c0eee91a2aa2cdfe2716af49f2 | f99def4b16e29b08b0b4af1004c7e53113ff9325 | refs/heads/master | 2022-07-17T06:01:38.536254 | 2022-07-11T00:51:12 | 2022-07-11T00:51:12 | 185,082,578 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 916 | cpp | solution.cpp | class Solution {
public:
bool validPalindrome(string s) {
if (s.length() < 2)
return true;
int start = 0, end = s.length() - 1;
while (start <= end) {
// Once we encounter a bad character continue to attempt to
// scan for a palindrome with the ... |
65d9d27bd573fb1041803679e8124e51c56bd0aa | 4bfe0eec8feae8d59ef9d623501fd00ac0fa5db3 | /control-server/src/cloud_ws.cpp | a06c46180bd1cdc1d68904a4f635c5ee4737d0ec | [
"MIT"
] | permissive | wozio/home-system | 8b23d175a554aed060bb0b3cba97fcb02e4fac80 | 16b3673a00aa67f1a85d724ada13b03db6f5c146 | refs/heads/master | 2021-05-22T08:49:47.026886 | 2015-12-28T08:01:31 | 2015-12-28T08:01:31 | 17,995,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,360 | cpp | cloud_ws.cpp | #include "cloud_ws.h"
#include "logger.h"
#include "cloud_client.h"
#include "Poco/Net/HTTPSClientSession.h"
#include "Poco/Net/HTTPClientSession.h"
#include "Poco/Net/NetException.h"
#include "Poco/Net/SSLException.h"
#include "Poco/Net/SSLManager.h"
#include "Poco/Net/KeyConsoleHandler.h"
#include "Poco/Net/PrivateKe... |
d4bb3c9fa6cd62f88b983586cd2f367dc131a971 | 60743a4f6b7d99cd9c16f67b096f8fcd8168801e | /src/ds/splay.cpp | 38366e22154a2ef981951db5d4b04b1378f4e203 | [] | no_license | alex4814/algo-template | d4383e07ba45254143752f691692ccbea7b55011 | 90850cec16216174c3397a35b23e21fa0bb8ebcf | refs/heads/master | 2020-05-20T13:39:32.139731 | 2014-09-13T14:12:08 | 2014-09-13T14:12:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,405 | cpp | splay.cpp | /*
An implementation of top-down splaying
D. Sleator <sleator@cs.cmu.edu>
March 1992
*/
#include <stdlib.h>
#include <stdio.h>
int size; /* number of nodes in the tree */
/* Not actually needed for any of the operations */
typedef struct tree... |
39db352ee89a7cd8ce6bef1464a6bab76d82c8bb | 88fecb26c8842adc18d7945db24efa609f639b82 | /vec3dT/vec3dT_test.cpp | a99c4b1d03497ff261c9509cefef6dd9d663bfd7 | [] | no_license | dzyubaira/dzyuba_i_i | a651543d4ce11066f0c3698acffa1568c7a04ce2 | cfa111acbc4cfc178d8c3820b6a14cefd9bf3ff4 | refs/heads/master | 2021-09-13T10:47:58.269498 | 2018-04-28T16:23:58 | 2018-04-28T16:23:58 | 104,768,981 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 881 | cpp | vec3dT_test.cpp | #include <iostream>
#include <sstream>
#include "vec3dT.h"
int main()
{
using namespace std;
Vec3dT<double> z;
Vec3dT<double> a(2.5, 3.6, 4.6);
cout << "a = " << a << endl;
Vec3dT<int> aa(3, 8, 9);
cout << "aa = " << aa << endl;
Vec3dT<double> b(a);
cout << "b(a) = " << b << endl;
Vec3dT<double>... |
a26d7a82b6a7dbfe23420353186ae4297644f996 | c64bb008b5bf80cd2ab4437c8aba75cb44ff8b60 | /source/TaskManagerPrefs.cpp | d8c3bd366edc0c5278a9f715ca0e9db36510bcc9 | [
"Apache-2.0"
] | permissive | HaikuArchives/TaskManager | 37e2e7f18e06f0bb21e75d2f85afb67409d0af80 | 4fd44eaa83d99e9314fe8f3ae10f1e9b99ea3291 | refs/heads/master | 2021-03-12T20:05:39.195433 | 2020-02-09T20:38:59 | 2020-02-09T20:38:59 | 14,735,001 | 5 | 5 | NOASSERTION | 2020-02-09T20:39:00 | 2013-11-27T02:10:14 | C++ | UTF-8 | C++ | false | false | 5,773 | cpp | TaskManagerPrefs.cpp | /*
* Copyright 2000 by Thomas Krammer
*
* 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 agree... |
b222a50522f0102868a5d075332d688f72e393f6 | 7f47f6d46c359626b7359eb7ea5cbfaf9e375a48 | /project/main.cpp | 390578f3c67db3f2bf239f2d3698c1e7c9035fb5 | [] | no_license | TheCharmingSociopath/C--Compiler | 25f1c1f2fb35ff15f26c8be5c65ab4e6b9ba53df | 522e6bf76483c19a565f9cec63d8b210c5217989 | refs/heads/master | 2023-02-18T17:25:58.339405 | 2021-01-21T06:02:08 | 2021-01-21T06:02:08 | 331,529,503 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,049 | cpp | main.cpp | #include <iostream>
#include "ExprLexer.cpp"
#include "ExprParser.cpp"
#include "antlr4-runtime.h"
#include "ExprBuildASTVisitor.h"
#include "SemanticCheckVisitor.h"
#include "IRVisitor.h"
using namespace std;
using namespace antlr4;
int main(int argc, const char* argv[])
{
std::ifstream stream;
cout << ... |
d916456b96ed7605546294b95addbab6c19ac501 | 0ff9c8800b1d2601a453dcfef875603abfae5613 | /tests/cpp/core/StreamImageTests.cpp | 3a08d7d9837cf49d71573e9676fedbe984eff78f | [
"BSD-2-Clause"
] | permissive | Aeroglyphic/Tide | 283680d250a908446100cabe6c2a07585f8ac563 | a10f402bdff751886ffeb79b20d27162e42b6d57 | refs/heads/master | 2020-03-28T16:37:22.979564 | 2018-09-13T13:41:20 | 2018-09-13T13:54:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,851 | cpp | StreamImageTests.cpp | /*********************************************************************/
/* Copyright (c) 2017-2018, EPFL/Blue Brain Project */
/* Raphael Dumusc <raphael.dumusc@epfl.ch> */
/* All rights reserved. */
/* ... |
7ebe0a7517683aee412a337c1a9b2f86b787ef81 | 3391892861a1e1e71af6e414bcdb9fc0df66c62e | /src/game/world/animations/aspects/update_slide_ceiling_sky_aspect.cpp | 551885d760b0ae5bd4c676a17b2d2ffdce39fba0 | [
"Apache-2.0"
] | permissive | jdmclark/gorc | a21208b1d03a85fc5a99fdd51fdad27446cc4767 | a03d6a38ab7684860c418dd3d2e77cbe6a6d9fc8 | refs/heads/develop | 2021-01-21T05:01:26.609783 | 2020-12-21T00:26:22 | 2020-12-21T02:34:31 | 10,290,074 | 103 | 10 | Apache-2.0 | 2020-12-21T02:34:33 | 2013-05-25T21:27:37 | C++ | UTF-8 | C++ | false | false | 548 | cpp | update_slide_ceiling_sky_aspect.cpp | #include "update_slide_ceiling_sky_aspect.hpp"
#include "game/constants.hpp"
gorc::game::world::animations::aspects::update_slide_ceiling_sky_aspect::update_slide_ceiling_sky_aspect(entity_component_system<thing_id>& cs, level_model& model)
: inner_join_aspect(cs), model(model) {
return;
}
void gorc::game::wo... |
b2bea2684470e1fdb2c557f3ffe4a7dd09ba7d0f | 750321143f90c971a309d2fe4e861d2b9a1ed9bf | /bt/bt.ino | b5f630f0d83cdd0990211c8766b97e9ce26eb598 | [] | no_license | xrisk/Arduino | e4fd438d0ec2b219ca5791005d1a00b2780aa77a | 227a263d1ab7312833a2065f12511899e1f7342d | refs/heads/master | 2021-07-22T22:20:55.760500 | 2019-07-24T18:50:17 | 2019-07-24T18:50:17 | 102,395,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 486 | ino | bt.ino | #include <SoftwareSerial.h>
int tx = 5;
int rx = 4;
int key_pin = 3;
SoftwareSerial swserial(tx, rx);
void setup() {
Serial.begin(9600);
swserial.begin(9600);
pinMode(key_pin, OUTPUT);
digitalWrite(key_pin, HIGH);
swserial.write("AT");
delay(200);
// swserial.write("AT+VERSION?");
}
void... |
7aac3cbeda988f4bdb2cbe5a117969cb4ccc850f | b42002c5c1d2ba115b07c9a848ec02e976cb0315 | /src/motionplan/src/motionPlan_test.cpp | ec0e71c6d3dab382e77329e3e881fbe8728da075 | [] | no_license | gywhitel/RGBD_LeapMotion_UR-roboticArm | a0929c85ee36045da6440d1a708bcbebe7f652f6 | a54e248fab9168560371deeb17b6ab4868c7c673 | refs/heads/master | 2020-05-14T23:03:36.571867 | 2019-05-11T03:13:41 | 2019-05-11T03:13:41 | 181,990,350 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,618 | cpp | motionPlan_test.cpp | #include <pluginlib/class_loader.h>
#include <ros/ros.h>
// MoveIt!
#include <moveit/move_group_interface/move_group_interface.h>
#include <moveit/planning_scene_interface/planning_scene_interface.h>
#include <moveit_msgs/AttachedCollisionObject.h>
#include <moveit_msgs/CollisionObject.h>
/*
#include <moveit/robot_mod... |
c8dcf708b802481596166ca0d1f5bfa8204460ca | 11e97f87deb25babb4a32c80941e7ff4e476c92a | /SSE/HRL_630P/Motion/Sequence.h | 72fa775254337f7bcd9a3b8be66b0b0f746bcd53 | [] | no_license | xhyangxianjun/Builder6-program | b9d03d98658db5a5a8cf1586210a373bc391dc48 | a12d811d7a5fa3dba6d3e8c05989a41cb89783de | refs/heads/master | 2022-04-03T00:25:47.274355 | 2019-09-19T08:26:56 | 2019-09-19T08:26:56 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 5,089 | h | Sequence.h |
//---------------------------------------------------------------------------
#ifndef SequenceH
#define SequenceH
//---------------------------------------------------------------------------
#include "Timer.h"
#include "SMInterfaceUnit.h"
#include "PartInterface.h"
#include "UtilDefine.h"
//#include <Grids.hpp>
cl... |
4a9edb52b091fb5af93dc3d0bdd68ee7bc5bcc22 | 106a1bc787732f1fd53e984897c781262ce66ed3 | /src/Lib/Mat.hpp | 3b9bd78f02479d918f7cf4a4905b6046d8109094 | [] | no_license | Panzerschrek/Sazava | 364d79e797bbfba7ef395b46b31d008b348710d7 | 58215172d727f52206e9b8086838c2dd99a70da5 | refs/heads/master | 2023-04-07T03:15:53.574226 | 2021-04-11T08:18:15 | 2021-04-11T08:18:15 | 338,530,042 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,010 | hpp | Mat.hpp | #pragma once
#include "Vec.hpp"
namespace SZV
{
class m_Mat3
{
public:
// TODO - add other stuff.
void MakeIdentity();
m_Mat3 GetInverseMatrix() const;
float value[9];
};
class m_Mat4
{
public:
m_Mat4 operator* (const m_Mat4& m) const;
m_Mat4& operator*=(const m_Mat4& m);
m_Vec3 operator* (const m_Vec3& ... |
82e02a8e89f71ed5f3b346fc392bbaf14dac221c | 50b452728fcc521cd8e82ca1377bd1f6a7fa60ec | /CavemanNinja/GravityPlayerComponent.h | 6f679430b7d0214dc3430d51f37b7264a17c3275 | [] | no_license | DorianHawkmoon/Caveman-Ninja | a7c6e8f38363278127a8c3a4af6e0e79265fa7e6 | c39dbd8be2234722bad3f2e5e53981d83ec3022c | refs/heads/master | 2021-01-10T17:10:45.342359 | 2016-04-11T00:41:40 | 2016-04-11T00:41:40 | 49,627,241 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 504 | h | GravityPlayerComponent.h | #pragma once
#ifndef GRAVITY_COMPONENT_H
#define GRAVITY_COMPONENT_H
#include "GravityComponent.h"
#include "Application.h"
#include "ModuleAudio.h"
class GravityPlayerComponent : public GravityComponent {
public:
GravityPlayerComponent(const std::string& nameComponent, Collider *collider): GravityComponent(nameComp... |
79835870e8974bb09801322e9a6d20518e2c45b8 | 1f7684c30812f2657bfe6e83bf2fc32765158586 | /name-surfer/linked_list.h | f3f3c1af4f0f0c88e14404b08f3c08cd0051921c | [] | no_license | s-sandra/c-code | 3d70de20a936074ff0aa379e9e470270d1957352 | e465fee9400c0015c14017913c3bdcffdccfff84 | refs/heads/master | 2020-06-12T23:29:54.645939 | 2019-07-06T00:49:21 | 2019-07-06T00:49:21 | 194,461,156 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 865 | h | linked_list.h | /// The specification of a template class of a linked list of type NODETYPE.
#ifndef linked_list_H
#define linked_list_H
#include "single_node.h"
#include <iostream>
#include <string>
using namespace std;
template <class NODETYPE>
class linked_list{
public:
... |
944cc623c0fd0d9ca669fafd0f2cda9c95d91595 | 7860b98a78e2a3b6799476204695ad04315be9fa | /chrone_rendering_engine/src/renderer/CommandBufferFunc.cpp | dfbec9e2bebf994851b5f65161378d13b1b6699c | [
"Unlicense"
] | permissive | Eszrah/chrone-rendering_engine | 84510eb77f857818a6e26bdc72825c4f8236381e | f19f4ac41ed62d3ab371bf386f5834142ecc4c6a | refs/heads/master | 2020-03-09T02:49:31.447376 | 2019-03-26T23:13:33 | 2019-03-26T23:13:33 | 128,549,683 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,206 | cpp | CommandBufferFunc.cpp | #include "renderer/CommandBufferFunc.h"
#include "renderer/CommandBuffer.h"
#include "renderer/RenderCommand.h"
#include "renderer/ResourceHandle.h"
#include "chrone-memory/include/LinearMemoryMapperFunc.h"
using namespace chrone::memory;
namespace chrone::rendering
{
void
CommandBufferFunc::CmdCreateBuffer(
Res... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.