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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2a145926b06559467ee5438dcc347d896d7537fc | a456d7e6c04d82c69da061eb99f883f4a395eaae | /imt3601_shineydonkeys/Network.cpp | 3d078d920df96a37027051353c03d400eae09f50 | [] | no_license | ondrejbenes/final-exam-rpg | 7bfacf50417ae93ae58aa626ae97575b32c4c961 | f7acd0978fc31bbf094e6dd741690c3ef2076ced | refs/heads/master | 2020-03-28T18:52:56.818725 | 2017-09-23T07:28:55 | 2017-09-23T07:28:55 | 148,922,703 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,343 | cpp | Network.cpp | #include "Network.h"
#include "GamePhaseManager.h"
#include "Menu.h"
#include "Blackboard.h"
#include "Logger.h"
#include "GamePhaseFactory.h"
#include "StringUtilities.h"
#include "PacketFactory.h"
#include "EntityManager.h"
#include "PhysicsComponent.h"
#include "ChatBoard.h"
#include "ConfigIO.h"
#include <sstream>... |
4daa8bf7157c97ab05a1e7e4ccc7b7d98f7b646f | b7ec4eccb4b0f4b240eb1129eb836f063fb7318d | /RTS_AoV/Source/RTS_AoV/Private/Core/Player/CameraPawn.cpp | f4953730f2bc354674cb6d89efe95b09c7517914 | [] | no_license | Ympressiv/GAME-RTS_AgeOfVikings-UE4-Cpp | 4979bf06daa73bd71f65ac68f817d3e7dae1998c | 823358508417dafc07491fab7396e6106d4954e2 | refs/heads/master | 2023-06-04T07:30:50.274506 | 2021-06-16T05:50:12 | 2021-06-16T05:50:12 | 337,855,174 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,622 | cpp | CameraPawn.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "/Robocze_ProjektyGier/GAME-RTS_AgeOfVikings-UE4-Cpp/RTS_AoV/Source/RTS_AoV/Public/Core/Player/CameraPawn.h"
#include "CoreMinimal.h"
#include "GameFramework/SpringArmComponent.h"
#include "Components/SphereComponent.h"
#include "... |
22e82decce8fbef5e527ec0df6efe7ecf98fa18c | 3d5d3cee5866eebe3eff2bf578acc3179f9ba457 | /User.cpp | 20168a17d576d1e786e9f21332f0a3eb1835f031 | [] | no_license | Dmendoza3/Proyecto2-ProgramacionIII | d79244d99878c29e84dc7dbdcfd69b42f16d112d | 0ef2e41d1d5284dc9e56e3a4e3aeec93e1885b9b | refs/heads/master | 2020-05-25T16:42:37.621102 | 2017-03-28T13:37:17 | 2017-03-28T13:37:17 | 84,947,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 174 | cpp | User.cpp | #include "User.h"
User::User(){}
User::User(string nName)
{
name = nName;
}
string User::getName()
{
return name;
}
void User::setName(string nName)
{
name = nName;
}
|
463c4ff7ee3c5b7ac4e9181eb9a000fb946c6b3f | 452be58b4c62e6522724740cac332ed0fe446bb8 | /src/starboard/shared/blittergles/color_shader_program.cc | 38bbd83cadb17e68ab6dab13081f639370fbf10b | [
"Apache-2.0"
] | permissive | blockspacer/cobalt-clone-cab7770533804d582eaa66c713a1582f361182d3 | b6e802f4182adbf6a7451a5d48dc4e158b395107 | 0b72f93b07285f3af3c8452ae2ceaf5860ca7c72 | refs/heads/master | 2020-08-18T11:32:21.458963 | 2019-10-17T13:09:35 | 2019-10-17T13:09:35 | 215,783,613 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,033 | cc | color_shader_program.cc | // Copyright 2019 The Cobalt Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
de1218af27a0d8295a2247cc197fc70312568734 | 64589428b06258be0b9b82a7e7c92c0b3f0778f1 | /Collegiate Cup/2017 Qualification/A.cpp | d08984a2ef72ec9164f89b9efe5821a237f1e5e6 | [] | no_license | splucs/Competitive-Programming | b6def1ec6be720c6fbf93f2618e926e1062fdc48 | 4f41a7fbc71aa6ab8cb943d80e82d9149de7c7d6 | refs/heads/master | 2023-08-31T05:10:09.573198 | 2023-08-31T00:40:32 | 2023-08-31T00:40:32 | 85,239,827 | 141 | 27 | null | 2023-01-08T20:31:49 | 2017-03-16T20:42:37 | C++ | UTF-8 | C++ | false | false | 1,339 | cpp | A.cpp | #include <bits/stdc++.h>
using namespace std;
#define MAXN 200009
typedef pair<int, int> ii;
int N, K, v[MAXN];
set<ii> lo, hi;
ii mid;
void print(){
printf("lo:");
for(set<ii>::iterator it = lo.begin(); it!=lo.end(); it++) {
printf(" %d", it->first);
}
printf("\nmid: %d\n", mid.first);
printf("hi:");
for(set... |
1e3cab469cef42c400e377376c2f2d359915895f | b6ad4b10195bdf2e08f1cc0191cdb2c38da671ff | /src/engine/Box.cpp | 795e82557262faf590fb610f6801ad85055fe020 | [] | no_license | Raphicci/Raytracer | d41ad83d230d0533dcd0b79b4d09b8ba1ceac5b6 | 00cd740d65efc731db540a0f21fc9fd82de045eb | refs/heads/master | 2021-01-10T16:14:50.848335 | 2015-11-27T09:50:48 | 2015-11-27T09:50:48 | 45,065,571 | 5 | 1 | null | null | null | null | ISO-8859-1 | C++ | false | false | 6,290 | cpp | Box.cpp | /*
** Box.cpp for raytracer in /home/lemper_a/rendu/Raytracer
**
** Made by Antoine Lempereur
** Login <lemper_a@epitech.net>
**
** Started on Sun Nov 15 10:11:38 2015 Antoine Lempereur
** Last update Thu Nov 26 16:56:40 2015 Antoine Lempereur
*/
#include <math.h>
#include "tools/Vector.h"
#include "engine/Ray.h... |
8212d299e0f3e0cbb8ab7c870b6fa812a1bdd079 | a552fa3577a2ae8d827e2f6b5630043bf859c841 | /Projects/filmtar/string.hpp | cc6d67cc1aecd69916d4115aeaf010e64c7c5ce3 | [] | no_license | Kabor42/Suli | bb29f62a4c83e170fd714dbd34b72f5dbdf533d8 | 23380db29f41cb2eeaa56c3b2780c525e634bbdb | refs/heads/master | 2021-10-16T00:40:10.049586 | 2019-02-07T15:08:41 | 2019-02-07T15:08:41 | 106,914,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 947 | hpp | string.hpp | //
// Created by kabor on 2018.03.22..
//
#ifndef FILMTAR_STRING_HPP
#define FILMTAR_STRING_HPP
#include <iostream>
#include <cstring>
#include <algorithm>
class String {
private:
size_t length;
char *data;
public:
String();
String( size_t);
String( const char *);
String( const String &);
... |
23d1038df4eb7208f521d671fcc5af916a15d690 | 0b68953d7f9feace080fb4d80a3ab271e025852b | /problem_solving/leetcode/0268_missingNumber_easy.cc | b0fd46373870ce4293bc76e3445c60a546496161 | [] | no_license | xlpiao/code | 465f6b606f377919f195db2c596639ec9ccc856d | 0a929107c0d145f53ec511e2f73b90d4f8cdf749 | refs/heads/master | 2023-06-22T19:06:24.622423 | 2023-06-08T13:46:34 | 2023-06-12T02:13:11 | 38,992,963 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 531 | cc | 0268_missingNumber_easy.cc | class Solution {
public:
int missingNumber(vector<int>& nums) {
int n = nums.size();
int correctSum = (n * (n + 1)) / 2;
int sum = 0;
for (int i = 0; i < n; i++) {
sum += nums[i];
}
return (correctSum - sum);
}
};
class Solution {
public:
int missingNumber(vector<int>& nums) {
... |
16bbbdafd5f72a5728badfe27af6f71bbd787357 | f5062902d2bfeb0906ba3e4e3435576a85f7fd2d | /gesture_mouse_receiver/gesture_mouse_receiver.ino | 0ef65fc8122bb1352c07865918bfbef3c71608fd | [] | no_license | konu-droid/WAGOM | 671be2462130f7a4b94f13fa36429fbb8c525fde | 11d6466ab8e808e1b99e3c4fbc18ee57fc578272 | refs/heads/master | 2021-05-21T04:27:16.241990 | 2020-04-02T19:27:50 | 2020-04-02T19:27:50 | 252,542,602 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,279 | ino | gesture_mouse_receiver.ino | #include <Mouse.h>
#define on 9
int data = 0;
void setup() {
pinMode(on, INPUT_PULLUP);
Serial1.begin(38400);
Serial.begin(38400);
// delay(5000);
// while(!Serial1.available()){
// Serial1.write(9);
// }
}
void loop() {
while (digitalRead(on) == LOW) {
if (Serial1.available()) {
data... |
431c290f3e0b4c7a0c13ef53c5786e52a588ee6d | 19194c2f2c07ab3537f994acfbf6b34ea9b55ae7 | /android-30/android/opengl/GLES11Ext.def.hpp | c7f363453da54cbc88d2070f737a89a5a095ef9d | [
"GPL-3.0-only"
] | permissive | YJBeetle/QtAndroidAPI | e372609e9db0f96602da31b8417c9f5972315cae | ace3f0ea2678967393b5eb8e4edba7fa2ca6a50c | refs/heads/Qt6 | 2023-08-05T03:14:11.842336 | 2023-07-24T08:35:31 | 2023-07-24T08:35:31 | 249,539,770 | 19 | 4 | Apache-2.0 | 2022-03-14T12:15:32 | 2020-03-23T20:42:54 | C++ | UTF-8 | C++ | false | false | 14,049 | hpp | GLES11Ext.def.hpp | #pragma once
#include "../../JObject.hpp"
class JFloatArray;
class JIntArray;
class JShortArray;
namespace java::nio
{
class Buffer;
}
namespace java::nio
{
class FloatBuffer;
}
namespace java::nio
{
class IntBuffer;
}
namespace java::nio
{
class ShortBuffer;
}
namespace android::opengl
{
class GLES11Ext : publ... |
c3c44167416e55371fd3b48286bed21eef261275 | e88f7a585ff74c3f29251246be5caee801fc4774 | /cymbal-bot.ino | 3c19278e18428ca2f7ded09b4b6cf950c171c270 | [] | no_license | dessibelle/cymbal-bot | a367af62c72f613854c2b57300804ad0b0e3a2dc | 566db201b55d78733cf9f6e5d0b33123790496b8 | refs/heads/master | 2022-03-20T03:43:25.282833 | 2019-10-22T15:07:01 | 2019-10-22T15:08:05 | 109,748,739 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,190 | ino | cymbal-bot.ino | #include <Servo.h>
#include <DS3231.h>
#include <Wire.h>
// #define DEBUG // This enables debug logging, uncomment to enable debug logging
#define BUTTON_PIN 2
#define SERVO_PIN 9 // PIN used for servo
#define SERVO_DELAY 500 // Delay used for waiting for servo
#define MANUAL_RING_CYCLES_TARGET 1
#ifdef DEBU... |
7b41119bc35967b0ccbcfb4581136c1a6945b4f5 | a438d8be6b7f37af84f6e463582a3b6e4c98c57a | /arduino_code/step_sequencer3b/step_sequencer3b.ino | e4045bdaf77b11fad335246c2bbd595ad53650ef | [] | no_license | pirxthepilot/monomepi-stepsequencer | 7b0d7e9865ebb267a3a2b187f2bc0679c23279e4 | 9dee93f62c713f2abdd8a550fc6d708fbf81d4e4 | refs/heads/master | 2022-06-01T05:53:40.542520 | 2016-08-10T23:17:19 | 2016-08-10T23:22:45 | 65,345,623 | 26 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 1,488 | ino | step_sequencer3b.ino | #include <Servo.h>
Servo s[8];
//const int initpos = 80; // initial servo position
//const int hitpos = 70; // hit position
const long hitdly = 75; // hit delay in millisecs
byte b[] = {0x00};
int initpos[8] = {74, 80, 78, 73, 77, 78, 78, 83};
int hitmove[8] = {10, -10, 11, -12, 9, -11, 7, 8};
unsigned long servo_sta... |
daaa57f3c3a70239b944296c6e05853c522c0be0 | 0cffef7438a0379199aefa29469e719918a582a3 | /source/core/slang-downstream-compiler.cpp | 8a795363d66fbb00cb33b0789ebe7b1d0597ae16 | [
"LicenseRef-scancode-public-domain",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | djohansson/slang | b0251f97b5ad6ad202a1b5b5233d4b02aa05c639 | 6d616c065dc8c9b344987d350c05d536a01141dc | refs/heads/master | 2023-05-27T17:31:47.515021 | 2023-05-12T21:43:00 | 2023-05-12T21:43:00 | 159,946,191 | 2 | 0 | MIT | 2018-12-01T13:14:51 | 2018-12-01T13:14:51 | null | UTF-8 | C++ | false | false | 22,544 | cpp | slang-downstream-compiler.cpp | // slang-downstream-compiler.cpp
#include "slang-downstream-compiler.h"
#include "slang-common.h"
#include "../../slang-com-helper.h"
#include "slang-string-util.h"
#include "slang-type-text-util.h"
#include "slang-io.h"
#include "slang-shared-library.h"
#include "slang-blob.h"
#ifdef SLANG_VC
# include "windows/... |
967082031b67b4a5f98dd5aa423ffceac58d8b3d | 11f00077ee1d71d8bf013ac81bdf1cf084e8bafd | /ACM/uva750.cpp | bb7d7439d50d92ed7c965fac94e7a71ac630eb69 | [] | no_license | r96922081/Competitive-Programming | 0882747edc63c7b834c2c88079cc5391925b6352 | 3fd191285405ccf57901222f7c26d5bf4ce56193 | refs/heads/master | 2020-12-04T11:14:45.032415 | 2020-09-05T08:53:32 | 2020-09-05T08:53:32 | 231,742,428 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,699 | cpp | uva750.cpp | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <limits>
#include <cstddef>
#include <iostream>
#include <string>
#include <cstdlib>
#include <cmath>
#include <map>
#include <vector>
#include <algorithm>
#include <set>
#include <unordered_set>
#include <tuple>
#include <sstream>
#include <cassert>
#inc... |
64df7b2b432380d327c8a8818865b91b019c5e5c | 15af3ec27916e0d26d6528f76981aeb8015c1864 | /Hmwk/Assignment 2/Gaddis_8thED_ch12_12.3_Punchline/main.cpp | 021ec8a2a4e5d5835d786e3b475fac6da3f526ab | [] | no_license | RyanARinger/2018_Fall_17a_RingerRyan | 8dbb2a2dd82124ae65fdf59973028a88028c67ac | 3e15be739ef5357eb5560d2536b78fb3151444a2 | refs/heads/master | 2020-03-28T07:12:59.911577 | 2019-07-09T18:43:44 | 2019-07-09T18:43:44 | 147,864,374 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,282 | cpp | main.cpp | /*
* File: main.cpp
* Author: Ryan Ringer
* Created on October 10, 2018 at 2:12pm
* Purpose: Hello World Template
*/
//System Libraries Here
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
//User Libraries Here
//Global Constants Only, No Global Variables
//Like PI, e, Gravity... |
ef2f2dabf6be1f9a5ceb3b498eaf1452b371663b | d6ab38714f7a5f0dc6d7446ec20626f8f539406a | /backend/collecting/dsfj/C++/edited/gtk.combobox.cpp | 1f2b4c8f6e065363ab0239dce0e6c44fba938e28 | [] | no_license | haditabatabaei/webproject | 8db7178affaca835b5d66daa7d47c28443b53c3d | 86b3f253e894f4368a517711bbfbe257be0259fd | refs/heads/master | 2020-04-10T09:26:25.819406 | 2018-12-08T12:21:52 | 2018-12-08T12:21:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,727 | cpp | gtk.combobox.cpp |
#include "wx/wxprec.h"
#if wxUSE_COMBOBOX
#include "wx/combobox.h"
#ifndef WX_PRECOMP
#include "wx/intl.h"
#include "wx/settings.h"
#include "wx/textctrl.h" #include "wx/arrstr.h"
#endif
#include <gtk/gtk.h>
#include "wx/gtk/private.h"
#include "wx/gtk/private/gtk2-compat.h"
extern "C" {
stati... |
ffaa800c57a807d2006c9b1ce325a54beb59a0f3 | ffb570ab7d5074bb565c1380232b1be3b3f5e000 | /Codeforces/Codeforces_667_1409D.cpp | cfcf23efa72d27e9ef677a946e1c4428d259ae03 | [] | no_license | Orampreet/Hacktoberfest-1 | 0384c3f483bdd75753b2800ee165d39964d9c379 | e24234bec49e2c36f9343941ebe02ebfbb6062bb | refs/heads/master | 2023-08-25T12:56:12.360819 | 2020-10-30T21:15:00 | 2020-10-30T21:15:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,319 | cpp | Codeforces_667_1409D.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define pb(b) push_back(b)
#define mp(a, b) make_pair(a, b)
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define FORDual(i, a, b) for (ll i = a; i < b; i += 2)
#define FORD(i, a, b) for (ll i = a; i >= b; i--)
#define sorti(seq) sort(seq.begin()... |
5eb83180e2fd79222eaeb463446d4299bbba6c2d | 949be7ef808fd663ef4da640013db26e5aca748b | /html_chromium/ChromiumSystem.cpp | e8f90882b5b53d595bbd28f08baffe3be5bd9cc6 | [
"MIT"
] | permissive | Facepunch/gmod-html | 0000fa1f0c6e0390789a9812b24efde7660f1578 | 826aa23a1dccf151511ae9fd1c02c6d765a8b3a4 | refs/heads/master | 2023-08-09T13:40:11.810776 | 2020-03-05T18:07:27 | 2020-03-05T18:07:27 | 237,562,072 | 12 | 7 | MIT | 2021-11-17T04:56:13 | 2020-02-01T04:33:46 | C++ | UTF-8 | C++ | false | false | 11,442 | cpp | ChromiumSystem.cpp | #include "ChromiumSystem.h"
#include "ChromiumClient.h"
#include "ChromiumBrowser.h"
#include "ResourceHandler.h"
#include "HtmlResourceHandler.h"
#include "JSObjects.h"
#include "cef_start.h"
#include "include/cef_app.h"
#include "include/cef_origin_whitelist.h"
#ifdef OSX
#include "include/wrapper/cef_li... |
4fd471a0d6d1a63ae1f6df122129a8ac4d55edc5 | 1a770ec259983a07e7c66ce8062a63a571aa80ac | /Examples/MFC/Demos/8.Threads/MyThread.cpp | 79d48134cffd58e74fff86883678099da2153416 | [
"Apache-2.0"
] | permissive | vanehu/ifc | db41fa8b03006880fee0dea5c8d23a59721ee2a0 | ec5f356f124c6d5f01f15c8500d0ff53e2aa0486 | refs/heads/master | 2021-01-20T20:27:47.196029 | 2013-04-07T03:46:34 | 2013-04-07T03:46:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 647 | cpp | MyThread.cpp | #include "StdAfx.h"
#include "MyThread.h"
///////////////////////////////////////////////////////////////////////////////
CMyThread::CMyThread(HWND hWnd) :
m_hWnd(hWnd)
{
SetFreeOnTerminate(true);
}
CMyThread::~CMyThread()
{
PostMessage(m_hWnd, WM_THREAD_DELETED, 0, 0);
}
void CMyThread::Execute()
{
... |
04af453d835eed1baa0f7786e2eeacf488ba2a41 | 14986c835f5c80c1c96699ac9b97bfd836c3474a | /SocialNetwork/Comment.h | 446b2be8768e511a1f299318edb2f5e35a29b6d1 | [] | no_license | dpeserovic/SocialNetwork | 93937692713c8bdeb78cddcd19bff9e7885464c8 | 2d6019bc58e112a47d68b32612901fba8a26f511 | refs/heads/main | 2023-02-10T04:37:36.056914 | 2021-01-04T07:17:04 | 2021-01-04T07:17:04 | 303,008,260 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 245 | h | Comment.h | #pragma once
#include <iostream>
#include <string>
using namespace std;
class Comment
{
public:
string m_sText;
string m_sName;
string m_sSurname;
int m_nPostId;
Comment(string text, string name, string surname, int postId);
~Comment();
}; |
1fef813ba0f37898ea830ca22c6d4ad931ff057f | 72852e07bb30adbee608275d6048b2121a5b9d82 | /algorithms/problem_0161/other4.cpp | 5c5415d409d0f1c054b643a8a8aa59941b836c10 | [] | no_license | drlongle/leetcode | e172ae29ea63911ccc3afb815f6dbff041609939 | 8e61ddf06fb3a4fb4a4e3d8466f3367ee1f27e13 | refs/heads/master | 2023-01-08T16:26:12.370098 | 2023-01-03T09:08:24 | 2023-01-03T09:08:24 | 81,335,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 547 | cpp | other4.cpp | class Solution {
public:
bool isOneEditDistance(string s, string t) {
int NS = s.size();
int NT = t.size();
if (NS > NT) return isOneEditDistance(t, s);
if (NT - NS > 1) return false;
for (int i = 0; i < NS; i++)
{
if (s[i] != t[i])
{
... |
7a68a263d52d3e0f6725eb769ecd08f11c6d9d33 | 6426d8b62840adb132688835499cc9c0ace006a6 | /DataCollector4Tran2ndSHOPT/QuotationSource/MDataProc.h | dd8c4d855f855b979ddff202d12213229cc623af | [] | no_license | 3BodyProblem/DataCollector4Tran2ndSHOPT | e69e8b547d3c57b04c7c9338b7bf71c65a5e9d6b | 0ec10045fba4fbf76fdc0d644c8fa47f6b6a0bf9 | refs/heads/master | 2021-01-22T20:18:44.816251 | 2017-10-23T10:37:21 | 2017-10-23T10:37:21 | 100,704,699 | 3 | 1 | null | null | null | null | GB18030 | C++ | false | false | 1,555 | h | MDataProc.h | #ifndef __TRANSRVPLAT_MDATAPROC_H__
#define __TRANSRVPLAT_MDATAPROC_H__
#include <stdio.h>
#include <string>
#include "../Infrastructure/Dll.h"
typedef unsigned long __stdcall tagSpProcFrame_GetDllVersion(void);
typedef int __stdcall tagSpProcFrame_Instance(void);
typedef void __stdcall tagSpProcFrame_... |
02c331533b671730da83c008ac722a19bf76c7fb | 7b8ee38c6bfa1acea65cf80751411a98cac77361 | /GameEngine/GameEngine.cpp | 87ef8f264d65f102a349d7b66fdeec6834a2454c | [] | no_license | RushSecond/Bit-Arena | 96328bad974204eb3f88d416014ce0713ffc9713 | 4134cd9687cc46778081354b73c4b2a4a899f6a9 | refs/heads/master | 2020-05-18T04:03:12.140423 | 2015-03-14T00:19:36 | 2015-03-14T00:19:36 | 32,187,757 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,794 | cpp | GameEngine.cpp | // GameEngine.cpp
// From http://web.archive.org/web/20140213145557/http://rastertek.com/tutdx11.html
// Edited by Blake Zoeckler
#include "stdafx.h"
#define _USE_MATH_DEFINES
#include "GameEngine.h"
#include "D2D1.h"
#include "DWrite.h"
#include <string>
#include <sstream>
#include <cmath>
using namespace std;
Gam... |
f81959a68cfe861b58060e8221e5320ba8838fca | f5bb79cfdc04ac66133cfb9eb489609adc18fcd0 | /src/neat/iznn/neuron.hpp | 943fd9d75e0341bd426d4c74ae19ed8b36140d8c | [] | no_license | baites/neathep | daf55d221463360f244558fe7f8648eb2d3528d1 | 5455f62b23d2e299015c912fe29bec37071df882 | refs/heads/master | 2021-01-23T13:47:55.091403 | 2012-08-13T18:53:13 | 2012-08-13T18:53:13 | 4,820,929 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,211 | hpp | neuron.hpp | #ifndef NEURON_HPP
#define NEURON_HPP
struct NeuronObject {
PyObject_HEAD
double a;
double b;
double c;
double d;
long double v;
long double u;
bool has_fired;
double bias;
double current;
};
namespace {
const double BIAS = 0;
const double A = 0.02;
const double B = 0.2;
const double C = -65;
const double ... |
dbed95ab88ea9d56004435e2c8b86ee4a310ed68 | 1ef80edd3e23c2dbdaf0e88b9b2c4b912270080e | /OpenGL_Study/PhysicsCubes.cpp | c514652eb911b6ba0d3b2077d76b47140c7bdec6 | [] | no_license | Smoreley/opengl-study | d3971c4beaa3efdad0f204d7e699082441a83f63 | 77891430afefe9b470a59cc31e6c690a38fe07ae | refs/heads/master | 2021-06-19T14:20:56.722153 | 2017-07-19T17:09:16 | 2017-07-19T17:09:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,673 | cpp | PhysicsCubes.cpp | #include "Progbase.h"
#include "PhysicsCubes.h"
#include "Helper.h"
#include "Camera.h"
#include "BulletDebugRender.h"
/* Bullet Physics Library */
#include <btBulletDynamicsCommon.h>
int PhysicsCubes::start() {
std::cout << "Physics Cubes Demo" << std::endl;
/* OpenGL */
rendering_program = Helper::compileShade... |
39f87526f18a1840d26829839e0625dc046b8c57 | 2c2fd8c06a85b000f7caddc6107d45081182b6dd | /graphics/server.h | 5597db4b0b1952b268ad2e30b203129235e6185d | [] | no_license | grumpyLemons/fireworks | ab89b84531af4333f54da834e6638796a602f998 | 316ac213c3d90af8ee07d82ffeb13aa899577ca9 | refs/heads/master | 2023-08-18T03:22:23.651177 | 2021-09-20T03:26:13 | 2021-09-20T03:26:13 | 378,403,462 | 0 | 0 | null | 2021-09-20T03:25:21 | 2021-06-19T12:10:01 | C++ | UTF-8 | C++ | false | false | 1,628 | h | server.h | #pragma once
#include "core/server.h"
#include "input/iserver.h"
#include "iview.h"
#include <array>
#include <memory>
namespace sf {
class RenderWindow;
class Text;
class Font;
class Texture;
}
namespace Graphics {
class Server;
class Entity {
public:
explicit Entity(Server& s... |
4871f443d282a98b146046386e7fac81aa115073 | c809bdaf762238260a2ebbeb9b1d4f7cdf68d7ba | /Fibonacci Series Iterative.cpp | aaeb5c098e5f249628567d6b5294efebf9dbd013 | [] | no_license | Saumya7055/DAA-Algorithms | 1b12cdaf3858c6c2364ebb2eb368e744ae9b583b | b641fa9119b07ab7abba790b6f940ac5d90aaaa3 | refs/heads/main | 2023-08-21T00:28:46.977809 | 2021-11-01T16:19:08 | 2021-11-01T16:19:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 240 | cpp | Fibonacci Series Iterative.cpp | #include<iostream>
using namespace std;
int fib(int n)
{
int a=0,b=1,c;
if(n==0)
return a;
for(int i=2;i<n;i++){
c=a+b;
a=b;
b=c;
}
return b;
}
int main(){
int n;
cin>>n;
cout<<fib(n);
return 0;
}
|
8c6e2f9b428c3c21fd77536770aef0fa0c49a11c | 4307abf5227b58aee0a9a4240c193476c8853c3d | /UI/OptionUI.h | 343673f28a32038209618685767dbc41080ae1e1 | [] | no_license | ljm3994/NecroDancer- | 11b85afbff54fb2f5eaf023ea084a784e970f490 | 5fae52438130f1a554995108bd888bb62cc5a3e7 | refs/heads/master | 2022-11-29T15:46:17.104310 | 2020-08-07T09:09:59 | 2020-08-07T09:09:59 | 279,656,644 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 936 | h | OptionUI.h | #pragma once
#include "GameNode.h"
#include <atlbase.h>
#include <ShObjIdl.h>
class FFTDetector;
class OptionUI : public GameNode
{
int m_SelectNum;
int m_MaxSelectNum;
int m_SkinNum;
vector<string> PlayerKeyVec;
FFTDetector * Detector;
string Path;
bool m_FFTStart;
bool m_FileOpen;
int SelectNum;
CComPtr<IF... |
422e3fa5cf2531f9f0645f159eda085dfd851aae | 77c99a833b35f14de8def854f3504d09eddf0f02 | /leetcode/network-delay-time(dijkstra).cpp | aa4a07921891b1a9be660c9e607c36b920f93b26 | [] | no_license | lnghia/practicing-directories | 316adca98ee137ce579aaa558280403373802b29 | 0137d076f912b7ac1d5ca8ca37571db0acf6b496 | refs/heads/master | 2022-10-27T07:57:18.091574 | 2020-06-17T03:27:47 | 2020-06-17T03:27:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,493 | cpp | network-delay-time(dijkstra).cpp | struct option{
bool operator() (const pair<int, int>& a, const pair<int, int>& b) const{
return a.second>b.second;
}
};
class Solution {
public:
vector<vector<pair<int, int>>> graph;
vector<int> dist;
Solution(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
... |
68458b15b8c585208caa9b1bdf105ea2c47b702b | 0d805bb4929675dfc1280df7aa0aff4fdc8453c5 | /ard_AmpSwitchV1/ard_AmpSwitchV1.ino | edda8b8074675912d844c724b9568d8e216931a1 | [
"MIT"
] | permissive | sdkn104/Arduino | d86e9be7ed10e493e85c997ec86352f18156033d | 68af30ae7d6c831ba1e51300e821bd09bd52cce2 | refs/heads/master | 2020-08-01T13:03:15.250828 | 2019-02-06T21:52:20 | 2019-02-06T21:52:20 | 73,575,542 | 7 | 1 | null | 2017-08-02T20:14:21 | 2016-11-12T20:06:19 | C++ | UTF-8 | C++ | false | false | 6,844 | ino | ard_AmpSwitchV1.ino | /*
Auto Amplifier Power ON/OFF by GY-273 board (3-axis Magnetometer module)
Connection: Arduino <-> GY-273
5V-VCC, GND-GND, SCL-A5, SDA-A4
*/
/* Usage:
1. Power off the Electric Equipment (TV, etc.)
(to keep the state of power off)
You had better power on then power off, since equipment may
... |
b3496b9676df6a8bdba1ee33e703c17f721da7e5 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /media/mojo/services/deferred_destroy_unique_receiver_set.h | 00c637bc0226f79b6364c71f2bc3c6ad9b0e5c1b | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 5,066 | h | deferred_destroy_unique_receiver_set.h | // Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_MOJO_SERVICES_DEFERRED_DESTROY_UNIQUE_RECEIVER_SET_H_
#define MEDIA_MOJO_SERVICES_DEFERRED_DESTROY_UNIQUE_RECEIVER_SET_H_
#include <stdint.h>
#include <map>
#in... |
4b193564dc3892947bbad4a8eed8244f6ace0351 | 9b5e8dcc6af30dbed73ae09e6313410fe69a6cbf | /试题泛做/AGC023E.cpp | f0e057957f1f05904950d757e40099cb6d6f4e88 | [] | no_license | learn22coding/IOI2020Homework | 8c1a2d1a6488874c1a07fc5b55f0a2a27563ee44 | 7186dd4a78f732abfcb2cf0453c87a4f0818aebe | refs/heads/master | 2023-03-17T10:28:06.804204 | 2020-01-03T06:40:37 | 2020-01-03T06:40:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,212 | cpp | AGC023E.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 200233, mod = 1000000007;
int n, a[N], ans = 0;
int qpow(int b, int p) {
int r = 1;
for (; p; p >>= 1) {
if (p & 1) r = (ll) r * b % mod;
b = (ll) b * b % mod;
}
return r;
}
struct int0 {
int a, b;
int0 (int a = 0, ... |
124b973e291d343065018769bf60cdf25ec6bd63 | e3f2e1a0aa7f0ae4536c802da9b384a25e9f533d | /VirtualFileSystem/virtualFileSystem.h | 912df548a69e8fd7a174b50d88f59ff6c2cd92e5 | [] | no_license | g-radam/VirtualFileSystem | d8abc91ef0918bd952eab8d388056f182b6ddc05 | 34bfdd193baadc08454bd0a36a58876a879d3925 | refs/heads/master | 2016-09-05T13:53:44.082409 | 2015-05-20T13:14:56 | 2015-05-20T13:14:56 | 33,607,630 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,146 | h | virtualFileSystem.h | //standard Includes
#include <iostream> //std::cout istream
#include <fstream> //std::fstream
#include <vector> //std::vector
#include <string> //std::string
// Boost Includes
#include <boost/cstdint.hpp> //uint8, uint16, uint32, uint64...
#include <boost/filesystem.hpp> //exists, is_regular
#include <bo... |
73d531c667be6dc260c5cfbb37c5b7b3617a186c | 407d1069931e8d7dcb8ba9bcabc23db5b9ef3e29 | /src/dice_exception.h | 46d6e97875e1ab91b3e5ffb794593b9b2471b9b2 | [
"MIT"
] | permissive | YuiTH/Dice3 | f27886dc13601d115c6db60b761acc36e2d80126 | 7b945e38b673557d2c5e54845c6fca035e26e75e | refs/heads/master | 2021-02-05T07:42:53.923122 | 2020-02-28T14:44:12 | 2020-02-28T14:44:12 | 243,758,216 | 0 | 0 | MIT | 2020-02-28T12:32:38 | 2020-02-28T12:32:37 | null | UTF-8 | C++ | false | false | 875 | h | dice_exception.h | #pragma once
#include <exception>
#include <stdexcept>
#include <string>
#include "dice_msg.h"
namespace dice::exception {
struct exception : public std::exception
{
exception(const char* what) : std::exception(what){};
exception(const std::string& what) : std::exception(what.c_str()){};
};... |
cc3b41ac5f82794d0224a6f19e2cbe4c58021e00 | 1bd9e3cda029e15d43a2e537663495ff27e317e2 | /buoyantPimpleFoam_timevaryingBC/heatfluxtimevary/13/omega | 41084e57e5bb981899211071f3394960d60308c2 | [] | no_license | tsam1307/OpenFoam_heatTrf | 810b81164d3b67001bfce5ab9311d9b3d45b5c9d | 799753d24862607a3383aa582a6d9e23840c3b15 | refs/heads/main | 2023-08-10T23:27:40.420639 | 2021-09-18T12:46:01 | 2021-09-18T12:46:01 | 382,377,763 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 750,021 | omega | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
... | |
37d7db022703dd03670a3179133786d1b49aa459 | 5a1ea304e98c78f730e0a6b37a5aa4413822bec8 | /lt_pttsnt.cpp | 97212ff02e25b5bc0f268c63235626f2d5e60290 | [] | no_license | minhduc462001/languageC | 367ed779543dd0e2c12c670ffd5f6d77ab86af90 | 1d1929ec5cffc28e567c1d1ab42598192531a8e4 | refs/heads/main | 2023-07-11T12:48:33.575956 | 2021-08-18T09:11:54 | 2021-08-18T09:11:54 | 397,538,538 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 343 | cpp | lt_pttsnt.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
int dem = 0;
while(n%2==0){
dem++;
n/=2;
}
if(dem>0){
cout<<2<<" "<<dem<<endl;
}
for(int i = 3;i<=sqrt(n);i+=2){
dem = 0;
while(n%i==0){
dem++;
n/=i;
}
if(dem>0){
cout<<i<<" "<<dem<<endl;
}
}
if(n>2) cout<<n<<" 1... |
5553d941d5845b2cca6a2fe556df798e69e4b212 | 93f34109c7d520e8ab2fac6aeb7a61492a0fa082 | /asso.cpp | 24ffc5bb2e9a8e4842ed5e8d80d4a1493a60bf86 | [] | no_license | meguriri/AssoMangeSystem | 6f3a94d2241be5157d35df861c35c8c9329878ba | 47e7f4b285ba865d8a771a8656ac55849c6f82ad | refs/heads/main | 2023-06-19T04:22:49.993775 | 2021-07-13T05:16:31 | 2021-07-13T05:16:31 | 385,484,181 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16 | cpp | asso.cpp | #include"asso.h" |
5e35c549aa356ff7b4e0051bbcfca56d9cd09837 | 53c3c3ee9f51556f64375076a677ef892c6d3654 | /fancy_core/Common/CameraController.cpp | 7908f899d42ebb1b7af33643cfd3721028740547 | [] | no_license | domme/FANCY | 75133d47bb6c349e8d6ce60cc7777fcd907a1bb2 | f6451ead9a4758b16bee3f019e6fbff7487a5f70 | refs/heads/master | 2023-06-24T15:49:59.992434 | 2023-06-18T21:02:06 | 2023-06-18T21:02:06 | 7,263,701 | 29 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,927 | cpp | CameraController.cpp | #include "fancy_core_precompile.h"
#include "CameraController.h"
#include "Input.h"
#include "Camera.h"
#include "MathIncludes.h"
namespace Fancy
{
//---------------------------------------------------------------------------//
CameraController::CameraController(Camera* aCamera)
: myMoveSpeed(30.0f)
, myCam... |
6cefad7cdc150585989b91db635e0ef68754be1c | 82c61690641bab935c1dbd226f9cf2c7c0c4de84 | /yangkv/memory/message_queue.cpp | b72969ce3f0359177d9e5667f6275a2ebff3d880 | [] | no_license | toozn/yangkv | 46cdce8fb71af53857af01d0bdf0415f6a86a9da | 648d36caab1a90a8d0a9e4c1edacb989e7ac3b06 | refs/heads/master | 2020-04-09T17:21:27.315264 | 2019-03-09T12:36:44 | 2019-03-09T12:36:44 | 160,478,539 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,200 | cpp | message_queue.cpp | #include "message_queue.h"
#include <unistd.h>
MessageQueue::MessageQueue() {
w_ptr = 1;
r_ptr = 1;
}
MessageQueue::~MessageQueue() {
unsigned long long begin = r_ptr;
unsigned long long end = w_ptr - 1;
for (unsigned long long i = begin; i <= end; i++) {
int pos = i % kQueueSize;
delete... |
a27dfba1ad7e796c6939fdaf9c412edc3e6959ad | 7f179f81a5aff2ee4f95bf3d00b40e1b59783c17 | /UEPrototype/Source/UEPrototype/Private/Core/VPPlayerState.cpp | 31a783254455b9e5c4c1c3b8afd5d55011a301d1 | [
"MIT"
] | permissive | sanghun219/Prototype | 2cb928db15cb36113c8a1a60a7bcf4265b59fe26 | 4fdcd43ab3f6040927df4f91b033fb31261724dc | refs/heads/master | 2023-03-18T12:39:08.408368 | 2019-08-18T08:43:45 | 2019-08-18T08:43:45 | 219,662,598 | 0 | 0 | MIT | 2019-11-05T05:10:52 | 2019-11-05T05:10:52 | null | UTF-8 | C++ | false | false | 533 | cpp | VPPlayerState.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "VPPlayerState.h"
#include "UEPrototype.h"
#include "CorePlayerModuleManager.h"
#include "PlayerTaskManager.h"
AVPPlayerState::AVPPlayerState()
{
// DEBUG
VP_CTOR;
}
void AVPPlayerState::BeginPlay()
{
UPlayerTaskManager... |
669083ecbef6f7ab5a3619b14e30c17092811a5d | 1e1fa9a41b751977f91e45cdc2c0e20e5ba8a968 | /map/map/mapDoc.cpp | da69f6876a670b4ccf4e9ed1c77bf105e820adab | [] | no_license | xihutou/mfc-1 | 5b25e441501e79832d8fbd18d3991eaab8c1a757 | 41ef7bb1bd8cb4c3f8b2a1bc16b76e41e3073f2c | refs/heads/master | 2021-01-18T08:43:40.459051 | 2015-06-08T14:23:16 | 2015-06-08T14:23:16 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 4,450 | cpp | mapDoc.cpp |
// mapDoc.cpp : CmapDoc 클래스의 구현
//
#include "stdafx.h"
// SHARED_HANDLERS는 미리 보기, 축소판 그림 및 검색 필터 처리기를 구현하는 ATL 프로젝트에서 정의할 수 있으며
// 해당 프로젝트와 문서 코드를 공유하도록 해 줍니다.
#ifndef SHARED_HANDLERS
#include "map.h"
#endif
#include "mapDoc.h"
#include <propkey.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CmapDoc
IMPLEMENT_... |
0ab453c12fcf4426ed3fe5480e5d1ab5cf3c6d34 | b058a701a42e0402c945c62b80934f29e569960f | /Nebraska.hpp | 36986efe5843a2707f33fdca8478b992b4380ff5 | [] | no_license | calista95/Oregon-Trail | ccb9fb8fc4f59b0f1540a4fce79a4008cfa8631d | fd822b0e17fe44535d0f1502ab2e5ac30ca8f530 | refs/heads/master | 2020-03-08T13:41:10.791791 | 2019-04-11T00:29:56 | 2019-04-11T00:29:56 | 128,164,140 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 416 | hpp | Nebraska.hpp | /*******************************************************************************File: Nebraska.hpp
Name: Calista Wong
Description: This is the header file for the Nebraska class.
***************************************************************************/
#ifndef NEBRASKA_HPP
#define NEBRASKA_HPP
#include "Space.hpp... |
8833f6cda86776735881ec2cef8b7bb66700a5f2 | 73c10a3fb7473e577823d892d9520797f86c0e2a | /app_make_ghittree_from_lv3/HittreeLv3Reader.cpp | d1e4b467d1a938b30de764dc03079c26bbb92555 | [] | no_license | goroyabu/ghittree_converter_from_lv3 | a4a50495ee9b18b4c7de2d87132a058b73838bd6 | 80651b16f67d232dba13dac6777bf3e7f26f0ebc | refs/heads/master | 2021-08-09T02:20:27.900064 | 2017-11-11T22:19:09 | 2017-11-11T22:19:09 | 108,125,601 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,058 | cpp | HittreeLv3Reader.cpp | #include "HittreeLv3Reader.h"
HittreeLv3Reader::HittreeLv3Reader(const TString inputfilename){
fFileName = inputfilename;
LoadFile();
SetBranch();
}
HittreeLv3Reader::~HittreeLv3Reader(){
}
void HittreeLv3Reader::LoadFile(){
fFile = new TFile(fFileName,"read");
fTree = (TTree*)fFile->Get("hittree_lv3");
fN... |
cec4fedae83193c530fcea1b4fc3d724b46a2e5e | d526da621dca09bb031ba3abc48c5dbe59b35088 | /#126.cpp | f92ae656c0d5b0892d15e5726ae2cf724fcf0348 | [
"Apache-2.0"
] | permissive | fli217/LeetCode | 6a41e65907a7745a6d1b37177b81bf4ac2ff4191 | ed7a25b96595531009e55de9aeebe758ca0734d2 | refs/heads/master | 2021-05-30T01:41:31.269875 | 2015-11-03T06:50:19 | 2015-11-03T06:50:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,477 | cpp | #126.cpp | /*============================================================
Problem: Word Ladder II
==============================================================
Given two words (beginWord and endWord), and a dictionary's
word list, find all shortest transformation sequence(s) from
beginWord to endWord, such that:
Only one lette... |
90dd8a5694a2e7f1563d1b2e6a8d6f203bb6ebe8 | 2fc2e340c465808746439d32c4cfd8c2bec6736c | /left_rotate.cpp | ed5718af14e28617a7de0bd5b69e729aea78bca7 | [] | no_license | pjha1994/javatempfiles | f8db1c559428a3fbdc7a5ec13bb9382472db772f | 8a2b5d586ca01c5f05ee57f5f07d8faff93c9a5e | refs/heads/master | 2021-01-13T10:48:46.562127 | 2016-11-27T00:28:03 | 2016-11-27T00:28:03 | 72,289,862 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 214 | cpp | left_rotate.cpp | #include<iostream>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
int n,temp,d;
cin>>n>>d;
int *a = new int[n];
for(int i =0;i<n;i++){
cin>>temp;
a[(i+n-d)%n] = temp;
}
return 0;
} |
8b61007b093ce7e00adf3d8c7d4775c2d1d72af1 | b1a3d30df938b77e2d5003e3e1f96df84f6b77aa | /Parking/Driver.cpp | a59273859a7d46faddb7978827af751f32f526f9 | [] | no_license | lotstrom/Autonomous-Car | 219b3120e1fe0b7a806ff757e7a7b4735939454e | c578281c16ea9a15b28561ec979045221696ff04 | refs/heads/master | 2021-01-23T15:52:38.359492 | 2015-06-28T18:51:46 | 2015-06-28T18:51:46 | 38,209,815 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,518 | cpp | Driver.cpp |
#include <stdio.h>
#include <math.h>
#include <sys/time.h>
#include "core/io/ContainerConference.h"
#include "core/data/Container.h"
#include "core/data/Constants.h"
#include "core/data/control/VehicleControl.h"
#include "core/data/environment/VehicleData.h"
// Data structures from msv-data library:
#include "Steeri... |
3e59758538e4c88c9eab0d0386bc1267fce89dd6 | 39252a51ea92efcc61122e5d6f89935638ce2812 | /Line.cpp | 12fc656d58d6cfee0b183774077d2d724a9cb481 | [] | no_license | mandemeskel/CSE165-Mini-Project-0 | dd6a48b48a7c28e0f72b3aa2e64a24d599fdde31 | b9dcda35913d8fdd742ae423e036a598833f4687 | refs/heads/master | 2021-01-20T13:58:38.909228 | 2017-02-23T06:50:51 | 2017-02-23T06:50:51 | 82,718,407 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 976 | cpp | Line.cpp | // /**
// * Michael T. Andemeskel
// * mandemeskel@ucmerced.edu
// * CSE165 Spring 2017
// *
// * Copyright 2017
// *
// * Lab info:
// **/
// #include <iostream>
// #if defined WIN32
// #include <freeglut.h>
// #elif defined __APPLE__
// #include <GLUT/glut.h>
// #else
// #include <GL/freeglut.h>
// #endif
... |
3b6de1b3206e0cb1dee91013d0d168d231558df3 | 34513923e5faa755dc54477ba40821b99be8fc70 | /MotionDetectorTest/MotionDetectorTest.ino | 8243fa909262a0a82ee5f7dcc722423b39176265 | [] | no_license | jeffwrule/CosmicDance | 5f92dcbae5e263175517b1a28a44f2630331c379 | 3e07d175d16431484644fc717622524d3354f7fa | refs/heads/master | 2022-12-24T08:45:37.818912 | 2022-10-22T20:35:38 | 2022-10-22T20:35:38 | 23,025,556 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,821 | ino | MotionDetectorTest.ino | /*
Blink
Turns an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
the correct LED pin independent of which board is used.
If you want to kn... |
804e26e4f4ba545c4d8affc13199302049766d27 | 52ca2d44f5595b58140f00bbeffc2381ec0ce087 | /PengA02PA2/src/LL.h | 888c14d5023e78416532538d8372919eb29cd3de | [] | no_license | MacPeng/Data-Structures | 74e1b55a40a661b0f1996cd3d31f5404dc47b9e8 | d01fa2f6764faca49a912a2fed9ed0f2217d96e0 | refs/heads/main | 2023-07-18T10:25:51.593613 | 2021-08-31T03:07:01 | 2021-08-31T03:07:01 | 377,214,549 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,297 | h | LL.h | /*
* LL.h
*
* Created on: Sep 24, 2019
* Author: mikepeng
*/
#ifndef LL_H_
#define LL_H_
#include <iostream>
using namespace std;
template <class T>
struct LLnode
{
LLnode * fwdptr;
T theData;
};
template <class T>
class LL{
private:
LLnode<T> * llh;
public:
void push_front (T s);
void push_back (T s... |
d08595d19baba88ee835684c98fcb1ba00b2669b | 9dfdf844965b476212936907d3b683fd61f990a3 | /panel.h | 4cb997a95d59fe335c508b55f2d8e19c180b5b73 | [] | no_license | Nglittleguy/AnimationHub | ef848e820b7acd780ff2ba11e9cc7ef3f4b4d0e6 | b0c90a079da4eeec1f98d3ec8e6ff912803725c8 | refs/heads/main | 2023-03-22T12:58:41.569016 | 2021-03-20T05:44:06 | 2021-03-20T05:44:06 | 349,638,765 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 526 | h | panel.h | #pragma once
#include <iosfwd>
#include <string>
#include "givio.h"
#include "givr.h"
#include "imgui/imgui.h"
namespace panel {
extern bool showPanel;
extern ImVec4 clear_color;
// animation
extern bool playModel;
extern bool resetModel;
extern bool stepModel;
extern float dt;
extern bool loadPendulumModel;
exter... |
967bbbec4ddfb49b10f1a3130e42e242e8828f8f | 3282ccae547452b96c4409e6b5a447f34b8fdf64 | /SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimControlScheme_AvailabilityManagerScheme_NightVentilation.cxx | 1d5419616debaf5324b320841341df8dc5678499 | [
"MIT"
] | permissive | EnEff-BIM/EnEffBIM-Framework | c8bde8178bb9ed7d5e3e5cdf6d469a009bcb52de | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | refs/heads/master | 2021-01-18T00:16:06.546875 | 2017-04-18T08:03:40 | 2017-04-18T08:03:40 | 28,960,534 | 3 | 0 | null | 2017-04-18T08:03:40 | 2015-01-08T10:19:18 | C++ | UTF-8 | C++ | false | false | 20,905 | cxx | SimControlScheme_AvailabilityManagerScheme_NightVentilation.cxx | // Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... |
559ec59f8552bc7cfcac366188b3da4721ffb423 | d447a436270c00453ebab219f88a1970710e8e27 | /Client/src/Task.cpp | a04cdbdfbdb7e089b843fbbe8f656ec95d9411ad | [] | no_license | davwiener/client-server | 4e3f959f81923f8dd5ecd6d615e0bceab7430489 | be972c789cd13a89eb85d931e55aaecb17b4fb66 | refs/heads/master | 2020-04-17T01:31:29.127028 | 2019-01-16T19:13:28 | 2019-01-16T19:13:28 | 166,095,876 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 86 | cpp | Task.cpp | //
// Created by david on 17/01/17.
//
#include "../include/Task.h"
Task::~Task() {
} |
878d012938ee6ffdca0cf02959a2d9270e95ebf8 | eb4ba6bf51880eb8af06bcceddd96936cd5d409a | /assignment-client/src/AssignmentClientMonitor.cpp | 6414f3364426df840f87b67db5aa3f35c3003248 | [
"Apache-2.0"
] | permissive | adamrwoodbury/hifi | 1526e8badca81d15bcf81b57361f2c69a36eba54 | d7cc76e48bf6fec7ae4312176abf9397b6507561 | refs/heads/master | 2021-01-18T13:57:59.539942 | 2015-05-02T07:35:49 | 2015-05-02T07:35:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,092 | cpp | AssignmentClientMonitor.cpp | //
// AssignmentClientMonitor.cpp
// assignment-client/src
//
// Created by Stephen Birarda on 1/10/2014.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <signal.h>
... |
4eb2c6b16773a3e7a46f894124a7fa689f17ca55 | 9866fcd00c98c7e95517e5430a1d1fd46d346be0 | /htws_engine/basics/file/file_path.h | a4f7504804fbab59663c801d650c44fd5f046155 | [] | no_license | hearthewarsong/htws_engine | 8ee9f0939e15c8830d19587e8cdf0f9b725c9306 | c0d7fed2cb68b450dc33b5d03a3da09b3d1541b7 | refs/heads/master | 2021-01-01T17:52:30.159566 | 2014-12-25T13:49:59 | 2014-12-25T13:49:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 356 | h | file_path.h | /*
* file_path.h
*
* Created on: Aug 24, 2014
* Author: hearthewarsong
*/
#ifndef FILE_PATH_H_
#define FILE_PATH_H_
class FilePath
{
string path;
public:
FilePath(const char* file_path);
OWNERSHIP FILE* FOpen(const char* mode = "r") const;
const string& GetPath() const { return path; }
virtual ~FilePa... |
738eb94a88713db11ce6aa268e2cc8c1ee767a9f | 201bc82653e46fd071db3ffee41fe01f7ab63967 | /sqlite/db.cpp | c2c73ffd65c7243bb2cf1c63572a532968e9a06b | [
"BSD-3-Clause"
] | permissive | edlai/libhv | 5f0b5b0ef5a8abdd6d226e5a90702d6fbe4a114c | b6c7680f66216089fab0b02cb5177ceedd95f4e6 | refs/heads/master | 2021-01-14T22:32:57.758277 | 2020-02-24T16:43:50 | 2020-02-24T16:43:50 | 242,782,037 | 4 | 0 | BSD-3-Clause | 2020-02-24T16:12:21 | 2020-02-24T16:12:21 | null | UTF-8 | C++ | false | false | 3,928 | cpp | db.cpp | #include "db.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BUSY_TIMEOUT 5000 // ms
int db_open(const char* dbfile, HDB* phdb) {
if (sqlite3_open(dbfile, phdb) != SQLITE_OK) {
fprintf(stderr, "sqlite3_open %s failed!\n", dbfile);
return SQL_ERR;
}
sqlite3_busy_t... |
daacc61f39275f8a55dd576c8d9f4e7a03e44e8a | b7139acb3448d39dbeb8597c7f65d4a378ddc330 | /2017/q14_7.cpp | 321b6ee9d326e0ac59b68182c8c4a836e269e497 | [] | no_license | linsallyzhao/earlyobjects-exercises | 3f88e2d48674fdd431ecfd7e57c0fe2fa30c93f8 | 746a2489eb135fee8c04c74e3e763b07853e6796 | refs/heads/master | 2021-08-24T13:27:43.256219 | 2017-12-10T00:38:56 | 2017-12-10T00:38:56 | 113,711,078 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 444 | cpp | q14_7.cpp | #include <string>
#include <iostream>
using namespace std;
void reverPrint (string &str, int size);
int main() {
string test;
cout << "Please enter a string: \n";
getline(cin, test);
reverPrint (test, test.length());
return 0;
}
void reverPrint (string &str, int size) {
if (size == 1){
... |
757fc123f0c2aa470236fa023f1f4b2728dc4834 | cb80a8562d90eb969272a7ff2cf52c1fa7aeb084 | /inletTest5/0.011/U | 6a779793715bc06f76bc8a9bff279e9287392a76 | [] | no_license | mahoep/inletCFD | eb516145fad17408f018f51e32aa0604871eaa95 | 0df91e3fbfa60d5db9d52739e212ca6d3f0a28b2 | refs/heads/main | 2023-08-30T22:07:41.314690 | 2021-10-14T19:23:51 | 2021-10-14T19:23:51 | 314,657,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 742,058 | U | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
... | |
b5a87545688d5abd202f6b6c4af1888132713e9d | 56ff38e6453719286cb299fde7fd3c34941d0038 | /examples/int128.cc | 658a4363f1a12a68d941f23c5a071da3173543c4 | [
"MIT"
] | permissive | skyshaw/skynet3 | 5d16a1b289d12c1f35865b5a577cdc79df4b8b84 | d6998799fcfe959126fe50bd3b0d640a3c31d9ba | refs/heads/master | 2021-01-19T10:08:19.336865 | 2015-07-07T04:56:41 | 2015-07-07T04:56:41 | 34,988,583 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 342 | cc | int128.cc | #include <iostream>
#include "base/int128.h"
#include "third_party/glog/logging.h"
int main(int argc, char** argv) {
gflags::ParseCommandLineFlags(&argc, &argv, true);
google::InitGoogleLogging(argv[0]);
uint128 u = 12345678;
uint128 v = 87654321;
uint128 w = u * v;
(void) w;
// std::cout << u * v << std... |
c4aee7790572090bbaf32bcac43c621d696d20d9 | a5841a0c925bfc5a1222a9b9f7f6e479696ac1e4 | /UDPReciver/UDPReciver.h | f6954d6e226ecf39941c0e753276deb45b448307 | [] | no_license | YasserRabee/UDPSenderAndReceiver | b7304160fe447f3f4012179c597832fb1bef1cc8 | a124b05930cd2adf1c52d0a213979633b2def4ab | refs/heads/master | 2016-09-10T20:13:58.131286 | 2014-07-02T23:40:45 | 2014-07-02T23:40:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,907 | h | UDPReciver.h |
#ifndef UDP_RECIVER_H
#define UDP_RECIVER_H
#define _CRT_SECURE_NO_WARNINGS
#pragma comment(lib, "Ws2_32.lib")
#include <winsock2.h>
#include <iostream>
using namespace std;
class UDPReciver
{
public:
UDPReciver(int, size_t);
~UDPReciver();
char* Recive();
void changeMsgLen(size_t newMsgLen)
{ msgLen = newM... |
6aaa1616a0fa18303d2ecae7276703481235eb6c | 16a589f26f4fbe61b64fb7abba2bc0e3175fa95f | /dnload/src/glsl_shader_source.cpp | d8007e446432e5103eb3bb255597f2f015cdd472 | [
"BSD-3-Clause"
] | permissive | eriser/faemiyah-demoscene | 4c98eef66e19d051fb07b5194aa34911f4a91ad4 | 355e802817231d9b41d134a2c0163647f4ec814f | refs/heads/master | 2021-01-18T17:28:25.977025 | 2015-03-12T22:30:25 | 2015-03-12T22:30:25 | 32,143,979 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,695 | cpp | glsl_shader_source.cpp | #include "glsl_shader_source.hpp"
#include <cstring>
#include <iostream>
#if defined(DNLOAD_GLESV2)
/** \cond */
#define GL_GLEXT_PROTOTYPES
/** \endcond */
#include "GLES2/gl2ext.h"
#endif
/** \brief Generate an indent.
*
* \param op Indent length.
*/
static std::string create_indent(unsigned op)
{
std::ostri... |
4051afa2fb528aa4950b99d9cf1a59ac2e253296 | 7b9745e11484061f0752638bf8265ea6daa10656 | /Controller Lib/bak/CommandFileParser.h | 4cfbf2334ac90d0bc8ba40dc5f254abd5d0e9e9c | [] | no_license | itaross/Relay-Controller | de2daa654224419570f38323961891a02de04472 | 49085eb26532cb683f31dda82b29765a54a849c0 | refs/heads/master | 2016-09-06T16:25:03.462246 | 2011-03-28T16:11:14 | 2011-03-28T16:11:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,468 | h | CommandFileParser.h | #ifndef CommandFileParser_H
#define CommandFileParser_H
//TODO (thibaud): optimize commands for space eg: if a relay is already on and we see another instruction to turn it on delete that instruction
#include <fstream>
#include <list>
#include <string>
#include "Board.h"
/** \brief A central place for checking the ... |
a9cecf43a7f7f1bde8e95d9cb61176b1c53eb68d | e5e1cb377800788960377842db4ab5f92e2559d7 | /rusto.cpp | f1dddc7798e19994d91a40e5ffa02a77a73bc115 | [] | no_license | jaikgp/interncodes | f69de71cdb72d8e1601d70abb3fa5c7e818041f1 | 7e4cdb243f9b35fdf12a9f893339bb2ec89af179 | refs/heads/master | 2021-01-09T20:41:52.272133 | 2016-07-08T12:24:09 | 2016-07-08T12:24:09 | 62,887,069 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,362 | cpp | rusto.cpp | #include <iostream>
#include <algorithm>
#include <map>
#include <queue>
#include <stdlib.h>
#include <list>
#include <stack>
using namespace std;
class Vertex
{
private:
list<Vertex*> nbrs;
int data;
bool visited;
public:
bool get_state();
void set_state(bool val);
Vertex(int a);
void ad... |
9ec928c4314729af8c0494b90b3b071a75005ba8 | f54f816c39b45c5d925352b5d50dd81990b4ad0e | /src/DungeonGameApp.cpp | 34e034458baab521f53aff5023a8dbd5f4079c71 | [] | no_license | mdportnov/DungeonGame | f5d7f00f37726076f49ca4424e30fc8f3d7c767e | 1068771891fbef2b3ff956c4c4db28e308396d16 | refs/heads/master | 2023-04-13T17:40:43.476762 | 2021-04-11T13:31:37 | 2021-04-11T13:31:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,294 | cpp | DungeonGameApp.cpp | #include <include/model/Level.h>
#include "iostream"
#include "include/DungeonGameApp.h"
#include "include/model/MyView.h"
#include "include/model/Player.h"
#include "include/model/ObjectsParser.h"
#include <list>
#include <include/model/Chest.h>
#include <include/model/equip/Key.h>
#include <include/model/InfoBar.h>
#... |
454259cbde9b2ed6e539607e65bf651006e455ca | 576a662e585d3370d73f2bbbef31de7e7d68087e | /9 inheritance polymorphism/z9.3v7/z9.3v7/college.h | 2f5e88fb20d88806ba6672ea85f5be62e7a7bbbd | [] | no_license | polilog/CppLabs | e763f6826b2484b59d7c376771a11e05efe6eca2 | 161a8408673427598626cd1b6f1c1910bfaf8f8c | refs/heads/master | 2021-01-20T09:00:20.687353 | 2017-10-31T21:20:45 | 2017-10-31T21:20:45 | 101,575,376 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 824 | h | college.h | #include "establishment.h"
class College : public Establishment
{
private:
int spec;
public:
College();
College(string, int, int);
College(College &);
~College();
void print_info() const;
void set_spec();
void get_spec() const;
};
College::College()
{}
College::College(string s, int n, int k) : Establishment... |
17bdc38dc76ab479cf853add05df62473aacc576 | f0528fcbe00e58d5fca326cdaca80496da37219a | /cpp/src/minijava/parser_context.cc | cdf2da544475ce0a08876bf2ff758574d3249ee7 | [] | no_license | uelis/Compiler | c231ea6bc096a948f12a93b63ad42c6765eecfb4 | 91dcd7eed969ecb3c0d381bb91ffa2100653cae5 | refs/heads/master | 2021-01-05T23:57:26.346094 | 2020-02-17T17:56:48 | 2020-02-20T17:07:53 | 241,172,262 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 840 | cc | parser_context.cc | #include "minijava/parser_context.h"
#include "minijava/error.h"
#include "minijava/parser.hh"
namespace mjc {
Program &ParserContext::Parse() {
scan_begin();
parser{*this}.parse(); // sets result_
scan_end();
if (error_) {
throw error_;
}
return result_;
}
void ParserContext::SetParseError(const lo... |
e68ccf8712a38636b96fc9bc9ebd2544b9a4afbc | 5324dc70cc1c131bf9aefb3a90c7e95f3fc7635e | /Classes/TerrainLayer.hpp | 00c672508786ab41e4ee7f145ecf6173bf69aace | [] | no_license | logan-5/Biome | c7576cf1ecd2b1b0bdc719f2e9d547d571e3a486 | 8cafed745eaeac77cf366e817535c69d8d7df98e | refs/heads/master | 2021-01-01T05:23:36.103371 | 2016-05-16T07:12:22 | 2016-05-16T07:12:22 | 58,839,694 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,702 | hpp | TerrainLayer.hpp | //
// TerrainLayer.hpp
// Biome
//
// Created by Logan Smith on 5/15/16.
//
//
#ifndef TerrainLayer_hpp
#define TerrainLayer_hpp
#include "cocos2d.h"
#include <deque>
#include "TerrainChunk.hpp"
#include "TerrainGenerator.hpp"
#include "ScrollingLayer.hpp"
/** @class TerrainLayer
@brief A `TerrainLayer` is a nod... |
d65dbdcf9f8cffa34d0c9b1aeb7c0e171cd2c962 | 76c01227508f2446a7faf0050687022f8216123a | /CS2C/CS2C_Trees/CS2C_Trees/TreeNode.cpp | 83bbc906b217d00c513a74ce7fc3e63837967242 | [] | no_license | connormichael/CPlusPlus | 303373f86df4f44f208fe98b88327fc144bce801 | 8b196e0fc1928c3a0639bb0d1887a98a08b378d1 | refs/heads/master | 2021-01-19T08:00:21.939602 | 2017-04-07T23:27:40 | 2017-04-07T23:27:40 | 87,594,347 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 140 | cpp | TreeNode.cpp |
//
// TreeNode.cpp
// CS2C_Trees
//
// Created by Connor Lynch on 1/2/17.
// Copyright (c) 2017 connor lynch. All rights reserved.
//
|
ead298b5898e4c3cef8874bcb70e5256cce1b213 | c64144ea447f343b0262f290895f9096551dc62a | /Programacao/fanuc_rep/Fanuc/test_move/src/posicao_calibracao.cpp | 8e09961e52fc8b00eaf4a2d3715bb15a9373ed01 | [] | no_license | lpes34/package_robuter | 5c70ec7ece57debdef8eec3b9b4f9b8d20d2a013 | cdd4099fd11309ca34cd2a4f0327503d40488ed4 | refs/heads/master | 2020-03-10T07:26:37.620702 | 2018-04-14T15:16:24 | 2018-04-14T15:16:24 | 129,262,707 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,641 | cpp | posicao_calibracao.cpp |
////******************************************************************************************************
// Todos os includes
////******************************************************************************************************
#include <moveit/planning_scene_monitor/planning_scene_monitor.h>
#include <geome... |
8fd1afdd095eb2df76427691ef0907f0131c4389 | 5cfa595a6f34b81c783688540828ecc94bfe412b | /Assignment1/source/main.cpp | 14a9817d6b1256ea849b247c8023f3ada1bd80b7 | [] | no_license | Ziheng-Liang/CSC2521 | 0eb2cd6152906f95b09f8767d9c409c492d06a61 | 3f4f63bccd8e8f4b4a9568121f32ee0c12b92962 | refs/heads/master | 2021-08-24T14:05:54.209392 | 2017-12-10T04:29:33 | 2017-12-10T04:29:33 | 105,586,134 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,811 | cpp | main.cpp | //Computational Fabrication Assignment #1
#include <iostream>
#include <vector>
#include <stdlib.h>
#include "../include/CompFab.h"
#include "../include/Mesh.h"
//Ray-Triangle Intersection
//Returns 1 if triangle and ray intersect, 0 otherwise
int rayTriangleIntersection(CompFab::Ray &ray, CompFab::Triangle &... |
fdf2d5b2736c2e09cd1949047c1045095bd641cc | 67e07d46b3f4ed91037b5fea5ccac1615884b19c | /geometry/Circle.hpp | 8d351d14670ebdc3e97e652042875bc778836b3a | [] | no_license | RhobanProject/RhobanUtils | 0dbfea34c35494f4248e94bd59edd6e8b608556b | 2171496cd5f04d91bae938979459c5b8e3472b97 | refs/heads/master | 2020-06-28T23:06:29.765287 | 2017-11-04T14:39:04 | 2017-11-04T14:39:04 | 74,459,336 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,510 | hpp | Circle.hpp | #ifndef CIRCLE_HPP
#define CIRCLE_HPP
#include "Point.hpp"
class ImpossibleCircleException : public std::exception{
const char * what() const throw() {
return "Circle can't be found with given arguments\n";
};
};
class Circle{
private:
Point center;
double radius;
public:
Circle(): center(0.0, 0.0), ra... |
d729122e6eed5e3544479d299e2855633d32b5f4 | ff0cc7e931d038a9bd9a56665b20cd8dab071959 | /src/Modules/BaseLib/libmodules/blUtilitiesVTK/src/meVTKPolyDataSplitter.cpp | 6d01a7a1ade369852d9dfff1f193890d3323e105 | [] | no_license | jakubsadura/Swiezy | 6ebf1637057c4dbb8fda5bfd3f57ef7eec92279b | bd32b7815b5c0206582916b62935ff49008ee371 | refs/heads/master | 2016-09-11T00:39:59.005668 | 2011-05-22T19:38:33 | 2011-05-22T19:38:33 | 1,784,754 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,345 | cpp | meVTKPolyDataSplitter.cpp | /*
* Copyright (c) 2009,
* Computational Image and Simulation Technologies in Biomedicine (CISTIB),
* Universitat Pompeu Fabra (UPF), Barcelona, Spain. All rights reserved.
* See license.txt file for details.
*/
#include "meVTKPolyDataSplitter.h"
#include <time.h>
//VTK
#include <vtkCleanPolyData.h>
#include <vtkPo... |
f0fce9e8193eea908e5380f318dfefb95aa0a16e | f762e7bfc4f94775a4ffffdbbe0192d6e6534ebe | /src/ViewFFmpeg/main.cpp | 058166617d0cae6de2aa2fd617a3a17603f7debb | [] | no_license | Foliedevil/Xplay | fa366e32ff41a875e600da5b7801ef4b71f8ccb8 | 92472f4cd27b2ebfb1492e593dd7730e61b2d164 | refs/heads/master | 2023-01-19T22:06:55.079646 | 2020-11-26T09:31:59 | 2020-11-26T09:31:59 | 315,572,767 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 575 | cpp | main.cpp | #include<iostream>
//引用C语言的库
extern "C"{
#include<libavcodec/avcodec.h>
}
using namespace std;
//预处理指令导入库
#pragma comment(lib,"avcodec.lib")
int main(int argc, char *argv[])
{
cout << "test ffmpeg" << endl;
#ifdef _WIN32
//32位和64位 win
#ifdef _WIN64
//64位 win
cout << "this is windows64" << endl;
... |
23da489334077773ac4232fcc2c70557d58f5c76 | 701c0c679f1ca7ef721839460a4200b58031a64b | /Station/Station.ino | 2d4cfcac5dfafc9dab1f8bbc2dd9fcd71bbe3923 | [] | no_license | garthoff/jeenode-1 | 3427a3fad97ce799d3d9cecae8fbd667f7462404 | 2022060af70b85a627f8e9d6896b5adb822cbed8 | refs/heads/master | 2021-01-23T08:24:38.295290 | 2012-04-26T20:49:50 | 2012-04-26T20:49:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 750 | ino | Station.ino | #include <JeeLib.h>
#include <avr/sleep.h>
typedef struct {
unsigned int time;
float windSpeed;
} WindData;
ISR(WDT_vect) { Sleepy::watchdogEvent(); }
void setup () {
Serial.begin(57600);
Serial.println("\n[Station_i]");
rf12_initialize(1, RF12_868MHZ, 33);
}
void loop () {
WindData windData;
... |
cc77bdf15dfb356f5a83243c7b17ac02d212e339 | ed05be6fdf8d55c6a89d1b7dd60c43f3cb485401 | /tests/config.hh | 9be68662f555c2435d0a5f68bc4e4e3f72898a91 | [
"Apache-2.0"
] | permissive | scylla-zpp-blas/linear-algebra | 48cb5319568080f4138d328872b297344e2c3461 | 823fe4085fdac992ed9695416d9a38d2cf6908d8 | refs/heads/master | 2023-05-31T21:02:43.016181 | 2021-06-14T18:05:41 | 2021-06-14T18:05:41 | 321,288,035 | 3 | 0 | Apache-2.0 | 2021-06-14T18:06:01 | 2020-12-14T08:54:13 | C++ | UTF-8 | C++ | false | false | 679 | hh | config.hh | #pragma once
#include "scylla_blas/config.hh"
#include "const.hh"
class global_config {
public:
static inline int argc = 0;
static inline char** argv = nullptr;
static inline std::string scylla_ip;
static inline std::string scylla_port;
static void init() {
argc = boost::unit_test::framew... |
6589dd264acc440db87c67f77f7346b3ba17526d | f0b7bcc41298354b471a72a7eeafe349aa8655bf | /codebase/apps/titan/src/TitanStormIdent/GridClump.cc | 12e686b85a29953fba08ac7cfff3bc0173afd5a5 | [
"BSD-3-Clause"
] | permissive | NCAR/lrose-core | 23abeb4e4f1b287725dc659fb566a293aba70069 | be0d059240ca442883ae2993b6aa112011755688 | refs/heads/master | 2023-09-01T04:01:36.030960 | 2023-08-25T00:41:16 | 2023-08-25T00:41:16 | 51,408,988 | 90 | 53 | NOASSERTION | 2023-08-18T21:59:40 | 2016-02-09T23:36:25 | C++ | UTF-8 | C++ | false | false | 6,342 | cc | GridClump.cc | // *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
// ** Copyright UCAR (c) 1990 - 2016
// ** University Corporation for Atmospheric Research (UCAR)
// ** National Center for Atmospheric Research (NCAR)
// ** Bo... |
6c0207a30087795a64f67f6cf7be9396c649f573 | d5d94c992d0596080ba694c518dfdb58d3490847 | /1186/answer.cpp | a7f228ef42d66a8ca04b7ffb90ee463b1a5326f8 | [] | no_license | calgagi/leetcode | 1bf24b750e44c2c893935983e5d88e0f071d9f2d | 431aba979d92e331f2f92a07eb80167a823a49bd | refs/heads/master | 2022-11-17T11:26:01.596496 | 2020-07-19T06:56:04 | 2020-07-19T06:56:04 | 276,207,528 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 693 | cpp | answer.cpp | class Solution {
public:
int maximumSum(vector<int>& arr) {
vector<int> maxEnd(arr.size(), 0), maxBegin(arr.size(), 0);
int maximum = arr[0];
maxBegin[0] = arr[0];
for (int i = 1; i < arr.size(); i++) {
maximum = max(maximum, arr[i]);
maxBegin[i] = max(maxBegi... |
c87437ed5e8e245eb5aceed6d1b27d72da8fbf88 | 2561405da8f708ea0b833a75a09872f0a1669da9 | /include/solaire/parallel/thread_pool_executor.hpp | 80d88d4fa9985eeb6a8132df0ff0bd361615a33b | [
"Apache-2.0"
] | permissive | SolaireLibrary/solaire_parallel | afe47b1e90f6080afaf73eec3bdab5996b228fad | eed82815215e1eb60b7ca29e19720f6707966383 | refs/heads/master | 2021-01-18T02:00:20.544941 | 2016-05-17T18:21:29 | 2016-05-17T18:21:29 | 58,665,841 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,966 | hpp | thread_pool_executor.hpp | #ifndef SOLAIRE_PARALEL_THREAD_POOL_EXECUTOR_HPP
#define SOLAIRE_PARALEL_THREAD_POOL_EXECUTOR_HPP
//Copyright 2016 Adam G. Smith
//
//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 :/... |
49a0c73f1e97e7b356c5348df251d0ebb7aecd97 | 574b207e8608e288274a8450bcf9f3635fff38d6 | /17_advanced_graphs/9_monk_islands.cpp | e46927cde3e395225b62e4f8ec03d8c3e2d2df70 | [
"MIT"
] | permissive | anujjain5699/Coding-Ninjas-Competitive-1 | eabce470e790ddf209d23ef15f49133efb47176d | 791dfd800d5ca6def63da12ad286d49edda736a0 | refs/heads/master | 2023-07-16T02:58:38.538649 | 2021-09-02T11:35:48 | 2021-09-02T11:35:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,970 | cpp | 9_monk_islands.cpp | /*
MONK AND THE ISLAND
Monk visits the land of Islands. There are a total of N islands numbered from 1 to N. Some pairs of islands are connected to each other by Bidirectional bridges running over water.
Monk hates to cross these bridges as they require a lot of efforts. He is standing at Island #1 and wants to reach t... |
0d0f87e5f213fd8e07116fd7c536ed4d4564155d | 88935ce124c354acdb013df9a499067444829ca0 | /solutions/1110.cpp | 5039aba6d776c90a086da79f423e960d488b9d8b | [] | no_license | pascal-the-elf/TIOJ-ASE | 6883e4d0d0a23f02d3f2efe58bf5bd9537952384 | 181ba41b732d52f9c8c728be247961dda3bd4398 | refs/heads/main | 2023-06-04T11:40:20.715491 | 2021-06-27T16:35:40 | 2021-06-27T16:35:40 | 377,033,735 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 535 | cpp | 1110.cpp | #include <bits/stdc++.h>
using namespace std;
int q, l;
string s;
int ct[26] = {};
int main(){
cin >> q;
while(q--){
cin >> l >> s;
fill(ct,ct+26,0);
for(int i = 0;i < s.length();i++){
ct[s[i] - 'a']++;
}
int mx = 0;
set<char> mxAp;
for(int i... |
5622f1be6e9b10f5500233c7c86720a1a6e9b0c9 | 43efb8c60d19d37c2f42805754086f910348a5ae | /Coding/Rough Codes/problm3.cpp | 4faaf872bec0a646a4ddd0344bafa989bfdb3626 | [] | no_license | akshay2742/Coding-Problems | 961399752b30b6a17b72b2c1b2afada9e839a326 | 838be77b707cc82a9453c964ff8cedce1646dfe8 | refs/heads/master | 2021-06-26T14:08:39.292052 | 2020-10-08T18:34:19 | 2020-10-08T18:34:19 | 151,247,129 | 0 | 1 | null | 2020-10-08T18:34:21 | 2018-10-02T11:59:38 | C++ | UTF-8 | C++ | false | false | 552 | cpp | problm3.cpp | #include<iostream>
#include<math.h>
#include<cstdio>
using namespace std;
#define int long long
int checkSquare(int a)
{ int x,valid=1;
while(a!=0){
x=a%10;
a=a/10;
if(x==9||x==4||x==1||x==0) continue;
else
return 0;
}
return valid;
}
main(){
int t,a... |
0520e6b1134d4075d3185041832524f718cd5eb8 | 85eb574fc95f0d7a6d8fdca0cd84e622e78b402c | /src/Core/External/unsw/unsw/perception/behaviour/python/wrappers/AbsCoord_wrap.pcpp | 4d87d36fdf0438128a25fa8271382e3896775200 | [
"MIT"
] | permissive | pedrohsreis/Mari | b0ee0534d0b2388410365f586e69b3563379bc61 | ef0e0f3ffbecdeb49e8238df9795f4a07b84ad8b | refs/heads/master | 2020-04-04T06:56:42.143270 | 2018-11-03T19:49:25 | 2018-11-03T19:49:25 | 155,762,829 | 0 | 0 | MIT | 2018-11-01T19:06:45 | 2018-11-01T19:06:44 | null | UTF-8 | C++ | false | false | 441 | pcpp | AbsCoord_wrap.pcpp | class_<AbsCoord>("AbsCoord").
def(init<float, float, float>()).
add_property("x" , abs_get_v_const_type(&AbsCoord::x )).
add_property("y" , abs_get_v_const_type(&AbsCoord::y )).
add_property("theta" , abs_get_v_const_type(&AbsCoord::theta )).
def_readonly("weight" , &AbsCoord::weight ... |
36121313baf957b31f93e63a83fff3d62b713edc | d95bb56973b4c861f16c498cd0284f97979252f4 | /检查有多少boy与girl.cpp | cf60406a15ab90de1fb9c4eb02c1c087349e8b3f | [] | no_license | iamcaptainyc/queue | c565c41ef16e0b48b49357594f7910ae1e90243a | 9be842ce01e6929509156116cd9ae3be74fb17e1 | refs/heads/main | 2023-03-30T01:13:58.419732 | 2021-04-09T09:09:49 | 2021-04-09T09:09:49 | 304,335,282 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 532 | cpp | 检查有多少boy与girl.cpp | #include <iostream>
#include <string>
using namespace std;
int main()
{
string str;
getline(cin,str);
for(int i=0;i<=str.length()-2;i++){//检查有多少个boy
if(str[i]=='b'||str[i+1]=='o'||str[i+2]=='y')//检查从i开始的三个字符是否符合boy单词的顺序,只要符合顺序即可认定这里有一个Boy
{
boy++;
}
}
for(int i=0;i<=str.length()-3;i+... |
7ad0256a77cc943d9916bc282719602ba49e6667 | d7cab9554d4d0935170299ad5dd3a920fc2557e8 | /ak/ui/tooltip.h | ff2c6d7040a15bad1c5332ac8348d689a5f1aaad | [] | no_license | alex-kir/ak-cpp-lib | 15191a4c5cfa3e26e841c1f328ecb4bb65982881 | d060e9a08c735a1e360db16e3973fadee0de62d1 | refs/heads/master | 2021-06-19T02:47:59.883423 | 2021-05-18T19:43:43 | 2021-05-18T19:43:43 | 36,856,048 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 357 | h | tooltip.h | #pragma once
#include <ak/ui/window.h>
#include <string>
namespace ak
{
namespace ui
{
class tooltip
{
void * hwndTT;
void * hwnd;
std::wstring _text;
public:
void create(window & wnd, const std::wstring & text);
void update(con... |
99af015f2de48c286b979912628a13dbc51b3ffd | c1fb3c631864b9dd37910b755717f39880900bd8 | /Trnx/TrnxOnline.h | 3e830cae8806bf953ceb8ed4c20ec6befea95b7d | [] | no_license | suyuti/pax_terminal | 9b9f25ee59763ccb65a9de98698eb77cc0d796aa | df342c31ec6a14583ccb99aca639aa1837561f87 | refs/heads/master | 2023-05-04T14:27:48.942182 | 2013-02-12T14:24:04 | 2013-02-12T14:24:04 | 371,936,205 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 950 | h | TrnxOnline.h | // TrnxOnline.h: interface for the CTrnxOnline class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_TRNXONLINE_H__CD99D919_AE40_4786_88B6_CB333FDF0586__INCLUDED_)
#define AFX_TRNXONLINE_H__CD99D919_AE40_4786_88B6_CB333FDF0586__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#en... |
bb05be39c10955722e2d1757337b86ad6e02c1b9 | 955e4dd507efb999bcfdd2126f8073279cdd1885 | /image/layer.cpp | 795deda8abad82672dac82b19db5e0c0ce47fd7c | [] | no_license | DevAlone/Qwerty | aa3aac2ba51fe69c966c72cd6ecb8f5999083c00 | 4d020dbb5b66253cb9db68cde8e202b9b06620c1 | refs/heads/master | 2021-01-13T04:27:52.125176 | 2017-02-05T18:46:54 | 2017-02-05T18:46:54 | 79,954,157 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 346 | cpp | layer.cpp | #include "layer.h"
Layer::Layer(int width, int height, const QColor &color)
{
pixmap = QPixmap(width, height);
pixmap.fill(color);
}
Layer::Layer(const QPixmap &pixmap)
{
this->pixmap = pixmap;
}
unsigned char Layer::getOpacity() const
{
return opacity;
}
void Layer::setOpacity(unsigned char value)
... |
8cb76d826e020c3ec81d50e5511c35d5238e0113 | 927b64a33b87a078c038e1cb5815249e9fbb200b | /microprocessor/LightManager/Package.cpp | 2e65ef5485241d796f593fa27b1198ff4ecccb08 | [] | no_license | dut-project-team/dut-projects | 85854397df0a8cb2e67597fc1be2fe4247e7a724 | 5762c03167eb4183d55a142556e79d9f5ed655a7 | refs/heads/master | 2021-01-18T01:29:49.223463 | 2016-05-14T15:18:50 | 2016-05-14T15:18:50 | 46,776,295 | 1 | 0 | null | 2016-03-15T14:39:54 | 2015-11-24T08:02:09 | Java | UTF-8 | C++ | false | false | 4,552 | cpp | Package.cpp | #include "Package.h"
#include <string.h>
///-------------------------------------------------------------
bool RequestEditDCPackage::init( byte_t* st, int length)
{
int sz_dconfig = sizeof(DefConfig);
// skip 1 byte for command
// skip 1 byte for defconfig id(next byte)
if(sz_dconfig + 2 != length)
... |
4705d8dd104098335ba5b662590a59de04dde5ee | 23f44299eb66e54b3bb617cdce5aed61f688997f | /update_volume.cpp | d712ce13629d40a3210c1160b05235580f850f1e | [] | no_license | kompowiec/vvvapp | 03dc039cf2510021e4f15c3819db9baa536fdb09 | b8c22cfa04412f206e0393eb61643e5c710164cd | refs/heads/master | 2021-01-02T05:47:11.231261 | 2020-02-10T13:24:05 | 2020-02-10T13:24:05 | 239,516,064 | 0 | 0 | null | 2020-02-10T13:17:01 | 2020-02-10T13:17:00 | null | UTF-8 | C++ | false | false | 9,377 | cpp | update_volume.cpp | /*
This file is part of VVV (Virtual Volumes View)
Copyright (C) 2007-2008, the VVV Development team
Author: Fulvio Senore
VVV 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 vers... |
4d603c895180e6d1982a304ff158370499b85774 | 94a88c9cb36803c36eeff0fad57689e5fe76cab1 | /Qt/NLP_CHEN/my_thread.cpp | 6ce0fcffd82c36dcd8999d3417db78f731d93966 | [] | no_license | YFCbingyi/test_own | c5e38842765831dcc6c45e3181f370083877fc7f | 8b5461deceeb0b64ef8b571796a017ee532be429 | refs/heads/master | 2021-07-19T19:15:56.742920 | 2020-10-29T02:32:49 | 2020-10-29T02:32:49 | 225,312,122 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 957 | cpp | my_thread.cpp | #include "my_thread.h"
#include "debug_log.h"
#include <chrono>
#include <unistd.h>
my_thread::my_thread()
{
}
void my_thread::test() {
std::promise<int> promise_obj;
std::future<int> future_obj = promise_obj.get_future();
thd_ = thread(&my_thread::run,this,std::ref(promise_obj));
while(future_obj.wa... |
3a32a0327eea7824eaf13538c9465c38c45419e8 | e3505cfd86c57b1869c2885a3a44550af552d483 | /source/plugins/org.custusx.core.patientmodel/testing/cxtestCatchFrameMetric.cpp | 13f3f60627e574d65f7dd5067997494265d93eb2 | [
"BSD-3-Clause"
] | permissive | leettran/CustusX | afb6a3bc6607bf28fa1c94f94b66cf9979728cd5 | b4e64e0db364da189ee9eafa54ce0ab258f5105a | refs/heads/master | 2021-07-14T03:33:55.038281 | 2017-02-09T09:29:57 | 2017-02-09T09:29:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,403 | cpp | cxtestCatchFrameMetric.cpp | /*=========================================================================
This file is part of CustusX, an Image Guided Therapy Application.
Copyright (c) 2008-2014, SINTEF Department of Medical Technology
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are per... |
2ef0f895a3c1f4345be998110d0ac312049101d1 | 486f775a76e568865ac63afd620059568f92a974 | /trunk/Banco_Cliente_Auto/Banco_Cliente_Auto/Msj.cpp | 2345edb37f09da15850fa7344ce910448f1b875e | [] | no_license | russosanti/Banking-SO2 | 2748fbc120c02fd7426ca51d2bd1e17f08c2ddb0 | 63b2e657b8140d9ff2b9b8520dc8ccb14d10e662 | refs/heads/master | 2021-01-19T11:17:38.979596 | 2014-12-11T07:28:50 | 2014-12-11T07:28:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,315 | cpp | Msj.cpp | #include "stdafx.h"
#include "Msj.h"
#include "IU.h"
using System::Collections::Generic::List;
using System::Int32;
using System::Single;
using System::Exception;
using System::Char;
String^ Msj::code(){
try{
Int32^ tip = gcnew Int32(this->tipo);
Int32^ pi = gcnew Int32(this->pin);
Single^ sal = gcnew Single(t... |
c87fecb1b520fd6ffab731d888e622531de97b9b | b0eb5f8c2656afa1a77e3dfb407d03025a9c1d84 | /D3D11/GeometryShaderBillboards/Managers/ShadersManager.h | 40e16a8b928ed7680cd140c560e0e7d23546f89e | [] | no_license | mandragorn66/dx11 | ee1126d6487dfe0dac1c1d3aa945f39510a446f5 | 7807a73bd58011e1fc43dc3a4404ed4e9027bc39 | refs/heads/master | 2021-01-13T02:03:14.816972 | 2014-05-31T20:58:16 | 2014-05-31T20:58:16 | 35,515,523 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 851 | h | ShadersManager.h | #pragma once
struct ID3D11Device;
struct ID3D11InputLayout;
struct ID3D11VertexShader;
struct ID3D11GeometryShader;
struct ID3D11PixelShader;
namespace Managers
{
class ShadersManager
{
public:
static void initAll(ID3D11Device * const device);
static void destroyAll();
static ID3D... |
e8b4c15b6106c839ebee0225fde254376c28d58f | cd4ec78dd46939b1bd101b0adc35041993d2a5c3 | /src/test_main.cc | ef2bc381b43fda78ae74e081f8ac3ee0777e6155 | [
"MIT"
] | permissive | ryangraham/cfg | e81a241808b35781373d620020716ae3bbc4d884 | 3b8d951f5c251f3269501d5ab22388ca9a219f9f | refs/heads/master | 2022-08-16T00:42:00.666877 | 2020-06-04T06:36:27 | 2020-06-04T06:36:27 | 266,646,286 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 90 | cc | test_main.cc | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "cfg.h"
#include "doctest/doctest.h"
|
39003887435341a3d5cb2ab5509ea049c4daddeb | 2143daaf4614fe7117f78432474920ad18c995fd | /Application/Window/View/Panel/Pane/FocusTargetCtrl.cpp | aa7522efa4f5ae66d3171e0600c2371f264fed96 | [] | no_license | ytt/CornStarch-1 | 97350e6350a88734e47ebfbc431606c04d554d0c | d7578a40ed40453ae6f340897e27e101c6142d80 | refs/heads/master | 2021-01-18T05:46:46.370293 | 2012-09-13T08:57:42 | 2012-09-13T08:57:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 837 | cpp | FocusTargetCtrl.cpp | #include "FocusTargetCtrl.hpp"
namespace CornStarch
{
// イベントテーブル
BEGIN_EVENT_TABLE(CFocusTargetCtrl, wxTextCtrl) //
EVT_SET_FOCUS(CFocusTargetCtrl::onFocused)
END_EVENT_TABLE()
;
CFocusTargetCtrl::CFocusTargetCtrl()
{
}
CFocusTargetCtrl::~CFocusTargetCtrl()
{
}
// 初期化を行う
void CFocusTargetCtr... |
d3a31dd02f22b935d086b4b259d51cc7a2adcbfe | 760458ba4a9d7e5992d67095da75805c918f5a06 | /cpp.range-v3/action.stride/action.stride.cpp | b1f43b7d66efc878795fa2ce45c88a5cf8206226 | [] | no_license | yielding/code | 99e0809255f96e89f18d7dfd3492003684485167 | b231e15f35c60a7b3227a57be7c110e12c5aa127 | refs/heads/master | 2023-08-30T23:40:21.225686 | 2023-08-26T04:39:46 | 2023-08-26T04:39:46 | 978,529 | 16 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 565 | cpp | action.stride.cpp | #include <iostream>
#include <vector>
#include <cassert>
#include <range/v3/all.hpp>
using namespace ranges::v3;
using namespace std;
int main(int argc, char *argv[])
{
auto& cp = ::ranges::v3::copy;
auto v1 = views::ints(0, 100) | to<vector>();
auto v2 = v1 | cp | actions::stride(10);
cout << views::all(v2... |
38a5ec91a15aafaf1c062a08fbf1003166418910 | c782ef24626b66d609b5742b59b2f38774a44540 | /src/mobility/RandomWPMobility.cc | ef0f6e73ae25380be3e8bf1a40444c2fc07f10f9 | [] | no_license | olafur/inetmanet | de06aaa676f1a50a04a3d45f442ddfead2bd80ca | 39b72d1462a6cfbf2c475f6945dca3252924bad9 | refs/heads/master | 2021-01-18T06:14:28.506755 | 2010-08-02T13:26:08 | 2010-08-02T13:26:08 | 797,860 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,807 | cc | RandomWPMobility.cc | //
// Copyright (C) 2005 Georg Lutz, Institut fuer Telematik, University of Karlsruhe
// Copyright (C) 2005 Andras Varga
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
//... |
87fb3b54cbe18ed3c63276bfce7f130ce88ce444 | 270d670d3798b89cb3f6730c1a24eadfe8f02518 | /Engine/SDLWindow.cpp | ab992a1c008aaa607a56ed8a3b674fa4d4034da7 | [
"MIT"
] | permissive | ebithril/Cerberus | 9d2e49af7b8e3d63397aa129b7eb7c9c7a2aa3ca | 8c5034bbb4fcdcc2cdb4495631176a2595c22dc7 | refs/heads/master | 2021-01-20T14:47:47.033344 | 2018-04-11T06:16:00 | 2018-04-11T06:16:00 | 90,662,638 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,529 | cpp | SDLWindow.cpp | #include "SDLWindow.h"
#include "VulkanInstance.h"
#include <stdio.h>
void SDLWindow::CreateWindow(const WindowMode aWindowMode, const uint16 aWindowWidth, const uint16 aWindowHeight, VulkanInstance* Instance)
{
uint32 WindowFlags = SDL_WINDOW_OPENGL;
switch (aWindowMode)
{
case WindowMode::Fullscr... |
44ba32a671826c31937ee3f6b90f894c222c44cd | 5ffc3cf414d9b61a52f49a06839d0f45166dd070 | /HaloTAS/MCCTAS/gui_interop.h | a86430d9f3c0a481b8ce54b51e2713139b584833 | [
"MIT"
] | permissive | s3anyboy/HaloTAS | 7e75a6cd3fa47623846a5ff95633a001d313c764 | 9584786f19e1475399298fda2d5783d47623cccd | refs/heads/master | 2022-12-12T14:20:34.271947 | 2020-08-20T02:24:01 | 2020-08-20T02:24:01 | 288,840,139 | 0 | 0 | MIT | 2020-08-19T21:20:29 | 2020-08-19T21:20:28 | null | UTF-8 | C++ | false | false | 268 | h | gui_interop.h | #pragma once
#include "pch.h"
#include "windows_pipe_server.h"
class gui_interop
{
private:
std::unique_ptr<windows_pipe_server> pipe_server;
public:
gui_interop();
~gui_interop();
private:
static void answer_request(windows_pipe_server::LPPIPEINST pipe);
};
|
8c5a706f599cbeebb21d8d2fbaa081f15d7aaf99 | 4a466f4212416181b3727f2f98d9452536aa39c1 | /StateMachine.cpp | 8cd6824355d408b84c325e0c11d0f9972fedeba1 | [] | no_license | TheNewBob/IMS2 | 24f25843aca5b54ce70f052c2090ad4e22d50d7e | 572dcfd4c3621458f01278713437c2aca526d2e6 | refs/heads/master | 2021-01-19T02:25:03.519558 | 2018-01-29T20:27:44 | 2018-01-29T20:27:44 | 65,005,438 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,372 | cpp | StateMachine.cpp | #include "Common.h"
#include <deque>
#include <queue>
#include <stack>
#include "SimpleTreeNode.h"
#include "SimplePathNode.h"
#include "StateNode.h"
#include "StateMachine.h"
#include "PathFinding.h"
StateMachine::StateMachine()
{
}
StateMachine::~StateMachine()
{
for (map<int, StateNode*>::iterator i = states.be... |
e3daca3b9e7846abb23f47925c4214232860dd9e | cefd6c17774b5c94240d57adccef57d9bba4a2e9 | /WebKit/Tools/TestWebKitAPI/Tests/WebKit2/DidAssociateFormControls_Bundle.cpp | fd373d28259eed00da22406af07abd4b9f2be8cb | [
"BSL-1.0"
] | permissive | adzhou/oragle | 9c054c25b24ff0a65cb9639bafd02aac2bcdce8b | 5442d418b87d0da161429ffa5cb83777e9b38e4d | refs/heads/master | 2022-11-01T05:04:59.368831 | 2014-03-12T15:50:08 | 2014-03-12T15:50:08 | 17,238,063 | 0 | 1 | BSL-1.0 | 2022-10-18T04:23:53 | 2014-02-27T05:39:44 | C++ | UTF-8 | C++ | false | false | 3,189 | cpp | DidAssociateFormControls_Bundle.cpp | /*
* Copyright (C) 2013 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
802fb5a2ff642665c438f42051f4eb900fe28040 | d09945668f19bb4bc17087c0cb8ccbab2b2dd688 | /yuki/0001-1000/501-600/515.cpp | 0f02239899289a0679851f13c43fea36634eeb89 | [] | no_license | kmjp/procon | 27270f605f3ae5d80fbdb28708318a6557273a57 | 8083028ece4be1460150aa3f0e69bdb57e510b53 | refs/heads/master | 2023-09-04T11:01:09.452170 | 2023-09-03T15:25:21 | 2023-09-03T15:25:21 | 30,825,508 | 23 | 2 | null | 2023-08-18T14:02:07 | 2015-02-15T11:25:23 | C++ | UTF-8 | C++ | false | false | 1,504 | cpp | 515.cpp | #include <bits/stdc++.h>
using namespace std;
typedef signed long long ll;
#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x,to) for(x=0;x<(to);x++)
#define FORR(x,arr) for(auto& x:arr)
#define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++)
#define ALL(a) (a.begin()),(a.end())
#... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.