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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
819d780f8e72258ddad3b7fa7da1bfe06ace266d | 2a0bad9b38f1ae069df422a44f67041594da5358 | /happy.cpp | c656378468328dc1a9282b67c316f6a06c5d6e8d | [] | no_license | anubhavrakshit/cpp_crash | 079d64d6d07414f6969b300ad9ec280edbd9202d | c599d56c83bb6f199346d8f9681e997cccf90405 | refs/heads/master | 2022-10-26T10:18:05.693191 | 2022-10-12T14:51:06 | 2022-10-12T14:51:06 | 247,255,964 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 909 | cpp | happy.cpp | #include <iostream>
#include <unordered_map>
using namespace std;
int get_square(int num)
{
int sq = 0;
while (num) {
int least_d = num % 10;
sq += (least_d * least_d);
num /= 10;
}
return sq;
}
int main()
{
unordered_map<int, bool> map;
int x = 21;
int sq = 0;
... |
46918999e44578eeb245ac31878eb405156f1f36 | 989fbdb229e8d8f93de4dd2e784c520ca837dd15 | /src/graphics/readouts/Cursor.cpp | 4bf513f6c045e6bfd63146d7301a53d288916d97 | [] | no_license | gehldp/OpenEaagles | 3ed7f37d91499067a64dae8fa5826a1e8e47d1f0 | 3f7964d007278792d5f7ac3645b3cd32c11008e3 | refs/heads/master | 2021-01-15T15:58:14.038678 | 2017-08-10T02:35:03 | 2017-08-10T02:35:03 | 2,516,276 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 765 | cpp | Cursor.cpp |
#include "openeaagles/graphics/readouts/Cursor.hpp"
#include "openeaagles/graphics/Display.hpp"
namespace oe {
namespace graphics {
IMPLEMENT_EMPTY_SLOTTABLE_SUBCLASS(Cursor, "Cursor")
EMPTY_COPYDATA(Cursor)
EMPTY_DELETEDATA(Cursor)
EMPTY_SERIALIZER(Cursor)
Cursor::Cursor()
{
STANDARD_CONSTRUCTOR()... |
9f70849accaa775582a5bf79b15b895d8da470e7 | 9b7facbc51af989228f2452e2b8ed3d6b5fe8c66 | /C DS单链表--合并/C DS单链表--合并/源.cpp | 00274c682847efd93d412ae62d042d8a987e4c60 | [] | no_license | ZibeSun/OJ-Data-Structures-and-Algorithms | 1028a08bf55b8685e6b1b3736bde42075c7ba789 | e66c20a389e36085b277253a662f8d9763c7dd08 | refs/heads/main | 2023-06-06T07:08:19.608958 | 2021-07-02T04:14:35 | 2021-07-02T04:14:35 | 346,795,114 | 1 | 1 | null | null | null | null | GB18030 | C++ | false | false | 5,438 | cpp | 源.cpp | #include<stdio.h>
#include<iostream>
using namespace std;
class ListNode
{
public:
int data;
ListNode* next;
ListNode()
{
next = NULL;
data = 0;
}
};
class LinkList
{
public:
ListNode* head;
int len;
LinkList();
//~LinkList();
void LL_add(int x);
ListNode* LL_index(int i);
void LL_get(int i);
void LL_i... |
f9e4fc419e8a90aeb2f6da00e223119cdb0227ae | 097a8d328ffaa2cf38d201716a7ed5a9fb862e97 | /Gyrocam/Gyrocam/YorkUrbanDbTester.h | 6eaf9d4a10757c65584e618f1e2a945491a91534 | [] | no_license | pkuderov/gyrocam | 4094f0023c8f4aeb9d92d9826d487c7f700e7947 | e0ef99ebc75437d54556f524d93bfc8ff34f6621 | refs/heads/master | 2021-01-10T06:15:38.968284 | 2015-06-15T02:49:01 | 2015-06-15T02:49:01 | 36,031,292 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 262 | h | YorkUrbanDbTester.h | #pragma once
#include "TestTools.h"
namespace gyrocam
{
class YorkUrbanDbTester
{
YorkUrbanDbTestRunConfig config;
Settings settings;
public:
YorkUrbanDbTester(const YorkUrbanDbTestRunConfig &config, const Settings &settings);
void run(int k);
};
} |
f7e879c0bdf40afde2c1d6c52941c81eda90414b | 882ec39db64915b343c1558d848bc19454ac45eb | /lab5/task2/CMyString/CMyString/MyString.h | f98aac60eeae3bece840510fa95d3bca827e3bd2 | [] | no_license | Vokhmintseva/OOPLabs | 0cf6f8e9dbb9c47b5350d40187908c3613c17209 | 4fee66c0e0d8f9d15c7c013a611886b9490e88dc | refs/heads/master | 2023-06-02T09:03:33.328913 | 2021-06-24T20:32:03 | 2021-06-24T20:32:03 | 340,132,377 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 4,393 | h | MyString.h | #pragma once
#include <string>
class MyString
{
public:
friend class Iterator;
// конструктор по умолчанию
MyString();
// конструктор, инициализирующий строку данными строки с завершающим нулевым символом
MyString(const char* pString);
// конструктор, инициализирующий строку данными из символьного массива зада... |
075f75247c9d5d1ad96385c645087863e3872add | 347c5c2128cc1193e7ca1a2d338e89466a368072 | /include/sqlite_adapter/sqlite_adapter_cursor.h | 79ca1b335f683ad3410b8c217d240975376c1c78 | [
"MIT"
] | permissive | Tobias-Werner/GStream | 9aec79106646bb82b698272c41dc145654830a12 | b8650c71a607413f965d6582d1eb738481e682bd | refs/heads/master | 2020-08-03T10:57:47.462632 | 2019-10-11T15:31:15 | 2019-10-11T15:31:15 | 211,727,263 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 660 | h | sqlite_adapter_cursor.h | //
// Created by tobias on 31.01.18.
//
#ifndef SPREAMS_STREAM_CURSOR_H
#define SPREAMS_STREAM_CURSOR_H
#include <sqlite3ext.h>
#include "operator/Stream.h"
#include "operator/View.h"
#include <vector>
SQLITE_EXTENSION_INIT3
namespace STREAM {
class sqlite_adapter_cursor : public sqlite3_vtab_cursor {
pri... |
4d02d9f3a31c14bcda45c015e828965eac970b6c | fe3cda9cf77b9afff5de9db1078d2316e95df2e6 | /kstar/opisrc/src/SHOT_summary/moc_connectionwidget.cpp | 235ac88f6c142fe707888acd87ff5b2ba440b9a1 | [] | no_license | Sangil-Lee/RefCode | c230f9dbab9246c510799cc8bc523e8acfdcf008 | c9bd25d1a9033c0071b70eab17b442b535a188fb | refs/heads/master | 2023-08-08T15:38:42.616284 | 2023-07-22T01:28:15 | 2023-07-22T01:28:15 | 34,648,348 | 3 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,450 | cpp | moc_connectionwidget.cpp | /****************************************************************************
** Meta object code from reading C++ file 'connectionwidget.h'
**
** Created: Wed Jun 11 13:27:06 2008
** by: The Qt Meta Object Compiler version 59 (Qt 4.3.2)
**
** WARNING! All changes made in this file will be lost!
******************... |
5537ea740f44160d5c13c2462495bddf680c0d35 | eff84bb9c4fe16e8d8f6d44b7eab135462f19d1c | /port/main/shim/l2cap.cc | d972d701cdf09d60c6c3317901626accc937af0c | [
"Apache-2.0"
] | permissive | haizzus/fluoride | cf7b1db152f68362a9708a5ab825406d99f2f66a | 244df4a9d07a518d539ced744b279c5971370302 | refs/heads/master | 2022-12-31T00:59:32.850430 | 2020-10-10T07:04:45 | 2020-10-25T11:56:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,083 | cc | l2cap.cc | /*
* Copyright 2019 The Android Open Source 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 applica... |
cce58cc4306b28bbc8bd8c740ba409f8ed83fa72 | 984fbe717de62b07993dc353f996da04e8c3327d | /project/class_spiski/doublelist.cpp | 1275f46c7ab9199c0b52df8515b0beb6c2d62aa2 | [] | no_license | ekzestencial/test | 5003b749d2d8502570d42db6f4c67e06cbef3a31 | 93e3d964de8150e896ff762d42919cb3fdaf8e78 | refs/heads/master | 2022-10-04T13:32:59.724228 | 2022-09-26T16:47:40 | 2022-09-26T16:47:40 | 77,486,780 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 430 | cpp | doublelist.cpp | #include "doublelist.h"
Doublelist::Doublelist(int value) : list(value) { myPrevious = 0; }
void Doublelist::addValue(int value) {
Doublelist *current = this;
while (current->myNext != 0) {
// current = current->myNext;
current = (Doublelist *)current->myNext;
}
current->myNext = new Doublelist(value);... |
c98c4fcc48158a38e136c036e9fd4a246b422b86 | ead0c10bd542537bdc21a11ae015f332c5ad18db | /Testes/Teste 24.cpp | b578b4930137d61d7a48a11a7d0d243d82663262 | [
"Apache-2.0"
] | permissive | ismaellimadb/Programas-C- | 6c3c47ff384dd9222b6799690d695bb158110a0e | cc626ef3447f699ed8ff9d7619dd78100f299612 | refs/heads/master | 2021-09-12T01:24:29.045121 | 2021-08-27T09:27:05 | 2021-08-27T09:27:05 | 146,108,878 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 323 | cpp | Teste 24.cpp | #include <stdio.h>
#include <math.h>
main()
{
int num,exit;float raiz;
printf("Informe um numero inteiro\n");scanf("%d",&num);
while(num!=0)
{
raiz=sqrt(num);
printf("A raiz do numero informado e: \n%.2f\n",raiz);
num++;
printf("Informe outro valor ou digite 0 para sair\n");scanf("%d",&exit);
num=exit;
}... |
de02fa85fce91a8c04d50ed61eff9006eb465eee | 88935ce124c354acdb013df9a499067444829ca0 | /solutions/2055.cpp | 3fd66334d86ee583126debbd63d58e8be1a332f8 | [] | 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 | 1,095 | cpp | 2055.cpp | #include <cstdio>
#include <vector>
#include <utility>
using namespace std;
const int N = 1000001;
inline char readchar() {
constexpr int B = 1<<20;
static char buf[B], *p, *q;
if(p == q && (q=(p=buf)+fread(buf,1,B,stdin)) == buf) return EOF;
return *p++;
}
inline int nextint() {
int x = 0, c = re... |
8fd6589de92c6b177cdea1f09e694ff16f22afd3 | 3dd58ac52a0ffab6657fdf994abdfd1bab45b71c | /backup/orignal_14/ResetSensor.ino | e3b1a0846f5e375f22a086d4d64033c05b48dcdc | [] | no_license | abhisola/ProductLevelStock | 540686969e80ffb620ed40d3b0fda6ca6a7cb3c2 | 2d694e82d231a2166656e771befd8d87382f6a2b | refs/heads/master | 2020-03-21T12:34:29.018978 | 2018-09-05T13:37:27 | 2018-09-05T13:37:27 | 138,560,041 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 270 | ino | ResetSensor.ino |
void ResetSensor()
{
digitalWrite(DATAZ,HIGH); // Make XSHUT = HIGH
delay(150);
// Make XSHUT = LOW for 150ms
digitalWrite(DATAZ, LOW);
delay(150);
digitalWrite(DATAZ,HIGH); // Make XSHUT = HIGH
delay(500);
}
|
52b4ee44e2391482e2b22793ab6e5655a8000b8a | 166907f73594e9b24092a1880677b39713bf62f5 | /App/Utils/SDL.cpp | 4d20fb87a8b7ebc65c0e8961f5b7c57a585447ea | [] | no_license | robillardstudio/Images-Generiques | 941cf236cd79472155be7e22ac99ba68199bd47c | 68bdfb3370c031b797dc5069052af571850b8515 | refs/heads/master | 2023-08-24T16:24:27.339939 | 2021-10-29T12:01:57 | 2021-10-29T12:01:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 380 | cpp | SDL.cpp | //
// SDL.cpp
// IMACMAN
//
// Created by Valentin Dufois on 28/12/2017.
// Copyright © 2017 Valentin Dufois. All rights reserved.
//
#include "SDL.hpp"
namespace SDL
{
int getWindowIndex()
{
return SDL_GetWindowDisplayIndex(App->mainWindow);
}
float getWindowDPI()
{
float DPI;
SDL_GetDisplayDPI(getW... |
d24e9fea9d4ace4c2df56467934ee6bde881c992 | 08d0969b1d052e1a62d2c2d593dfc833e6b3e3e4 | /include/drone_robot.h | bd2658abf268bcde3fa04a24fb86071468720483 | [
"BSD-3-Clause"
] | permissive | UNC-Robotics/IRIS | cb25e4e5993dbcf20772831ca7e4809c59f51640 | 00074f76e7e7eadc9cc8dcd772962350ee2c5d1c | refs/heads/master | 2022-05-02T04:05:01.740831 | 2022-04-18T17:56:21 | 2022-04-18T17:56:21 | 219,244,660 | 9 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 3,680 | h | drone_robot.h | // BSD 3-Clause License
// Copyright (c) 2019, The University of North Carolina at Chapel Hill
// 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 ... |
a64e497a64aa1ce2f307ecd706777cd10bd8b300 | 4a57438c485f389dcf778d4acfcf93855679c78f | /project/MovingObject.cpp | 7d81ed42600ff7e11c5df39a2675f3c619474a46 | [] | no_license | cafeunder/SlidingPanic | 2c0d9c7dd5a7fa53d1f1807df2d76eb82da21cb6 | 22007dfe5e25b9a169ecdc8169027fe69f9d6b53 | refs/heads/master | 2021-01-19T22:05:35.326815 | 2017-04-09T14:19:50 | 2017-04-09T14:19:50 | 84,743,668 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 4,621 | cpp | MovingObject.cpp | #include <DxLib.h>
#include "Board.h"
#include "ImageManager.h"
#include "MovingObject.h"
MovingObject::MovingObject(int px, int py, Board* board) {
this->board = board;
this->px = px * POSITION_SCALE;
this->py = py * POSITION_SCALE;
this->movingCount = 0;
this->direction = this->board->GetChangeDirection(this->G... |
038182087104b1936c29a3a9af35628d652baeb9 | b6bc02d84fb7781b78f77c9ae6e733dd588dc1da | /src/Optimization.cpp | 32d6cadbc0e31b7492510f5422e53abf694f8d2d | [] | no_license | eglrp/vo-1 | 51ac2ee6a70920ce9f615d087a3a879258c39bb4 | 3331ed766fe92b964313d023c2111ce61b656ecb | refs/heads/master | 2020-04-07T04:30:27.711734 | 2016-11-07T09:43:40 | 2016-11-07T09:43:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,076 | cpp | Optimization.cpp | #include <thread>
#include <Eigen/Dense>
#include <sophus/se3.hpp>
#include <sophus/so2.hpp>
#include "Optimization.h"
#include "Frame.h"
typedef Eigen::Matrix<float, 1, 6> Vector6fRow;
typedef Eigen::Matrix<float, 6, 6> HType;
typedef Eigen::Matrix<float, 6, 1> ErrType;
struct Hessian_ {
HType Hii;
HTyp... |
b0e757ce036356ebe743b1a9c6110beb588115ec | b32fa3fc321c82dbcc28d0fa1c2526202ef5f929 | /Modeling_tool/asmodeling/asmodeling/PropertiesWnd.cpp | 6530c4accbbc6a575867fed3a80836b07fb7101b | [] | no_license | BaiGang/codeplex-archived-vrthesis-2010 | ce43246029acc3079d92c1e594dc6ea5194e5c2a | b06b45f50491a76feca4363faeef4da51cf143a7 | refs/heads/master | 2020-12-30T16:48:03.962166 | 2012-10-01T21:49:39 | 2012-10-01T21:49:39 | 91,037,422 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 15,910 | cpp | PropertiesWnd.cpp | // This MFC Samples source code demonstrates using MFC Microsoft Office Fluent User Interface
// (the "Fluent UI") and is provided only as referential material to supplement the
// Microsoft Foundation Classes Reference and related electronic documentation
// included with the MFC C++ library software.
// Lice... |
af1bdbaa5765ac000f04a64ca8e14e1b04c09c55 | dcb70454adbb1dcc2c1b1588a17abd6175b0bfaf | /src/optimization/LiteralValues.cpp | 68c0bdd4b1954ab016951f5747407745cebb26a2 | [
"MIT"
] | permissive | sibnick/VC4C | 1ecb5cbe88539fbff296af1e2223a84c931908b4 | dc99d28b1cb28ff4e92d66ce4e261276a2f948d4 | refs/heads/master | 2021-07-13T15:01:55.024407 | 2017-10-16T09:44:57 | 2017-10-16T09:47:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,518 | cpp | LiteralValues.cpp | /*
* Author: doe300
*
* See the file "LICENSE" for the full license governing this code.
*/
#include "LiteralValues.h"
#include "log.h"
#include "../Profiler.h"
#include "../InstructionWalker.h"
#include <cmath>
#include <algorithm>
using namespace vc4c;
using namespace vc4c::optimizations;
static InstructionWa... |
88567b2d276deed6e43e74ba7f0523806596a4c6 | f5b4c6f0ec312cf4fc3daebc7a306f921793f0cd | /src/sound/channel.hh | 65b600cf45a2bd1fadf6512889ecc0fa9b7bd7a7 | [] | no_license | thinkoid/openspace | 2e88bafa79a8d89d5316f8a7b47d3a0ac4ea659c | c7f42aadf9c872a444766a9af9917356fcfb4a9b | refs/heads/master | 2023-02-02T03:46:14.521442 | 2023-01-23T17:19:51 | 2023-01-23T17:19:51 | 148,841,322 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,086 | hh | channel.hh | // -*- mode: c++; -*-
#ifndef FREESPACE2_SOUND_CHANNEL_HH
#define FREESPACE2_SOUND_CHANNEL_HH
#include "defs.hh"
#include "sound/ds.hh"
#include "sound/openal.hh"
struct channel {
ds_sound_handle
sig; // uniquely identifies the sound playing on the channel
int snd_id; // i... |
aa53881c0dcb77f9528c1651dc4efcb651693dc0 | dcf4b382a13dc65de8cfff1fa42b7ec73acbd856 | /Address Book/LoginDlg.h | 6d0ce772d01ede8ab10754b59cef5d6d6a005c33 | [] | no_license | Tonyxin/New-Address-Book | df59fe35d4205172ba1c46976f0cf7eb0ced2ba9 | c6509987e4856892f381aae293f1a55507119c44 | refs/heads/master | 2021-01-10T15:18:44.120859 | 2015-11-23T14:47:52 | 2015-11-23T14:47:52 | 46,102,286 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 545 | h | LoginDlg.h | #pragma once
#include "afxwin.h"
// CLoginDlg 对话框
class CLoginDlg : public CDialog
{
DECLARE_DYNAMIC(CLoginDlg)
public:
CLoginDlg(CWnd* pParent = NULL); // 标准构造函数
virtual ~CLoginDlg();
// 对话框数据
enum { IDD = IDD_DIALOG_login };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
D... |
5c9dc683b7d32b9d24a7821db6a30dd135ede281 | ecc78f3cc5fe355acbe80813d846709bb329e1f8 | /FamilyAccount.h | 003ea22faf40e00d0e158e9a03b62a3c3e30dedf | [] | no_license | nitzo/CPP-Ex5 | 95d77da7a4c4acf9ea0a969ca13fe07a8959948f | 87bf1a282c0a9e1b04f7a6ea70831a5a62217727 | refs/heads/master | 2020-05-17T02:03:46.234106 | 2011-06-01T12:34:12 | 2011-06-01T12:34:12 | 1,747,405 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 474 | h | FamilyAccount.h | #ifndef __FAMILYACCOUNT_H__
#define __FAMILYACCOUNT_H__
#include "AccountImpl.h"
#include <string>
using namespace std;
//
//Class Representing an Account that can be managed by all family members ( family accounts )
//
class FamilyAccount : public AccountImpl{
public:
FamilyAccount ( float percent, int date, Pe... |
bd443b34dd85252b7424069969886a372e1f50bd | 4660358060465ea7bad4827082eb5438da9d696d | /lab1Proc/matrixDiag.h | 22303b53c44596eae60a162394492d9de54b79fc | [] | no_license | bangushik/Procedure | 1c4995aeea71ede6e4faf66f30616c26ac3cf042 | da2f247658876b75bf9455e346768206975f9369 | refs/heads/master | 2021-01-24T04:01:51.234557 | 2018-06-14T18:33:18 | 2018-06-14T18:33:18 | 122,917,779 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 187 | h | matrixDiag.h | #include <iostream>
#include <fstream>
using namespace std;
struct MatrixDiag
{
int size;
int* Diagmatr;
};
MatrixDiag* InMatrDiag(ifstream &ifst);
int MatrDiagSum(MatrixDiag* matr);
|
6f103b7a8bb58c66ddd390a67f393b3ee20d3a45 | 59c809e24ed3ab4f896980bebdb32838343ed4ba | /symbolTable/SymbolTableTree.cpp | 275d111616da2f31104575511b5782b3fbc92d9e | [] | no_license | AmmarRabie/mini-compiler | 1e1db199dd7c84835fd4d2b495ee4292b1c3f9a8 | efb667e1b0a26d03c27fb0ed315d676ddbe7b04d | refs/heads/master | 2022-07-19T10:53:22.416667 | 2020-05-14T11:29:13 | 2020-05-14T11:29:13 | 250,689,287 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,097 | cpp | SymbolTableTree.cpp | #include "SymbolTableTree.h"
using namespace std;
SymbolTableTree::SymbolTableTree(SymbolTableTree * parent,string index):table(index)
{
this->parent=parent;
this->temp_count=0;
this->label_count=0;
}
SymbolTableTree* SymbolTableTree::enter_scope(string index)
{
SymbolTableTree * nScope = new Symbol... |
581754bccba7165f14967aa7b6833bc075b93870 | 29e5e73028e8c4acec0e8ca6adbd9e0bf57b750d | /src/quest/QuestList.cpp | adac2c860458e0f0570d3e6da397bc73a27d5e30 | [] | no_license | rlalance/lovecraft | aa878a0332b64a0386afbf8e18c6d8946ac1bff1 | 56e5a3c94b8c58832ca47a29f74e87f76196bfcb | refs/heads/master | 2022-07-02T03:47:45.160679 | 2016-06-04T03:07:25 | 2016-06-04T03:17:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,937 | cpp | QuestList.cpp | #include "QuestList.h"
QuestList::QuestList() : CYIAbstractDataModel(1)
{
}
QuestList::~QuestList()
{
}
QuestList* QuestList::FromJSON(CYIString path)
{
yi::rapidjson::Document* document;
CYIParsingError parsingError;
document = CYIRapidJSONUtility::CreateDocumentFromFile(path, parsingError);
... |
49a9811b409c40ebac3e17c302f000da196cc78d | a9c51e308dcaca5427c4a3ff6d1a284ba9ae0ea6 | /allowance/allowance.cpp | f4e28f394fde899e349b9b95cc948a2ed90e6313 | [] | no_license | sanghyuk12/contract | 119cb3fcfe6316e75838a923af3268511a24f628 | f144baf3944dd9a2697b1a9f7cdfb034be58600c | refs/heads/master | 2022-01-21T21:19:47.359445 | 2019-07-24T06:34:06 | 2019-07-24T06:34:06 | 198,326,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,094 | cpp | allowance.cpp | #include <eosio/eosio.hpp>
using namespace eosio;
CONTRACT addressbook: public contract {
public:
using contract::contract;
ACTION hi(name user){
check(has_auth(user),"xxxxx");
require_auth( get_self() );
print("hello,",user);
}
//allowance에 등록된 게정만 실행 할 수 있다.
ACTION insert(name use... |
1b2980c39aa05e37af553ea75b05aede457e1a7f | f17c501f2b064d6632d852428e7524fcf878c6d3 | /cplusplus.com/scopes.cpp | 21420c4afb2c18cd475edced1696bd5e18314a64 | [] | no_license | land-pack/cpp-example | cdeb64c96155a9bfaa708c51057f1b6a91787e2b | 537ea61d92d4409b58c9dedecdb9f31da3746f92 | refs/heads/master | 2021-09-07T04:09:48.331862 | 2018-02-17T04:55:28 | 2018-02-17T04:55:28 | 111,258,412 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 675 | cpp | scopes.cpp | #include <iostream>
using namespace std;
namespace foo{
int value(){
return 12;
}
}
namespace bar{
int value(){
return 99;
}
}
int main(int argc, char * argv[]){
int x=20;
int y=10;
// inner scopes
{
int x = 5;
y = 55;
cout << "inner x" <<... |
6e61274ca59567373980f2d3a69cc7cc5055d58e | ba149a0a424cd19201a081c6a46110c685a00055 | /AVlib_c/AVlib_c/.svn/pristine/ec/ec399e318d029079a0e006db92d3026a9cc13308.svn-base | dc021d1bc23f30e70aeff05dab63cd2668b05984 | [] | no_license | haku90/JPEG | 1b820db6eebdd31c10e7a8a459e70ae9b1f7f183 | 57822ed68bdd8a26234e4a8a6297ec18a8dd474d | refs/heads/master | 2021-01-19T13:55:33.098763 | 2014-05-28T16:58:09 | 2014-05-28T16:58:09 | 19,584,487 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,647 | ec399e318d029079a0e006db92d3026a9cc13308.svn-base | #include "xBitstream.h"
namespace AVlib {
// ====================================================================================================================
// xBitstream
// ====================================================================================================================
xBitstream::xBitstream... | |
50d97091fd5da31eb06d02a3b2465529d9beee2c | 926fa67e0d9203640d3fba618321553e6592477c | /ed_perception/plugins/type_aggregator.h | ccb5177f6ecf404b7bb838f090177a6006b87501 | [] | no_license | tue-robotics/ed_perception | aff69295af0cb92bdffcffcaa290f7e3d0e90a74 | 817f8abd49438bac47fe675b88c13548f9e8cfb8 | refs/heads/master | 2023-08-18T01:12:58.473922 | 2023-05-06T10:37:32 | 2023-05-06T10:37:32 | 26,801,215 | 1 | 5 | null | 2023-09-05T06:43:44 | 2014-11-18T09:14:41 | C++ | UTF-8 | C++ | false | false | 2,761 | h | type_aggregator.h | /*
* Author: Luis Fererira
* E-mail: luisfferreira@outlook.com
* Date: July 2015
*/
#ifndef ED_TYPE_AGGREGATOR_H_
#define ED_TYPE_AGGREGATOR_H_
#include <ed/perception/module.h>
// OpenCV includes
#include <opencv/cv.h>
#include "opencv2/highgui/highgui.hpp"
#include <cv_bridge/cv_bridge.h>
class TypeAggregator : ... |
89ad55bd3dfeca44da91aa2274c261eafc976b28 | ac579c30922c0f81e2c4b63fe72b62963da6d6f7 | /MODULE_Common/LanczosScaleTransform.h | dda03855ac872db757a649162e4228e253f5dc3c | [
"MIT"
] | permissive | andrewcs0901/Magpie | b046c8f7ec2b88fa2549536edec220a6e515496a | 0234692e47223b726f48e50b7ca4e0e8ea4dbb6f | refs/heads/master | 2023-06-14T23:50:51.826813 | 2021-07-17T02:39:46 | 2021-07-17T02:39:46 | 386,814,051 | 15 | 1 | MIT | 2021-07-17T02:17:57 | 2021-07-17T02:17:56 | null | GB18030 | C++ | false | false | 1,552 | h | LanczosScaleTransform.h | #pragma once
#include "pch.h"
#include <SimpleScaleTransform.h>
#include "EffectDefines.h"
// 为 LanczosScaleShader.hlsl 提供参数
// 参数:
// ARStrength:抗振铃强度。必须在 0~1 之间。默认值为 0.5
class LanczosScaleTransform : public SimpleScaleTransform {
private:
LanczosScaleTransform() : SimpleScaleTransform(GUID_MAGPIE_LANCZOS6_SCA... |
024605bf32fdb49552d36e6e0e2041649b2348d8 | 8d6c298d5b37ac55c777a3215e8668fdfef3fd4a | /modules/CheckEventLog/realtime_thread.hpp | b67ecdcb689e15d2800d353f164fd820349fe2bb | [] | no_license | kain64/nscp | 326d2c7223b7bec3c88ec5f8b66bb14d92b6ae7a | 58b6d2bcf910b57c84b8271c4392f937898e970b | refs/heads/master | 2021-01-14T10:52:28.874449 | 2016-08-28T15:22:18 | 2016-08-28T15:22:18 | 66,774,814 | 0 | 0 | null | 2016-08-28T15:10:23 | 2016-08-28T15:10:23 | null | UTF-8 | C++ | false | false | 1,648 | hpp | realtime_thread.hpp | #pragma once
#include <boost/thread.hpp>
#include <boost/shared_ptr.hpp>
#include "eventlog_wrapper.hpp"
#include "eventlog_record.hpp"
#include "filter_config_object.hpp"
struct real_time_thread {
nscapi::core_wrapper *core;
int plugin_id;
bool enabled_;
unsigned long long start_age_;
boost::shared_ptr<boost::... |
de7a1418d79cbd3141441948a357f66a1486351d | 75d824fab4f9a3583caa843272c3e32ed5f7f4c0 | /sdk/client.h | bc046a6ea55f3146cf65140bccbe34cf7e13ceaf | [] | no_license | feliksz/twojastara-vip | 2bbc87439e6df61d6e69c45e83fb37e423e364d6 | ff20ce5beb626bcaa7c2b97fc2c55642679b19fa | refs/heads/master | 2023-07-10T14:11:03.705217 | 2021-07-30T23:33:13 | 2021-07-30T23:33:13 | 391,209,108 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 196 | h | client.h | #pragma once
#include "structs/entity.h"
class Client {
public:
Entity get_local_player( )
{
return Entity( memory.read<uintptr_t>( memory.m_client_dll + signatures::dwLocalPlayer ) );
}
}; |
d04d53dbd783073cb134ba07293479354287d7a4 | 3d5eefaa5fd6008bcfdc53f85de4604d123d3b8c | /chapter_05/07-taking_damage/taking_damage.cpp | 400fb3226ccdaa16090ec8b166a37a42f35f4b42 | [] | no_license | pocon64/book-beginning_cpp_through_game_programming | 645229d6f2b317a8498b70a7d71ad27f33e418cf | bddb101fb8a2509603c046a13c2d57e932805502 | refs/heads/master | 2021-01-04T02:37:52.543764 | 2012-05-12T23:28:58 | 2012-05-12T23:28:58 | 4,283,696 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 570 | cpp | taking_damage.cpp | #include <iostream>
// Taking Damage Application
using namespace std;
int radiation(int health);
int main() {
int health=80;
cout << "Your health is " << health << endl << endl;
health=radiation(health);
cout << "After radiation exposure your health is " << health << endl << endl;
health=radiation(health);
... |
50292387793f551c237056a43718d3164da1aaa2 | 6dcda687bc386b58c6391d150a3816adf43c7cea | /SDK/Hand_AnimBlueprint_classes.h | f7c9c74f2857c706591a2f52e5a98cb2ce41ee48 | [] | no_license | firebiteLR/PavlovVR-SDK | 813f49c03140c46c318cae15fd5a03be77a80c05 | 0d31dec9aa671f0e9a2fbc37a9be34a9854e06a4 | refs/heads/master | 2023-07-23T11:28:43.963982 | 2021-02-18T15:06:38 | 2021-02-18T15:06:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,056 | h | Hand_AnimBlueprint_classes.h | #pragma once
// Name: , Version: 1.0.0
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
// Classes
//---------------------------------------------------------------------------
// AnimBlueprintGeneratedClass Hand_AnimBluepr... |
dbb76bb365c63e511d8adee93fe1f34821949bd7 | 0b0b064e00521ea0ba630fb72455f04439ff8e38 | /ClientHandler.h | fc3cc110042694ab84344ef442a6283ad0dd7b7f | [] | no_license | AAAYYYYYY/cef-mfc | 1723bd6757fba9626c61dbab227402f81d3a0e6f | b6546410d28ba3dfcc6c7078eba7ecc654059be8 | refs/heads/master | 2021-05-26T12:22:13.357487 | 2012-10-01T19:36:43 | 2012-10-01T19:36:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,384 | h | ClientHandler.h | #pragma once
#include "include/cef_base.h"
#include "include/cef_client.h"
#include "include/cef_life_span_handler.h"
#include "include/cef_v8context_handler.h"
#include "include/cef_load_handler.h"
#include "include/cef_request_handler.h"
#include "include/cef_content_filter.h"
#include "include/cef_runnable.h"
#inclu... |
19cad09e6221f246ea14d569e732d3c6cd2b22a0 | 124dbf04ab0b91893e3caae27366dc8300547c42 | /MatrixRegionSum.cpp | 2901801856a1483cf9dec974c589c11305a05eeb | [] | no_license | Anusha-Vijay/Algorithms | e23afa3dcfd574209f7421e817fa22f0324db2ed | 99e8b7baa3a275a529375d740da27132e80e2525 | refs/heads/master | 2021-09-04T15:22:08.896964 | 2018-01-19T20:07:00 | 2018-01-19T20:07:00 | 106,378,132 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,353 | cpp | MatrixRegionSum.cpp | #include <iostream>
#include <limits>
#include <cfloat>
#include <stdlib.h>
using namespace std;
/****************************************************************
Function: Dynamically create space for a 2D matrix
Parameters: int rows: matrix has "rows" many rows
int cols: matrix has "cols" num... |
3b9d28cc08c15be3fc31ea0ad1054a8b98e20f42 | 7a8308c66f7267c0db892d4472bf3bb280253f26 | /Team.cpp | f7ec6e4b32b0bf8a79beaa36a23f2b48d4c80f82 | [] | no_license | kopeto/optimalteam | fce0809d6dd3d92bb3341d6f182bbcd8155c7115 | e835aacd1336a98446fa7bbc3bcf1bd1e8d82fb5 | refs/heads/master | 2023-04-23T07:53:52.414110 | 2021-05-07T17:46:40 | 2021-05-07T17:46:40 | 314,879,289 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,073 | cpp | Team.cpp | #include "Team.h"
Discipline str_to_discipline(std::string &discipline)
{
std::runtime_error InvalideDiscipline("RUNTIME ERROR: Invalid discipline.\n");
std::for_each(discipline.begin(),discipline.end(),[](char& c){ c=std::toupper(c);});
if (discipline == "C1M")
{
return Discipline:... |
54a5163dc079dcac9aa0cb62f4121eb30aba0d90 | 6c781a5f8963f5017852ecbde05983d8dba3543f | /workoutenvironment.cpp | 07b54acc9a54eac5a285d28f1e37edbc4f702b7a | [] | no_license | richardguerre/fitness-tracker | d15683d749e82f2c3378fa0cddc86decd470403a | f21f97806ab95dd2f6b525a5cee7fca8270d89ed | refs/heads/master | 2022-06-09T00:32:54.886338 | 2020-05-03T18:54:20 | 2020-05-03T18:54:20 | 209,957,935 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,605 | cpp | workoutenvironment.cpp | //
// workoutenvironment.cpp
// 2012PA1
//
// Created by TONY WAI SUM JI on 2/9/2019.
// Copyright © 2019 Tony Wai Sum JI. All rights reserved.
//
#include <iostream>
#include "workoutenvironment.h"
WorkoutEnvironment::WorkoutEnvironment(string name, int entry_fee, int MAX_NUM_OF_WORKOUTS) :
name(name),
entry_... |
077829c47894516df9079550d06883b2b2e9b84c | 70bd40b7b908ff77f23c0ecec346b7b99627af45 | /AA_pfc8583.ino | 5825c91e6247461bd332bd35214eadc6e2543a55 | [
"MIT"
] | permissive | enfieldcat/HydraFerret | adf47d186327df74edc3f402d442178c5bde625c | 7a65df16885d1f5385b4139a636dc3efddc6d97f | refs/heads/main | 2023-08-24T17:45:16.340155 | 2021-11-02T08:38:22 | 2021-11-02T08:38:22 | 356,819,994 | 0 | 0 | MIT | 2021-11-02T08:38:23 | 2021-04-11T09:08:59 | C++ | UTF-8 | C++ | false | false | 26,826 | ino | AA_pfc8583.ino | /*
MIT License
Copyright (c) [2021] [Enfield Cat]
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, merge,... |
9776335153f66a4fbabb3209afdfbaa217d7a0eb | 7f16497d6eb7ea596ec26bee5215ed92a28c11b8 | /UVA/UVa 10496 - Collecting Beepers.cpp | 0a8ec8102cbce218b91c88d4c922429779fdf77d | [] | no_license | thecodingwizard/competitive-programming | 6c088dc15116409583429486951a94a87f6c316b | 76f8659dbb935604a31fad26967fdfa413141244 | refs/heads/master | 2022-05-27T02:25:34.593546 | 2022-05-19T06:00:00 | 2022-05-19T06:00:00 | 159,700,280 | 83 | 25 | null | 2021-10-01T15:26:22 | 2018-11-29T17:03:04 | C++ | UTF-8 | C++ | false | false | 1,404 | cpp | UVa 10496 - Collecting Beepers.cpp | #include <iostream>
#include <string>
#include <utility>
#include <sstream>
#include <algorithm>
#include <stack>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <bitset>
#include <cmath>
#include <cstring>
#include <iomanip>
using namespace std;
#define INF 1000000000
#define LSOne(S) (S & ... |
7e3e87855a25781b593dbc2b502df2f2ee26a124 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1674486_1/C++/billmaths/GCJ12_1C_A.cpp | 97d7ea34db5fd056fc4b7def7f79676c786f7f8c | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,493 | cpp | GCJ12_1C_A.cpp | #include <iostream>
#include <cstdio>
using namespace std;
struct Node {
int v;
Node *next;
};
int N;
int deg[1001];
Node *out[1001];
bool m[1001];
bool dfs(int k) {
if (m[k]) return false;
m[k] = true;
Node *cur = out[k];
while (cur != NULL) {
bool r = dfs(cur->v);
if (!r) return false;
cur... |
7c7e83ea1cb0deec3a6106250403f5549bdfb2a6 | da4ec18de6f783cce4d6c8cd069168780bce99b1 | /src/c++/lib/genotyping/PopulationStatistics.cpp | eb6efba17a5df38049175843b2f03547b2ccb060 | [
"Apache-2.0"
] | permissive | Yanglv-rookie/paragraph | a7912d28a907ccb420b7130255e5ea84d8714216 | e805e261336117a0c6901cdb3d61fd9d7d464611 | refs/heads/master | 2023-04-08T02:30:29.506663 | 2021-04-16T00:21:20 | 2021-04-16T00:21:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,138 | cpp | PopulationStatistics.cpp | // -*- mode: c++; indent-tabs-mode: nil; -*-
//
// Paragraph
// Copyright (c) 2016-2019 Illumina, Inc.
// 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:... |
084ef5b2681f5621af7058956e67bb3b1c92ea32 | b7f2c737686d1feb87a819def55c1df9729bd3f7 | /UVa/11550.cpp | 2b797af72df47de95c4ff7c29ff25643c647052e | [] | no_license | frontseat-astronaut/Competitive-Programming | e052c887497c5da9b82c701eacc765b7f839049f | eb49d9112cfe35cd0ef8cf1b690b607a8beede7d | refs/heads/master | 2020-03-21T03:15:41.561248 | 2019-01-27T15:59:19 | 2019-01-27T15:59:19 | 138,044,632 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 676 | cpp | 11550.cpp | #include<map>
#include<iostream>
#include<vector>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int n, m;
cin>>n>>m;
bool g[n+1][m+1];
for (int i = 0; i < n; ++i)
{
for (int j = 0; j < m; ++j)
{
cin>>g[i][j];
}
}
map<pair<int,int>, bool>M;
bool flag=1;
for (int i = 0;... |
9eaa45bf801f0b931697fcb838cd92ff481b4ea1 | ffa18931dac58cccce21d457fadbaa598cb2601d | /srcfile/ADSL2.cpp | 0446b170e6a35c0b21b995412db5c64413307f34 | [] | no_license | kushalchordiya216/ADSL | 76523774539fdfea2e97ce243a1726eff6379a96 | 47848be7427c2a9e602b8d8e032e8378cc95cd7d | refs/heads/master | 2020-04-20T10:31:09.422401 | 2019-04-20T08:20:25 | 2019-04-20T08:20:25 | 168,733,868 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,114 | cpp | ADSL2.cpp | //============================================================================
// Name : ADSL2.cpp
// Author : kushal
// Version :
// Copyright : Your copyright notice
// Description : A Dictionary stores keywords & its meanings.
// Provide facility for adding new keywords, deleting
// keyword... |
e52cbfd0af8669a17aab05d2e2301b890b64b6bf | d00bb9d71bd2d01fa50274be0f601e747b1a7cf5 | /MATE_ROV_2017_DNO/MS5803SensorDepth.h | 172969e34728882a31307d6d50878f8e2d586159 | [] | no_license | robocenter-rov/dno-software | a7053dd4259db736819e455e8ffa81f6eb394231 | 9e3e99e56012b49003dece3ef89c3ff04e4fb7e5 | refs/heads/master | 2020-06-12T09:33:18.084640 | 2017-06-13T11:45:47 | 2017-06-13T11:48:06 | 75,592,300 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 322 | h | MS5803SensorDepth.h | #pragma once
#include "SensorDepth.h"
#include "Libs/MS5803/src/SparkFun_MS5803_I2C.h"
class MS5803SensorDepth_t : public SensorDepth_t {
private:
MS5803 _sensor;
precision _precision;
public:
MS5803SensorDepth_t(ms5803_addr adress, precision precision);
float GetRawData() override;
float GetDepth() override;
}... |
cf0bba7e9aa23411679b37bd1e095179640fd210 | 72e097f20e9825dba936a403fe70500e02825566 | /src/Camera.cpp | d1e740596ba4b5c48de1e922936da6c95edb32bd | [] | no_license | angeld7/CS432_Assignments | 5b35f6bd38432808491063807cc4671df6af17ef | 9c19ff3d38ef6bd4b0403fd7361a2f492e693834 | refs/heads/master | 2021-03-27T08:24:56.555142 | 2017-03-22T06:35:42 | 2017-03-22T06:35:42 | 78,692,508 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,416 | cpp | Camera.cpp | #include "Camera.h"
void Camera::calculateMatrix() {
float width = glutGet(GLUT_WINDOW_WIDTH);
float height = glutGet(GLUT_WINDOW_HEIGHT);
if(orthograpic) {
projectionMatrix = Ortho(-1, 1, -1, 1, 1.0, 3.0);
} else {
projectionMatrix = Perspective(65.0, width/height, 1, 100);
... |
1140ac69081f61468a305bf931b0a81b1e660529 | f13d58b82ab70b42ff017432272e4e9fc3d8d99a | /online-judge/HDU/HDU 1072.cpp | 0b26d341d8bc0a4654613620bca86438bc641989 | [] | no_license | WEGFan/Algorithm-Contest-Code | 3586d6edba03165a9e243a10566fedcc6bcf1315 | a5b53605c0ec7161d12d48335171763a2ddf12b0 | refs/heads/master | 2020-11-26T10:33:02.807386 | 2019-12-19T12:05:17 | 2019-12-19T12:05:17 | 229,043,842 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,977 | cpp | HDU 1072.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <queue>
using namespace std;
struct Point
{
int x, y, explodetime, time;
bool operator==(const Point &p) const
{
return x == p.x && y == p.y;
}
};
const int MAXSIZE = 10;
int vis[MAXSIZE][MAXSIZE];
int map[MAXSIZE][MAXSIZE];
qu... |
f404006eb05f91c4cd3ff3cb90b9568c661bc7ba | 9a218b2caebf120363c744c4d8d372b366020f40 | /src/modules/socket/socket_module.h | 5584e3182982c34452ac8ff86f13bed622b25d7c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSL-1.0",
"LicenseRef-scancode-public-domain",
"MIT",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"curl",
"LGPL-2.1-or-later",
"LGPL-2.0-or-later",
"ICU"
] | permissive | badlee/TideSDK | e4d0586282905a37ed4cc6d6fac49582e84b5cd5 | fe6f6c93c6cab3395121696f48d3b55d43e1eddd | refs/heads/develop | 2022-02-26T16:26:58.240280 | 2022-02-08T08:48:29 | 2022-02-08T08:48:29 | 12,278,345 | 0 | 0 | Apache-2.0 | 2022-02-08T08:48:29 | 2013-08-21T18:43:51 | C++ | UTF-8 | C++ | false | false | 790 | h | socket_module.h | /**
* Copyright (c) 2012 - 2014 TideSDK contributors
* http://www.tidesdk.org
* Refer to LICENSE for details of distribution and use.
**/
#ifndef _SOCKET_MODULE_H_
#define _SOCKET_MODULE_H_
#include "socket_binding.h"
#if defined(OS_OSX) || defined(OS_LINUX)
#define EXPORT __attribute__((visibility("default")))
... |
3a698abb257c53f27e6d309c7161e6fde68351ea | 0b57b64399161624cd7eb5682c10656dbd559dd9 | /LeetCode/Linked_List/reverse_linked_list_II.cc | fa9bffd017241e96d1a90ac99990d7c9720fb80f | [] | no_license | Evil-crow/AC | 06176d99e781a77a49e710255e4be95edb0824ba | 126ae5009d957b962864da322c6fe944575cdeae | refs/heads/master | 2021-01-01T06:31:36.184330 | 2019-03-31T14:42:27 | 2019-03-31T14:42:27 | 97,449,539 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,630 | cc | reverse_linked_list_II.cc | /*
* @filename: reverse_linked_list_II.cc
* @author: Crow
* @date: 12/03/2018 19:23:50
* @description:
*/
#include <iostream>
#include <cstdio>
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(nullptr) {}
};
class Solution {
public:
L... |
60381884f9b936d2e6887cfa43bcb934288bf905 | c5838d86ba29c9da9bac06ed05fdb1beb4260e1d | /oop_laba1.6/Ellipse.cpp | b8c47b417803d829c2342041ff31e92498b72328 | [] | no_license | StanislavSorochak/oop_laba1.6 | 097e34986a9a138399071a02073b6f97df5ee31a | a5ce1e81bcc04bf7f478eec588c0238d47990033 | refs/heads/master | 2023-03-21T20:46:30.553416 | 2021-03-16T13:04:37 | 2021-03-16T13:04:37 | 348,350,117 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,439 | cpp | Ellipse.cpp | //////////////////////////////////////////////////////////////////////////////
// Ellipse.cpp
#include "Ellipse.h"
#include <iostream>
#include <math.h>
using namespace std;
void Ellipse::SetA(double value)
{
if (value > 0)
pair.SetA(value);
else
pair.SetA(0);
}
void Ellipse::SetB(double value)
{
if (value > ... |
8227693af403fa35f22bff062206269a5a70c111 | 6ac0957dcc5bce89fdf23ed9680301e483539f78 | /src/PolinomBF.cpp | ec81c5422abff32957317493286b9be50eddfc4c | [] | no_license | mzunanalfikri/Polinom-DevideAndConquerKaratsuba | bace8fe67cbfae0260132f93fd997c0a4329fb6e | 8ee349b94a22227e2604d0ea8cea8d1121a17af4 | refs/heads/master | 2021-01-14T14:43:26.414857 | 2020-02-24T04:41:57 | 2020-02-24T04:41:57 | 242,647,959 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,691 | cpp | PolinomBF.cpp | #include "PolinomBF.hpp"
#include <iostream>
#include <vector>
#include<time.h>
using namespace std;
PolinomBF::PolinomBF(){
//konstruktor
}
PolinomBF::PolinomBF(int n, bool random){
//konstruktor dengan parameter
int x;
this->derajat = n;
if (random){
for (int i = 0; i<... |
216e75e831d1b0af41a1da4cfd2d62a094a4e386 | 90d62b5fc8bb764c7238e7db99da3459fa8be4ef | /libs/2DGameSDK/include/2DGameSDK/physics/CollisionEventType.h | 696f7f79c227b17f10ff9e0a0ef45df66d1dc900 | [
"MIT"
] | permissive | markoczy/2DGameSDK | 1d57c6a2f77e91f73a4d47cb7ca42f21339d2795 | 53da378d604ace1d931dfe6ec336241045675667 | refs/heads/master | 2022-03-29T05:17:41.618959 | 2020-01-16T18:26:01 | 2020-01-16T18:26:01 | 177,466,808 | 4 | 0 | MIT | 2019-12-19T18:05:22 | 2019-03-24T20:40:44 | C++ | UTF-8 | C++ | false | false | 506 | h | CollisionEventType.h | /**
* @file CollisionEventType.h
* @author Aleistar Markoczy (a.markoczy@gmail.com)
* @brief CollisionEventType enum
* @version 1.0
* @date 2020-01-15
*
* @copyright Copyright (c) 2020
*
*/
#ifndef __COLLSION_EVENT_TYPE_H__
#define __COLLSION_EVENT_TYPE_H__
namespace game {
/**
* @brief ... |
c1df2f501b87aae1ddfd70a3c365e6012f25a38a | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/git/gumtree/git_repos_function_2079_git-2.7.5.cpp | c59f66bd421af66d60ab555453cad66a810a796d | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,415 | cpp | git_repos_function_2079_git-2.7.5.cpp | static void handle_from(struct mailinfo *mi, const struct strbuf *from)
{
char *at;
size_t el;
struct strbuf f;
strbuf_init(&f, from->len);
strbuf_addbuf(&f, from);
at = strchr(f.buf, '@');
if (!at) {
parse_bogus_from(mi, from);
return;
}
/*
* If we already have one email, don't take any confusing lin... |
26b1f9c7f03ba441b6f32255f5c50f4356911bf5 | 40a66b5f5d01fa4d03224d392acecaa8a4f8c93a | /Kozsa/Source/Particles/ParticleEmitterObject.h | 7fa53c1338f32ac784ece6130ddd4028586f78a1 | [] | no_license | MrChampz/Kozsa | 2082621c90bceb31f27dd0dcf923396301a0d391 | 5a7f2f2cd53ca5ba15fbed0c9a5a0e960ad9d522 | refs/heads/master | 2021-01-24T10:54:23.658981 | 2017-12-05T00:21:01 | 2017-12-05T00:21:01 | 84,915,271 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,404 | h | ParticleEmitterObject.h | #pragma once
#include <GL/glew.h>
#include <GLM/glm.hpp>
#include <GLM/gtc/matrix_transform.hpp>
#include <GLM/gtx/quaternion.hpp>
#include "../GameObject.h"
#include "../Renderer.h"
#include "../Texture2D.h"
// Represents a single particle and its state
struct Particle
{
glm::vec3 Position;
glm::vec3 Size;
glm:... |
5f5850992e6b8d86326e00575644f388000169ba | 6ea6691636a1a5072f12efe0aad9d778d32f126c | /OGLplus_build/implement/oglplus/enums/ext/nv_path_stroke_cover_mode_names.ipp | 7e987361fa9a04439cbc976ada481d9598fb2f26 | [
"BSL-1.0"
] | permissive | pm990320/OpenGLLearning | 6c63234da5f00193bf3799ee4b97b16bd14cdc6b | d4f83a047dbfe816631d59ea1115176514d9fad6 | refs/heads/master | 2021-01-10T06:21:34.592102 | 2014-07-04T10:42:52 | 2014-07-04T10:42:52 | 54,271,323 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,264 | ipp | nv_path_stroke_cover_mode_names.ipp | /*
* .file oglplus/enums/ext/nv_path_stroke_cover_mode_names.ipp
*
* Automatically generated header file. DO NOT modify manually,
* edit 'source/enums/oglplus/ext/nv_path_stroke_cover_mode.txt' instead.
*
* Copyright 2010-2013 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See... |
36b4a689a6a359544e27b07dc3a39cbad63ade1d | e9e1cb20935611feca4962d55a228d75fe521b88 | /DataStructandAlgorithm_cpp/unit_List/TicketReservationSystem/cuiItem.h | 463d8a273598df62250e642640abd109b04c4ec2 | [] | no_license | zhongkings/DataStructandAlgorithm_cpp | 2421f8cf43af1bfdf4bfe5a974182db11c89e885 | f5182f417bed5620e8568e51ea5390a6dd9462a3 | refs/heads/master | 2020-06-16T00:47:11.884678 | 2019-08-01T15:00:10 | 2019-08-01T15:00:10 | 195,435,238 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 187 | h | cuiItem.h | #pragma once
#include "cuiWidget.h"
namespace cui
{
class Item : public Widget
{
public:
Item(int x, int y, std::string content, int color = White, int format = normalStyle);
};
}; |
44462a8619ecd2909c17e9744c21bbdc162c8d18 | 2b223124d82a468e38815601c92299c54b2f1e6d | /CsvParserProj/CSVRow.h | 278262aa8872d873e550f7c9d2d615f1e37c33b3 | [] | no_license | zjcmtsx/CsvParserProject | b1ff078aee76e716a85f9cca15f0629cd2572982 | da4a144853e03c97c51b3473e3ce67949d924069 | refs/heads/master | 2020-03-14T15:04:48.586618 | 2018-05-01T03:06:01 | 2018-05-01T03:06:01 | 131,668,169 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 540 | h | CSVRow.h | #pragma once
#include "Common.h"
class CSVFile;
/*
csv文件的一行
*/
class CSVRow
{
public:
CSVRow();
CSVRow(CSVFile* csvFile, StringVector& valueVec);
public:
const StringVector& GetRowValueVec();
string GetValueString(const int& index);
int GetRowInt(const string& keyName);
double GetRowDouble(const string& ... |
d27e30b0c222674012bb68db9fe20aeb50ded136 | 0a0ab41294a12f869d50cdfd2f531fe4e34ef1e6 | /D_a_Good_String.cpp | 61744a855aa2fe58599d3c1a479e49f70fc51cd7 | [] | no_license | priyesh761/contests-competitive-programming- | 522ce7581954af5e75ab6b57d469e2501b487cd4 | 9f9ce1b6257cb9125a07598601e5b5c9dd0c9b54 | refs/heads/master | 2023-03-04T02:32:11.989273 | 2021-02-17T11:21:34 | 2021-02-17T11:21:34 | 275,151,171 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 912 | cpp | D_a_Good_String.cpp | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define mod 1000000007
#define init ios::sync_with_stdio(0), cin.tie(0);
typedef vector<int> vi;
typedef pair<int, int> pi;
#define MS(x, y) memset(x, y, sizeof(x))
#define F first
#define S second
#define PB push_back
#define MP make_pair
int ck(str... |
a23d669cf0fa306ad8b8165ec198a61f3bbdd0d2 | 4043f78994d68efc7d0fe9805cd91ec46a4d16f4 | /src/osg/osgGA/CameraManipulator | 3e4d99831d78584c869dd2291c50a21a8160770c | [
"Apache-2.0"
] | permissive | fanvanzh/3dtiles | d08d30956e790e451beab79c82acddc42a051e02 | a7c3000c794f5fbcf0defe72cabd0465dbf9df6e | refs/heads/master | 2023-09-03T14:08:09.905715 | 2023-08-30T02:30:02 | 2023-08-30T02:30:02 | 120,919,743 | 1,713 | 555 | Apache-2.0 | 2023-08-30T02:30:03 | 2018-02-09T15:07:43 | C++ | UTF-8 | C++ | false | false | 8,652 | CameraManipulator | /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this... | |
f92a00f3a935f4c4172394ee55dd0bbbaf5b12a5 | 7a20b3db1a185ecdf12ad86f38edaa03742abd7b | /src/core/SkColorLookUpTable.cpp | f376621e7f210b78a2ec07a80d212903aa4a5a80 | [
"BSD-3-Clause"
] | permissive | revery-ui/esy-skia | 7ef96ceeca94d001264684b7dc1ac24db0381ad4 | 29349b9279ed24a73ec41acd7082caea9bd8c04e | refs/heads/master | 2022-05-29T17:50:23.722723 | 2022-04-02T09:37:52 | 2022-04-02T09:37:52 | 203,015,081 | 24 | 26 | BSD-3-Clause | 2022-04-02T09:37:52 | 2019-08-18T14:24:21 | C++ | UTF-8 | C++ | false | false | 590 | cpp | SkColorLookUpTable.cpp | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkColorLookUpTable.h"
#include "SkColorSpaceXformPriv.h"
#include "SkFloatingPoint.h"
SkColorLookUpTable::SkColorLookUpTable(uint8_t inputChannels, const uint8_t li... |
31e148247da0fd8e81351b7961b5fb9fbbec4d50 | c19aa08496c4bcb5a4f22202f83d202d307ed8ab | /starmac-ros-pkg/starmac_flyer/flyer_controller/nodes/teleop_flyer.cpp | 20f616e5296877968b47a57f222abda82d91dcb8 | [
"BSD-3-Clause"
] | permissive | andrewsy/asctec_drivers_andrewsy | 0983eea9995c5ee11cc05ef97f138bfb899e0d80 | 948755eca5d80e0ecaf18b88bfb46b05d5b42e84 | refs/heads/master | 2021-01-23T21:35:44.716972 | 2011-08-05T23:07:35 | 2011-08-05T23:07:35 | 2,144,125 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,153 | cpp | teleop_flyer.cpp | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, UC Regents
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditio... |
24172ef02c9888492f55df0f97110a4c2c70b776 | a569540ab19621c5c11d5ed3ab7daf7931323ca7 | /rendering/MarkerMesh.hpp | ffce028bb5b3ea6ed539f375c1125c23bb2108ce | [] | no_license | ly774508966/PhotometricAR | cb8112b444644e4d88369d1141676e5a2c2d3195 | 3fe19d4afa6bdcad232c2bbf4cc210ecb7a1cc5a | refs/heads/master | 2021-01-19T08:36:50.409197 | 2017-04-26T01:26:57 | 2017-04-26T01:26:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 564 | hpp | MarkerMesh.hpp | /*
* File: MarkerMesh.hpp
* Author: matheus
*
* Created on March 11, 2014, 2:52 PM
*/
#ifndef MARKERMESH_HPP
#define MARKERMESH_HPP
#include "Mesh.hpp"
namespace rendering {
class MarkerMesh : public Mesh {
public:
MarkerMesh();
MarkerMesh(const MarkerMesh& orig);
virtual ~Ma... |
b8b4b882de709d36e0be7d768d5100014b352a90 | ac432fd71944c0abd9dcfdfbce5ca60ba94bc5fb | /include/EdgeFilter.hpp | 6c5c2e5e506d856ff030f40fc0c552eefb744db0 | [] | no_license | massive-graphs/tfp-pa | c0d8e07422d5d5c6e9b107143719e1b0f9c89d8c | d9f349cbd8c92b237e29a35f311fe8f99118bd05 | refs/heads/master | 2021-09-07T20:05:08.922372 | 2018-02-28T09:44:14 | 2018-02-28T09:44:14 | 108,385,971 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,300 | hpp | EdgeFilter.hpp | /**
* @file
* @brief Filter self-loops and multi-edges in stream
* @author Manuel Penschuck
* @copyright
* 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... |
fc0bcb1b60fed2066e1646b7237a4b148afac635 | 297497957c531d81ba286bc91253fbbb78b4d8be | /gfx/skia/skia/src/sksl/ir/SkSLSwitchStatement.h | 6a3df4eb8d0664837945cd371af845a5c81b687b | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | C++ | false | false | 2,577 | h | SkSLSwitchStatement.h |
#ifndef SKSL_SWITCHSTATEMENT
#define SKSL_SWITCHSTATEMENT
#include "include/private/SkSLDefines.h"
#include "include/private/SkSLIRNode.h"
#include "include/private/SkSLStatement.h"
#include "include/sksl/SkSLPosition.h"
#include "src/sksl/ir/SkSLExpression.h"
#include <memory>
#include <string>
#include <util... |
94f3cbf727ebabe6f31138cf75df618ae0e3c3db | 407c1b989dbc94d18d3628953e1ed6d03a203835 | /pp1/fall 2019/week14/8.cpp | 1de348dba7740604dcf309c193d24fd4870f59f0 | [] | no_license | yerlandana/KBTU-FALL-2019 | bbc5072585646aaf98c44919ec830a59d18d441b | 3a463eeda49f3216bd0edbbe684855320f592e79 | refs/heads/master | 2022-03-18T11:07:39.737184 | 2019-12-03T14:18:08 | 2019-12-03T14:18:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 335 | cpp | 8.cpp | #include <iostream>
using namespace std;
struct myPoint{
int x;
int y;
myPoint(int x, int y){
this->x = x;
this->y = y;
}
};
int main(){
myPoint * p1 = new myPoint(1, 2);
myPoint p2(1, 2);
cout << p1->x << " " << p1->y << endl;
cout << p2.x << " " << p2.y << endl;
... |
d8a20d6a6301bf15f1f397aa9faa6eae8d248cc0 | a83378a11aa6b7f766374b50bd5082a2acb7ae54 | /ControlHelper/CComboBox.cpp | 5540053ead26c37a593338c4fd87b86b9d4bf5f2 | [] | no_license | Spritutu/Common | 5e21579fa767621b6d3e487bdd9f12209d8f0948 | 311e512d896f563a9353c743bb0878dafcca1b5b | refs/heads/master | 2022-12-25T16:36:40.449491 | 2020-09-27T09:48:18 | 2020-09-27T09:50:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,362 | cpp | CComboBox.cpp | #include <windows.h>
#include <commctrl.h>
#include <ControlHelper\CComboBox.h>
namespace WindowsWrapper
{
CComboBox::CComboBox()
{
}
CComboBox::~CComboBox()
{
}
int CComboBox::AddString( LPCSTR lpszString )
{
return (int)SendMessage( CB_ADDSTRING, 0, (LPARAM)GR::C... |
c31ff86f9935b7dc9780069cd7353152521306ef | 334558bf31b6a8fd3caaf09c24898ff331c7e2da | /GenieWindow/plugins/genie_module/src/uiframe/QGenieFrameMain.h | 60ab2254a6d808d0d1ef431a261542581bdb3740 | [] | no_license | roygaogit/Bigit_Genie | e38bac558e81d9966ec6efbdeef0a7e2592156a7 | 936a56154a5f933b1e9c049ee044d76ff1d6d4db | refs/heads/master | 2020-03-31T04:20:04.177461 | 2013-12-09T03:38:15 | 2013-12-09T03:38:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,540 | h | QGenieFrameMain.h | #ifndef QGENIEFRAMEMAIN_H
#define QGENIEFRAMEMAIN_H
class QGenieFrameMain;
#ifndef IN_STABLE_H
#include <QObject>
#include "Singleton.h"
#include <QFrame>
#include "ui_QGenieFrameMain.h"
#include <QSplashScreen>
#include "QGenieWatchDog.h"
#endif
#include "Singleton.h"
namespace Ui{
class QGenieFrameMain;
}
cla... |
e154b77c60c3c296c30e4e21d7491c3168f3d329 | d687f488e9149f837e2d1d01920c2c5c09772dd2 | /Algorithm/BubbleSorting.cpp | 33acea7436046015f3ddea1344de7971fd93e23a | [] | no_license | inchang0326/kic.github.com | 66d801dcdd3e048e7ba4564159941e73caf521ab | 1aacbc3e2a1bdf2b4c58dff2ff1f66fb53c47182 | refs/heads/master | 2021-01-19T09:37:07.500333 | 2017-07-27T10:57:42 | 2017-07-27T10:57:42 | 82,130,836 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 417 | cpp | BubbleSorting.cpp | #include <stdio.h>
void swap(int *number, int *number2);
void main(){
int i, j, cnt = 0;
int arr[10] = {9, 4, 3, 10, 5, 8, 7, 6, 2, 1};
for(i=0;i<9;i++){
cnt = 0;
for(j=0;j<9-i;j++){
if(arr[j] > arr[j+1]){
swap(&arr[j], &arr[j+1]);
cnt++;
}
}
if(cnt == 0) break;
}
for(i=0;i<10;i++)
pri... |
394a3cefa68ee3e20e98c381e1488e835955b768 | 12738258ba44956dc94bfd01d2735f51fbc189cc | /01_interview/03_datastruct_and_algorithm/06_BinarySearchTree/binarysearchtree.cpp | 1aed370396cc4867c8d7a83c47b77a7a546a355f | [] | no_license | zhuanghs-demo/ZHS-Notes | d0fb82eebd0b2ff89af4a04eae50290bde5c67be | 7593b506efa34b9af61e97956119c7eaf04a8e22 | refs/heads/master | 2023-07-18T02:20:37.333506 | 2021-08-29T16:16:43 | 2021-08-29T16:16:43 | 297,204,297 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 180 | cpp | binarysearchtree.cpp | /*
* @Descripttion:
* @version:
* @Company: SUNRI
* @Author: Allen zhuang
* @Date: 2020-11-28 16:32:50
* @LastEditors: Allen Zhuang
* @LastEditTime: 2020-11-28 16:32:50
*/
|
d7e492ad845e077bf5abfc5618b3bc61d0713fb8 | e732bd7e451dea33190f256d5fd9d2eccf33dd30 | /C++ Program/C program/dont know too.cpp | c5269db42cf4f462b34373d7e843843c2206e8c6 | [] | no_license | samreachyan/BKCodes | 4f9486ceb8a27db29cc3d8ac584cc233a17918bd | fa91a55d9ef7e48aeb3be3589040c7bd9be128b2 | refs/heads/master | 2023-02-17T22:46:07.287094 | 2021-01-12T04:59:45 | 2021-01-12T04:59:45 | 192,798,916 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 151 | cpp | dont know too.cpp | #include<stdio.h>
#include<stdbool.h>
void main()
{
int a;
scanf("%d",&a);
(a>=o)?
printf("%d",true): printf("%d",false);
getch();
}
|
8da6859e52e3ca03ad185991950b9892eec4f539 | 406b6f3e8355bcab9add96f3cff044823186fe37 | /src/Geometry/PointCloudLoader.cpp | d5ce6d20138ef358e97eca38b41adcec94386459 | [] | no_license | Micalson/puppet | 96fd02893f871c6bbe0abff235bf2b09f14fe5d9 | d51ed9ec2f2e4bf65dc5081a9d89d271cece28b5 | refs/heads/master | 2022-03-28T22:43:13.863185 | 2019-12-26T13:52:00 | 2019-12-26T13:52:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,298 | cpp | PointCloudLoader.cpp | #include "PointCloudLoader.h"
#include <fstream>
#include "PointCloud.h"
#include <map>
#include <vector>
#include <Windows.h>
namespace LauncaGeometry
{
PointCloudLoader::PointCloudLoader()
{
}
PointCloudLoader::~PointCloudLoader()
{
}
PointCloud* PointCloudLoader::LoadFromFileName(const wchar_t* file_name)... |
442276b66b6daf95c6d1ea034ccb2ea166da3e84 | 95a7795cb3d60e587a9b981ddb86f70d778d1069 | /SoftTimer/SoftTimer.hpp | f108eabcb0d344a92c243a571a7bb34b6ed6f21e | [] | no_license | tlouwers/embedded | 0728ce7ff5f53c2e3ee785eec498baef1854940b | 4c412bff186c0a0406250267bf28b7ae55e232e3 | refs/heads/master | 2021-06-10T02:38:01.381868 | 2021-06-04T07:24:31 | 2021-06-04T07:24:31 | 131,804,948 | 5 | 2 | null | 2021-02-23T07:10:34 | 2018-05-02T05:58:59 | C++ | UTF-8 | C++ | false | false | 2,545 | hpp | SoftTimer.hpp | /**
* \file SoftTimer.hpp
*
* \licence "THE BEER-WARE LICENSE" (Revision 42):
* <terry.louwers@fourtress.nl> wrote this file. As long as you retain
* this notice you can do whatever you want with this stuff. If we
* meet some day, and you think this stuff is worth it, you can buy me
... |
ded69956f9f7b88eba92272007a2e64f9ad7becf | 9ada6ca9bd5e669eb3e903f900bae306bf7fd75e | /case3/ddtFoam_Tutorial/0.001700000/Xi | 2a01d433994f94185eb8ecdb4aff8efd9a1650b4 | [] | no_license | ptroyen/DDT | a6c8747f3a924a7039b71c96ee7d4a1618ad4197 | 6e6ddc7937324b04b22fbfcf974f9c9ea24e48bf | refs/heads/master | 2020-05-24T15:04:39.786689 | 2018-01-28T21:36:40 | 2018-01-28T21:36:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 34,062 | Xi | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
... | |
f91cb1b5ff76c61d6c2065f1819e3d0c358e1c1e | 5671c626ee367c9aacb909cd76a06d2fadf941e2 | /frameworks/bridge/common/dom/dom_rating.h | 3208b10a1ec5354dc9d30e403f96e76b23ca6e42 | [
"Apache-2.0"
] | permissive | openharmony/ace_ace_engine | fa3f2abad9866bbb329524fb039fa89dd9517592 | c9be21d0e8cb9662d5f4f93184fdfdb538c9d4e1 | refs/heads/master | 2022-07-21T19:32:59.377634 | 2022-05-06T11:18:20 | 2022-05-06T11:18:20 | 400,083,641 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,165 | h | dom_rating.h | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
11521adab9e6528aeaf83841cb63a3867c91af4a | d3b57d0ae32ba5a96a598861c0b6157a7dbf2aee | /lc273/lc273/main.cpp | 093230fe3d2820388d8bebdae02eb1d2c544dd61 | [] | no_license | Magicdalonglong/algorithms | 3c806dd040aeea68f05f1059560edea28cfbc41d | 22eef2aaa2acc16c967f12be6b16c5fcf074f2be | refs/heads/master | 2021-01-19T14:58:57.717246 | 2017-07-05T16:03:13 | 2017-07-05T16:03:13 | 86,651,567 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,770 | cpp | main.cpp | //
// main.cpp
// lc273
//
// Created by Lei Duan on 2/24/17.
// Copyright © 2017 Lei Duan. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
string convert(int n){
switch( n){
case 0: return "Zero ";break;
case 1:... |
956e4afa37dc0c8b1dae68df54e05326e55a346a | d847c88ecd71ee1e6c54c195fcfcda3e6bb7cbcd | /ALDS1_4_B.cpp | f7d9ce48937e14369a299b571aae86e905f2ea1b | [] | no_license | wangbo-thu/AOJ | af83f739fcd50ed8005de25be174a28da412fb95 | 918e6a4a107310ec31bb05356933129822a4ab90 | refs/heads/master | 2021-09-02T06:53:14.596887 | 2017-12-31T07:11:45 | 2017-12-31T07:11:45 | 111,624,455 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 819 | cpp | ALDS1_4_B.cpp | // ALDS1_4_B.cpp
// Binary Search
#include <iostream>
#include <vector>
using namespace std;
int is_in(vector<int>& S, int t)
{
int lo = 0;
int hi = S.size();
int res = 0;
while (lo <= hi) {
int mid = lo + (hi - lo) / 2;
if (S[mid] == t) {
res = 1;
break;
... |
367d32e390d7cb3a99557f20917672cf22a1ac11 | 0c6f011c98a94a1b584e836fbfdd948078508c96 | /include/Kalkulator.hpp | 00b0218ec248dfe2d28a525fc98851b39436f4e9 | [
"MIT"
] | permissive | 5l1v3r1/Cvar1984 | bd5a5489d75d2d7a169e3904ef61993c368e9872 | ad1e9527db42e1dc930a9dcca702683753774565 | refs/heads/master | 2022-10-13T01:21:36.897145 | 2020-06-08T20:26:14 | 2020-06-08T20:26:14 | 274,548,811 | 1 | 0 | MIT | 2020-06-24T01:45:43 | 2020-06-24T01:45:42 | null | UTF-8 | C++ | false | false | 984 | hpp | Kalkulator.hpp | #ifndef KALKULATOR_HPP
#define KALKULATOR_HPP
#include <phpcpp.h>
using namespace Php;
class Kalkulator : public Base
{
public:
// constructor
Kalkulator() = default;
// destructor
virtual ~Kalkulator() = default;
// magic method
std::string __toString()
{
... |
4c51c4d31b096154ba34562b2564fd47283919f5 | cc6f5216f460f06bdc047fed39ac0e7cebd73cfa | /NTHU_OJ_Codes/7525_-_PF_-_Let’s_play_Igo.cpp | 61500b489c73681ab12ae18e195ae1a4725c6a51 | [] | no_license | henryyang42/C_CPP_Codes | e90d01b03f248c0fbac55542c3c39083ff8a6fe2 | 8d4a686f49f4d565427f68b46039ad5d5626dc38 | refs/heads/master | 2021-01-18T21:43:28.614381 | 2016-04-10T05:38:00 | 2016-04-10T05:38:00 | 16,172,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,677 | cpp | 7525_-_PF_-_Let’s_play_Igo.cpp | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
char map[1011][1011];
int B[1010][1010], W[1010][1010];
int findW(int xa, int ya, int xb, int yb){
return W[xb][yb] - W[xb][ya-1] - W[xa - 1][yb] + W[xa - 1][ya -1];
}
int findB(int xa, int ya, int xb, int yb){
return B[xb][yb] - B[xb][ya-1] - B[xa -... |
bdf15e8537936b50bbda09f4c948057f04a71e58 | a71582e89e84a4fae2595f034d06af6d8ad2d43a | /tensorflow/c/eager/c_api_experimental.cc | 2e825341dfeae7cb2276add9006cc58ecdcdfe2b | [
"Apache-2.0"
] | permissive | tfboyd/tensorflow | 5328b1cabb3e24cb9534480fe6a8d18c4beeffb8 | 865004e8aa9ba630864ecab18381354827efe217 | refs/heads/master | 2021-07-06T09:41:36.700837 | 2019-04-01T20:21:03 | 2019-04-01T20:26:09 | 91,494,603 | 3 | 0 | Apache-2.0 | 2018-07-17T22:45:10 | 2017-05-16T19:06:01 | C++ | UTF-8 | C++ | false | false | 3,410 | cc | c_api_experimental.cc | /* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
7a88c0e402656608c9d4dd11eee93284d26499c2 | d9967671c30d9e6215f47f769e47af1bf3fb2bf6 | /arcade/07_vetores/questoes/3_selection_sort.a.cpp | 0f6ef3eaa805487c7d880137ad05c402ab52746d | [] | no_license | senapk/arcade | 4b6af60e43d9132e8c0c063870786c806005eb00 | fcc6af8e9e3e260b64deafb728563a112fc44b6d | refs/heads/master | 2016-09-06T17:52:39.143242 | 2015-12-16T22:05:28 | 2015-12-16T22:05:28 | 24,432,199 | 0 | 0 | null | 2014-10-15T17:10:40 | 2014-09-24T20:51:47 | C++ | UTF-8 | C++ | false | false | 1,703 | cpp | 3_selection_sort.a.cpp | /////////////////////////////////////////////
// Fundamentos de Programação - UFC Quixada
// Baixe o motor.h ou comente o include
// motor.h: https://github.com/senapk/arcade
/////////////////////////////////////////////
//@autor Bruno Barreto;
#include <iostream>
#include <vector>
#include <motor.h>
using namespace s... |
588afbe1ee5740d73f22faa5f29bc5f5f7851a1a | 4065c8f9ea9b8dfa52cc029a7d3f3402c40638c6 | /DCMINT/NeroAPI/Include/NeroFileSystemManager/FileSystemBlockReaderInterface.h | 9fce710872d2053a4f7ca088eb2c759fd1bd028a | [] | no_license | yongdono/Panasee | 4fd5ffa048aa4d12e745464736b8811a08fb17d1 | cade89049e22c8866aa9f04dabbbb9388f3e99cd | refs/heads/master | 2021-08-31T11:22:04.899654 | 2017-12-21T03:51:56 | 2017-12-21T03:51:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,271 | h | FileSystemBlockReaderInterface.h | /******************************************************************************
|* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
|* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
|* PARTICULAR PURPOSE.
|*
|* Copy... |
f1075ad13df0ba79879f477807e160f5ab5ad2e0 | e6feb668c6dca60772c26a7c1f2cd830cc1bc495 | /Session 33 - Managing Data Files/Lab 1 - GenRandomWalkTXT/GenRandomWalkTXT/GenRandomWalkTXT.cpp | 7785bf4ed90d0338bf1fddd22cfde9ad073123ec | [] | no_license | isaacv-pl/Advanced-Scientific-Computing | 3516148166560907ae79a1e18d163ba8c1ea083d | 7ba10f66e046db5fbdc21d658f587d41216ddd26 | refs/heads/master | 2022-02-20T23:14:31.349629 | 2019-10-10T01:56:54 | 2019-10-10T01:56:54 | 214,059,559 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,087 | cpp | GenRandomWalkTXT.cpp | // GenRandomWalkTXT.cpp
#include "stdafx.h"
using namespace std;
int main()
{
TRandom* r = new TRandom(2016);
const unsigned int steps = 250;
const unsigned int walkers = 7;
struct Position {
double x{ 0 };
double y{ 0 };
double z{ 0 };
};
struct Path {
vector<Position> posit... |
1cfc5f9e90abf277daa73a3f74dc485a8f74a4d1 | 6c2587f705bbb8b719605ca4c4357fed12367ca8 | /aa/src/toolkit/string_splitter.h | 67bcd06e3ea8f32d11221b7f3e987cad6790fb90 | [] | no_license | woow1024/loginModule | d0879877423b246abe8971aaacd5c4a45c084df6 | 7ddb003718ca9ea047d52baa2e2e0a3dab88b5a7 | refs/heads/master | 2021-01-12T01:27:17.817747 | 2017-02-23T04:29:55 | 2017-02-23T04:29:55 | 78,387,530 | 0 | 0 | null | 2017-02-23T04:29:56 | 2017-01-09T02:43:43 | C | WINDOWS-1252 | C++ | false | false | 1,121 | h | string_splitter.h | #pragma once
#include <std_macro.h>
#include <map>
#include <string>
using namespace std;
DECLARE_VECTOR(std::string, STRINGVEC)
class string_splitter
{
public:
string_splitter(const char* split_char = NULL);
~string_splitter();
public:
void set_split_char(const char* split_char);
size_t split(const char* intput... |
c22a4ffb28b194ff70fbe216c670dbf9e55d0e2e | 25bb8a3422e7caebf7af8033976bb532ddc184b8 | /WaterUnit.h | 19b6de7fef4586831594da2e586ddf55d459de22 | [] | no_license | mattochal/SEED-Arduino_Self_Sustaining_Plant | 84df613b160b410b691abbdd387a34923863d75d | 27df54f624b88c7a7806317da14c18b2d7fd29cd | refs/heads/master | 2021-05-31T12:34:30.649250 | 2016-01-11T18:05:41 | 2016-01-11T18:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 586 | h | WaterUnit.h | #include <Servo.h>
#ifndef WATERUNIT_h
#define WATERUNIT_h
class WaterUnit
{
public:
WaterUnit();
~WaterUnit();
void setup(int PIN_soilResistor, int PIN_motor, int PIN_waterContainer);
void checkRespond();
bool isValveOpen;
void pulse();
bool containerEmpty();
int getWaterSaturat... |
7acb9f5ded3cbf8d9c4235da87398d06c2cfc11a | 17f6c821db03b40ab4cf7b36b56bcfc77a7961cb | /0573-Build Post Office II/0573-Build Post Office II.cpp | bf048448b81e71475e5a52643b328811c1f3f0ec | [
"MIT"
] | permissive | yinyinyin123/LintCode | 62868a57a33ebf3e2fba8bcb52c6cdc3ab467e9d | 43072b8b867946c7a1ce4938201397949399abb7 | refs/heads/master | 2021-08-19T05:57:48.221252 | 2017-11-24T22:22:42 | 2017-11-24T22:22:42 | 113,461,517 | 2 | 1 | null | 2017-12-07T14:36:25 | 2017-12-07T14:36:24 | null | UTF-8 | C++ | false | false | 2,320 | cpp | 0573-Build Post Office II.cpp | class Solution {
public:
/**
* @param grid a 2D grid
* @return an integer
*/
int shortestDistance(vector<vector<int>>& grid) {
// Write your code here
int m = grid.size();
if (m == 0) {
return -1;
}
int n = grid[0].size();
vecto... |
038f8225274309eace6a258704a5febdf156986c | 676f7a8aeb2c9b42254679ca642ded04d5bb9768 | /src/nk_gui.cpp | b7324938f2f737b3f380fc5813ecc9e2ccea81ad | [] | no_license | nzxth2/YGO_LOTD_LE_ScriptData_Packer | 5493beaf79fecb80b7cbec411bbb3765589e407d | 39493e239f61a8a8f5c68da95690cef9c8a8321d | refs/heads/master | 2021-05-22T21:18:48.134840 | 2020-04-04T21:31:09 | 2020-04-04T21:31:09 | 253,100,974 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,111 | cpp | nk_gui.cpp | #define NK_INCLUDE_FIXED_TYPES
#define NK_INCLUDE_STANDARD_IO
#define NK_INCLUDE_STANDARD_VARARGS
#define NK_INCLUDE_DEFAULT_ALLOCATOR
#define NK_IMPLEMENTATION
#define NK_GDI_IMPLEMENTATION
#include "nk_gui.h"
#include "nuklear/nuklear.h"
#include "nuklear/nuklear_gdi.h"
#include "window.h"
#include "filehandling.h"
... |
646d44f558b10e018173fc23a21e4b6aa690a262 | 7d235cb367acd54c7f3d2d6039248278b34ab5b4 | /main.cpp | 9ab312b428d7908ed06d08a310f0cb5ebe6b38fe | [] | no_license | Zekromanian/SGDE | f8680dbf8015eb3e6538a0f60a8fae7acfabccbd | 817caddcf8a2421fb9a77799f8e9204681ef7b33 | refs/heads/master | 2020-05-18T07:16:26.522818 | 2019-05-16T08:05:12 | 2019-05-16T08:05:12 | 184,259,643 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 362 | cpp | main.cpp | //Main File for Game
#include <iostream>
int PlayerInt = 0;
extern void game();
extern void printArray();
extern void clearArray();
int main(){
std::cout << "Cookie Presser" << std::endl;
std::cout << "Type 1 to play, or 0 to exit" << std::endl;
std::cin >> PlayerInt;
if(PlayerInt == 1){
ga... |
235d6780e8b5d9739f9a96ae06bf20d0afe38716 | 20e9b719168075ac9e60039e1e032ab065e2aab6 | /A5/NockDrawLoose/Main.cpp | 284ca7745b3efde5c9454b94575c702b8a161767 | [] | no_license | hckhilliam/NockDrawLoose | e045d164ea799a83bc84401b396d74314143db35 | 3a2c39e7ed41950f2064343de6bdfc6ebf2596de | refs/heads/master | 2021-08-07T12:00:07.959026 | 2017-11-08T05:10:33 | 2017-11-08T05:10:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 297 | cpp | Main.cpp | #include "NockDrawLoose.hpp"
#include <iostream>
using namespace std;
int main( int argc, char **argv )
{
std::string luaSceneFile("Assets/world.lua");
std::string title("Nock, Draw, Loose!");
CS488Window::launch(argc, argv, new NockDrawLoose(luaSceneFile), 1024, 768, title);
return 0;
}
|
274466f3920e2aaf6573a17fe4c60c4f283bcbc4 | fed5d16dd3166c7c5fc1c0fab37f9bb06b164c61 | /problem 29 Distinct absolute array elements.cpp | 65f394a5e20d6b30f23d6c2751eb2cf7ddd3026a | [] | no_license | sushmitasah/-100daysofcodingchallenge | 0f42a71900391bd549c7a32fb73069aaa7352a5f | 00c9ec509af5fe6473b42e131460ee2a8b9c446c | refs/heads/master | 2020-06-03T12:04:53.157692 | 2019-07-17T04:53:45 | 2019-07-17T04:53:45 | 191,561,575 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,352 | cpp | problem 29 Distinct absolute array elements.cpp |
Problem:-
//Count the number of distinct absolute values from a sorted array containing N integers. An absolute value of a number is | a | ( positive ) value of it.
//
//
//Input
//The first line of input contains an integer T denoting the number of test cases. Then T test cases
//follow.
//The first line of each ... |
ad65797d43a8b4aa034f86dbb531769abf3019c6 | 36c8cf395214abaad868ec06bd97bf418733b1b0 | /test/unit-tests/cli/autocreate_array_command_mock.h | 907c7fe2bdbf4edeaeb8b7bc1f57468c3b6d8d22 | [
"BSD-3-Clause"
] | permissive | south-potato/poseidonos | 69435ecb2dd80c1eb702f36501156705b1908111 | 35c5bbd392a261d257f1ead3e8be7c3f44c5831a | refs/heads/main | 2023-08-12T13:31:32.495095 | 2021-09-30T09:59:22 | 2021-10-05T02:27:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 381 | h | autocreate_array_command_mock.h | #include <gmock/gmock.h>
#include <string>
#include <list>
#include <vector>
#include "src/cli/autocreate_array_command.h"
namespace pos_cli
{
class MockCreateNumaAwaredArrayCommand : public AutocreateArrayCommand
{
public:
using AutocreateArrayCommand::AutocreateArrayCommand;
MOCK_METHOD(string, Execute, (jso... |
49e6b3c4a4e080cfa45032f56779ad0c3ccc3ddc | 91f676ba0d2850b52cec871a2bebe555b4bfe4c3 | /lab4-src/RPC.cc | dedae56c2719c77acf299776287f82ad8f0d73d1 | [] | no_license | saruberoz/cs354 | 3df857a783b91ba27d32c3899a2941ac97c391f0 | 067287ab1f69f9836e53e272ad0a9fb643547631 | refs/heads/master | 2016-09-05T10:44:30.397731 | 2012-11-14T07:01:53 | 2012-11-14T07:01:53 | 6,555,758 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,717 | cc | RPC.cc | //
// CS354: Implementaiton of the interprocess RPC
//
#include "RPC.h"
#include <sys/mman.h>
#include <pthread.h>
#include <thread.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <assert.h> // for later checking safety memory management
RPCServer::RPCServ... |
1ce6f9096fa190197947e42f922cbdc965178b9d | c42c758e0ebc59297b83c538cd66a4aea6582675 | /countdown.ino | 71eb4a860de50d5e7cef100320eb4b491cb2186f | [] | no_license | jhuh3226/Line-Of-Light-Game | aeadd18c5d391fa457e8bd0b097b965f7fa672fa | f4167c21e8558e8e2a1dc5dc8fe705a4f84d675e | refs/heads/master | 2022-01-22T16:45:11.494429 | 2019-07-03T08:00:10 | 2019-07-03T08:00:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,462 | ino | countdown.ino | /*count down 3 times before each game starts. blink white for 3 times & spread the light*/
//int gradualLed = 110;
void countdown()
{
if (countdownStart == true)
{
//-------------------------------------------------------------------------------------------------------------------------
/*blink once*/
... |
12f1143518893fe20cadafacda39fd329ae5be67 | a98166ac231906a5c507ee59973280407afdfb2b | /2304/Komarov/lab_1/labirint/include/labirint/labirint.h | 78a2a0dfa0e0b95703978a2435b49e295546748b | [] | no_license | art32fil/ros_2017 | cd3a21cd3082ae67014045b0ba5d6cc20dffb4fa | 4e925592b8f0fe8de220f5bbd5530888c9cf9ab6 | refs/heads/master | 2021-09-04T05:09:06.571703 | 2017-12-25T06:10:18 | 2017-12-25T06:10:18 | 104,728,918 | 4 | 32 | null | 2021-01-24T08:14:52 | 2017-09-25T09:19:43 | CMake | UTF-8 | C++ | false | false | 3,019 | h | labirint.h | #include <iostream>
#include <cstdlib>
class Labirint{
private:
int statex_, statey_;
static const int N = 15;
static char a[][N];
void drawState();
void finish();
public:
Labirint();
bool goLeft();
bool goUp();
bool goDown();
bool goRight();
void cheeterWin();
};
char Lab... |
3179629d2787a530ceab67ccd6bd2beb380d6d6e | 598fcb098af368fe6abafa01b47143e9b62c70a9 | /simu_world/kernels/user.cpp | 543a182372e365beed4e0d865c70ca9fb8ba2832 | [] | no_license | asdfvar/projekt | a04e076401295e63f7ca8cb7c3a99440a4cebf5b | 1bf3fe7ec22e351a069e34fae2cad041242e6873 | refs/heads/master | 2021-04-18T23:14:36.694161 | 2020-06-06T23:04:29 | 2020-06-06T23:04:29 | 37,008,482 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,747 | cpp | user.cpp | #include "user.h"
#include "linalg.h"
#include <iostream>
#include <cmath>
#include <GL/glut.h>
#include <GL/glu.h>
#include <GL/gl.h>
User::User( void )
{
/*
** User positional attributes
*/
position[0] = 0.0f;
position[1] = 0.0f;
position[2] = 0.0f;
direction[0] = 1.0f;
direction[1] = 0.0f;... |
4284d1d1566409a2613744c9eb0e936677f312ee | c780613156a50b2af64cfd8066b45afb349eea6a | /src/network/tcp_server.hpp | 987cad2290e4dbbbd4062ce5e040c073420f50ef | [] | no_license | xeonye/Oton | 9d6081f8407164d229c816341d448459a6958f8c | c855dacde57c9cc85658252394ce09e52597d694 | refs/heads/master | 2020-03-19T05:00:00.876987 | 2018-06-02T18:52:16 | 2018-06-02T18:52:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 701 | hpp | tcp_server.hpp | #pragma once
#include <boost/asio.hpp>
#include <set>
#include "protocol/parser.hpp"
#include "tcp_connection.hpp"
#include "client.hpp"
#include "../server/movie_layer.hpp"
using boost::asio::ip::tcp;
class tcp_server
{
public:
tcp_server(boost::asio::io_context&, std::function<void(tcp::socket&)>, unique_ptr<mo... |
cb5abcf21b302913cf78a560e3555f0bffce6a19 | 432c936567fba89cf29c2401797fec1e36ac9f63 | /L/src2/verify_Func.cpp | 4b4e215f79f7c847fc377518b4446541316e6fd1 | [] | no_license | Dedsec-Xu/SmartExchangeCppImplementation | 9f12a6c7b09aec79876e05e622c9d5d4b20f7c25 | 4490d2bf509c63de3dfa2f9c86d9a27d2748e546 | refs/heads/master | 2020-07-12T09:58:06.179417 | 2019-09-20T16:11:53 | 2019-09-20T16:11:53 | 204,779,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,092 | cpp | verify_Func.cpp | #include "fpga_module.h"
#include "resnet18_model.h"
//#include "train_noSE.h"
#include <iostream>
#include <cmath>
using namespace std;
void verify_func(){
//void main() {
float input[3][3][3] = { {{2,5,6},{3,8,9},{4,7,5}},
{{7,5,2},{1,9,1},{3,7,5}},
{{2,2,4},{3,3,6},{4,4,8}}
... |
f2b4a5e72ec9122f58ebebbcc5824285be673260 | a5084b61cf3449eda4fadf2f2842ec03ba722a85 | /main.cpp | 4bcc4375a8a37a75b415450171514ac117d65722 | [] | no_license | mayarabd/general-tree | e00434cdfd809cee05277c11b57a739ac256f500 | ab8111ae44cfc03e5bedf36aef569fe908cc686c | refs/heads/master | 2021-06-14T08:46:05.050039 | 2017-04-05T05:35:06 | 2017-04-05T05:35:06 | 87,268,676 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,057 | cpp | main.cpp | #include "GeneralTree.h"
#include <iostream>
#include <sstream>
using namespace std;
/****************************************************
* name: Mayara Brandao Dusheyko
* ID: 915 730 756
* email: mbrandao@sfsu.edu
* Compile: xcode
* Description: Test for General Tree
*******************************************... |
81adfd35f67f7b3cda1fd34469a3ad5a4de00e6b | d89f38086d84808de3a01e5502602dcbfc3254de | /digi/SceneConvert/writeForMC.cpp | bb0c962af23c5315ec76cd2a967bc89d5d30286f | [] | no_license | Jochen0x90h/Digi | 1c9250b86d8b3a49724e62c2a624d25e141f5aff | 7cbb876ebaa5ef58417e9c6d99fdd44ebb041ad0 | refs/heads/master | 2021-01-20T08:44:05.229736 | 2017-06-27T21:29:46 | 2017-06-27T21:29:46 | 90,188,188 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 36,315 | cpp | writeForMC.cpp | #include <llvm/LLVMContext.h>
#include <llvm/Module.h>
#include <llvm/Assembly/PrintModulePass.h> // createPrintModulePass
#include <llvm/Support/IRBuilder.h>
#include <llvm/Support/TypeBuilder.h>
#include <llvm/Support/FormattedStream.h>
#include <llvm/Support/Host.h>
#include <llvm/Target/TargetData.h>
... |
0a07007f31d63081faa7678f3b45abea3445f585 | 4e7fd452fd30c2436fc5a6249d63b56a8bf324a1 | /SWE_1_Vorlage/myCode/simulation/CSimulator.cpp | 9339c9e4421833847418d8ec903ed124635790df | [] | no_license | Dunganh98/ElevatorSystem | 3e6837dcc84dd824bd36e9f9bd00489ad80d3430 | dceb46d8747091cf4c13729900161210a567a862 | refs/heads/master | 2023-07-15T06:19:02.661791 | 2021-08-29T20:21:13 | 2021-08-29T20:21:13 | 349,353,939 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,865 | cpp | CSimulator.cpp | /** \file CSimulator.cpp
* \brief CSimulator class source file.
* \details Enthaelt die Implementierung der Klasse CSimulator.
* \author Reimund
* \date 2016
*/
#include "CSimulator.h"
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <sstream>
#include "../elevatorSystem/CElevatorSys... |
51312a88a3f7cc6d0e12822743d6e30d105fbdc5 | 7a876d5e6d055491d06b65e3f8ffb7626e0aef99 | /2020-week12/c++/2020-week12_6.cpp | c2e58c035c747b97ec4da4dcfa98b20357b1b152 | [] | no_license | sewonkimm/AlgorithmStudy | 3f172c453b9bf149dd89bdb2678bca17a5534c95 | 1478b696ea7b9bd2b63f930817a656976af00ae5 | refs/heads/master | 2021-07-17T19:42:46.915886 | 2020-09-02T06:59:09 | 2020-09-02T06:59:09 | 205,660,994 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 777 | cpp | 2020-week12_6.cpp | #include <iostream>
#include <vector>
#include <string>
using namespace std;
int main()
{
int n;
cin >> n;
vector<string> str;
for (int i = 0; i < n; i++)
{
string s;
cin >> s;
str.push_back(s);
}
string answer = "";
int index = 0;
whi... |
d4284951f72e6c304f302a710ac4d8ad16867543 | 0d0acc34eb7c0c1f22548bc915ccc491e4a7dbf1 | /src/modtypes/basemodule.h | b9eb7bdf6de5a1e8d6c5f550ac435b47a56e5a08 | [
"MIT"
] | permissive | ElementalAlchemist/RoBoBo | 142b96361701427a52e086a071e31bdc4315441c | 692ed6b80ece37f7dd1bc31467eb89b517bb9d17 | refs/heads/master | 2021-01-19T07:06:47.774503 | 2013-12-11T03:36:31 | 2013-12-11T03:36:31 | 328,093 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,612 | h | basemodule.h | #pragma once
#include "../main.h"
class ClientModule;
class ServerModule;
class ModuleManager;
class ServerManager;
class SocketManager;
class Socket;
class Module {
public:
Module(const std::string& name) : moduleName(name) {}
virtual ~Module() {}
void loadManagerPointer(ModuleManager* mm, ServerManager* sm, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.