blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 264 | content_id stringlengths 40 40 | detected_licenses listlengths 0 85 | license_type stringclasses 2
values | repo_name stringlengths 5 140 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 986
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 3.89k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 145
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 3 10.4M | extension stringclasses 122
values | content stringlengths 3 10.4M | authors listlengths 1 1 | author_id stringlengths 0 158 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f56b529edef65917640a2ec907dbef1f9f1e1cb9 | e543133fe2ba1a497b120367acdc557d5896a070 | /Qt/2/03_qpainter/mainwindow.h | d48a16a120a612d3c728cf3ae0832daef46671d3 | [
"MIT"
] | permissive | tuyentm101/Embedded-Qt-Tutorial | 9434ec4d838e0eaa75a4467b1b4c4d19c703d671 | 3c75142235b4d39c22e1ad56a5bd92d08c1a0d42 | refs/heads/master | 2023-06-28T20:27:00.729197 | 2021-07-28T07:05:06 | 2021-07-28T07:05:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 927 | h | /******************************************************************
Copyright © Deng Zhimao Co., Ltd. 1990-2021. All rights reserved.
* @projectName 03_qpainter
* @brief mainwindow.h
* @author Deng Zhimao
* @email 1252699831@qq.com
* @net www.openedv.com
* @date 2021-03-29
**... | [
"1252699831@qq.com"
] | 1252699831@qq.com |
4f19cd423d38469d6625b544fa46b6c2d0f7e11a | b172bfa2f4affa1847f1dfb2e85ef506ec422efa | /searchGui/mainwindow.h | 7ef831d058640dc89df8217821db6028f534514e | [] | no_license | prtamil/QT-based-Inverted-Index | e871e141b6ce8200d9d2f6657f496841613e0e51 | 58dc9203c6684ea4e64789cd77d0d5954fe49a92 | refs/heads/master | 2016-09-06T11:12:37.576266 | 2012-04-06T19:58:57 | 2012-04-06T19:58:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 441 | h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QStringList>
#include <QString>
#include <QFile>
#include <QTextStream>
#include <QDebug>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~... | [
"prtamil@gmail.com"
] | prtamil@gmail.com |
a88a2cf348965f7f24ab7cafa920205afb5e75ed | 2d614e2adf7850da3929bbc5548f287e3aab670b | /src/objects/cpp/wall.cpp | d4d88a32aec7735b8914e402b966794d10a964c3 | [] | no_license | caronnee/peva | 7d432d47a8f5ac63b3ec30c7cf5418bc266c2aa2 | 0a0db8f3e0f27a64e93aad36321ab65521179b73 | refs/heads/master | 2020-04-25T15:03:24.673926 | 2010-08-16T10:35:25 | 2010-08-16T10:35:25 | 32,673,961 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,614 | cpp | #include <iostream>
#include "../h/wall.h"
Wall::Wall(Skin * s, List * abyss):Object(s,abyss)
{
name = "Wall";
objectSaveId = SaveWall;
type = Wall_;
attack = 10;
movement.angle = 0;
movement.direction = Position (0,0);
movement.position_in_map.x = 0;
movement.position_in_map.y = 0;
movement.steps = 0;
}
void... | [
"caronnee@11875ef8-eda2-11dd-ada0-abde575de245"
] | caronnee@11875ef8-eda2-11dd-ada0-abde575de245 |
dfb4033268ffe26bf515093be67d57ec0237e88c | c10d4e7e1afb599ba348f1fa4216894925f3aa87 | /CC/Deserialize-serialize.cpp | 4ca75093abdf16dbc528599dd4678d17ec4c469e | [] | no_license | divyanshasharma/Data-Structures | dd1832a4c892213a8fc852b9d29f874475c1a65e | c3e888b9a7b20858fbb3400fc823cbce56ae7e73 | refs/heads/main | 2023-08-24T16:38:37.740914 | 2021-10-18T16:53:02 | 2021-10-18T16:53:02 | 325,808,995 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,899 | cpp | //https://practice.geeksforgeeks.org/problems/serialize-and-deserialize-a-binary-tree/1/?company[]=Accolite&company[]=Accolite&page=1&query=company[]Accolitepage1company[]Accolite#
class Solution
{
public:
//Function to serialize a tree and return a list containing nodes of tree.
vector<int> serialize(... | [
"noreply@github.com"
] | divyanshasharma.noreply@github.com |
77b5b5c4769337bba2bfdfc75cfbb5d4b64f77bc | 4c7d0acead0c7a8ce031d59fa835070c74f98307 | /c++/manager/Manager.cpp | edd29125a0652510524b0521969d3743f565d5e8 | [] | no_license | tones31/snips | bfaa147600754136c40507d2039d3cccc24500e3 | 6ad74934418c9338ed7caec658e17e3c34547020 | refs/heads/master | 2021-01-19T13:49:14.037340 | 2017-10-27T03:49:22 | 2017-10-27T03:49:22 | 82,419,437 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 905 | cpp | #include <iostream>
#include <vector>
using namespace std;
class Player{
public:
Player(string name);
string name;
};
Player::Player(string name){
this->name = name;
}
class Manager {
public:
~Manager();
vector<Player*> players;
void AddPlayer(Player* player);
... | [
"anthagostino@gmail.com"
] | anthagostino@gmail.com |
add34fed0365a1780f7823b4d9b15d6c09289de2 | f2c7c3d7f17ea892dea10a0546dc1c5e12ed23d9 | /P1_2021_II_PII_XAMB/P1_2021_II_PII.cpp | cd4a92e7232cd79c19299b8984bb6443f2a82edc | [] | no_license | xiomaramaradiaga/Investigacion1_PII_II | 79d7ecbe8cdb4298f7f5354cd416b72148743af2 | c1d0c787796426eca8d83642b3efdcce6b1dc09a | refs/heads/master | 2023-06-08T18:38:42.235512 | 2021-07-01T05:24:57 | 2021-07-01T05:24:57 | 381,919,321 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 1,977 | cpp | #include <iostream>
using namespace std;
int main() {
double producto1 = 2.98;
double producto2 = 4.50;
double producto3 = 9.98;
double producto4 = 4.49;
double producto5 = 6.87;
double venta = 0;
double PFINAL = 0;
int comprado = 0;
while (comprado < 5) {
cout << "Almacen La Antorcha" << endl;
cout << "Q... | [
"maral@DESKTOP-E87S5QA"
] | maral@DESKTOP-E87S5QA |
17cc5b2a3e8a9559140366fb9d2957045df53c7c | 65aaba4d24cfbddb05acc0b0ad814632e3b52837 | /src/osrm.net/libosrm/osrm-deps/boost/include/boost-1_62/boost/iostreams/filter/symmetric.hpp | 8584dee1233d815ba19af228a294a7f495d5e73d | [
"MIT"
] | permissive | tstaa/osrmnet | 3599eb01383ee99dc6207ad39eda13a245e7764f | 891e66e0d91e76ee571f69ef52536c1153f91b10 | refs/heads/master | 2021-01-21T07:03:22.508378 | 2017-02-26T04:59:50 | 2017-02-26T04:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 130 | hpp | version https://git-lfs.github.com/spec/v1
oid sha256:c15e88a8df3fbd2d9313495e6961dd3ac08aadadd6dd484ea026d960c3a5f575
size 11074
| [
"ssuluh@yahoo.com"
] | ssuluh@yahoo.com |
91e3d43afdb85402e23870068e8395c9d9724c08 | 5fb8eab0b5dd99e2a5945e2f71f293f39864bdab | /4-1-e2-b.cpp | fc7c19d135453921f875d3681c45536dbf018082 | [] | no_license | JohnTsangCN/CCF_FIRST | cf565ae04d59fad39b03bc2aa01bef0624aa4ccf | 009fb70efd6dcb5680cb6156e731b6fa9eb3452f | refs/heads/master | 2023-07-07T07:56:48.811228 | 2021-08-08T14:27:08 | 2021-08-08T14:27:08 | 260,654,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 182 | cpp | #include<iostream>
using namespace std;
int main()
{
int i,sum1,sum2;
sum1=0;
sum2=0;
for(i=1;i<=10;i++)
{
sum1+=i;
sum2+=sum1;
}
cout<<"S="<<sum2<<endl;
return 0;
}
| [
"1368362869@qq.com"
] | 1368362869@qq.com |
73a2c339c6b28e4978a830b1b0e7486e4520d85b | 6681efa51744a3365567a226c4ae6907da349c8a | /include/marnav/units/units.hpp | 08e792f47f00681ede3283fa8fb86e8a101ea0f6 | [
"BSD-3-Clause",
"BSD-4-Clause"
] | permissive | nohal/marnav | efec79b12cb15a649dbdfaf271887a9b3d090ff3 | f23b3db472a7a39289657e5e37d9457f31c0a886 | refs/heads/master | 2023-05-26T06:16:18.423935 | 2022-10-23T20:29:14 | 2022-10-23T20:29:14 | 39,360,748 | 0 | 0 | null | 2015-07-20T03:15:44 | 2015-07-20T03:15:44 | null | UTF-8 | C++ | false | false | 7,316 | hpp | #ifndef MARNAV_UNITS_UNITS_HPP
#define MARNAV_UNITS_UNITS_HPP
#include "detail/dimension.hpp"
#include "detail/basic_unit.hpp"
#include "detail/basic_unit_ops.hpp"
#include "detail/basic_unit_cmp.hpp"
#include "detail/basic_unit_fnc.hpp"
#include "detail/basic_quantity.hpp"
#include "detail/basic_quantity_ops.hpp"
#in... | [
"mario.konrad@gmx.net"
] | mario.konrad@gmx.net |
e8f2cef7477fe83ab10f328384a0f392923bab50 | ee70656d4ce93d7b2a6c124b19f429564db96d7e | /FactoryMethod/src/TetrahedralCellCreator.cpp | 8e2d2b8b0f2ca399b3f8047d426eb11ad4894fac | [
"MIT"
] | permissive | guillaumetousignant/euler3D | e119174d8d2cb2fd59efa849bf231ef55598f1c3 | 7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae | refs/heads/master | 2020-04-19T20:09:28.194461 | 2019-04-16T13:35:54 | 2019-04-16T13:35:54 | 168,407,723 | 2 | 0 | MIT | 2019-03-29T15:02:06 | 2019-01-30T20:08:44 | C++ | UTF-8 | C++ | false | false | 484 | cpp | #ifndef FACTORYMETHOD_SRC_TETRAHEDRALCELLCREATOR_CPP
#define FACTORYMETHOD_SRC_TETRAHEDRALCELLCREATOR_CPP
#include "TetrahedralCellCreator.h"
Cell* TetrahedralCellCreator::createCell()
{
Cell* new_cell;
new_cell = new Cell;
// new_cell -> cell_2_cells_connectivity_ = new int[4];
// new_cell -> cell_2_faces_conn... | [
"helene.papillon-laroche@polymtl.ca"
] | helene.papillon-laroche@polymtl.ca |
e680c1809d28ddb45dd21abb8ec4b9053435ccaf | 64ba2b77091c05be531ba828ec309686f9988f3b | /c++/Graphene modelling/graphene_beam.cpp | bc762fbf480ae7d711c59d9b98e8c5fcf34772ee | [
"MIT"
] | permissive | robmarkcole/Useful-python | 0f718ea5f200a646b807047c5ca83081b4705f6d | 3be6169e35dc66d3e8af07d440a6895ed2455c1c | refs/heads/master | 2023-07-20T08:30:52.332756 | 2023-07-16T07:52:07 | 2023-07-16T07:52:07 | 107,223,253 | 75 | 35 | MIT | 2023-07-16T07:52:08 | 2017-10-17T05:45:32 | Jupyter Notebook | UTF-8 | C++ | false | false | 277 | cpp | #include <iostream>
#include "constants.h"
#include <cmath>
using namespace std;
int main() {
//double Grap_beam_mass = 0.5*3*1.1*7.4e-19;
//cout << Grap_beam_mass << endl;
//double Grap_sheet_mass = 0.25*pi*11*11*7.4e-19;
//cout << Grap_sheet_mass << endl;
return 0;
} | [
"robmarkcole@gmail.com"
] | robmarkcole@gmail.com |
32bdbd8b3d778929e0151b5d2186a9f37aa18eab | d0af57bda9ffa5863c8b22dfa1d0f6634b0e4e90 | /arduino/gyro_arduino.ino | 1fed2f4f82d20a67dc203601d6e511099fa72333 | [] | no_license | twstokes/arduino-gyrocube | 3873708e2cdf31c716d004586bb0cbd779f13f65 | 9879db186e957cdfe8d33840978cdf48469c062b | refs/heads/master | 2021-01-20T00:58:16.405156 | 2015-01-06T19:37:42 | 2015-01-06T19:37:42 | 28,871,796 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,747 | ino | #include <Wire.h>
#define CTRL_REG1 0x20
#define CTRL_REG2 0x21
#define CTRL_REG3 0x22
#define CTRL_REG4 0x23
int Addr = 105; // I2C address of gyro
int x, y, z;
void setup(){
Wire.begin();
Serial.begin(115200);
writeI2C(CTRL_REG1, 0x1F); // Turn on all axes, disable power down
writeI2C(CT... | [
"tanner@tannr.com"
] | tanner@tannr.com |
0fef13fe6ad27d0615dbeccd42d15258d7cf3165 | 09e6d23ecb0882e065fc219ba015a509fb08cbfe | /partie3/src/Environment/OrganicEntity.hpp | 50c2bab4d14b47135d55f26ef9f97084a2bba694 | [] | no_license | leapistorius/Project_BA2 | ee3b83c44804e95ff4369197d0acc666f38b4137 | e3e151c3a922c3e90648c6238b5278ae3783e4f1 | refs/heads/master | 2020-12-14T23:47:54.473444 | 2020-01-19T14:47:57 | 2020-01-19T14:47:57 | 234,914,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,833 | hpp | #ifndef ORGANIC_ENTITY_H
#define ORGANIC_ENTITY_H
#include <iostream>
#include <Obstacle/CircularCollider.hpp>
#include <SFML/Graphics.hpp>
#include <Interface/Updatable.hpp>
class Gerbil;
class Scorpion;
class Food;
class OrganicEntity : public CircularCollider, public Updatable
{
public:
//constructeur et d... | [
"lea.pistorius@gmail.com"
] | lea.pistorius@gmail.com |
997e93ec47f32bc131ba18336a5b52bfd9e15ced | a4c5086ad9c837087a810db4e7394e679e9b9c86 | /scintilla/lexlib/LexerUtils.h | cf76832274836ef15a9a817d4b4d1c9ee062f7e7 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"LicenseRef-scancode-scintilla",
"MIT"
] | permissive | dream1986/notepad2 | e5acb413acd4c7519032092c93b5d5475d1a6b39 | d3feae88dc7a3d17819a3062cf65b9b056dce988 | refs/heads/master | 2021-05-20T16:39:24.572903 | 2020-04-02T04:33:36 | 2020-04-02T04:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,462 | h | #pragma once
namespace Scintilla {
// TODO: change packed line state to NestedStateStack (convert lexer to class).
template<int bitCount, int maxStateCount, int PackState(int state) noexcept>
inline int PackLineState(const std::vector<int>& states) {
int lineState = 0;
int count = 0;
size_t index = states.size();... | [
"zufuliu@gmail.com"
] | zufuliu@gmail.com |
789490f95293b488b3f079d688c5a7a7edcae9b8 | 40c39538c4b2134ffbed37422802df810a879347 | /OOP3_prog/controller.cpp | 020a806338663ced1cacbc02dc098c0869f112f7 | [] | no_license | seregeu/Custom-VIM-lab-MVC | 501531a0117668baf8a320666cff5a5d09ba5068 | 6f96732f5741f06ca5c9f88a7cb5d838a60a0e51 | refs/heads/master | 2023-02-04T16:54:54.987244 | 2020-12-14T20:35:37 | 2020-12-14T20:35:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 251 | cpp | #include "vim_like.h"
//here controller
Controller::Controller(VimModel* c_model) {
model = c_model;
}
void Controller::SendLet(const int letter) {
model->SendC(letter);
}
void Controller::UpScrollFlag(bool value) {
model->SetScrlFlag(value);
}
| [
"58789025+seregeu@users.noreply.github.com"
] | 58789025+seregeu@users.noreply.github.com |
1997d4d962d57c8c01fddd98f0bceeacea09fc5e | 538dedb27657e204cb642eaffa056c55ec620c26 | /Library/other/knapsack_expcore.cc | df251e8308462c5a29907cea22d69796183ee658 | [] | no_license | sahil-rajput/Algorithm-Implementation | 04849f95aab80a9e94d59ac86fb2ae589e67eabb | 8ee835539c8dba5c6eaa6459b563e18190d480b0 | refs/heads/master | 2022-03-05T18:39:34.099859 | 2019-10-31T04:59:02 | 2019-10-31T04:59:02 | 110,713,278 | 4 | 1 | null | 2019-10-31T04:59:04 | 2017-11-14T16:08:50 | C++ | UTF-8 | C++ | false | false | 2,721 | cc | //
// Knapsack Problem (branch-and-bound with expanding core)
//
// Description:
// We are given a set of items with profit p_i and weight w_i.
// The problem is to find a subset of items that maximizes
// the total profit under the total weight less than some capacity c.
//
// 1) c is small ==> capacity DP... | [
"noreply@github.com"
] | sahil-rajput.noreply@github.com |
7538ade1efd0c9ed445a413844b7a080155dedb8 | 72e51eaf7ff10abd36b9fb81aa16aaac0953a882 | /prj.objed/objedcheck/src/objedcheck.cpp | 3f641a976c930c0d01a292d8c04fc57bc6b99c86 | [
"BSD-2-Clause"
] | permissive | usilinsergey/objed | 8f4fe614d8ecfe66f091e8b58996d2a3959f3262 | a5d0c82382a6546d5d4c649f153eec94c4ade0ee | refs/heads/master | 2020-06-01T12:09:28.075259 | 2017-04-07T17:00:41 | 2017-04-07T17:00:41 | 32,329,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,358 | cpp | /*
Copyright (c) 2011-2013, Sergey Usilin. All rights reserved.
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 l... | [
"usilin.sergey@gmail.com"
] | usilin.sergey@gmail.com |
888fdcaa2758dbc0a9337dd10762779769d274d8 | 050c8a810d34fe125aecae582f9adfd0625356c6 | /scc/level6.cpp | 0ca08c5403fa0e2952f5c6bd1b0a9dd13d953e1b | [] | no_license | georgerapeanu/c-sources | adff7a268121ae8c314e846726267109ba1c62e6 | af95d3ce726325dcd18b3d94fe99969006b8e138 | refs/heads/master | 2022-12-24T22:57:39.526205 | 2022-12-21T16:05:01 | 2022-12-21T16:05:01 | 144,864,608 | 11 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,791 | cpp | #include <bits/stdc++.h>
#include <chrono>
using namespace std;
mt19937 gen(0);
struct user_t{
int id;
int rating;
user_t(){
id = 0;
rating = 0;
}
bool operator < (const user_t &other)const {
if(this->rating != other.rating){
return this->rating > other.ratin... | [
"alexandrurapeanu@yahoo.com"
] | alexandrurapeanu@yahoo.com |
816aa86ad957f14efb05f6bbed85bd5c31386e4c | c34a4bb67fb50f1e8225715aced4f7b30df190f8 | /DYNAMIC PROGRAMMNIG/k_palindrome.cpp | 311d673613fe5a6eb25e6ff5ef4a2dbc277bf28e | [] | no_license | NarenMadham/Problem-Solving-Using-Data-Structures-and-Algorithms | cbf3a74e1a64ecda0ab12636f0130c3c8bb0c1cb | 53ca7d30d24f26f3ba85ba2d8e8e368490f86574 | refs/heads/master | 2020-09-14T15:00:51.574525 | 2019-12-09T13:40:32 | 2019-12-09T13:40:32 | 223,162,879 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 687 | cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
int n, k;
cin>>n>>k;
string a;
cin>>a;
int dp[n][n];
memset(dp, 0, sizeof(dp));
for(int i=0;i<n;i++){
dp[i][i] = 1;
}
for(int l=2;l<=n;l++){
for(int i=0;i... | [
"noreply@github.com"
] | NarenMadham.noreply@github.com |
5e894cae9e8d3c452f6afdde5a046d8862f370fa | 526cf99ff47dfd23ac712985e3335a91b9a53ba5 | /Workspace/CF/Edu/round_84/C.cpp | 6491adaba3d841f37cc91bd61150c887bf501e9b | [] | no_license | Nuwaisir-1998/CP-Algorithms | 561b6bafa5691c11ea8b4cedfbce7631304fad14 | cb026085bfa8f1bc1d9306b8fc682abdd81647c1 | refs/heads/master | 2023-08-04T11:20:35.649570 | 2022-01-02T04:40:30 | 2022-01-02T04:40:30 | 219,820,736 | 2 | 2 | null | 2023-08-16T10:56:38 | 2019-11-05T18:14:51 | C++ | UTF-8 | C++ | false | false | 2,664 | cpp | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/numeric>
using namespace std;
using namespace __gnu_pbds;
using namespace __gnu_cxx;
#define ordered_set tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update>
typedef long... | [
"1605091@ugrad.cse.buet.ac.bd"
] | 1605091@ugrad.cse.buet.ac.bd |
967759a38733759b5e84883665c5a29ddc6894e1 | c4e4b570b1a91495a89c939e876dcd38c7b6247f | /include/core/input/inputconstants.h | facae1b629668283598bbc7f12c8ee5d57025ed7 | [
"Apache-2.0"
] | permissive | texel-sensei/eversim | 5392bc1f4bd5443a2bd8c25e44725acb84af5705 | 187262756186add9ee8583cbaa1d3ef9e6d0aa53 | refs/heads/master | 2021-06-01T10:21:27.586634 | 2020-09-08T15:10:38 | 2020-09-08T15:16:12 | 96,086,158 | 0 | 0 | Apache-2.0 | 2020-09-08T15:16:13 | 2017-07-03T08:07:25 | C++ | UTF-8 | C++ | false | false | 613 | h | #pragma once
#include "enum.h"
/*
* Enums for every possible action in every context
*/
namespace eversim { namespace core { namespace input {
namespace InputConstants
{
BETTER_ENUM(button, uint8_t,
CONFIRM = 0,
BACK,
JUMP,
DOUBLEJUMP,
MENU,
FART_LEFT,
FART_RIGHT,
DLEFT,
DRIGHT,
... | [
"lukasac@gmx.de"
] | lukasac@gmx.de |
3f3c0761add48b14bd87f5d091f07088e78ea97e | 4f4ddc396fa1dfc874780895ca9b8ee4f7714222 | /src/xtp/Source/Calendar/XTPCalendarWeekViewDay.cpp | 275e32ffc40191f1831b4cc0fe03e60079b1b977 | [] | no_license | UtsavChokshiCNU/GenSym-Test2 | 3214145186d032a6b5a7486003cef40787786ba0 | a48c806df56297019cfcb22862dd64609fdd8711 | refs/heads/master | 2021-01-23T23:14:03.559378 | 2017-09-09T14:20:09 | 2017-09-09T14:20:09 | 102,960,203 | 3 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 7,375 | cpp | // XTPCalendarMonthViewDay.cpp: implementation of the CXTPCalendarMonthViewDay class.
//
// This file is a part of the XTREME CALENDAR MFC class library.
// (c)1998-2011 Codejock Software, All Rights Reserved.
//
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
// RE-DISTRIBUTED BY ANY ME... | [
"utsavchokshi@Utsavs-MacBook-Pro.local"
] | utsavchokshi@Utsavs-MacBook-Pro.local |
a037eaf26c7c72b3d04e2c595c39d96f6e8f35d5 | 47fd8318f7b68077bfd9db789a17598e53b6fa0c | /tools/pythonpkg/src/include/duckdb_python/vector_conversion.hpp | e4d68a313ffb427482e5a55fca05d58ae9277f5d | [
"MIT"
] | permissive | feiyunwill/duckdb | b14e67aad6161ae47e4eddf12e0e1f15f9a11ce4 | 57640e5c04fd0748532451b24e2001f1e17ac011 | refs/heads/master | 2023-04-16T04:34:06.565932 | 2021-05-02T11:31:02 | 2021-05-02T11:31:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,143 | hpp | //===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb_python/array_wrapper.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb_python/pybind_wrapper.hpp"
#include "duckdb.hpp... | [
"hannes@muehleisen.org"
] | hannes@muehleisen.org |
7cfcb093cb312b354ed500f91e0b11d56e0fb64f | 2afaf7baff452dc15d6c3e2ba91bf3464516c09f | /rgbSerialInput/rgbSerialInput.ino | 10aa749f0e4708aa290a04322daf4f6e6af06593 | [
"MIT"
] | permissive | jatib/LabElectronica | 2c97a5aff0042b7261676ab34b1538ce85a68570 | defcf085365acd76382c91f4d8ae37d8c8476bb5 | refs/heads/master | 2021-05-03T11:06:41.753882 | 2018-06-15T21:38:29 | 2018-06-15T21:38:29 | 120,545,168 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 583 | ino | int Rojo = 8;
int Verde = 9;
int Azul = 10;
void setup() {
pinMode(Rojo, OUTPUT);
pinMode(Verde, OUTPUT);
pinMode(Azul, OUTPUT);
}
void EstablecerColor(int R, int G, int B) {
analogWrite(Rojo, 255 - R);
analogWrite(Verde, 255 - G);
analogWrite(Azul, 255 - B);
}
void loop() {
//Se representan color... | [
"neuromante@laptowski"
] | neuromante@laptowski |
f4703d25f335d40ec742aa18ad84f2508e033701 | ab67fec3691d6160cadd440b28c294b4d3725c68 | /TrojanDownloader/CERTUTIL_DownLoader/CERTUTIL_DownLoader_MSF.ino | 7f2680cc53999f5cfad46675e2d52073ce58bd9e | [
"BSD-3-Clause"
] | permissive | joeperry8080/BadUSB | d805039a728018feb69d63fa1858f5cdc018a123 | 11f55ac48357acb737ab1204f671cbfe3dfa45b1 | refs/heads/master | 2023-07-02T18:39:57.521600 | 2021-05-29T12:21:01 | 2021-05-29T12:21:01 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,003 | ino | #include<Keyboard.h>
void setup()
{
Keyboard.begin();//开始键盘通信
delay(4000);//延时1000毫秒,不要太短,因为每天电脑的运行速度都不一样
Keyboard.press(KEY_CAPS_LOCK); //按下大写键 这里我们最好这样写 不然大多数电脑在中文输入的情况下就会出现问题
Keyboard.release(KEY_CAPS_LOCK); //释放大写键
delay(500);
Keyboard.press(KEY_LEFT_GUI);//按下徽标键 也就是win键
delay(500);
Keyboard.press('... | [
"wwy201718@163.com"
] | wwy201718@163.com |
8f1c3636c985a69f4b9e3f34b623af56a7417cae | 7d5074e124e8144c57c136b1e1ad6ab94304017a | /src/gameplay/elements/shipsystems/item.hpp | 13a75ac9d720e2e800e9480497755a82035b7bc7 | [] | no_license | Thanduriel/wimp_s | 3ced5abf3b989ce1752713a3d12107123a086a15 | adb27d2777c6a98bd19370379ea9dc672613e7cc | refs/heads/master | 2021-06-26T06:37:38.877709 | 2020-07-06T16:57:33 | 2020-07-06T16:57:33 | 90,191,659 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,963 | hpp | #pragma once
#include <string>
#include <array>
#include "utils/color.hpp"
namespace Generators {
class WeaponGenerator;
class ShieldGenerator;
}
namespace Game {
class Ship;
class Item
{
public:
enum struct Quality : int
{
Basic,
Advanced,
Premium,
Unique,
COUNT
};
enum struct Icon :... | [
"rojendersie@alice.de"
] | rojendersie@alice.de |
256383ac210efc4f7e42245ed556bb23118cf461 | 314d970a256a37d677779ecb641e8690c467caf7 | /bwt/WaveletTree.hpp | f26554347455c247c84fdf2f8caa1a1607b31147 | [] | no_license | adrien-gide/Duplifinder | 59df98488da8a57d94d932753c678f947c5ce9f6 | 7e6c0c6c0708cc1b5998c942caf738c94906cef1 | refs/heads/master | 2020-05-25T09:28:47.362625 | 2019-08-16T08:25:27 | 2019-08-16T08:25:27 | 187,736,738 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 668 | hpp | /**
*
* WaveletTree.hpp
* Created by Adrien Gide on 2019/08/08.
*/
#ifndef WVLT_TREE
#define WVLT_TREE
#pragma once
#include <iostream>
#include <utility>
#include <map>
#include "Node.hpp"
class Node;
class WaveletTree
{
friend class Node;
public:
typedef std::map<std::pair<int,int>, Node* > map_node;
... | [
"adrien.gide@outlook.com"
] | adrien.gide@outlook.com |
b48617c136f2121dd6ac166a19283f9520aff441 | 7a69cafbdac6ba04c588617c3357b8ce493ab5fb | /include/Score.h | 549f959793aec6c3d42213d89129dca52935d607 | [] | no_license | india-avans/Workshop | 1143162a66b4d2c1a46c0bb989bb7909a6f304ae | a1e4f732ddaf977e8ac3f8307ac4d497240aa346 | refs/heads/master | 2023-01-28T11:20:21.261612 | 2020-12-09T23:20:59 | 2020-12-09T23:20:59 | 319,920,753 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 311 | h | #pragma once
#include <GuiObject.h>
class Score : public India::GuiObject {
public:
Score();
void DrawComponent(const India::Graphics2D& g) const noexcept override;
void Reset();
void SetScore(int score);
int GetScore();
private:
void DrawScore(const India::Graphics2D& g) const noexcept;
int _score;
}; | [
"stijn.wolf@home.nl"
] | stijn.wolf@home.nl |
5ea2dfece7422afed706635d6c0d5c2a59158482 | 6eaf169908c510bbdeccf644165039137d8140be | /frontend/menu/StyleMenu.h | 1af0950872d32cbaa0a12841ee1d88ce88ad3479 | [] | no_license | Indidev/headcooker | 77ca646634ff56f0911230588dd498e463bb4666 | 40221be7df5f310177aae77c63849a412be619c4 | refs/heads/master | 2020-05-30T07:22:24.419509 | 2016-03-31T20:18:53 | 2016-03-31T20:18:53 | 40,899,920 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 516 | h | #ifndef STYLEMENU_H
#define STYLEMENU_H
#include <QPushButton>
#include <QScrollBar>
#include <QPixmap>
#include <QBitmap>
#include "MenuWidget.h"
#include <QWidget>
#include "backend/Options.h"
#include "backend/Util.h"
namespace Ui {
class StyleMenu;
}
class StyleMenu : public MenuWidget
{
Q_OBJECT
public:
... | [
"dominik@dominik-muth.de"
] | dominik@dominik-muth.de |
d65530f642a0d1c2c7e53be03cefc1c3610c5541 | 5b62da67ead3b0cd158e5ddd36ec8ec479845cc0 | /fdbservice/ThreadPool.h | f5fb3282b616699004d99cb255f3525467ca7ddb | [
"Apache-2.0"
] | permissive | dropbox/foundationdb | 6e754cc2a2d884698af7077769b3dc0df91b6892 | 4d3950903474e2a56f764c36f8159b77740279a2 | refs/heads/master | 2020-03-29T10:20:06.523983 | 2018-09-18T22:01:26 | 2018-09-18T22:01:26 | 149,799,982 | 4 | 2 | Apache-2.0 | 2018-10-22T16:05:26 | 2018-09-21T18:04:39 | C++ | UTF-8 | C++ | false | false | 2,290 | h | /****************************** Module Header ******************************\
* Module Name: ThreadPool.h
* Project: CppWindowsService
* Copyright (c) Microsoft Corporation.
*
* The class was designed by Kenny Kerr. It provides the ability to queue
* simple member functions of a class to the Windows thread pool... | [
"fdbteam@apple.com"
] | fdbteam@apple.com |
a6312aaf4574d80cfe7ed1f5f37fee724b530f73 | 693cf59ef36944bdb6315a5326d374c2dd73548a | /framework/net-tcpserver/tests/TcpServerTest/main.cpp | feab7c845fe18e0d15aae79efbae77e8dce4cc16 | [
"MIT"
] | permissive | pj520/samples | 9daf5738d26280e63dbd7b1c92e08c86b9949f7f | be2fd3401030e3e75e135cc6f4b829c9e1a1f635 | refs/heads/master | 2020-04-03T19:01:41.228298 | 2019-02-27T14:07:33 | 2019-02-27T14:07:33 | 155,506,977 | 0 | 0 | MIT | 2018-10-31T06:02:54 | 2018-10-31T06:02:54 | null | UTF-8 | C++ | false | false | 4,260 | cpp | /*************************************************************************
> File Name: main.cpp
> Author:
> Mail:
> Created Time: 2016年02月03日 星期三 15时06分27秒
************************************************************************/
#include <assert.h>
#include <iostream>
#include "TcpServerWrapper.h"
#include "P... | [
"787280310@qq.com"
] | 787280310@qq.com |
81160647391f47ce16fa8bd8d18a16123b14e721 | 98819d62d5b7e901975bb01b34b38dbc3cb2f422 | /src/553_Optimal_Division.cpp | a36c8d42dec0653bf538ef6a3121354d8cbf8650 | [] | no_license | Liuyi-Wang/LeetCode | 78666c34dd6de9fbed611fb7a53fb522fe823b7c | c4f86881cab16b09eafcad0745b59b334dae2ae5 | refs/heads/master | 2022-02-04T03:29:29.606869 | 2022-02-01T00:52:43 | 2022-02-01T00:52:43 | 196,485,970 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 615 | cpp | static int __ = []() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
std::cout.tie(nullptr);
return 0;
}();
class Solution {
public:
string optimalDivision(vector<int>& nums) {
if (1 == nums.size()) {
return to_string(nums[0]);
}
if (2 == nums.size()) {
... | [
"wangliuy@umich.edu"
] | wangliuy@umich.edu |
f9e50f6570278715603ed266fd5290ff9112aa7e | 2505dfa86d88ee449c20ebc92f3343f28cef585c | /PhysicalNumberDemo.cpp | 37165c8f8d3fa0d69389dcd587f9ddb57d847b8f | [] | no_license | aricRach/PhysicalNumber | 568efd03ef84ba1cf7338f31cb6ff88c59c890ad | c6ca96aa1ecbe009efd700b1b511c70d0fd9c666 | refs/heads/master | 2020-05-05T11:49:57.734568 | 2019-07-17T14:20:39 | 2019-07-17T14:20:39 | 180,005,605 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,621 | cpp | /**
* Examples of automatic tests for the exercise on physical numbers.
*
* @author Erel Segal-Halevi
* @since 2019-02
*/
#include <iostream>
#include <sstream>
//using std::cout, std::endl, std::istringstream;
using namespace std;
#include "PhysicalNumber.h"
using ariel::PhysicalNumber;
using ariel::Unit;
#inclu... | [
"noreply@github.com"
] | aricRach.noreply@github.com |
27ad3843f59b8bc193a471ab6f273493adb4b02f | 3b7509bac0c6ddd178b15f21ea923e6843e28c8f | /20/8/a.cpp | 3fd4588d6804a8efcf1ee389e0262f77b6157e57 | [] | no_license | NamikoToriyama/AtCoder | 4de7069cfef9acb66e03a4c10f6265eacfce0554 | 2782e07ed87cbc6172c9be954378b9b2c2eb6192 | refs/heads/master | 2022-10-24T16:02:26.294098 | 2020-06-09T16:54:42 | 2020-06-09T16:54:42 | 189,328,384 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 543 | cpp | #include <stdio.h>
#include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <queue>
#include <map>
//#include <bits/stdc++.h>
using namespace std;
#define print(x) cout<<(x)<<endl
#define prints(x, y) cout<<(x)<<" "<<(y)<<endl
#define rep(i, n) for(int i... | [
"g1720529@is.ocha.ac.jp"
] | g1720529@is.ocha.ac.jp |
726f7bb941dc9fcd271ad506b8d03d6b70fa3ab6 | 3daaefb69e57941b3dee2a616f62121a3939455a | /mgllib/src/3d/MglProjectionMatrixManager.h | e4c3eff1f77922769f3f0926d50b79ee6234b4d7 | [] | no_license | myun2ext/open-mgl-legacy | 21ccadab8b1569af8fc7e58cf494aaaceee32f1e | 8faf07bad37a742f7174b454700066d53a384eae | refs/heads/master | 2016-09-06T11:41:14.108963 | 2009-12-28T12:06:58 | 2009-12-28T12:06:58 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,575 | h | ///////////////////////////////////////////////////////////////////////
//
// MglProjectionMatrixManager
//
///////////////////////////////////////////////////////////////////////
#ifndef __MglProjectionMatrixManager_H__
#define __MglProjectionMatrixManager_H__
#include "MglGraphicManager.h"
#define _MGL3... | [
"myun2@6d62ff88-fa28-0410-b5a4-834eb811a934"
] | myun2@6d62ff88-fa28-0410-b5a4-834eb811a934 |
b54a6283ae1309c260a538798c5c809c436977b5 | d6cf7e3a1a58fd3185e2619419f6aa66e8e9a9da | /3.6.6 Cyclic process. Sequences of random numbers/23/main.cpp | a044dac4365e3ccd56220d7d9f41645b0b8ac3d3 | [] | no_license | Nkeyka/Qt-Creator-Cpp-Book | 6ba92cdb0eda0b844c83815266756c7e18d285e1 | dcbfaf86bd0ece7c0e5642e03ab5796e2a68c916 | refs/heads/main | 2023-02-23T08:52:16.902547 | 2021-02-02T05:21:36 | 2021-02-02T05:21:36 | 319,847,831 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 330 | cpp | #include <iostream>
using namespace std;
int main()
{
int sum = 0, sum2 = 0, temp;
int N;
cout << "N = ";
cin >> N;
for (int i = 0; i < N; i++) {
cin >> temp;
if (temp > 0) sum += temp;
else sum2 += temp;
}
cout << "+" << sum << " " << sum2;
retu... | [
"nkeyka@gmail.com"
] | nkeyka@gmail.com |
b59b81609445eb3344c37d30724207ea88943423 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/angle/src/compiler/translator/ConstantUnion.h | eec0f0ff97dced38cd38006387df5978ac644acd | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | C++ | false | false | 3,502 | h | //
// Copyright (c) 2002-2014 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
#ifndef COMPILER_TRANSLATOR_CONSTANTUNION_H_
#define COMPILER_TRANSLATOR_CONSTANTUNION_H_
#include <assert.h>
#include "compiler/tra... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
47ba21338ea554f48c58437190563f414987ee49 | bf0e0ca8d71c453c506176ab40b343297ce77fc8 | /venus/include/venus/Dump.h | 189c5680b3309954f07be09573e18cf4b7e4aa14 | [
"MIT"
] | permissive | vihariswamy/cerl | 59ad9cebcf5443e0487160c47423cd4a872bf82e | 02b75ab9daf19f63294b7c078a73753328e2984b | refs/heads/master | 2022-12-26T04:09:22.807492 | 2020-10-01T10:57:40 | 2020-10-01T10:57:40 | 300,246,396 | 0 | 0 | MIT | 2020-10-01T10:57:07 | 2020-10-01T10:57:06 | null | UTF-8 | C++ | false | false | 3,710 | h | /* -------------------------------------------------------------------------
// Venus: A High Performance async server framework
//
// Module: venus/Dump.h
// Creator: Xihe Yu
// Email: krzycube@gmail.com
// Date: 2009-12-08 19:41:58
//
// $Id: Dump.h 2419 2010-04-08 14:00:42Z scm $
// -------------------------------... | [
"xushiweizh@gmail.com"
] | xushiweizh@gmail.com |
dc3f03cccb917dd7f50443a8fde83ffd3542e2d3 | 690ad75e99f8c713bdf8c3d243cc69326ecfba6c | /include/ecto/schedulers/multithreaded.hpp | 3b6c816c37d8b8c33a63443ed964d40730684b65 | [] | no_license | ethanrublee/ecto | aa51235b3fc3e6e6f319dad5bbd051b0898e0160 | 1d38993e97a81b4cbb9dea371e762acd850eaa1c | refs/heads/master | 2021-01-17T10:24:19.380597 | 2012-01-01T19:01:53 | 2012-01-01T19:01:53 | 1,470,418 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,556 | hpp | /*
* Copyright (c) 2011, Willow Garage, 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this l... | [
"straszheim@willowgarage.com"
] | straszheim@willowgarage.com |
9e18ee1e55faf4bbef030f53868a2e12c228b336 | 032064ca629aa84e6ef831e707da7adae5a3c2a0 | /backjoon/io/10951.cpp | f7889f35f36a4c16f9bc218c3c836088fea7c47b | [] | no_license | skfo763/Problem_Solving | 6a53fbb2fa2a575e10401460638231bebb109057 | cdad27b493e941d7938f29baf88ceaae4cbffb87 | refs/heads/master | 2021-08-07T05:29:09.968394 | 2021-07-12T02:37:30 | 2021-07-12T02:37:30 | 205,546,650 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 174 | cpp | #include <iostream>
using namespace std;
int main(void) {
int A, B;
while (scanf("%d %d", &A, &B) != EOF) {
cout << A + B << '\n';
}
return 0;
}
| [
"scy7351@naver.com"
] | scy7351@naver.com |
93766a33b40a32d7017ccc9332750b05d18d0d26 | aaf86162b5f90e5d3358d9629a84a5af8feaf14b | /Hdu/水题/1038 Biker's Trip Odometer/main.cpp | bf68ca1ef6d71743302af0ed91bf07653fcf38a3 | [] | no_license | Linsenx/AcmCodes | ffbd5b5b634a693d9d5e8af680dfc8657085f2e1 | 08f6c708c9b47a3e8234dc2f9d2534344c0597c5 | refs/heads/master | 2021-09-14T11:57:43.707852 | 2018-05-13T06:04:00 | 2018-05-13T06:04:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 439 | cpp | #include <bits/stdc++.h>
#define pi 3.1415927
#define rate (12*5280);
using namespace std;
int r, kase;
float d, t, dis, speed;
int main()
{
ios::sync_with_stdio(false);
#ifdef ONLINE_JUDGE
#else
freopen("in.txt","r",stdin);
#endif
while (cin >> d >> r >> t && r != 0) {
dis = (2 * pi * (d / 2) * ... | [
"1279707779@qq.com"
] | 1279707779@qq.com |
25c9a27ff318672465c7f0b2f3ec2de9e49649ca | e875f8bffca3d6031151a99640857f76be70a142 | /Wforsyth/Source Code/Arduino Code/Ardunio_Uno_Fourier_Transform/Ardunio_Uno_Fourier_Transform.ino | 8151b9afb7c397fb5371ec0492df6cd76472ab9d | [] | no_license | shade34321/CS_6045 | 26621237e27e56b70a39521edb59fe4fa6d1c42b | 03f82fb01fc9f2805226d757fdddafbdab0cd47e | refs/heads/master | 2020-05-20T19:51:18.761813 | 2017-04-13T22:26:46 | 2017-04-13T22:26:46 | 84,515,843 | 0 | 1 | null | 2017-04-13T22:26:47 | 2017-03-10T03:35:43 | C | UTF-8 | C++ | false | false | 6,070 | ino | #define SIN_2PI_16 0.38268343236508978
#define SIN_4PI_16 0.707106781186547460
#define SIN_6PI_16 0.923879532511286740
#define C_P_S_2PI_16 1.30656296487637660
#define C_M_S_2PI_16 0.54119610014619690
#define C_P_S_6PI_16 1.3065629648763766
#define C_M_S_6PI_16 -0.54119610014619690
/* INPUT: float input[16], float out... | [
"bill@Bills-MacBook-Pro.local"
] | bill@Bills-MacBook-Pro.local |
e25fdb0743d747d2512b9af8f4d26f295fbab4bc | 84643d000f9dd1e39c5c008b490b09a8956c0f02 | /purenessscopeserver/PurenessScopeServer/Message/LoadModule.h | a698923fb802ba30ec09474fc116bed8a496bbbb | [] | no_license | rover13/purenessscopeserver | 9b7d3329a5f81c0c335e6942ff4877c0bb2f4fd8 | b7255639dd94ea6b796e6537d3260c426bea1236 | refs/heads/master | 2020-05-19T17:03:45.461934 | 2015-02-19T03:08:28 | 2015-02-19T03:08:28 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,472 | h | #ifndef _LOADMODULE_H
#define _LOADMODULE_H
#include "ace/Date_Time.h"
#include "ace/Thread_Mutex.h"
#include "ace/Singleton.h"
#include "ace/OS_NS_dlfcn.h"
#include "MapTemplate.h"
#include "IObject.h"
#include <string>
#include <vector>
using namespace std;
struct _ModuleInfo
{
string ... | [
"freeeyes1226@gmail.com@f49f508c-0c2f-bbd7-3b2f-f17ad4634cb1"
] | freeeyes1226@gmail.com@f49f508c-0c2f-bbd7-3b2f-f17ad4634cb1 |
73ff84e7e626b964182832a9727a350d3eaeec7b | ecb324fb1afc5aeb6af1268021d7b56c71070e51 | /ACM俱乐部/大二下学期训练/5.2 热身赛7/L Mixtape Management(构造).cpp | 4eaa64e7837dca4f7556366b94f8cd6be64d9820 | [] | no_license | WULEI7/WULEI7 | 937d74340eae8aed4256be9c1978ead5eba718e0 | d3fd49bd0463f15bf325a13f5c80aa7ca6c89f9f | refs/heads/master | 2023-04-15T09:52:05.428521 | 2023-04-07T10:40:35 | 2023-04-07T10:40:35 | 239,913,141 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 285 | cpp | #include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int n,t;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>t;
cout<<1;//不能有前导零
if(t<10)
cout<<0;
cout<<i;//控制字典序
while(t--)
cout<<0;//控制大小顺序
cout<<" ";
}
return 0;
}
| [
"1119346121@qq.com"
] | 1119346121@qq.com |
22f62e420564edd31540ccce087a641b217ea290 | dd5e094e3b4ca0481a6c2b365dc74d663d17acf4 | /rectangle_minus.cpp | 8458da1800a2c9cc5f90008bd713a5f6baa536c1 | [] | no_license | 1sunshine1/20170915 | 8230e7c02cf7ee94b53b0d6669de83a3a5ade809 | eaae721c6e58f0c524db2162f526412cfb8d98a0 | refs/heads/master | 2021-09-03T16:24:13.907156 | 2018-01-10T11:36:11 | 2018-01-10T11:36:11 | 103,609,602 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 274 | cpp | int sum;
for (i = 0; i < m; ++i) {
for (j = 0; j < m; ++j) {
sum = 0;
for (k = 0; k < n; ++k) {
sum += matrix_a[i][k] * matrix_b[k][j];
}
printf("%d", sum);
| [
"noreply@github.com"
] | 1sunshine1.noreply@github.com |
ac16f169dd7c3744a5acb0067c67395ffc2883fe | 8e449c972657790aae39ea36e1377a686158eba2 | /ChatScript/src/patternSystem.cpp | b347e50731923f81bd720d461a78d672be5ac2dd | [
"Apache-2.0",
"MIT"
] | permissive | amardomingo/lsin-bot | b25ff2430df5882dc96c809aac90fbc763a5764a | 07a966090da2ae3e9b7cab85864378905381c833 | refs/heads/master | 2021-01-15T15:23:03.212552 | 2014-05-21T19:18:07 | 2014-05-21T19:18:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,203 | cpp | // patternSystem.cpp - performs pattern matching of rules
#include "common.h"
unsigned int positionStart;
unsigned int positionEnd;
unsigned int lastwordIndex;
static int defaultRange = 2;
#define MAX_PAREN_NEST 50
#define INFINITE_MATCH (unsigned int)(-(200 << 8))
static char* ptrStack[MAX_PAREN_NEST];
static int ... | [
"javiherrera@outlook.com"
] | javiherrera@outlook.com |
6f6947b52d264c61f14145b499b97662377fe9cc | 93b9224eb919d55785dad1bce649f35b85747ca8 | /modules/route.h | 2c9ffc65e624321b957f94089a4c7a3e56497477 | [] | no_license | piharpi/shiny-winner | 17604a9b081d57490429aa274ab991fec5ce592d | 79b628a1b0fb592f25a679002e19016344f4a991 | refs/heads/master | 2020-06-17T11:09:32.967852 | 2019-07-21T03:58:21 | 2019-07-21T03:58:21 | 195,906,575 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 565 | h | namespace Route
{
// Mengisi data vector dari file coffees.csv
void initialize(void);
// fungsi untuk mengarahkan menu
void Barista(void);
void Cashier(void);
void Customer(void);
// fungsi untuk customer
void order(void);
void show_coffees(void);
void search_coffees(void);
// fungsi untuk ba... | [
"justharpi@gmail.com"
] | justharpi@gmail.com |
05a4a8ad1f7cc8b76a30054d8a1c8f42227da3c1 | 18872f8a224a4f5ee076fbfee451ac35bee00e46 | /.svn/pristine/8d/8d6a5f5c8737b7f28ad1b2299f28a8a364ebee7c.svn-base | e8fd96d4ab67605a37a8c98e235935827fb9363d | [] | no_license | chinabin/SVN_QPDianDianShiGuang | 80c8f7f5996c32ee52691d6b2d57a40aed82c567 | 0249c213d8b91f5289ee2fd3ec8947fedb8b8a4b | refs/heads/master | 2021-01-02T07:01:49.713188 | 2018-06-22T08:40:59 | 2018-06-22T08:40:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 682 | #ifndef _GATE_MANAGER_H_
#define _GATE_MANAGER_H_
#include "LBase.h"
#include "User.h"
#include "LSingleton.h"
class UserManager :public LSingleton<UserManager>
{
public:
virtual bool Init();
virtual bool Final();
void Tick();
User* GetUserByGateIdGateUserId(Lint gateId, Llong gateUserId);
User* GetUserbyData... | [
"Administrator@PC-201805071800"
] | Administrator@PC-201805071800 | |
739aa5b6f8f00f74736664abde9a9a59db336db3 | 847602d467ba3a89b4a03b4aa1a5603f53b4206b | /projection/main.cpp | e5231360e473644f88456dafd82a249160705cb7 | [] | no_license | MiloSi/OpenGL_Study | 7caec42a5ee3ed37480ac5e49f20fe337dc2a677 | 8b242e7f0a6d88f10b9f7888da5daf5d9f6335b0 | refs/heads/master | 2021-01-23T10:29:45.709003 | 2017-07-08T14:47:15 | 2017-07-08T14:47:15 | 93,065,959 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 581 | cpp | #pragma once
#include "projection.h"
int main(int argc, char** argv) {
glutInit(&argc, (char**)argv);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
glutInitWindowSize(500, 500);
glutCreateWindow("ROTATE CUBE");
glutIdleFunc(reDisplay);
glutMouseFunc(mouseHandler);
glutMotionFunc(mo... | [
"noreply@github.com"
] | MiloSi.noreply@github.com |
84dcebb90fea1d0fbc9fcd66ca767ff6a348c7f2 | a5392bca8a2728980b7d2c42b846da1508c05634 | /barkingdog/09_dp/1149.cpp | 01d9e9e82dbe81611cceaae9f86cfb1592b095fd | [] | no_license | shin0park/Algorithm-Problems | 7d3a79054d4a10eadf38ef45910720eb14044689 | b8d9364e0ef5c8dc8bd197fd272f08e07b375225 | refs/heads/master | 2022-12-30T12:46:29.701349 | 2020-10-15T09:34:09 | 2020-10-15T09:34:09 | 288,099,317 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 797 | cpp | //1149번 RGB거리
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
const int MAX = 1001;
int n;
int d[MAX][3];
struct price
{
int r, g, b;
};
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
vector<price> s;
cin >> n;
int r, g, b;
s.push_back({0, 0, 0});
for ... | [
"qkrtlsdud428@gmail.com"
] | qkrtlsdud428@gmail.com |
bc63789e325a7369869a232e0bd472f8204ed3e9 | 8f000d2faef7eba48613d93395f70e1be63f76f8 | /.emacs.d/snippets/text-mode/cc-mode/c++-mode/class.cpp | af349196ed53b0b5ac3f816c00301e007b114922 | [] | no_license | dieonar/config | de40b22de2edecded3b7e464a612dc06ebeffc90 | 9643b4df71c2ec347b2248152e70d5255c7c646a | refs/heads/master | 2020-06-03T20:23:42.696034 | 2015-05-10T17:47:15 | 2015-05-10T17:47:15 | 26,487,216 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398 | cpp | #name : class init cpp
# --
${1:`(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))`}::${1:className}($2)
{
${3:init}
}
${1:className}::${1:className}(const ${1:className} &old)
{
${4:copy}
}
${1:className} &${1:className}::operator=(const ${1:className} &old)
{
${4:copy}
... | [
"jimmy.king@epitech.eu"
] | jimmy.king@epitech.eu |
925da345009cc2e50d925d8e84a54d25abbce9c4 | 648c333276d682abb7675fc555ee2297b9bd58e3 | /Animal.h | 1891c49451a05bc64fb73ec033229c6da732ff9a | [] | no_license | ppitu/WolfSheep | 5096006a20ebe9af87d301ed7f5a1fed89291a0c | 1dff7ef6027a05ae5ffe4fc6ea1ee056f094b0db | refs/heads/master | 2022-12-01T00:17:05.559347 | 2020-08-05T20:48:07 | 2020-08-05T20:48:07 | 284,419,124 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 414 | h | #pragma once
#include <iostream>
#include <string>
#include <random>
#include <iterator>
class Animal
{
public:
Animal() = default;
Animal(int* map, int _size, std::string _name);
virtual int move(int *map, int _size);
unsigned int drawUInt(int first, int last);
unsigned int getPosition();
bool checkIfEaten(i... | [
"piotr.chmura.1998@o2.pl"
] | piotr.chmura.1998@o2.pl |
1c4436a15f5c60879266d5f7f86f1bb3bb212f80 | fdb963647dc9317947943874a51f58c1240f994c | /project/Framework/Transition/BaseTransitionMask.cpp | d90579116f1b4a2d333d836474f6b1cf76912309 | [
"MIT"
] | permissive | SomeTake/HF21MisotenH206 | 0f2e5e92a71ef4c89b43c4ebd8d3a0bf632f03b4 | 821d8d4ec8b40c236ac6b0e6e7ba5f89c06b950d | refs/heads/master | 2020-07-25T07:44:09.728095 | 2020-01-17T10:15:03 | 2020-01-17T10:15:03 | 208,212,885 | 0 | 2 | MIT | 2020-01-17T08:00:14 | 2019-09-13T07:02:16 | C++ | SHIFT_JIS | C++ | false | false | 2,365 | cpp | //=====================================
//
//ベーストランジション処理[BaseTransitionMask.cpp]
//Author:GP12A332 21 立花雄太
//
//=====================================
#include "BaseTransitionMask.h"
#include "../Renderer2D/Polygon2D.h"
/**************************************
staticメンバ
***************************************/
const in... | [
"yuta.tachibana0310@gmail.com"
] | yuta.tachibana0310@gmail.com |
ed3a4c51e06bf42acf6a4a8a9853c0f8899ba8d4 | e88e91f8be9f62500591bc0f413fc213fc241fec | /forduo1/tv_optim/src/PrioNodeQueue.hpp | 016eb2b2577c95d7e0600a23cfe347547c01493f | [] | no_license | matthiasvegh/nng2014 | e0e19ea83a1733ef38dc588f7c662ab01639f4bc | 7d4af2e0a8416ef65abbeb9aef37f8b6025f3df8 | refs/heads/master | 2021-01-19T08:37:05.593858 | 2014-11-28T17:42:29 | 2014-11-28T17:42:29 | 27,274,398 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 852 | hpp | #ifndef PRIONODEQUEUE_H
#define PRIONODEQUEUE_H
#include "Node.hpp"
#include <queue>
struct NodeCompare {
bool operator()(const Node::Ptr& lhs, const Node::Ptr& rhs)
{
auto costFgv1 = lhs->costFgv();
auto costFgv2 = rhs->costFgv();
if (costFgv1 == costFgv2) {
return lhs->time < rhs->time;
}
return cos... | [
"kangirigungi@gmail.com"
] | kangirigungi@gmail.com |
1f6a2c57f1d7ef6a70ccf530eb990ee6e8cdf290 | ff6c97822fcf99aa4a083fb87208290fb7a34510 | /ls/main.cpp | 8299b5be06214bc5595d240ddb2e79ca4f2f16ed | [] | no_license | maximzubkov/Parallel | b64804b3e36ec18f6716cf11ee405cbed0bf0bbe | 1ec11b25c994802958726a7b4b3ca0334ba1527d | refs/heads/master | 2020-05-29T22:23:23.378401 | 2019-06-05T21:23:20 | 2019-06-05T21:23:20 | 189,407,775 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,592 | cpp | #include <stdio.h>
#include <unistd.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <string.h>
#include <pwd.h>
#include <time.h>
#include <grp.h>
#include <errno.h>
#include "queue.h"
#include "flag_print.h"
int flag = 1;
struct queue * q;
void str_dir_cat (char name... | [
"Zubkov.MD@phystech.edu"
] | Zubkov.MD@phystech.edu |
1107145724e0a4ccc059fda88db58df05b95e4eb | 28c3e244f601e93fb5235159bc16fe40b16056ea | /D.cpp | ff1aba591cf1f5bcb1b368c905fcd87ffeee704e | [] | no_license | viserys3/AtCoder-Educational-DP-Codes | 11f4b848261d28678d2f95260da1d907cea80466 | 9df340ae240c81bbd2262e8282866c678719670e | refs/heads/master | 2022-07-04T13:46:29.465543 | 2020-05-11T17:41:44 | 2020-05-11T17:41:44 | 261,144,347 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 691 | cpp | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
long long util(vector<int>&w,vector<int>&v,int W)
{
int n=w.size();
long long dp[n+1][W+1];
for(int i=0;i<=n;i++)
{
for(int j=0;j<=W;j++)
dp[i][j]=0;
}
for(int i=1;i<=n;i++)
{
for(int j=1;j<=W;j++)
{
if(w[i-1]>j)
d... | [
"noreply@github.com"
] | viserys3.noreply@github.com |
07965b2d0f32760835de3604079722f919284fbd | 5f124f4285928b93318b8062bfd386a0620acd4e | /inc/SerialWriter.hh | 36beb02d7b023355eca2282e27cb30e695df80c5 | [] | no_license | HBassinot/CPP_vmunier_hbassino | d504f3b0a1bd554a3feb7e78eb2a463b373c597c | aceff865d1b74ddcbfaf8cd3d3ce7377f8352860 | refs/heads/master | 2021-01-19T00:19:44.438698 | 2011-12-02T20:56:21 | 2011-12-02T20:56:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 570 | hh | /**
* \file SerialWriter.hh
* \author Vincent MUNIER, Hervé BASSINOT
*/
#ifndef H_SERIALWRITER_H
#define H_SERIALWRITER_H
#include <fstream>
#include <typeinfo>
using namespace std;
class SerialWriter
{
public:
SerialWriter(ofstream& outfile);
template <typename T>
void write(const T& val) {
... | [
"seab.vince@gmail.com"
] | seab.vince@gmail.com |
f5f38484646f83f2e7f2954ee7ee2a8ae05c04bb | a048d44d5432d0bc9ac351760873ee48b9285648 | /test/RedDetect.cpp | 659d85c6d8df781a3dca97defb2e43b9b9306fa8 | [] | no_license | nc61/robot | 3cc86c3bd9e4bb3fd02e73cab767f9c97070b3b1 | b2c41680bc1d9a74ff239c8d47e100432a69cfe7 | refs/heads/master | 2016-09-08T01:42:06.168533 | 2014-01-02T07:15:25 | 2014-01-02T07:15:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,731 | cpp | #include <stdio.h>
#include <opencv2/opencv.hpp>
#include <iostream>
#include <ros/ros.h>
#include "std_msgs/Float32.h"
#include "Common.h"
using namespace cv;
IplImage* GetThresholdedImage(IplImage *img)
{
IplImage* imgHSV = cvCreateImage(cvGetSize(img), 8, 3);
cvCvtColor(img, imgHSV, CV_BGR2HSV);
IplIm... | [
"nickcox61@gmail.com"
] | nickcox61@gmail.com |
924e69cb349aab5037d79150ee48f53385f647aa | 883ec41da45326b0e01844248186a990cef065ad | /网络编程/TCP-Server.cpp | 9244cdc642066d0383eba1382f6dc35ed41517c3 | [] | no_license | PeterChen1997/C--learning-note | 38719a205093fbb14d4acb29e41553e4717a5c45 | 447e46356bf2c8a9890328f6440817c6259a76b7 | refs/heads/master | 2020-03-11T22:30:42.197454 | 2018-11-23T08:41:49 | 2018-11-23T08:41:49 | 130,294,232 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,521 | cpp | #include <iostream>
#include <WS2tcpip.h>
#pragma comment (lib, "ws2_32.lib")
using namespace std;
#define LISTENING_PORT 5050
int main()
{
// 初始化winsock
WSADATA wsData;
WORD ver = MAKEWORD(2, 2);
int wsOk = WSAStartup(ver, &wsData);
if (wsOk != 0)
{
cerr << "Can't initialize winsoc... | [
"747853229@qq.com"
] | 747853229@qq.com |
21b07306e5339dc95e2400ccedb554f39653c73f | 64e3a035e30e68849f39ca1e3ab12ac5a13b0522 | /Week 1/ComponentsReview/ComponentsReview/TextToButton.h | 92dcc73654d604c7ff4b324814c9f065dc7f8d93 | [] | no_license | Carthur-P/Programming-4 | 598bc6810cafa1ba11d3472ac2c40ed4b1052d37 | 1934d57e4033e5a308f01d318a4a4714eee435d3 | refs/heads/master | 2022-06-27T03:38:49.474381 | 2020-05-07T08:49:25 | 2020-05-07T08:49:25 | 259,894,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,230 | h | #pragma once
#include "ListBoxText.h"
namespace ComponentsReview {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Summary for TextToBu... | [
"pongp1@student.op.ac.nz"
] | pongp1@student.op.ac.nz |
3242253fd6549d8f3a88a786d9173b9424e6e6be | 92f79f4e9197bbb048cd61199d6c74c10681aef7 | /TimeScheme.h | 1004a8af9954a48782cffd114e6acf4e5d90f830 | [] | no_license | crenault002/Exemple | d8d2b792c301c9ced92768a55915dfaf9b4a1ef9 | f3538df0aed3d2c217cc940d2ac31c19965d9f41 | refs/heads/master | 2021-01-20T09:57:25.677340 | 2017-08-28T07:27:28 | 2017-08-28T07:27:28 | 101,614,701 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,182 | h | #ifndef FILE_TIME_SCHEME_H
#include "OdeSystem.h"
class TimeScheme
{
protected:
// Pas de temps
double _dt;
// Temps en cours
double _t;
// Vecteur initial et vecteur solution
Eigen::VectorXd _sol0, _sol;
// Reference vers le systeme d'EDO
OdeSystem& _sys;
public:
// Constructeur avec ... | [
"renault.chloe@gmail.com"
] | renault.chloe@gmail.com |
20a4bfd9634488a3c121417121735694f85a3568 | a7c366e8b0c0abf919e1a571c83f98058c53cd95 | /myCheck2Dweights.cc | 8cb9eb707c8abac113b693683fb058dbbaf98c76 | [
"CC-BY-4.0"
] | permissive | mhuwiler/photonIDMVA | bc20a29ebbc3db8d66cbc112c18fde22d440184a | 07417eea2c4e1f4fb66ffa2ce6c9c963b9d2a875 | refs/heads/master | 2020-04-05T07:56:20.307854 | 2019-02-04T17:47:55 | 2019-02-04T17:47:55 | 156,694,152 | 0 | 0 | null | 2018-11-08T11:06:56 | 2018-11-08T11:06:56 | null | UTF-8 | C++ | false | false | 8,415 | cc | #include "TROOT.h"
#include "TKey.h"
#include "TFile.h"
#include "TSystem.h"
#include "TCanvas.h"
#include "TTree.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TObjArray.h"
#include "THStack.h"
#include "TLegend.h"
#include "TEfficiency.h"
#include "TGraphAsymmErrors.h"
#include "TF1.h"
#include "TMath.h"
#include "... | [
"marc.huwiler@cern.ch"
] | marc.huwiler@cern.ch |
04fa8511ee7f0bf5b8996c324a4fb871df5f66c3 | 8e59f2470de88623fd720d552c8e089666b95228 | /tiny_curl.cpp | 395f6fd607e59471dff6bad6a06c91b01d861677 | [] | no_license | sakishum/cppCurl | c75860d8ae70ec16e6acbd062cab6fc908ed05bd | cb3f86c1a002e5b60f9237cbb1568701878c1b80 | refs/heads/master | 2021-01-22T12:02:55.759755 | 2013-04-07T11:27:52 | 2013-04-07T11:27:52 | 9,271,553 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,921 | cpp | /**
* @file tiny_curl.h
* @Synopsis A Very Lightweight cURL wrapper.
* @author Saki Shum, sakishum1118@gmail.com
* @version 0.0.1
* @date 2013-03-29
*/
#include "tiny_curl.h"
static size_t WriteBufferCallback(void *ptr, size_t size, size_t nmemb, void *data)
{
((string*)data)->append((const char*)ptr, size * ... | [
"sakishum11118@gmail.com"
] | sakishum11118@gmail.com |
19b973bad33dce2639df61165283c2cb9ff03e9b | c8f54e785f872f8240234728461d9af8dc0126dd | /chapter10/10.2.1/ex_10_5.cc | b4e3f9235697d232dfd3a34558750d0b319fe435 | [] | no_license | YMChenLiye/cpp_primer | 5d4cffc0e0a162757ff9f75e62b5a21891b38a7a | 33aba9f01b3e598648a9a30f0fc8ec979da294ae | refs/heads/master | 2021-01-10T14:36:01.678296 | 2016-03-03T11:07:17 | 2016-03-03T11:07:17 | 47,110,426 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 323 | cc | // @Brief In the call to equal on rosters, what would happen if both rosters held C-style strings, rather than library strings?
// @Answer For such case, std::equal is going to compare the address value rather than the string value.
// So the result is not the same as std::string. Try to avoid coding this wa... | [
"ymchenliye@gmail.com"
] | ymchenliye@gmail.com |
b0906347c48e2f68135b8b156414ed24f471a8d9 | f90e598203444818cba27902888a361f72815d37 | /src/Python/simplifyline_pybind/docstring/docstring.cpp | 728ca1eb9db6b1a4d29c9881b8a56a3492f9535f | [
"MIT"
] | permissive | JeremyBYU/simplifyline | dc899295314eea103be3ccdfab206c0e204d1180 | fd0ee7c93f0351460b017d165956bc8f731b8047 | refs/heads/master | 2023-06-12T09:03:30.970163 | 2021-07-09T20:37:59 | 2021-07-09T20:37:59 | 317,254,904 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 19,619 | cpp | // ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018 www.open3d.org
// Copyright (c... | [
"jeremybyu@gmail.com"
] | jeremybyu@gmail.com |
1abfd57650330c592e6e84679f539ca647e6bee6 | b1a14e08044ae882e5dd9231811cad9af43c9b28 | /sylar/env.h | f6186ad90473f8b2ca9803d95f9b51f9f6e04668 | [] | no_license | sadwd12312/sylar-from-scratch | a59f459113a85d59f52c72283a8e2e48d86ad49c | 5dbc892e5c3a1f23d1bf06d2c79c5c1a8398918e | refs/heads/main | 2023-08-07T13:15:28.352730 | 2021-09-28T03:18:45 | 2021-09-28T03:18:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,602 | h | /**
* @file env.h
* @brief 环境变量管理
* @version 0.1
* @date 2021-06-13
*/
#ifndef __SYLAR_ENV_H__
#define __SYLAR_ENV_H__
#include "singleton.h"
#include "mutex.h"
#include <map>
#include <vector>
namespace sylar {
class Env {
public:
typedef RWMutex RWMutexType;
/**
* @brief 初始化,包括记录程序名称与路径,解析命令行选项和... | [
"zhong.rs232@gmail.com"
] | zhong.rs232@gmail.com |
f9e32b046858cdf1615b08d89762065e1195ddbf | 759c6913ebc844e031470b2c9309932f0b044e33 | /InteractionBase/src/expression_editor/parser/Parser.cpp | 65ca330ccb4058fcbc61f0c9d6034e4f2a7f5ee8 | [
"BSD-3-Clause"
] | permissive | patrick-luethi/Envision | 7a1221960ad1adde2e53e83359992d5e6af97574 | 9104d8a77e749a9f00ff5eef52ff4a1ea77eac88 | refs/heads/master | 2021-01-15T11:30:56.335586 | 2013-05-30T08:51:05 | 2013-05-30T08:51:05 | 15,878,040 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,352 | cpp | /***********************************************************************************************************************
**
** Copyright (c) 2011, 2013 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
** follo... | [
"dimitar.asenov@inf.ethz.ch"
] | dimitar.asenov@inf.ethz.ch |
537a07ad426a68c06da713daf373de8a15af29fd | 7ea60e50e26e7a77264320aee6506b561c08d618 | /Trans3_2/vc/actkrt3/tkgfx/Tkgfx.cpp | ef16cf0788c0fcaa7cd482b554814ad55db16ea6 | [] | no_license | rpgtoolkit/trans3 | 96aa84a39ebb9058a35a91b8e1440efad52b0b30 | 2ff22d53c3ca99ee6caf509f99f81628341b6bdb | refs/heads/master | 2020-04-12T22:22:38.812906 | 2014-02-17T19:23:09 | 2014-02-17T19:23:09 | 5,168,034 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 29,659 | cpp | /*
********************************************************************
* The RPG Toolkit, Version 3
* This file copyright (C) 2007 Christopher Matthews & contributors
*
* Contributors:
* - Colin James Fitzpatrick
* - Jonathan D. Hughes
********************************************************************
... | [
"piartsco@gmail.com"
] | piartsco@gmail.com |
a082642c1d9e0356b8be89210fb746b8180f6550 | 0c970b4917696391e0f3bc7f4293b3071e5393ef | /parser/src/Parser.cpp | b303a812c30cbe368807b991d82d2f49569ddf50 | [] | no_license | bruggi/SysProg-WS2013-2014 | eb141152b6e4a8827e149750240b3ea72076cd92 | b57c98f9a0be6236ceb7bb993e227586da1ac1d4 | refs/heads/master | 2020-05-18T17:08:16.394582 | 2014-01-22T12:31:44 | 2014-01-22T12:31:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,046 | cpp | /*
* Parser.cpp
*
* Created on: 24.12.2013
* Author: typical
*/
#include "../include/Parser.hpp"
namespace parserError {
const char* AsString(type_t t) {
switch(t) {
case OK: return "OK";
case NULL_POINTER: return "NULL_POINTER";
case INVAL_PARAM: return "Invalid parameter(s)";
case ERR_PARSE_... | [
"johannes.kolb88@googlemail.com"
] | johannes.kolb88@googlemail.com |
e2309c50a8032c90af8be00afe51fa5965822efb | ce80c908e8828d3a2e832199026101e5e96c746b | /MindReader/main.cpp | 71f0ddbe1b70148009d1923811db584506cc751a | [] | no_license | iamgeniuswei/MindReader | 8f330ad978b6d16b3363c7d1c7bc22d13d5c891d | abde1f97364629af588cbba3f44fdeb93a22507e | refs/heads/master | 2021-09-28T18:27:32.270814 | 2018-11-08T00:32:33 | 2018-11-08T00:32:33 | 156,626,188 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,901 | cpp | //#include "mainwindow.h"
#include <QApplication>
#include "mrarticleshelf.h"
#include "qimagetextwidget.h"
#include <QListWidget>
#include <QListWidgetItem>
#include "mrmainwindow.h"
#include "MRArticleDisplayer.h"
#include <QDebug>
//#include "ArticlePage.h"
#include "mrarticlereader.h"
#include "notecard.h"
#include... | [
"iamgeniuswei@sina.com"
] | iamgeniuswei@sina.com |
b3ea8f23ee6f51d4792e842fa5bf7c09842a6ecd | f75650b72c6f394e1c1e31560cbc27aec946d823 | /bengli.cpp | b9cb7ea60946dd3cd05685c647db5b23b2e43f78 | [] | no_license | miracleke/learncpp | eb881c3da0dd37118a3f909820991b5ef637c6b3 | 7efd50aab5ae4286f10f2c4101498d4ade2c610b | refs/heads/master | 2022-02-20T09:23:40.830697 | 2019-08-14T13:57:50 | 2019-08-14T13:57:50 | 197,947,346 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 392 | cpp | #include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main() {
int b,year;
double sum,li,y;
cout << "Input annual interest rate, capital in the number of years deposited,the sum of profits\n";
cin >> li >> b >> year;
y = year * li / 100 * b;
sum = b + y;
cout << "本金加利... | [
"3205244665@qq.com"
] | 3205244665@qq.com |
02cd0dae3c9def99be98a55fcff05e4542a7923b | 86f8019eabea54665bf709725aaf7b2967206058 | /engine/actions/source/CharacterAction.cpp | ab6c397bb805b7fcc07f93222673b6356a5fa3d3 | [
"MIT",
"Zlib"
] | permissive | cleancoindev/shadow-of-the-wyrm | ca5d21a0d412de88804467b92ec46b78fb1e3ef0 | 51b23e98285ecb8336324bfd41ebf00f67b30389 | refs/heads/master | 2022-07-13T22:03:50.687853 | 2020-02-16T14:39:43 | 2020-02-16T14:39:43 | 264,385,732 | 1 | 0 | MIT | 2020-05-16T07:45:16 | 2020-05-16T07:45:15 | null | UTF-8 | C++ | false | false | 2,695 | cpp | #include <chrono>
#include <boost/algorithm/string.hpp>
#include "CharacterAction.hpp"
#include "CharacterDumper.hpp"
#include "Conversion.hpp"
#include "FileWriter.hpp"
#include "Game.hpp"
#include "MessageManagerFactory.hpp"
#include "ScreenTitleTextKeys.hpp"
#include "TextDisplayFormatter.hpp"
#include "TextDisplayS... | [
"jcd748@mail.usask.ca"
] | jcd748@mail.usask.ca |
5d8fdc645175d9b422ec5626fee7ac26d3cce9b6 | 0aba98c76b13f22854a5e75c8f112e4db85383ef | /serverSelect.cpp | 00859d5f4a2a5507d535d9310bf92a8dec1a6909 | [] | no_license | guptaprakhariitr/Simple-server-client-chat | c359639006cda531776b0402c73e971f72e2433c | 06594b9fb813bdc2c1d9851e6f2df44ecd35abe2 | refs/heads/master | 2022-11-15T18:43:49.954207 | 2020-07-02T16:54:32 | 2020-07-02T16:54:32 | 260,719,185 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,836 | cpp | //Example code: A simple server side code, which echos back the received message.
//Handle multiple socket connections with select and fd_set on Linux
#include <stdio.h>
#include <string.h> //strlen
#include <stdlib.h>
#include <errno.h>
#include <unistd.h> //close
#include <arpa/inet.h> //close
#include <sys/t... | [
"prakharpguptag@gmail.com"
] | prakharpguptag@gmail.com |
dc44d200848720db245bae6218e709aeb4272581 | 17d766a296cc6c72499bba01b82d58f7df747b64 | /Athena1.cpp | 74b0b71b8820da303c296d8c6347ea7759206940 | [] | no_license | Kullsno2/C-Cpp-Programs | 1dd7a57cf7e4c70831c5b36566605dc35abdeb67 | 2b81ddc67f22ada291e85bfc377e59e6833e48fb | refs/heads/master | 2021-01-22T21:45:41.214882 | 2015-11-15T11:15:46 | 2015-11-15T11:15:46 | 85,473,174 | 0 | 1 | null | 2017-03-19T12:12:00 | 2017-03-19T12:11:59 | null | UTF-8 | C++ | false | false | 301 | cpp | #include<iostream>
using namespace std ;
int main(){
unsigned long long int sum = 0;
int n=1000;
int val=10;
while(n > 0){
int dif = val;
int temp = n;
sum += n;
while(dif >= 1){
n -= dif ;
sum += n;
dif--;
}
n = temp-100;
val--;
cout<<sum<<endl;
}
cout<<sum<<endl;
}
| [
"nanduvinodan2@gmail.com"
] | nanduvinodan2@gmail.com |
793508f8d09a352f0f1891bd4c04b0d3de65b377 | 785d89fb4452014569d197deba6921035fe6d1ba | /interactive.h | 22e73376cac048540f89357c25dcac96cf2ffb45 | [] | no_license | aguai/StoryWriter | d25f814f9ebf6d413cd454b41c52c846278c69eb | 8cfe73430d445586f6d036b98e5cc01ee8e3905d | refs/heads/master | 2020-03-11T03:07:09.169124 | 2012-09-03T20:32:33 | 2012-09-03T20:32:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,989 | h | #ifndef DEF_ENGINE_INTERACTIVE
#define DEF_ENGINE_INTERACTIVE
#include <dshow.h>
#include <D3D9.h>
#include <Vmr9.h>
#include <windows.h>
#include <gdiplus.h>
#include <map>
#include <string>
#include <vector>
class CMarkup;
class SCENE;
class STATES;
class INTERACTIVE : public SCENE {
private:
// Object class
cl... | [
"adam.streck@gmail.com"
] | adam.streck@gmail.com |
d52a3b9a8672cd6f7586ea0d442bba279bf062c4 | c43060800c4c134653f9b06c65d33cec9f2155b9 | /Interface/String.h | e48395bf42b1565331236107f6146ed9ed4b6245 | [] | no_license | venkatarajasekhar/interface-4 | 8351a9c469a0e7ad3c2eabded21dc4e4e5da81ca | f101c39207d7310fbbfcfb92c6ab9d32ea859bff | refs/heads/master | 2020-06-10T18:41:25.504006 | 2014-04-26T12:59:08 | 2014-04-26T12:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,130 | h |
// Copyright (C) 1997-1998 Reality Systems as
// All rights reserved.
#ifndef STRING_H
#define STRING_H
class String{
public: String(){ hook=-1; }
String(const String &str);
String(const char *str);
~String();
String &operator=(const String &);
bool operator==(const String &) con... | [
"patrick.hanevold@gmail.com"
] | patrick.hanevold@gmail.com |
cc3bb4d6d5543e1ea2e001ff95abc2a6c7450c76 | 6b99df31de982d87ef363f8916077cf0eb8df354 | /homework/hw4/CLMessageLoopManager.cpp | d448c18ef5a42b4637a4e70651ab84f0ecf07568 | [] | no_license | chengziHome/-Linux-advanced-programming | d397df4c277b172bfc7b71cf908112a67e58be6f | 25deec2c3df690cdd6bd2430ca6b0de234f2b676 | refs/heads/master | 2020-04-05T06:18:23.629928 | 2018-11-17T03:07:12 | 2018-11-17T03:07:12 | 156,632,943 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,053 | cpp | #include "CLMessageLoopManager.h"
#include "CLMessage.h"
#include "CLLogger.h"
CLMessageLoopManager::CLMessageLoopManager() {
}
CLMessageLoopManager::~CLMessageLoopManager() {
}
CLStatus CLMessageLoopManager::EnterMessageLoop(void *pContext) {
CLStatus s = Initialize();
if (!s.IsSuccess()) {
... | [
"ichengzi_me@163.com"
] | ichengzi_me@163.com |
37226791bb3bfaf0f285f183649c97552e3bb67e | d11e19807634a8a1a020510376363404a58c452b | /LeetCode/309.h | 046edfae923dc863f8919fe2c42a9ef6fbfb9e1a | [
"MIT"
] | permissive | zhchuu/OJ-Solutions | f960dd68c0ba9a5e84390250de0b92679549c9fd | 09e1c18104db35d7c6919257ebaa0f170f54796c | refs/heads/master | 2021-01-26T13:14:07.830959 | 2020-07-02T07:02:26 | 2020-07-02T07:02:26 | 243,440,462 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 780 | h | /*
309. Best Time to Buy and Sell Stock with Cooldown
Hint: DP
Time: O(n)
Space: O(n)
*/
class Solution {
public:
int maxProfit(vector<int>& prices) {
if(prices.size() <= 1)
return 0;
/*
F[i] means that the maximum profit with cooldown.
You can buy day i+1 now.
... | [
"zhongchh7@mail2.sysu.edu.cn"
] | zhongchh7@mail2.sysu.edu.cn |
504f451b8c5b24b2931b5a3bb85ff235d275d6c5 | 0034a7c55676f906a751e11adbfee698c2a03901 | /core/json/src/JsonReader.h | fe60144cdea5eb34b390b7a41b63cd83a6aae21f | [
"Apache-2.0"
] | permissive | coderbradlee/ngrest | f2c19fe7baaae274a6f531dc6f7aaa2dafd517f8 | e532f9916956de32812565f24ef1e4bf2d29a2ef | refs/heads/master | 2021-05-30T21:29:06.724888 | 2016-04-07T08:52:37 | 2016-04-07T08:52:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 920 | h | /*
* Copyright 2016 Utkin Dmitry <loentar@gmail.com>
*
* 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 a... | [
"loentar@gmail.com"
] | loentar@gmail.com |
bac87dda156b534298a5c0fae1f77e6470952cb8 | 7c63a96fad4257f4959ffeba0868059fc96566fb | /cpp/std-14/m_gregoire-prof_cpp-3_ed/ch_13-handling_errors/08-throwing_and_catching_multiple_exceptions_2/main.cpp | 21c53baf7fa5ef96a66beec4cf3bc0239d4d3192 | [
"MIT"
] | permissive | ordinary-developer/education | b426148f5690f48e0ed4853adfc3740bd038b72c | 526e5cf86f90eab68063bb7c75744226f2c54b8d | refs/heads/master | 2023-08-31T14:42:37.237690 | 2023-08-30T18:15:18 | 2023-08-30T18:15:18 | 91,232,306 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,012 | cpp | #include <fstream>
#include <iostream>
#include <vector>
#include <string>
#include <stdexcept>
void readIntegerFile(const std::string& fileName, std::vector<int>& dest) {
std::ifstream istr;
int temp;
istr.open(fileName.c_str());
if (istr.fail()) {
throw std::invalid_argument("Unable to open... | [
"merely.ordinary.developer@gmail.com"
] | merely.ordinary.developer@gmail.com |
665f1fb4d68e954c651d570e857df2d3d484cf95 | ed997b3a8723cc9e77787c1d868f9300b0097473 | /libs/geometry/test/test_geometries/all_custom_ring.hpp | c7c2b78df93a967af42a90fcf98537658750c95c | [
"BSL-1.0"
] | permissive | juslee/boost-svn | 7ddb99e2046e5153e7cb5680575588a9aa8c79b2 | 6d5a03c1f5ed3e2b23bd0f3ad98d13ff33d4dcbb | refs/heads/master | 2023-04-13T11:00:16.289416 | 2012-11-16T11:14:39 | 2012-11-16T11:14:39 | 6,734,455 | 0 | 0 | BSL-1.0 | 2023-04-03T23:13:08 | 2012-11-17T11:21:17 | C++ | UTF-8 | C++ | false | false | 3,428 | hpp | // Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
// Copyright (c) 2011-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1... | [
"barendgehrels@b8fc166d-592f-0410-95f2-cb63ce0dd405"
] | barendgehrels@b8fc166d-592f-0410-95f2-cb63ce0dd405 |
64f9dc2c29a116be518c3cc2d548101119d91a5c | 7d7a25b58f3a8daea540c9e7807569d89946a036 | /Framework/src/Geometry.cpp | 8f7f97a9a7946b8f5a1141063cab4072d7cd19e2 | [] | no_license | HishamLY/Riset_DaHo_2018 | 1be1ac5ebc141add284d25a111baf10886218880 | 437e40d71641c31421fcc31151e8b9b64ebab32f | refs/heads/master | 2021-03-19T15:38:29.268515 | 2018-02-12T16:38:48 | 2018-02-12T16:38:48 | 114,443,913 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 32,254 | cpp | /**
* @file Math/Geometry.cpp
* Implemets class Geometry
*
* @author <A href=mailto:juengel@informatik.hu-berlin.de>Matthias Jüngel</A>
* @author <a href="mailto:walter.nistico@uni-dortmund.de">Walter Nistico</a>
*/
#include "Geometry.h"
#include <stdio.h>
using namespace Robot;
float Geometry::angleTo(const Pose2D&... | [
"hishamlazuardi@gmail.com"
] | hishamlazuardi@gmail.com |
3b3d06151c0ced7e7ca13b85d52cf6dfd68a9139 | cda6d6cb90f7b0b0f07cfb52b82e332622e07384 | /LeetCode/031.h | 6a20a9904cc4f9732502083bba5cb889f5fe52c6 | [] | no_license | zzqboy/leetcode | 51faaa0af12f94a94ffe81a68c0a6c80196b81d2 | 1f94cd7700e76e4dad42baa164eed47fc382c854 | refs/heads/master | 2021-04-12T08:36:28.498422 | 2019-05-26T14:18:39 | 2019-05-26T14:18:39 | 126,172,015 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,312 | h | #include <vector>
#include <iostream>
using namespace std;
// 参考solution 2
class Solution {
public:
void nextPermutation(vector<int>& nums) {
if (nums.size() == 0 || nums.size() == 1)
{
return;
}
int idx = nums.size() - 1;
int idx2 = idx - 1;
bool is_rever = true;
while (idx >= 1)
{
if (nums[i... | [
"ziquanzheng@foxmail.com"
] | ziquanzheng@foxmail.com |
c0d72b89f1e80be970ae565f7018195e053b76c3 | 2523a030580fe379912d67c2e457213980e7c807 | /build_red_tower_icon.cpp | b23338e39008f94514348a33890707ab648c8e5c | [] | no_license | Batname/game_tutorial2 | 9b67ae696c28d1958da67c4bbb40688903c403c5 | 48e3a29b19b0fa7357d2f93101249cacbf8621b2 | refs/heads/master | 2021-01-12T11:29:53.880207 | 2016-11-08T18:58:05 | 2016-11-08T18:58:05 | 72,939,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463 | cpp | #include "build_red_tower_icon.h"
#include "game.h"
#include "red_tower.h"
#include <QString>
extern Game * game;
BuildRedTowerIcon::BuildRedTowerIcon(QGraphicsItem *parent) : QGraphicsPixmapItem(parent)
{
setPixmap(QPixmap(":/images/red_tower.png"));
}
void BuildRedTowerIcon::mousePressEvent(QGraphicsSceneMouse... | [
"dadubinin@gmail.com"
] | dadubinin@gmail.com |
63b42e7c6ebc5a573c95e9dedb4cb5b9b6a3706d | 29a7775ddef9923ee6d1ad6afeb389fae8601348 | /src/contract/libethereum/CommonNet.h | bd17a0b0ee1e3b8f43e30dbe6df14abec7d6e9d9 | [
"MIT"
] | permissive | arowwne/TesraSupernet | e1721016947d33cd84ecfe2b63b34142e54abdd8 | 79546fdb5026b008abcaccc00d6b5d9b3bd3f9ca | refs/heads/master | 2020-05-26T06:48:00.625590 | 2019-05-21T10:50:18 | 2019-05-21T10:50:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,402 | h | /*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is distributed in the... | [
"qiujie@qiujiedeMac-mini.local"
] | qiujie@qiujiedeMac-mini.local |
296c189f55fb7dbbadb4f86a434e32162fd73a80 | 9cdbbbcd4ff943ff63d6592ca37906f8bd11e2ed | /Stacks and Queues/stack_adapter.h | bcb6f48221f730013f8379a007759f66afd15b88 | [] | no_license | lamarrr/Algorithms | ff695df2702999c1996a0301a30fa6d556dc4688 | 52da75468b437289affa449d80d5cd5473e133f1 | refs/heads/master | 2020-05-19T23:54:58.037673 | 2019-11-02T22:49:28 | 2019-11-02T22:49:28 | 185,277,684 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 725 | h | #include <cinttypes>
#include <cassert>
#include <vector>
template<typename ValueType,
typename ContainerType = std::vector<ValueType>>
class Stack {
using value_type = ValueType;
using container_type = ContainerType;
container_type container_;
public:
Stack(){}
Stack(const container_type& v) :
container_{v}{}
St... | [
"rlamarrr@gmail.com"
] | rlamarrr@gmail.com |
a8a4b7a4890c6f70fd3275515752829f6d106484 | 2d2857f72ea80d92f6d26e56c6eabe2c0a280540 | /scpcPractice/boj1005.cpp | 44f3a48c75d74d3c87544a47753e208400c5868d | [] | no_license | kimkyuhwan/SCPC-Practice | cd63cce155dd62f1f1a4d353874f48528a94a374 | f9ef04ccbe305636a38c42da0256a58f0ce2f593 | refs/heads/master | 2020-05-29T23:22:11.462542 | 2019-08-13T15:54:53 | 2019-08-13T15:54:53 | 189,432,083 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 962 | cpp | #include <bits/stdc++.h>
using namespace std;
int T, N, M, A, B, W, cnt;
int cost[1010];
int dist[1010];
int indegree[1010];
vector<vector<int> > adj;
int bfs(int dest) {
queue<int> q;
for (int i = 1; i <= N; i++) {
if (indegree[i] == 0) {
q.push(i);
dist[i] = cost[i];
}
}
while (!q.empty()) {
int here ... | [
"gmarble94@gmail.com"
] | gmarble94@gmail.com |
b4383397ef7ac612c2654f5321689d421b686b18 | 08c43e6dbcf1ce853fe32b562c77122d533c6dbf | /src/islang/parser/scanner.hpp | 100b1e3592adfe2143e578a694e169846f0712a4 | [
"MIT"
] | permissive | Wassasin/islang | d4af712951133ab5654ddeb6b9929f95cc81fa9d | eda11d6e260edaa8b9fdfdb2ddff6da3f4e02b8a | refs/heads/master | 2021-01-01T17:32:28.115745 | 2015-03-06T14:57:20 | 2015-03-06T14:57:20 | 30,246,869 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 837 | hpp | #pragma once
#include <cstddef>
#if !defined(yyFlexLexerOnce)
#include <FlexLexer.h>
#endif
// Preprocessor result, not distributed
#include "parser_lr.hh"
namespace islang
{
class scanner : public yyFlexLexer
{
private:
parser_lr::semantic_type *yylval;
parser_lr::location_type *yylloc;
size_t line, column;
p... | [
"git@woutergeraedts.nl"
] | git@woutergeraedts.nl |
4a95edc4c5a033969f84b2d59a50ad8d817ea11a | 56ae4c9182b8f6910e5d75db3957968efb9f18df | /src/helpers.h | 39b356074a9e9c06d5810d1afaf224a5affebc22 | [
"MIT"
] | permissive | mtoquinn/CarND-Path-Planning-Project | c20fa433a1959f496aa9b6f35aa798e29f5423f6 | c36eb863859a949f07e6ec033d719ee9ef12498d | refs/heads/master | 2023-03-16T23:42:36.674949 | 2021-03-01T16:02:56 | 2021-03-01T16:02:56 | 343,473,205 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,230 | h | #ifndef HELPERS_H
#define HELPERS_H
#include <math.h>
#include <string>
#include <vector>
// for convenience
using std::string;
using std::vector;
// Checks if the SocketIO event has JSON data.
// If there is data the JSON object in string format will be returned,
// else the empty string "" will be returned.
stri... | [
"mtoquinn@gmail.com"
] | mtoquinn@gmail.com |
b94ea5a79fd038a9f135af863233ab6631f02642 | 3a01d6f6e9f7db7428ae5dc286d6bc267c4ca13e | /unittests/libtests/meshio/TestOutputSolnPoints.cc | 95fa3db1e3ebbccb575fa491600e7f75a7636277 | [
"MIT"
] | permissive | youngsolar/pylith | 1ee9f03c2b01560706b44b4ccae99c3fb6b9fdf4 | 62c07b91fa7581641c7b2a0f658bde288fa003de | refs/heads/master | 2020-12-26T04:04:21.884785 | 2014-10-06T21:42:42 | 2014-10-06T21:42:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,359 | cc | // -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
c99cfecabadf1d36f866628814b9865ec79e5a14 | 87ec35b10c72bf737e98fc8c95d5b2de5dae8a65 | /2019_CreativeSoftwareDesign/12-1-1/swap.cpp | d06c478e211ae16e04a05c5abd691b53f688edff | [] | no_license | zzzl-523/Univ | a56d4cfd1ce31f66e75c4e03d74329d3e2978e4a | 22289547a05361db8d5a88c233dced41bef7082b | refs/heads/master | 2023-07-29T21:28:24.037134 | 2021-09-12T10:07:42 | 2021-09-12T10:07:42 | 292,194,236 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 623 | cpp | #include<iostream>
#include<string>
using namespace std;
template<typename T>
void myswap(T &a, T &b) {
T temp;
temp = a;
a = b;
b = temp;
}
int main() {
int num_int1, num_int2;
double num_dou1, num_dou2;
string str1, str2;
cin >> num_int1 >> num_int2;
myswap(num_int1, num_int2);
cout << "After calling mysw... | [
"2019060164@hanyang.ac.kr"
] | 2019060164@hanyang.ac.kr |
7a87b7e05afa2069c60d42b1e51a794bc491ba68 | b19f30140cef064cbf4b18e749c9d8ebdd8bf27f | /D3DGame_180000_034_2_Animation_Editor_v2/Components/UIModelTransform.h | 23cfa0e723a6f23028f9ece8ea7160709111b7fa | [] | no_license | evehour/SGADHLee | 675580e199991916cf3134e7c61749b0a0bfa070 | 0ebbedf5d0692b782e2e5f9a372911c65f98ddc4 | refs/heads/master | 2020-03-25T13:22:42.597811 | 2019-01-03T07:05:54 | 2019-01-03T07:05:54 | 143,822,128 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 391 | h | #pragma once
#include "../Components/Component.h"
class UIModelTransform : public Component
{
public:
UIModelTransform();
~UIModelTransform();
void Update();
void PostRender();
void ChangeTarget(class GameModel* target);
void ChangeContainUIName(string containUIName);
private:
string containUIName;
class Ga... | [
"evehour@naver.com"
] | evehour@naver.com |
0ffc5fac1334d275ce75808cb8c850c3a8dfa263 | 12b1c71c682d9a99e95731c5b69fa31a7a69cfce | /practice/2016_Oct_16_Albert Contest/e.cpp | de1889d5e626cb1c85362e707a247aa762cb50bc | [] | no_license | KyleJu/ACM | 39437da640608dd515ab5f9f8ffe871f7a4e812c | e1d91506bd06cced019f7d9b679e86380e648506 | refs/heads/master | 2021-01-19T09:23:42.606577 | 2016-11-30T06:54:54 | 2016-11-30T06:54:54 | 42,553,077 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 401 | cpp | #include<bits/stdtr1c++.h>
using namespace std;
int main() {
int ts; cin >>ts;
for(int i = 1 ; i<= ts; i++) {
int r, c; cin >> r >> c;
vector<string> arr;
string tm;
for(int t = 0 ;t < r; t++) {
cin >> tm;
arr.push_back(tm);
}
cout <<"Test " << i << endl;
for(int x = r-1; x>=0 ;x--) {
for(in... | [
"xifengju@kyleju.local"
] | xifengju@kyleju.local |
116595c8b95962d89c286e4a0696550bd6a97218 | d644ba781ec4033f5dd6c9aa64aaf4f4e2b036e8 | /WordFrequency V1/WordFrequencyNew/ListDirectoryFiles.cpp | 963287178a4f8f3875f891d4ccebb6a9f41d94a9 | [] | no_license | somesh-ballia/WordFrequency | 34cd793d09023af458ce37de5241e52aa778daa3 | 0c29f2fd8b684793302759b8388ec7d634cff5d1 | refs/heads/master | 2021-01-19T11:22:00.634265 | 2017-04-11T16:48:30 | 2017-04-11T16:48:30 | 87,957,925 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,416 | cpp | #include "StdAfx.h"
#include <stdio.h>
#include <cstring>
#include <iostream>
#include <conio.h>
#include <direct.h>
#include <windows.h>
#include "ListDirectoryFiles.h"
#include "DirectoryNameList.h"
#include <stdlib.h>
#define SUCCESS 1
#define FAILURE 0
char* ListDirectoryFiles::allocateMemoryForNewW... | [
"somesh.ballia@gmail.com"
] | somesh.ballia@gmail.com |
f78b3e9fba1fa1af3dc843fbc8d7b181d84a3afc | 63da17d9c6876e26c699dc084734d46686a2cb9e | /inf-2-exercise/week8-operators_exceptions_practice/SM/Supermarket/Supermarket.cpp | ae222e1d04a27fe2e470a304c9054d5fcf30476d | [] | no_license | semerdzhiev/oop-2020-21 | 0e069b1c09f61a3d5b240883cfe18f182e79bb04 | b5285b9508285907045b5f3f042fc56c3ef34c26 | refs/heads/main | 2023-06-10T20:49:45.051924 | 2021-06-13T21:07:36 | 2021-06-13T21:07:36 | 338,046,214 | 18 | 17 | null | 2021-07-06T12:26:18 | 2021-02-11T14:06:18 | C++ | UTF-8 | C++ | false | false | 1,035 | cpp | #include "Supermarket.h"
void Supermarket::expand() {
Client* temp = new Client[capacity * 2];
for (int i = 0; i < size; ++i) {
temp[i] = clients[i];
}
delete[] clients;
clients = temp;
capacity *= 2;
}
void Supermarket::copy(const Supermarket& other, bool doClean = true) {
if (doClean) {
clean();
}
ca... | [
"dimitar.trz@gmail.com"
] | dimitar.trz@gmail.com |
9c49048e40e361bb60724e55fa3b090bd177c3ad | 896fb9a573c453be719b3be0c4778507c681612b | /src/qt/coincontroldialog.cpp | 02f6a589b2a430f154bf613e7693b148b94b781b | [
"MIT"
] | permissive | Thanacore/Thana | ca030e19495729224ae4e570e9f109c726d36a15 | fa09a05369089b1e5bb56f506b51550683a4a0ec | refs/heads/master | 2020-04-10T11:41:34.057200 | 2018-12-09T03:28:53 | 2018-12-09T03:28:53 | 161,000,574 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 37,047 | cpp | // Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 THANA Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license... | [
"45721955+Thanacore@users.noreply.github.com"
] | 45721955+Thanacore@users.noreply.github.com |
af208295410173d85c39e6ea5b5a0168eb696373 | 8495e8201b12c5dca8f3bc1319cbf208f679cb50 | /emulator/rambusdevicedisassemblymodel.cpp | df0c6e4aa8f24272cefed56f1b9a6713d9dc8c7e | [] | no_license | vcato/qt-quick-6502-emulator | 1eb8afbfab9ad776fed81a0810f5b3912e6756df | 6202e546efddc612f229da078238f829dd756e12 | refs/heads/master | 2021-06-21T13:52:51.234446 | 2021-06-15T01:24:18 | 2021-06-15T01:24:18 | 208,083,263 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,786 | cpp | #include "rambusdevicedisassemblymodel.hpp"
#include <QtQml>
RamBusDeviceDisassemblyModel::RamBusDeviceDisassemblyModel(QObject *parent)
:
QObject(parent)
{
}
void RamBusDeviceDisassemblyModel::RegisterType()
{
qmlRegisterType<RamBusDeviceDisassemblyModel>("Qt.example.rambusdevicedisassemblymodel",
... | [
"16119203+mr-mocap@users.noreply.github.com"
] | 16119203+mr-mocap@users.noreply.github.com |
e9e214b7db0c6b70dafd8fce7067a4975da630ba | 82f53bc74ca2cef6118f3574c56f3f6283b7de2a | /src/Agent.cpp | ff31a3007d5522f4eac633bf69d4480520c5d1a9 | [] | no_license | Biowned/FSM-GOAP | ec848bbb5518e0e34e4d3a13f379c6a25fbf273a | 5b9ece1a6763569ada4bd985c9d5ba6cb50a2410 | refs/heads/master | 2021-05-12T14:34:03.030378 | 2018-01-10T16:58:11 | 2018-01-10T16:58:11 | 116,960,951 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,040 | cpp | #include "Agent.h"
#include "ScenePlanning.h"
using namespace std;
Agent::Agent() : sprite_texture(0),
position(Vector2D(100, 100)),
target(Vector2D(1000, 100)),
velocity(Vector2D(0,0)),
mass(0.1f),
max_force(150),
max_velocity(200)... | [
"borjamunt@gmail.com"
] | borjamunt@gmail.com |
125efee940a2d6344ee997ab7652a7f39fa0d618 | 4b2184ba5e74d4fef0177694a6540daa4599d9bb | /mythos/iris/mouse_move.hpp | 5bde16cce7771a901777b19ee74fad4d978963d2 | [] | no_license | diosmosis/iris | 7765963e122c2383651aa0f4a76d9a367fa201ac | fc8c0f57c1839accdc816e0ef8d00de4ed9802e3 | refs/heads/master | 2018-05-12T21:54:40.524292 | 2008-02-08T01:52:42 | 2008-02-08T01:52:42 | 1,283,859 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,718 | hpp | /*
This file is part of mythos.
Copyright (c) 2007-2008 Benaka Moorthi
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 ri... | [
"benaka.moorthi@gmail.com"
] | benaka.moorthi@gmail.com |
a072cf591da8d43ce280fbdcd7f0dc53b20812eb | 49cd5b923560b3258bdc4bddf183a89d847bd3ff | /test/extensions/filters/network/rocketmq_proxy/mocks.h | 8debb71f82170feb61308b600b56f2dd1a7dbf06 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | envoyproxy/envoy-wasm | 4b12c109387594122915dcc8de36bf5958eba95b | ab5d9381fdf92a1efa0b87cff80036b5b3e81198 | refs/heads/master | 2023-08-01T12:38:34.269641 | 2020-10-09T18:27:33 | 2020-10-09T18:27:33 | 185,880,979 | 223 | 96 | Apache-2.0 | 2020-12-15T18:56:39 | 2019-05-09T22:37:07 | C++ | UTF-8 | C++ | false | false | 2,514 | h | #pragma once
#include "extensions/filters/network/rocketmq_proxy/active_message.h"
#include "extensions/filters/network/rocketmq_proxy/conn_manager.h"
#include "test/mocks/upstream/cluster_manager.h"
#include "gmock/gmock.h"
namespace Envoy {
namespace Extensions {
namespace NetworkFilters {
namespace RocketmqProxy... | [
"noreply@github.com"
] | envoyproxy.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.