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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18a9005e42c68a50e3517d7ab65c61c876241803 | ef8e9b616a01b05dede8791e72e1ebfbf0a744a6 | /proj2/gaspump.cpp | 26e84bdef290cf7ae03d0c4bd29800e2db9ee1a6 | [] | no_license | StevenCzar/cs3110 | f7056ba5f1ce45395a9c6e8ab1f9d47f830cad7e | 8edfc02862856ad3e43e4e354621d8ffbff98f2b | refs/heads/master | 2022-04-23T07:01:09.401295 | 2020-04-24T03:40:57 | 2020-04-24T03:40:57 | 236,827,992 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,377 | cpp | gaspump.cpp | /* Steven Czarnecki
CSCI 3110 - 001
Project #2
Due: 2/11/20
*/
#include "gaspump.h"
#include <iostream>
//constructor to set gaspump init values
GasPump::GasPump(std::string s, double cap, double price)
{
gas_type = s;
fuel_cap = cap;
ppg = price;
turn_away = false;
fuel_oh = fuel_cap;
tot_amt_fuel = 0;
tot_... |
903a9dbb031e86ea4cffb4b31c2a5ce13974f11b | 9c3f4c5b72c9616ba8519dfcf9b84ff67917b160 | /Exchange_Excube.ino | a939a1f75ecb294c9bfbbfc610b9c73cdc1f8bd2 | [
"MIT"
] | permissive | upat/Exchange_Excube | d0c51463f2b76c831683a4a567ce6e57dde741fc | dbdef55528c12e7c7bee961e15d72faedb1fda26 | refs/heads/master | 2023-04-19T12:09:40.835795 | 2021-05-04T18:02:51 | 2021-05-04T18:02:51 | 361,438,539 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,904 | ino | Exchange_Excube.ino | #include "DigiKeyboard.h"
/* 上記で定義されていないキーを定義 */
#define KEY_ESC 0x29 /* ESCAPE */
#define KEY_ARROW_RIGHT 0x4F /* 右矢印キー */
#define KEY_RESERVE 0x00 /* 未定義キー(Shiftのみ入力用) */
#define TRADE_COUNT 30 /* 交換ループ回数(1スタック=交換上限33個*30回+9個*1回) */
#define KEY_COUNT 16 /* 入力キー数 */
#define KEY_LAS... |
64770caaca03599d8e8dda47b813b04fbda2d8b8 | 31475b58b676a174d89b3130f869656366dc3078 | /fm_model/action_set.h | c07d4a8aedca483e53c1fbb2697031fb95beaf76 | [] | no_license | cooper-zhzhang/engine | ed694d15b5d065d990828e43e499de9fa141fc47 | b19b45316220fae2a1d00052297957268c415045 | refs/heads/master | 2021-06-21T07:09:37.355174 | 2017-07-18T14:51:45 | 2017-07-18T14:51:45 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,122 | h | action_set.h | //--------------------------------------------------------------------
// 文件名: action_set.h
// 内 容:
// 说 明:
// 创建日期: 2010年7月13日
// 创建人: 陆利民
// 版权所有: 苏州蜗牛电子有限公司
//--------------------------------------------------------------------
#ifndef _ACTION_SET_H
#define _ACTION_SET_H
#include "../public/macros.h"
#incl... |
1520d28bb749216cac7f3f2b74ab1f9520f06d95 | 03804f83573a75c80932bb562ce0ee2a106ae462 | /LX_AVRecord.cpp | b9db144143d2154cb2775af2d52cb8448a660c6f | [] | no_license | luxiangchangzhou/RecordScreen | d16a55f98b911f61ffa2e4e33f80695e8407934b | 3eaf98ef768baa44d3e624ef2f441d15602c73cc | refs/heads/main | 2023-02-17T03:34:43.566861 | 2021-01-19T08:40:19 | 2021-01-19T08:40:19 | 330,913,537 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,298 | cpp | LX_AVRecord.cpp | #include "LX_AVRecord.h"
#include <windows.h>
#pragma comment(lib, "Winmm.lib")
#include <iostream>
#include <assert.h>
using namespace std;
#include <opencv2/highgui.hpp>
using namespace cv;
LX_AVRecord::LX_AVRecord()
{
QueryPerformanceFrequency((LARGE_INTEGER*)&frequency);
assert(frequency != 0)... |
a20ac5761eb57f23774c76e3ec03d1dedd33990b | efcf3fbd748814c211ed298edcb2371cbc5abd56 | /c++/src/week3/FractionalKnapsack.h | 1093097094609e082d992efeff439a4a18ab2b5b | [] | no_license | hockeyj85/CITS3001-2016-Algorithms-Agents-and-AI | d23a8e9ec27394a8a94cff230e5a9bc80f80025d | e5e502ca7943945a464ee348e58c0f28b3bcfe70 | refs/heads/master | 2021-01-10T10:06:25.300691 | 2016-04-05T06:24:30 | 2016-04-05T06:24:30 | 53,408,271 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 301 | h | FractionalKnapsack.h | //
// Created by james on 23/03/16.
//
#ifndef CITS3001_FRACTIONALKNAPSACK_H
#define CITS3001_FRACTIONALKNAPSACK_H
#include <vector>
#include <algorithm>
double fractionalKnapsack(const std::vector<int> values, const std::vector<int> weights, int capacity);
#endif //CITS3001_FRACTIONALKNAPSACK_H
|
6155e6a16852e51b19138a0585ed617a2eca7495 | 61af2d058ff5b90cbb5a00b5d662c29c8696c8cc | /EZOJ/Contests/1174/C.cpp | a76829aca29144241365bf4126cd71e5981dc698 | [
"MIT"
] | permissive | sshockwave/Online-Judge-Solutions | eac6963be485ab0f40002f0a85d0fd65f38d5182 | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | refs/heads/master | 2021-01-24T11:45:39.484179 | 2020-03-02T04:02:40 | 2020-03-02T04:02:40 | 69,444,295 | 7 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,440 | cpp | C.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
using namespace std;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template<class T>inline T next_num(){
T i=0;char c;
while(!isdigit(c=getchar())&&c!='-');
bool flag=c=='-';
flag?(c=getchar()):0;
... |
a2ef7aef93b1c4b752d5fe24e93b5f966c750d30 | a7edd259fd4a669b576cd6e2691df948efea7552 | /Genetic Ecosystem/SFML_TEST/Source.cpp | 0f24c7e7bf11b19571d94caad05a95502903c927 | [] | no_license | Greg-Balbirnie/Code-Projects | 1b73a49f44e6a4eee500253d0f3c32ef90fdb85f | 7f53b0e090ca482c9d444df77b5163853eb49e6f | refs/heads/main | 2023-06-04T01:12:08.451793 | 2021-06-20T16:00:46 | 2021-06-20T16:00:46 | 378,665,155 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,417 | cpp | Source.cpp | #include <SFML/Graphics.hpp>
#include <Windows.h>
#include "Collision.h"
#include <iostream>
#include "Genetic.h"
#include <SFML/System/Vector2.hpp>
#include "Creature.h"
#include <ctime>
// Function Prototypes
void init();
void update();
void render();
void render_debug_text();
void finished();
// Variables
sf::Rend... |
673e86486bf5fcaae7b33ccc5beed2cea8c7b6c4 | e41ac5363851c78620e6f6c2dcf4e50e0812c96a | /Engine/Code/Engine/Renderer/DrawInstruction.cpp | 16f1da9fc873151c03644a58209b191a9c966812 | [
"MIT"
] | permissive | cugone/Abrams2019 | b9dd9d674cfbc131543e696e60a4c7b977964ed9 | cf1fb435cbe712fc149e02496bdc7462710cbf28 | refs/heads/master | 2021-11-11T01:18:13.295349 | 2021-11-08T17:42:52 | 2021-11-08T17:42:52 | 184,484,215 | 1 | 2 | MIT | 2019-05-01T21:56:32 | 2019-05-01T21:29:25 | C++ | UTF-8 | C++ | false | false | 333 | cpp | DrawInstruction.cpp | #include "Engine/Renderer/DrawInstruction.hpp"
#include "Engine/Renderer/Material.hpp"
[[nodiscard]] bool DrawInstruction::operator==(const DrawInstruction& rhs) {
return material == rhs.material && type == rhs.type;
}
[[nodiscard]] bool DrawInstruction::operator!=(const DrawInstruction& rhs) {
return !(*thi... |
42a79fd95f11deadcbee0af540629db167481462 | c3ae8e21953f20c4ff5b103e3ac6c19056e48f07 | /LineManager.cpp | 1ec9a40ce2aeb0b1bce76987a136619cbb8c0463 | [] | no_license | menghif/OOP-assembly-line | c27d25a6e96b3c46cdb0b877080b2881491940ac | e73cd6961cf3495c732f016963e26194d9f2f16c | refs/heads/main | 2023-05-24T17:39:06.662594 | 2021-06-03T23:01:30 | 2021-06-03T23:01:30 | 373,657,331 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,651 | cpp | LineManager.cpp | // Name: Francesco Menghi
// Date of completion: Nov 28, 2020
//
// I confirm that I am the only author of this file
// and the content was created entirely by me.
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <queue>
#include <utility>
#include <algorithm>
#include "LineManager... |
6c270a2d57f4766742bd4333d360bc34d780a02a | a182a138008a80aef43084a3f9338a80ea8e16cd | /self-assess06.cpp | 9171fd95b9d83faf8ed7ca817b2e58e62c9688fc | [] | no_license | mivehk/replC | 7f6cc2182812d385398109105e995196dbb3f6a7 | 8d03cb75fde935613ce5324348ff0abddec3c864 | refs/heads/master | 2022-12-17T14:30:01.553864 | 2020-09-16T17:09:08 | 2020-09-16T17:09:08 | 271,383,655 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,144 | cpp | self-assess06.cpp | #include <fstream>
#include <iostream>
#include <cstdlib>
#include <cctype>
using namespace std;
double average(ifstream& in_st_par);
void initialize(ofstream& out_st_par);
void new_line();
int main(){
using namespace std;
ifstream in_str;
ofstream out_str;
ofstream outfi_num;
char out_file[16];
... |
d68963f0c9e59da54984adac440ced3e80270a51 | cd7cf59291e435f66387f91ae603f1f604045eef | /map.cpp | f65f5cd516f4426f75f2151237749df86d543e02 | [] | no_license | willow-wind/tiandou | 8601009e001189e3a858d0eba62dc6d94486f0f0 | fd8b6ce1e6bb4d2c4f8d55771dfcece6eab20271 | refs/heads/main | 2023-06-19T00:00:50.619748 | 2021-07-19T01:46:24 | 2021-07-19T01:46:24 | 387,306,609 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 507 | cpp | map.cpp | #include "map.h"
#include "config.h"
Map::Map()
{
m_map1.load(MAP_PATH);
m_map2.load(MAP_PATH);//初始化加载地图对象
m_map1_posY=-GAME_HEIGHT;
m_map2_posY=0;
m_scroll_speed=MAP_SCROLL_SPEED;
}
void Map::mapPosition(){
m_map1_posY+=MAP_SCROLL_SPEED;
if(m_map1_posY>=0){
m_map1_posY=-GAME_HEI... |
f7fec00d8f885c7c02d02ae7bf285b6188eaaf1d | a48af61e00af9f60795490ef35bcadf8ddadaeba | /software_development/c++/c++_primer_5th-lippman_etc/ch_02/solution_27.cpp | 716529af9ced251237b39ab2880f69e29b3b2e77 | [] | no_license | HatlessFox/self-study | 3fcc8a559d5dad389ef1617fda5f86e70a8fe9f6 | 0246781ecccf946e697e0b077d9c80d287cd33b9 | refs/heads/master | 2022-03-23T14:48:24.679273 | 2019-11-17T16:26:58 | 2019-11-17T16:26:58 | 44,395,118 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 726 | cpp | solution_27.cpp | /*
* Exercise 2.27, p. 64.
*
* Which of the following initializations are legal?
*/
int main(int, char**) {
//int i = -1, &r = 0; // (a) - illegal, literal -> non-const ref is forbidden.
{
const int i2 = -1;
//int *const p2 = &i2; // (b) - illegal, ptr to const -> ptr to non-const
}
const int i = -... |
a76976bb0ef271e6269884ae9e99e29f5abc9e93 | f6244209f8ecff355822843f64d6368281266143 | /898.BitwiseORsofSubarrays.h | 0d0985792990ea4a50d9574a64a60b09d2c3fcd3 | [] | no_license | seesealonely/old-leetcode | 5711fc0d583ca15c14cb8fb3a241e860e6d6fcd4 | 28e4bc6e28ba8c36e90a05a6214c7c716fe03431 | refs/heads/master | 2022-04-26T10:18:43.770677 | 2020-04-28T21:20:35 | 2020-04-28T21:20:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,543 | h | 898.BitwiseORsofSubarrays.h | /*
We have an array A of non-negative integers.
For every (contiguous) subarray B = [A[i], A[i+1], ..., A[j]] (with i <= j), we take the bitwise OR of all the elements in B, obtaining a result A[i] | A[i+1] | ... | A[j].
Return the number of possible results. (Results that occur more than once are only coun... |
a6d04453e39dc6c71819ea1ce5f57ec4c41d2989 | 3b96d7afd9dd83bcad64bc5df1260216b9270b20 | /texture.h | 4bdb648f85eb73724b274c5fbe883e881eaa07b1 | [] | no_license | boksajak/raytracingthenextweek | 3fe111d56f2f2798e8f942c9b113135c44101dd3 | 8b1646f7874a04a4cced05841ef98b1675ecdbd1 | refs/heads/master | 2020-03-18T21:32:32.444627 | 2018-05-31T20:34:48 | 2018-05-31T20:34:48 | 135,285,742 | 10 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,377 | h | texture.h | #ifndef TEXTUREH
#define TEXTUREH
#include "perlin.h"
class texture {
public:
virtual vec3 value(float u, float v, const vec3& p) const = 0;
};
class constant_texture : public texture {
public:
constant_texture() { }
constant_texture(vec3 c) : color(c) { }
virtual vec3 value... |
85f24afa253571b89db0465a3ca4bf0429e188fa | 85ea38998dd8e36f4ce4fc5485f84175fcc77f33 | /evaluation/evaluation/PCA_Evalution.h | aeef28b56f65d09fbeda263f8fef0b860015c80f | [] | no_license | moogle0927/PCA | a022468efc6e327b044634418115c919f4a3c14c | dc1cb981ccba4fa31b4a169bc76543180a4ab3e3 | refs/heads/master | 2021-01-10T06:09:41.584840 | 2016-02-17T10:06:09 | 2016-02-17T10:06:09 | 51,046,295 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 5,967 | h | PCA_Evalution.h | /*
このヘッダファイルは,
・Generalization
・Specificity
を求めるプログラムが格納されています.
このヘッダファイルを使用する際は
・random.h(NumericalRecipesの正規乱数を使用するため)
・JI.h(一致度算出)
をincludeしてください.
*/
#include "other/narimhd.h"
//投影・逆投影
template<class T, class T2>
void Projection_Back_Projection( T &X, T &myu, T2 &U, T &X_out, int pe, int te){
//pe:P... |
273bc446000b7d3a1951075f4cca6debd2859bdf | 5499e8b91353ef910d2514c8a57a80565ba6f05b | /src/connectivity/wlan/drivers/wlanif/test/impl_unittest.cc | 99e323a450dc442f44bd5eccdb274044d6dca542 | [
"BSD-3-Clause"
] | permissive | winksaville/fuchsia | 410f451b8dfc671f6372cb3de6ff0165a2ef30ec | a0ec86f1d51ae8d2538ff3404dad46eb302f9b4f | refs/heads/master | 2022-11-01T11:57:38.343655 | 2019-11-01T17:06:19 | 2019-11-01T17:06:19 | 223,695,500 | 3 | 2 | BSD-3-Clause | 2022-10-13T13:47:02 | 2019-11-24T05:08:59 | C++ | UTF-8 | C++ | false | false | 644 | cc | impl_unittest.cc | // Copyright 2019 The Fuchsia Authors. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include <string.h>
#include <ddk/protocol/wlanif.h>
#include <gtest/gtest.h>
TEST(WlanifImplUnittest, WlanifMlmeStats) {
// Verify that union members of ... |
7fdf710944e274adabd9fc7848a353368a0c11d2 | 25150dc0633b56a22422527353a4ab72120169e8 | /HW6/heap/heap.cpp | 0f0500009c873a9b4768182bd2c5dfd6055064dd | [] | no_license | kazemicode/CST370 | 5e91f4baae98157d2e1270acb3d0d6e6fda8da6d | 9c0c59b52a80000e118bbf04f1274e589f162266 | refs/heads/master | 2022-07-11T04:18:06.891636 | 2020-05-16T04:25:53 | 2020-05-16T04:25:53 | 232,287,913 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,653 | cpp | heap.cpp | /*
* Title: heap.cpp
* Abstract: Implements heap operations using the bottom-up heap construction algorithm
* Creates a heap based on a set of numbers supplied from a user
* Name: Sara Kazemi
* Date: 02/25/2020
*/
#include <iostream>
using namespace std;
bool heapBottomUp(int arr[], int n)
{
bool wasHeap = ... |
46ec796b07b0521f03aa18532e57953d61f4d334 | d9515eaa3014daad9188d0ae04e53d8340221350 | /Graph/Flood_Fill.cpp | 1ee23884de4e6121b0df1239dcdb8d1ed0d64e0e | [] | no_license | KnifeParty12/LeetCode_Solutions | f5489d3e3323d21e6b51bbe4343ad26499ff901d | f630f8a7e33e75523f3d109c9a305b4e755d71cd | refs/heads/main | 2023-02-04T04:16:32.967996 | 2020-12-28T08:02:26 | 2020-12-28T08:02:26 | 301,473,672 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,037 | cpp | Flood_Fill.cpp | /*
https://leetcode.com/problems/flood-fill/
*/
vector<pair<int,int>> dir = {{0,1},{0,-1},{1,0},{-1,0}};
int m,n;
class Solution {
public:
void dfs(vector<vector<int>>& image,int x,int y,vector<vector<bool>> & visited){
visited[x][y] = true;
for(int i = 0; i<4; i++){
... |
04683da41895028e9cebfd7b42ca0a48e62cc6eb | 5a64c7cea7398dac095fd86395f90116919ebf99 | /Util.h | 263d828978915e00c6b134802ddf636ea090d525 | [] | no_license | worldcreate/rastrigin | 501852114f07abd65c25c72ad07e8c412a1cbf02 | 767b5e03d0c6106e76e718c7ce4af2b529dbe999 | refs/heads/master | 2021-01-20T22:25:47.936785 | 2015-07-10T12:29:13 | 2015-07-10T12:29:13 | 38,749,445 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 424 | h | Util.h | #ifndef _UTIL_H_
#define _UTIL_H_
#include <vector>
#include <iostream>
using namespace std;
class Util{
public:
static int getRand(int,int);
static void setSeed(int );
template <typename T>
static void removeVector(vector<T> &vec,int idx){
typename vector<T>::iterator it=vec.begin();
for(int ... |
d96eb88234cacbd17be9ee90c58951805074e06e | 51635684d03e47ebad12b8872ff469b83f36aa52 | /external/gcc-12.1.0/libstdc++-v3/testsuite/20_util/shared_ptr/comparison/less.cc | 5061e995cc9807b85c8f03c9ee44f3c9f6e32fa7 | [
"Zlib",
"LicenseRef-scancode-public-domain",
"LGPL-2.1-only",
"GPL-3.0-only",
"GCC-exception-3.1",
"GPL-2.0-only",
"LGPL-3.0-only",
"LGPL-2.0-or-later"
] | permissive | zhmu/ananas | 8fb48ddfe3582f85ff39184fc7a3c58725fe731a | 30850c1639f03bccbfb2f2b03361792cc8fae52e | refs/heads/master | 2022-06-25T10:44:46.256604 | 2022-06-12T17:04:40 | 2022-06-12T17:04:40 | 30,108,381 | 59 | 8 | Zlib | 2021-09-26T17:30:30 | 2015-01-31T09:44:33 | C | UTF-8 | C++ | false | false | 2,271 | cc | less.cc | // { dg-do run { target c++11 } }
// Copyright (C) 2008-2022 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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 Foundatio... |
d356024d8183c995c827fdb39bd8fe2a469d3fcb | 8e5202116dda09b2b43b6a87ea61265ed78e9dcf | /rmf_traffic/thirdparty/fcl/include/fcl/math/geometry-inl.h | 626a8953e6d5cf3854ad9870cad1df130883ac52 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | CLOBOT-Co-Ltd/rmf_traffic | 2391c465f9d20dbc646eb519a99df76fb5e81df0 | f1432d8db96db9d69246e10f4c1fe3593f2ed069 | refs/heads/main | 2023-08-19T14:29:29.265096 | 2021-09-02T06:18:37 | 2021-09-02T06:18:37 | 404,172,946 | 2 | 0 | Apache-2.0 | 2021-09-14T06:59:09 | 2021-09-08T01:29:17 | null | UTF-8 | C++ | false | false | 36,362 | h | geometry-inl.h | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011-2014, Willow Garage, Inc.
* Copyright (c) 2014-2016, Open Source Robotics Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... |
90af37ce4bd2707af14ccc13db6ba85e06d1cc74 | 0bb777c544c48a5940080fbfe88261d8aed95fda | /Libs/Generic/Logger.cpp | d51bd2a0263bf97a27e67d4e2520d2131017ca92 | [] | no_license | ktd2004/Game_Server | 7908678c13635fbb7585afca0ba35603528a6b3f | f9c5831f75a46697ab2d1f94107ea241005dcd7d | refs/heads/master | 2021-01-20T10:00:13.552028 | 2017-08-28T07:54:14 | 2017-08-28T07:54:14 | 101,618,429 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 6,094 | cpp | Logger.cpp | /* Copyright 2013 by Lee yong jun
* All rights reserved
*
* Distribute freely, except: don't remove my name from the source or
* documentation (don't take credit for my work), mark your changes (don't
* get me blamed for your possible bugs), don't alter or remove this
* notice. May be sold if buildable sou... |
4d323169055a7395a089f43e6f80adba9fb7e39c | 8a3a9fbc5ebacce805eca7f75c79ece791c8be3a | /KUKA201804191703/Decode/common/macro.cpp | aa8480505e6789796fbb5250f05d6de1560ab145 | [] | no_license | jan-kun/GitProject | 7abd583d3e0663440c1464cdb811e11eca3dc5b6 | cf0add8d35414eba32e1d1f36952f0af765327ac | refs/heads/master | 2020-03-15T04:40:11.013631 | 2018-05-07T08:06:17 | 2018-05-07T08:06:17 | 131,970,975 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,805 | cpp | macro.cpp | /*******************************************************************************
* GPCNC
* The General-Purposed CNC Software Develop Environment
* (c) Copyright 2004-2013, Automation Depatment of NJIT
* All Rights Reserved
*
*------------------... |
183eadb2015e9bb31a2340805b3736067e54de05 | b588cb851a14eb6d594c21e8e88469af0247a199 | /engine/memory/WHEvent.h | 10ba5dd0db805768e01bbd48f425dc006068c5dd | [] | no_license | Egor2001/whirl | cd94a155870998923cb8fa58edefb5f64d49c5f1 | e4bc65f6e62838b296f7caab242a19140170a1cc | refs/heads/master | 2021-01-23T01:18:50.400397 | 2017-09-06T04:46:46 | 2017-09-06T04:46:46 | 85,899,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,817 | h | WHEvent.h | #pragma once
#include "cuda.h"
#include "cuda_runtime.h"
#include "../logger/WHLogger.h"
namespace whirl {
class WHEvent final
{
public:
WHEvent(unsigned int flags = cudaEventDefault) noexcept : event_handle_{nullptr}
{
WHIRL_CUDA_CALL(cudaEventCreateWithFlags(&event_handle_, flags));
}
... |
e5277879241c71dfd3b267bf249b5a6b8d526a99 | 0cbf33215e73fd3d4f250faeea9b357ebaea7f34 | /src/global_vars.cpp | e875f85260705952332e30c4157c76c2e02369ed | [] | no_license | ThomasFiller/Rambo2_FW_ESP32 | 94d0d0f8c95293db14dc9bfc126413711716e114 | 80b074717e54c137af305dc36a4cd4949c8860b7 | refs/heads/master | 2023-06-23T18:14:04.846485 | 2021-07-23T10:34:32 | 2021-07-23T10:34:32 | 364,560,977 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,372 | cpp | global_vars.cpp | //#pragma SYMBOLS
#include "global_vars.h"
//*******************************Flag STM8 guiFlags
bool FLAG_CHANGE_SETUP_REQUIRED ;
bool FLAG_SAVE_SETUP_REQUIRED ;
bool FLAG_READ_ADC_AND_SWITCH_REQUIRED ;
bool FLAG_SET_I_LAS_REQUIRED ;
bool FLAG_READ_ALL_ICHTP_REGISTERS... |
3cd86d75fb408ac6483efe2781b753d6a4deb709 | 3a598b1d2bb08f8de979e8c6b7cce7f40b4ac101 | /readTree.h | cca02a655853289ad1681d06c9211ab6793b07a7 | [] | no_license | a95101303/Nick | 5a399c7a20cec3c0379e34484b907a690999ad1a | 99439b1ad3c662f8018f67579d5c5ef0da917efd | refs/heads/master | 2021-01-13T16:07:52.201694 | 2017-05-11T03:04:06 | 2017-05-11T03:04:06 | 81,727,263 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,768 | h | readTree.h | //////////////////////////////////////////////////////////
// This class has been automatically generated on
// Mon May 8 22:32:51 2017 by ROOT version 6.08/04
// from TTree t1065/t1065_tree
// found on file: electrons_100_GeV_5_7_X0.root
//////////////////////////////////////////////////////////
#ifndef readTree_h
#... |
1170914c74d672a492d3bf31e35196e761f71791 | 59864cbd213b5da6f50d6255b0a021564b3d5bd4 | /challenges/pizza_ordering_system/src/cgc_topping.h | bbabfc6d73b7cfa48954717472ff68472053f55d | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown",
"BSD-2-Clause"
] | permissive | trailofbits/cb-multios | 8af96a4fbc3b34644367faa135347f88e0e0d0a3 | 810d7b24b1f62f56ef49b148fe155b0d0629cad2 | refs/heads/master | 2023-09-05T03:56:20.229403 | 2022-12-27T15:47:54 | 2022-12-27T15:47:54 | 41,688,943 | 522 | 133 | MIT | 2023-06-29T02:47:13 | 2015-08-31T17:04:31 | C | UTF-8 | C++ | false | false | 470 | h | cgc_topping.h | #ifndef TOPPING_H_
#define TOPPING_H_
class Topping
{
protected:
const char *name;
int calories;
int carbs;
public:
virtual ~Topping();
const char *get_topping_name() { return name; }
int get_calories() { return calories; }
int get_carbs() { return carbs; }
bool operator==(const Toppi... |
678a09dbfcadd722c125bbd29666aee423c40e84 | 6b36bc1a420de327d58a0c2637d271d94da3c290 | /Chapter15/Disc_quote.h | a81c770567cd7acc6b18cce789d19e1ee4299c68 | [
"MIT"
] | permissive | FrogLu/CPPP | db92e8ee8908e87f9a204019b7548cdbdb8bc292 | 0ee4632c12b287957739e2061fd6b02234465346 | refs/heads/master | 2020-04-02T22:08:43.678829 | 2019-05-22T09:50:44 | 2019-05-22T09:50:44 | 154,822,971 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,943 | h | Disc_quote.h | #pragma once
#ifndef _DISC_QUOTE_H_
#define _DISC_QUOTE_H_
#include "Quote.h"
class Disc_quote :
public Quote
{
public:
Disc_quote() = default; // comment this constructor, and I declare another constructor,
// then this constructor won't be created by compiler, throw E1790
... |
072885eb22631abf47ac540b945f256ef2788e35 | 6106cd1c216c4e9727a6712dc547abd4bd5f2fe2 | /chat_client/source/logindialog.cpp | 4b2a6688146ea70fa528101f3a60b78124c9cc56 | [] | no_license | Borelset/chat | 72361dce50c9c8909fc5ff92860f13cde42f32d8 | 5f5074885a204cadfdc8a131d1769a1201f03d50 | refs/heads/master | 2021-01-20T01:12:01.105993 | 2017-04-26T09:23:58 | 2017-04-26T09:23:58 | 89,235,284 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,073 | cpp | logindialog.cpp | #include <QLineEdit>
#include <QString>
#include <QMessageBox>
#include "logindialog.h"
#include "ui_logindialog.h"
#include "network.h"
using namespace std;
extern network conn;
LoginDialog::LoginDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::LoginDialog)
{
ui->setupUi(this);
}
LoginDialog::~Log... |
56af16b54a48df4b416c157b13a9826c7ef195bd | 31aa0bd1eaad4cd452d0e2c367d8905f8ed44ba3 | /algorithms/palindromePermutationII/palindromePermutationII.cpp | fbe263daf5afe97ecdfde88b24e9d2c8a3d5aac7 | [] | no_license | Sean-Lan/leetcode | 0bb0bfaf3a63d483794a0e5213a983db3bbe6ef6 | 1583c1b81c30140df78d188c327413a351d8c0af | refs/heads/master | 2021-04-19T02:49:33.572569 | 2021-01-04T01:40:06 | 2021-01-04T01:40:06 | 33,580,092 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,750 | cpp | palindromePermutationII.cpp | /**
*
* Sean
* 2017-06-08
*
* https://leetcode.com/problems/palindrome-permutation-ii/#/description
*
* Given a string s, return all the palindromic permutations (without duplicates) of it. Return an empty list if no palindromic permutation could be form.
*
* For example:
*
* Given s = "aabb", return ["abba"... |
1204bb4b768a9aff98b3c3c24048bf5be147eaca | 8e4a69c6f04f25a498677e41e8e1667e99846502 | /blocksvector.h | dbb49e19c1db3faac0cf8df6456a9d6d812c3e7c | [] | no_license | Kristopher38/SE-blueprint-lib | e7ddfce8454911e16813b68b3f0ee7f0ba8d4194 | 9ec5e334e9907a2eae7e9419c93e810d5bdc2a50 | refs/heads/master | 2022-12-29T02:26:03.698667 | 2017-05-13T19:35:54 | 2017-05-13T19:35:54 | 299,999,129 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,984 | h | blocksvector.h | #ifndef H_BLOCKSVECTOR
#define H_BLOCKSVECTOR
#include <memory>
#include <vector>
template <typename T> using Blockptr = std::shared_ptr<T>;
template <typename T> using BlockptrVec = std::vector<Blockptr<T>>;
template <class BlockT> class BlocksVector : public BlockptrVec<BlockT>
{
public:
template <typename T> ... |
3fe5f698e8dd26595d9c728e5be32747663866c7 | 05dee134ef4e552fecd0d39dea5d6cdc3a82965c | /CodeForces/CodeForces-1148B.cpp | 27050b3a59fb70c73a4c409a3605cf40a28564cf | [] | no_license | yliu-cs/ACM | 35239420f36baf336e17a5c45d2c7a5ae9317413 | f67ca3e6de900afabe38201e19c74d0e1c6a40a3 | refs/heads/master | 2022-03-20T10:10:25.787434 | 2019-12-05T16:30:29 | 2019-12-05T16:30:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 710 | cpp | CodeForces-1148B.cpp | // Author: Tony5t4rk Time: 2019-10-22 15:55:32
#include <bits/stdc++.h>
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
long long n, m, ta, tb, k;
std::cin >> n >> m >> ta >> tb >> k;
if (k >= n || k >= m) {
std::cout << -1 << '\n';
return 0;
}
std::vector<int> a(n);
for (... |
3886fcd3ade961bfbbcb19259039ad27154286ad | f3f32cc6adb662d0ba30c9f5fc005d5c35afd181 | /36-ValidSudoku.cpp | 832d7c141c3759522df83e9c5074e7668d7046f7 | [] | no_license | rranjik/ideal-octo-barnacle | 675934f1e86591bb393ebb4ccde0f2cc40f7efd8 | 104f190cf3f4414578cc521886c914f0037e36ab | refs/heads/master | 2023-09-01T11:51:02.653672 | 2023-08-26T02:24:03 | 2023-08-26T02:24:03 | 159,698,415 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,536 | cpp | 36-ValidSudoku.cpp | class Solution {
public:
bool valid(int x, int y, const vector<vector<int>>& b){
vector<bool> seen(9, false);
for(int i = 0; i<9; i++){
if(b[x][i]){
if(seen[b[x][i]-1]) return false;
seen[b[x][i]-1] = true;
}
}
seen = vector<boo... |
97fcb493d00e4049e10cd45a5aafac378e87732f | 2ea09d5f08acddba89e7c1dfc975e6ca0dbfd504 | /armstrong.cpp | d9e228c7177daa9e76d3965abb0e313290a8db98 | [] | no_license | pravinkumarkg/codekata | b2ea0987223591e6a1ac369d4c82c53ab5187246 | 63fbfa1c93274c9befd6bca266c2e53bc719f0d0 | refs/heads/master | 2020-06-16T17:26:43.884489 | 2019-07-09T17:12:00 | 2019-07-09T17:12:00 | 195,650,370 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 253 | cpp | armstrong.cpp | #include <iostream>
using namespace std;
int main() {
int num,rem,orig,sum=0;
cin>>orig;
num=orig;
while(num!=0)
{
rem=num%10;
sum=sum+rem*rem*rem;
num=num/10;
}
if(sum==orig)
{
cout<<"yes";
}
else
{
cout<<"no";
}
return 0;
}
|
caf542510261aa8a10c0acd6b23c53d12657c853 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /google_apis/credentials_mode.cc | 54cf67c4237136ec38316e2e29c9304056002bdc | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 837 | cc | credentials_mode.cc | // Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "google_apis/credentials_mode.h"
#include "base/feature_list.h"
#include "services/network/public/mojom/fetch_api.mojom.h"
namespace google_apis {
namespace {
BASE... |
bc81595cc62938e03a63c2cbb737c947be6e1e0a | 72d9009d19e92b721d5cc0e8f8045e1145921130 | /rpf/src/m2.cpp | 41f5a5736ba92f536307e329b25bf91c8bd95bd3 | [] | no_license | akhikolla/TestedPackages-NoIssues | be46c49c0836b3f0cf60e247087089868adf7a62 | eb8d498cc132def615c090941bc172e17fdce267 | refs/heads/master | 2023-03-01T09:10:17.227119 | 2021-01-25T19:44:44 | 2021-01-25T19:44:44 | 332,027,727 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,355 | cpp | m2.cpp | #include "rpf.h"
// M2 is not implemented yet
struct ch2012 {
ifaGroup grp;
bool pearson;
double stat;
double weightSum;
std::vector<bool> rowMask;
ch2012(bool twotier, SEXP Rgrp);
void run(const char *method);
void accumulate(double observed, double expected);
};
ch2012::ch2012(bool twotier, SEXP Rgrp)
: ... |
441bc35e82f9674e99eedddf4a2f850b158dce04 | f80d19d58816c14cf51b6457d017ccb1b01918ea | /src/guis/guitexture.cpp | 89e4e97fbb97ae381bad7c5780218491b243a872 | [] | no_license | piochelepiotr/minecraftClone | 378a277d88d35ab36f1ef517598800b99355e6c5 | c4389f5f4f7a8164658e7943050119a0508dcd00 | refs/heads/master | 2021-05-11T02:53:44.298323 | 2018-11-03T02:24:20 | 2018-11-03T02:24:20 | 117,897,006 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 355 | cpp | guitexture.cpp | #include "guitexture.h"
GuiTexture::GuiTexture(GLuint id, const glm::vec2 &scale, const glm::vec2 &position) :
m_id(id),
m_scale(scale),
m_position(position)
{
}
GLuint GuiTexture::id() const
{
return m_id;
}
glm::vec2 GuiTexture::scale() const
{
return m_scale;
}
glm::vec2 GuiTexture::position(... |
6b0486a0e658d810a6a105d31b284f6d4f10de73 | 0ef832d8eaedc16253cc220bc704a52597d248fe | /model_server/cmd/include/cmd_shell.h | 755d12968c1f4290686db66f46ff0a022ccc2242 | [
"BSD-2-Clause"
] | permissive | radtek/software-emancipation-discover | 9c0474b1abe1a8a3f91be899a834868ee0edfc18 | bec6f4ef404d72f361d91de954eae9a3bd669ce3 | refs/heads/master | 2020-05-24T19:03:26.967346 | 2015-11-21T22:23:54 | 2015-11-21T22:23:54 | 187,425,106 | 1 | 0 | BSD-2-Clause | 2019-05-19T02:26:08 | 2019-05-19T02:26:07 | null | UTF-8 | C++ | false | false | 7,247 | h | cmd_shell.h | /*************************************************************************
* Copyright (c) 2015, Synopsys, Inc. *
* All rights reserved. *
* *
* Redistribution and... |
8df32e7cbc57169bd3b28b17588778de1d7b0567 | 5b5602db16e9c68d6428a78a66a4207f742582ec | /KerSem.cpp | ad6c9d79b1b1e84620c6643986c1704e72799281 | [] | no_license | nikolakrstic99/x8086-Kernel | eb278852fe9005b2d1dedcbb1bcac0bf7bfba9bd | 0b42b88949e8f29d37b92568a51361d56e72f145 | refs/heads/main | 2022-12-26T11:25:47.495081 | 2020-10-15T15:21:08 | 2020-10-15T15:21:08 | 304,350,483 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,880 | cpp | KerSem.cpp | #include "KerSem.h"
#include "PCB.h"
#include "schedule.h"
#include "Const.h"
#include "ListaSem.h"
#include "Red.h"
#include "thread.h"
ListaSem KernelSem::allSems;
KernelSem::KernelSem(int i) {
lock();
allSems.push(this);
if(i<0)i=0;
vrednost = i;
unlock();
}
KernelSem::~KernelSem() {
lock... |
c482498ef62193b7e4fd5317ce6ac709925c4518 | 4d0fd4fa3ae08b2d42b0293588dc9fc4c7ddc2e3 | /topcoder/aseries.cpp | cd5134e8fd750ab55093ec17f68f5e9b352df2b1 | [] | no_license | phytoporg/competitiveprogramming | b5dddc1426ac1c8338870d908cfb00704523b3b3 | add6f467f6c7cdad3e771970f816931bed90a1e0 | refs/heads/master | 2020-08-03T10:47:57.472472 | 2020-05-15T17:05:36 | 2020-05-15T17:05:36 | 211,724,223 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,312 | cpp | aseries.cpp | #include <bits/stdc++.h>
using namespace std;
#define PRINTVAR(x) (cout << #x << " is " << x << endl)
using ull = unsigned long long;
array<ull, 64> colmasks{};
array<ull, 64> rowmasks{};
int longest(vector<int> values)
{
size_t n{values.size()};
sort(begin(values), end(values));
map<int, int> freqs;
... |
2ad4875d1f63bbc6decc146299f2f5a6966bfbb9 | 52ca17dca8c628bbabb0f04504332c8fdac8e7ea | /boost/atomic/detail/ops_extending_cas_based.hpp | b58eefa9ebae227ccd34ef717230fb1393233af2 | [] | no_license | qinzuoyan/thirdparty | f610d43fe57133c832579e65ca46e71f1454f5c4 | bba9e68347ad0dbffb6fa350948672babc0fcb50 | refs/heads/master | 2021-01-16T17:47:57.121882 | 2015-04-21T06:59:19 | 2015-04-21T06:59:19 | 33,612,579 | 0 | 0 | null | 2015-04-08T14:39:51 | 2015-04-08T14:39:51 | null | UTF-8 | C++ | false | false | 83 | hpp | ops_extending_cas_based.hpp | #include "thirdparty/boost_1_58_0/boost/atomic/detail/ops_extending_cas_based.hpp"
|
14340b9afd024426f84b0c54328f55f3e959e47a | e7d31066f4dbdfc71011371d634e1db622c5fe29 | /galditu.ino | abac4448e537b4b75111c707b3463c8808903df8 | [] | no_license | sagarrabanana/Galditu | 66acc08e9db25bd2f3ac7c5fc599ca347873a807 | 0336de1ff7c69ec6bc72bb45af35e270f5427b11 | refs/heads/master | 2020-03-12T09:54:11.625507 | 2018-04-22T11:56:16 | 2018-04-22T11:56:16 | 130,561,909 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,706 | ino | galditu.ino | /*
_ _ _ _ _ _
_| || |_ __ _ __ _| | __| (_) |_ _ _
|_ .. _|/ _` |/ _` | |/ _` | | __| | | |
|_ _| (_| | (_| | | (_| | | |_| |_| |
|_||_| \__, |\__,_|_|\__,_|_|\__|\__,_|
|___/
sagarrabanana@bizkaia.eu asier@komunikatik.com
10/06/2015
*/ ... |
28823cd458712c6d2aee448acaee919129319802 | 337d0d76c2002efeed1638de0bdc82f3dec8c67f | /StormPieces/StormLibraryTester/Storm.h | 5cc7d62f1e1e5436c67f0bbcc8a151a2e74c950a | [] | no_license | yaksplat/Storm | b8d8722b7d8007129a0f78786c1e7b3dd227497f | 662c634334fb4979a0b411d359d8f632479676a6 | refs/heads/main | 2023-03-08T19:57:32.511269 | 2021-02-27T17:16:44 | 2021-02-27T17:16:44 | 338,464,157 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,872 | h | Storm.h | #ifndef STORM_H
#define STORM_H
#include <math.h>
#include <Arduino.h>
class Storm
{
private:
unsigned long StartTime;
unsigned long CurrentTime;
public:
float Diameter;
float MovementSpeed;
float DistanceX;
float DistanceY;
float CurrentX;
float CurrentY;
bool done;
float Nea... |
44bdf72e1d08a5ccdab68771779caccfdf49e997 | 4e65ae914237a086d6ad44b05053c06251623cb4 | /data_structure_2/HEAP/Heap.cpp | ab44d0f2bdd3455d0e3888af5a1a0c95eff7c12c | [] | no_license | atrlkwqr/Data-Structure | 2b9934b73b454f19cb6ae2cc9205aec5625e5145 | b4d7ec4e1ba866ffafc1e82a0fe4977532887dc3 | refs/heads/master | 2023-04-08T00:49:05.516734 | 2019-12-11T04:47:40 | 2019-12-11T04:47:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 615 | cpp | Heap.cpp | #include "Heap.h"
void down_heap(int *heap, int size, int i) {
int left = 2 * i + 1;
int right = 2 * i + 2;
int minist = i;
if (left < size && heap[left] < heap[minist])
minist = left;
if (right < size && heap[right] < heap[minist])
minist = right;
if (minist != i) {
int tmp = heap[i];
heap[i] = heap[... |
c10723569fb3164751ad9d4c9da3355ca8c7ebfb | 6d5bcfc49ee7159c2847f9afb8ff895dded5db78 | /frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/mp4enc_api.cpp | 7ab8f451e7434574255efca7ebd4d246710c1de4 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | aksqcy/Android-7.0 | 3ccf332ad9c95eac1fa9476154e6bd6782c56eb9 | e65af741a5cd5ac6e49e8735b00b456d00f6c0d0 | refs/heads/master | 2023-03-15T22:06:03.169815 | 2019-12-08T14:17:10 | 2019-12-08T14:17:10 | 535,748,893 | 1 | 0 | MIT | 2022-09-12T16:12:26 | 2022-09-12T16:12:25 | null | UTF-8 | C++ | false | false | 128,662 | cpp | mp4enc_api.cpp | /* ------------------------------------------------------------------
* Copyright (C) 1998-2009 PacketVideo
*
* 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.o... |
dcbcbec250cf003b3fd72ee44d66f910568dc257 | 658bda92654220e5c09279de7f4a26f3b3f68192 | /src/hmac.inl | b6742cc874577e80eac16713a984d018910e1a58 | [
"MIT"
] | permissive | jgriffiths/libwally-embedded | 45474602a918cab3c1803385390e090663832824 | 356dbbc398bbd100433deff92fbc9fc0a771371c | refs/heads/master | 2022-06-09T07:31:02.209995 | 2020-05-04T20:51:02 | 2020-05-04T20:51:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 66 | inl | hmac.inl | #include "wally_config.h"
#include "../libwally-core/src/hmac.inl" |
b348d8745f86012dcbb2263cb8bcede2b6611727 | 33f586e63328e8936628e7fc3535f078004d9b4f | /Common/ObjectData.h | dab21b96d020e2b76b61849203aa965d07c34853 | [] | no_license | kani-m/OpenCampus | a752532dd4ac5106912b0bb939e867cc3b946904 | 2c5b01d54b3664fa2cf15d7278c072b2b89b333b | refs/heads/master | 2020-03-25T16:03:44.538416 | 2019-07-25T07:51:07 | 2019-07-25T07:51:07 | 143,913,027 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,468 | h | ObjectData.h | #pragma once
#include "Shape.h"
#include "ShapeIndex.h"
#include "SolidShapeIndex.h"
#include "SolidShape.h"
// Position of vertices of rectangle
/*
constexpr Object::Vertex rectangleVertex[] = {
{{ -0.5f, -0.5f, 0.0f }},
{{ 0.5f, -0.5f, 0.0f }},
{{ 0.5f, 0.5f, 0.0f }},
{{ -0.5f, 0.5f, 0.0f }}
};
*/
// Po... |
e7ae6d93822a273de68158648f4dcc8548256556 | 2c0f4a522dd26eeaf27120be429dd86419bac8f5 | /Implementiation of Linked lists/deletion.cpp | a6824087d0532a9e5d04890ac579820e708087d5 | [] | no_license | vishnupsingh523/scaling-structures | 8b55e705007c8f512f80aa94dbd8fae65f99ae79 | ad4efab8e54b47d8f8015def670ff3753d53cb24 | refs/heads/master | 2023-07-26T08:16:45.660063 | 2021-09-09T04:22:09 | 2021-09-09T04:22:09 | 289,501,238 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,039 | cpp | deletion.cpp | #include<iostream>
using namespace std;
// creating node
struct node{
int data;
struct node * next;
};
node * createNewNode()
{
int data;
cout<<"\nData: ";
cin>>data;
node * n = new node;
n->data = data;
n->next = NULL;
return n;
}
// Insertion at the TOP of the linked list
node *... |
8c191961be6dcfa597d407a3519be84dd726c4b0 | db3f82897530b15aa2015c527dcf40700d88be48 | /Lockon/Src/Cosmos/wSunMove.h | 06034772928f30faf7b84365c042f97c3a040d81 | [] | no_license | VahidHeidari/ReverseEngineering | 2eff32d4d49b560311c29cea06352d28d32c86ca | 04f915c3009bdd59eddd53793256574c1b0b4d1b | refs/heads/master | 2021-01-11T08:32:53.721706 | 2017-07-18T04:08:10 | 2017-07-18T04:08:10 | 76,719,008 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 486 | h | wSunMove.h | #ifndef WSUNMOVE_H_
#define WSUNMOVE_H_
#include "Common.h"
class wSunMove
{
public: __thiscall wSunMove(class wSunMove const &)
public: __thiscall wSunMove(void)
public: virtual __thiscall ~wSunMove(void)
public: class wSunMove & __thiscall operator=(class wSunMove const &)
public: virtual void __thiscall NextEvent(... |
cad7d9fc5145ae3aea285f30946afed23fcab18b | 4c1662d5f8203309f19fbc0c67e585ee054f26fe | /skngame/td/System.cpp | 8839461398d0f27eaea9cce01e7bf2e6b2d863fa | [] | no_license | sunkening/skngame | d39378d21a4f12e2f83129dbcac36d2820f37d3d | 2d567d83d31e795103d55f0519e97930f3fa638e | refs/heads/master | 2021-01-24T09:39:17.817650 | 2017-01-07T08:58:00 | 2017-01-07T08:58:00 | 69,523,203 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,218 | cpp | System.cpp | // System.cpp: implementation of the System class.
//
//////////////////////////////////////////////////////////////////////
#include "System.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
int... |
eda232bd0c9b7f8d4c7861acfdf5fd5d8acce812 | ead9f3470408d105a6ee6835f13a47cc9900b38b | /QuanLySinhVien/src/sinhvien.cpp | 2f282300429e496ca4e3ab724f643d5cf5b60873 | [] | no_license | dpc4f/MyApp | 69e3a4e4cb116c708981b980362a5bda1e3cf26d | 504fc547c6017bb13a375e2a5c127fbe5b546a5e | refs/heads/master | 2022-12-12T16:25:26.470632 | 2020-02-08T06:46:37 | 2020-02-08T06:46:37 | 132,605,937 | 0 | 0 | null | 2022-12-07T22:11:33 | 2018-05-08T12:30:19 | JavaScript | UTF-8 | C++ | false | false | 1,315 | cpp | sinhvien.cpp | #include <iostream>
#include "sinhvien.h"
using namespace std;
CSinhVien::CSinhVien(const string& ms, const string& fname, const string& lname, const string& dob) : CNguoi(fname, lname, dob), mssv(ms)
{
}
std::ostream& operator <<(std::ostream& os, const CSinhVien& sv)
{
os << sv.mssv << std::endl;
os << sv.firs... |
56f325c5134f054ae3a4c0ee25007daf6ca7c516 | d255a6c41b2d41e9351673a2b09872297ec051eb | /min_path/dijkstra_adjacency_matrix.cpp | b09837be881ecd8e91e6b6c76e02a869450d86eb | [] | no_license | wangruici/pat_doing | 9080e0adfc57fed801090c2ab4edd6e36729e5e4 | 440090c5bbea219fd1dd56465512038488781436 | refs/heads/master | 2021-01-24T01:22:18.170878 | 2018-04-18T13:58:07 | 2018-04-18T13:58:07 | 122,806,167 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,428 | cpp | dijkstra_adjacency_matrix.cpp | #include <algorithm>
using std::fill;
const int MAXV=1000;
const int INF=0x3fffffff;
int point_num,graph[MAXV][MAXV];
int distance[MAXV];
int pre[MAXV];//表示从起点到顶点v的最短路径上v的前一个点
bool visited[MAXV]={false};
void Dijkstra(int begin_index){
fill(distance,distance+MAXV,INF);//fill函数将整个数组distance赋值为INF;
distance[begin_in... |
a3282649beddc6dc17dffb5690ea23bd16c9f358 | e216bd896564c4f68c25d341c0f1be31fd30a4c8 | /readtxt.h | 82bbdce7d4b15745170f71af51599c360dbee6fe | [] | no_license | KongQingXin12/720GPS_complete | cf8c3c486193c7c5797e57845a601865af0715b7 | d4463895ae52957bae0e224ce12b94e8a26310bd | refs/heads/master | 2020-03-30T13:08:42.019977 | 2018-10-05T12:47:12 | 2018-10-05T12:47:12 | 151,258,696 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 433 | h | readtxt.h | #ifndef READTXT_H
#define READTXT_H
#include <iostream>
#include <fstream>
#include <cassert>
#include <string>
#include<vector>
using namespace std;
class readtxt
{
private:
string r_filename;
string w_filename;
vector<string> ans;
public:
readtxt();
readtxt(string r,string w);
void trans();
... |
ba828dc6fbf475730d4505a6409f781075d1c355 | 9bd2b92b924d65f19bc534b543f90ae63ea23637 | /contest/2019徐州/E.cpp | ff46e62237ea5a28bc473477f834b2ef7304d615 | [] | no_license | mooleetzi/ICPC | d5196b07e860721c8a4fe41a5ccf5b58b6362678 | cd35ce7dbd340df1e652fdf2f75b35e70e70b472 | refs/heads/master | 2020-06-09T12:13:48.571843 | 2019-12-01T11:39:20 | 2019-12-01T11:39:20 | 193,435,046 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,696 | cpp | E.cpp | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#if __cplusplus >= 201103L
#include <unordered_map>
#include <unordered_set>
#endif
#include <vector>
#define lson rt << 1, ... |
f656bb2137ef1619aa0cbd7737a6a6731717ea3b | 8f2d8fc24d8401dae3841dacf48a08937308274d | /cardGame/hpp/Movement.hpp | b451027cf835239a366744819e2ef4b8d0fee291 | [] | no_license | safir-medjeber/cpp_project | 1a8d624b739ba40a0bb6538345c7fb575e7103fb | 32ac44ff3e6595159cb12350790e51c600724688 | refs/heads/master | 2021-01-10T03:53:20.910620 | 2015-01-22T20:33:06 | 2015-01-22T20:33:06 | 47,075,316 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 630 | hpp | Movement.hpp | #ifndef H_MOVEMENT
#define H_MOVEMENT
#include <iostream>
using namespace std;
class Movement {
private:
int * cardsPos;
int nbCards;
int type;
void isInt(string, unsigned int&);
void match1(string);
void match2(string, int);
void match3(string, int);
void match4();
bool isWhat(int);
public:
st... |
9e5cbdaa6111686a87d56e62adfcf61d9cf4e710 | 45b59e4f0b2f4228cf92471ad6126bbf33cdc7d3 | /examples/03-notify/03-notify.cpp | 73da7d72ddf190998d8c57c822bd15458b73ae04 | [
"MIT"
] | permissive | rickkas7/DebounceSwitchRK | 1173b66c48ec984bedf37269e5145eac8ea2c065 | 79521b2eaa29cf3dff28a8933f58a2cc586e6664 | refs/heads/main | 2023-02-27T08:00:18.275942 | 2021-01-30T10:24:43 | 2021-01-30T10:24:43 | 333,813,975 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,032 | cpp | 03-notify.cpp | #include "Particle.h"
#include "DebounceSwitchRK.h"
SYSTEM_THREAD(ENABLED);
SerialLogHandler logHandler;
void interruptHandler();
DebounceSwitchState *notifyHandler;
pin_t TEST_PIN = D3;
void setup() {
// Comment this out to wait for USB serial connections to see more debug logs
// waitFor(Serial.isConnec... |
a4f403ded0a9e6a9d01b45f440d5db6776acf90b | 566de1a1b88c2b35e412ac6d656d9ee5c2da1fd1 | /538. Convert BST to Greater Tree.cpp | 492d10b0bb329e6d194d363f30407be4276928e6 | [] | no_license | HanHoney/leetcode | ada30c82946457f0ffc1dbc5ec2a6128448d60be | 81d5d80bf65c9cdfb896cd9903ab277e507f4b66 | refs/heads/master | 2020-04-10T22:51:08.060432 | 2019-05-29T08:14:09 | 2019-05-29T08:14:09 | 161,334,067 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 608 | cpp | 538. Convert BST to Greater Tree.cpp | //538. Convert BST to Greater Tree
//Easy
#include <iostream>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) :val(x), left(nullptr), right(nullptr) {}
};
class Solution {
public:
TreeNode* convertBST(TreeNode* root) {
if (root == nullptr) retur... |
999e973578add918a07b15b2cce1d50ef8e8afc5 | a8ec0b280e63eb06c9352402aaa81c4f6b06b47c | /HDU/3685.cpp | 0b6738d14e3190949f67173913ecb37d1d64b7c0 | [
"Unlicense"
] | permissive | CodingYue/acm-icpc | 5eff1b81a50cc9f7cbcd93c38b0232ba085a0b97 | 667596efae998f5480819870714c37e9af0740eb | refs/heads/master | 2020-05-16T21:51:33.553238 | 2017-02-14T11:52:05 | 2017-02-14T11:52:05 | 17,904,772 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,264 | cpp | 3685.cpp | // File Name: hdu3685.cpp
// Author: YangYue
// Created Time: Thu Oct 3 16:06:57 2013
//headers
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <ctime>
#include <string>
#include <queue>
#include <set>
#include <map>
#include <io... |
3034b18e554d1ac1ae50685acce64609524dbb58 | d8d5465332d274fb9795c1ca37d9d8436c228ff3 | /3rd_semester/Struct/Aho/AC.h | 2473b7bdbbfc7c22169ae505a69536083285ccb6 | [
"MIT"
] | permissive | mehakun/Labs | 8b651942ac99a69b99da7e979b395aec56b442af | 0d42c97e8671d31b9cb49093686df7b8d4d62cfd | refs/heads/master | 2021-01-12T15:11:57.273830 | 2018-06-09T17:07:08 | 2018-06-09T17:07:08 | 73,270,492 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 643 | h | AC.h | #ifndef AH_H
#define AH_H
#include <string>
#include <vector>
#include <memory>
#include <map>
class TFinitaAuto {
private:
class TNode {
public:
std::shared_ptr<TNode> fail;
std::map<unsigned long, std::shared_ptr<TNode> > to;
std::vector<int> out;
TNode();
~TNode() {};
};
std... |
225a441eaea52940f7d13098bc164a3b78915af2 | 62415f89e15038010ec337364a4a31452ea73cd2 | /Server/server.cpp | 8b7af0d585dfa9f733f9de652a1101c3d54eeb01 | [] | no_license | Gabschgi/MultiplyServer | 14c33fa1a28e283633ec045dba57c15fd3cdf588 | 8d2cbf11d120d410f3333121a0395c3a05a26516 | refs/heads/master | 2021-01-21T18:39:05.405430 | 2016-05-23T06:03:56 | 2016-05-23T06:03:56 | 58,354,391 | 0 | 0 | null | 2016-05-09T06:42:31 | 2016-05-09T06:42:31 | null | UTF-8 | C++ | false | false | 1,092 | cpp | server.cpp | #include "server.h"
#include "ui_server.h"
using namespace std;
Server::Server(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::Server)
{
ui->setupUi(this);
connect(&server, SIGNAL(newConnection()), this, SLOT(acceptConnection()));
server.listen(QHostAddress::Any, 12345);
}
Server::~Server()
... |
33d7fd245214f07ae599cb9f44cbd5b27450b4fa | 46c836b09235bea75eac01ce7c21eb00157689da | /src/lib/LightTreeLib.hpp | 9f0cbca7cd94a6997f606fcfbd71b0b10d58226a | [
"BSL-1.0",
"MIT"
] | permissive | alex-87/HyperGraphLib | a42c486b6a0a2f661fe40f29f72537409a16bec7 | 20ba0e335e8c31504a489b27c7183845546dec4e | refs/heads/master | 2022-08-21T13:32:11.832542 | 2022-08-09T17:20:53 | 2022-08-09T17:20:53 | 42,951,042 | 25 | 6 | null | 2017-03-05T22:30:16 | 2015-09-22T17:56:17 | C++ | UTF-8 | C++ | false | false | 2,165 | hpp | LightTreeLib.hpp | /*
* MIT License
*
* Copyright (c) 2015 Alexis LE GOADEC
*
* 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, cop... |
83c96b08741683e71767fa23403a2218ea39c9ba | 2901c650fc5792566a5fb564cf842807e52890f8 | /uri_1123.cpp | 6eef7724c84816312ea5e049e2be46d512847d4d | [] | no_license | RichartRupolo/URI | d9cd95e75edcf04f1e92b56b6b3ec7fa891caefa | 492e680f3d1943e0566f30740df31e6c6ef15a29 | refs/heads/master | 2022-11-07T11:08:44.054659 | 2020-06-23T22:43:15 | 2020-06-23T22:43:15 | 274,273,744 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,101 | cpp | uri_1123.cpp | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <queue>
#include <algorithm>
#define INF 999999999
using namespace std;
int n, m, c, k;
int grafo[1010][1010];
int custo[1010];
queue<int> fila;
void infinite()
{
for(int i=0; i<=n; i++){
custo[i]= INF;
for(int j=0; j<=n; j++) grafo[i][j]=INF;... |
7f8971cfbe814c544819bd54e7d8e6b9805d8a4d | bf0d7304a4cb72d5ad9ec7b712428f11da3ea71c | /Searching & Sorting/MaximumProductOfWordLengths.cpp | a4596fb7ba1b2206235466aaf06db849a534c88d | [] | no_license | DivonilLiquid/Data-Structure-Algorithm | 2e28dde9444f4fbdf759ab9a9f66cd2e7017ad5a | f744f18d1b92ed7137a80463ca4b7dd6804983a2 | refs/heads/master | 2023-05-07T07:54:09.225396 | 2021-05-25T07:16:51 | 2021-05-25T07:16:51 | 287,464,669 | 1 | 3 | null | 2021-01-03T06:13:50 | 2020-08-14T06:50:41 | C++ | UTF-8 | C++ | false | false | 1,564 | cpp | MaximumProductOfWordLengths.cpp | /*
Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assume that each word will contain only lower case letters. If no such two words exist, return 0.
Example 1:
Input: ["abcw","baz","foo","bar","xtfn","abcdef"]
Outpu... |
add9e58867bcae7acb555d275c0ea058fe220eda | e6841a65c30e2ff468cf1e779559cbc03567cdb1 | /Praktikum GGI 2/Lösungen/Strassenverkehr Florian Walbroel 2014/Source/Block 1/Fahrzeug.cpp | 68237c1e94cac4f4a3740b2595dbbb0d6382e89f | [] | no_license | karimbouaziz95/Praktikum2_Versuch | 51ceff8b20e28f1cb5fe13d0397bf75a59a56e84 | 092993f74a9faabbf3918ad5b1393c8b7c06f90f | refs/heads/main | 2023-08-23T04:53:36.152724 | 2021-10-17T16:20:01 | 2021-10-17T16:20:01 | 418,179,393 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,367 | cpp | Fahrzeug.cpp | //----- Aufgabenblock_1 -----//
#include "Fahrzeug.h"
int Fahrzeug::p_iMaxID = 0;
Fahrzeug::Fahrzeug() {
p_vInitialisierung();
#ifdef DEBUG
cout << "Created new Object: [" << p_iID << "] - '"
<< p_sName << "'" << endl;
#endif
}
Fahrzeug::Fahrzeug(string sName) {
p_vInitialisierung();
p_sName = sName;
#if... |
a2c0df7e520f27159e2aee24d530ed5c67e119d0 | 5de39f2aabbc2bd26ecc05850ed235955270c23e | /Ctwl_ChunkSvr_Analysis/xzmo_trunk/gamesvr_s/commonBase/SysMsgToServer.cpp | b9753bf84f7708506e1c27cfc9a46b82defae58e | [] | no_license | WangcfGH/Git_Code | ecba205784826f49a6059ee7ee7cbf9996e3c7b7 | db3ccddd039132669e4d9ac1c84ab156fee83eb2 | refs/heads/master | 2023-04-27T03:04:55.345257 | 2023-04-15T01:51:42 | 2023-04-15T01:51:42 | 224,375,664 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 14,076 | cpp | SysMsgToServer.cpp | #include "stdafx.h"
#include "SysMsgToServer.h"
void SysMsgToServer::OnServerStart(BOOL& ret, TcyMsgCenter* msgCenter)
{
if (ret)
{
AUTO_REGISTER_MSG_OPERATOR(msgCenter, GR_SENDMSG_TO_SERVER, OnSendSysMsgToServer);
RegsiterSysMsgOpera();
}
}
void SysMsgToServer::RegsiterSysMsgOpera()
{
... |
7d418c3b633c77bdeb95d56a8f41793dfe6ff171 | 8f66e7057a4275882f810a570e8e208caa07395a | /COOK116Bb.cpp | ba08cbc78362f3773ad2ced8ca03e19b4e25e437 | [] | no_license | amit586/cp | ab3b1d9fc12da56cde1e69c35e2b9ba627d4695b | 885420a7262ee26440099ee77f430d613c55f443 | refs/heads/master | 2021-03-02T12:41:35.824149 | 2020-08-07T11:25:33 | 2020-08-07T11:25:33 | 245,869,229 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 810 | cpp | COOK116Bb.cpp | #include<bits/stdc++.h>
#define fio ios_base::sync_with_stdio(false);cin.tie(NULL);
#define f(i,j,k) for(int i=j;i<k;i++)
#define fr(i,j,k) for(int i<=k-1;i>=j;i--)
#define ll long long
#define ld long double
using namespace std;
int main()
{
fio
int TC;
cin>>TC;
while(TC--)
{
int n;
cin>>n;
std::vect... |
62f832defef742416f34e7601b973c8e94a028fb | e582f926fa3e6c325d70424b3c76feb1b094a486 | /shin_1560308/butterflyfish.cpp | 1b14640fe5c44afb3671202a3027b9a2d5d78ce6 | [] | no_license | tndud4429/Aquarium | dd9d9bac40294a15520c2844c5f8e5a9afd86529 | c32b4611b5f892e0789befe3553da8c5ead85506 | refs/heads/master | 2020-08-13T03:15:53.801455 | 2019-10-13T21:23:47 | 2019-10-13T21:23:47 | 214,895,964 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,447 | cpp | butterflyfish.cpp | // 1560308
// Soo Young Shin
// butterflyfish.cpp
// Project2
#include "butterflyfish.h"
#include "fish.h"
#include <iostream>
Butterflyfish::Butterflyfish(int capacity, std::string name): Fish(capacity,name){
//initialize its own variables
b_capacity = getCapacity();
b_extendedMemory = new char[b_ca... |
aa8ac75f39c2b5b36c8e1492b8196fa20825ec09 | d6832620606848667427d2421d3f29ae2829e00b | /blackjack/src/Answer.cpp | 21a37f0b41f1875c9ecf3bb3c5fd6d5a6f381e7c | [] | no_license | ManuelRolando/DEMO | 499aac1615119aaa6dd226b2952f004dfaaed08a | 2248de7cd21f6167c1a5ae3db2def289ec07339d | refs/heads/master | 2023-05-04T10:34:19.565982 | 2021-05-18T01:04:30 | 2021-05-18T01:04:30 | 256,401,848 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,347 | cpp | Answer.cpp | /*
* Answer.cpp
*
* Created on: Jul 3, 2020
* Author: solalu
*/
#include "../include/Answer.h"
#include <string>
//#include <boost/algorithm/string.hpp>
#include <iostream>
using namespace std;
int Answer::getState()
{
if(accept)
return 1;
else if (negate)
return 0;
else
... |
7dbad9332df8d7dd20a9cd8eecf099fdca36c77a | bbc433ff1d3a0c231b8df6a673910fab2f827961 | /sparse_table.cpp | 21e169b5b8b0791510fdd280dd513796d0648f6a | [] | no_license | ordansantos/acm-icpc | 55cbee88fbf914c33f2d802b39725a292d941313 | 4de30226aed36908c25756f18369ee714f3c30e1 | refs/heads/master | 2021-01-17T17:50:37.774583 | 2018-04-08T15:20:51 | 2018-04-08T15:20:51 | 70,637,259 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 417 | cpp | sparse_table.cpp | int v[100001], table[100001][21];
//[0,n)
void build(int n){
for (int i = 0; i < n; i++) table[i][0] = v[i];
for (int j = 1; (1<<j) <= n; j++) for (int i = 0; i+(1<<j) <= n; i++)
table[i][j] = min (table[i][j-1], table[i+(1<<j-1)][j-1]);
}
int query (int l, int r, int table[N][LOG]){
int log = __bu... |
859afec8d92c8b955ed57e7d3b1e4a6da0419754 | 3cfb828ed745518c6bead738f3da27cb3ca1d0c2 | /src/radarContainer.cpp | abcaa90d464284d011ff583fa11364f2008c33bb | [
"BSD-3-Clause"
] | permissive | Zaxuhe/FlynnOS-UI | 9e5ee228a5a56e5d3b519131366a4c4b0a04bf9a | 2a8e5f5072468ee5e7ee634a3308e232ed6ec14f | refs/heads/master | 2020-11-30T11:53:54.174834 | 2015-09-07T07:02:08 | 2015-09-07T07:02:08 | 42,034,448 | 5 | 2 | null | 2016-06-13T05:07:00 | 2015-09-07T06:08:32 | C++ | UTF-8 | C++ | false | false | 5,379 | cpp | radarContainer.cpp | #include "radarContainer.h"
#include "graphics-utils.h"
#include "easing-utils.h"
RadarContainer::RadarContainer() {
x = 0;
y = 0;
w = 240;
h = 21*GRID_SIZE;
abs_p = ofPoint(1515, 195);
radar1 = Radar();
radar1.x = abs_p.x;
radar1.y = abs_p.y+1*GRID_SIZE;
radar1.w = w;
radar1.h = 12*GRID_SIZE;
r... |
5376960fb06c1399d1625c2b3836015487bd76d6 | b6f8ab17bfec259eb81054eb6f9c5566ceb7f6a7 | /Libraries/rsa/xlutil_hex.h | a982485995a77b74679eae4cf5c7b0764cce3ceb | [] | no_license | lhp3851/FFMpeg_iOS_Jerry | 009ccb184e3af5cd2b3f3a1c5e92b74aacc43f1a | fa4eb83abbe695aa9e3c17bba2cd2d16e6062a5d | refs/heads/master | 2020-03-07T09:48:43.665829 | 2019-05-14T08:17:02 | 2019-05-14T08:17:02 | 127,416,358 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 465 | h | xlutil_hex.h | //
// hex_util.h
// xlcommon
//
// Created by liujincai on 14-4-8.
// Copyright (c) 2014年 xunlei. All rights reserved.
//
#ifndef xlcommon_hex_util_h
#define xlcommon_hex_util_h
#include <string>
namespace xlcommon {
class XlUtilHex{
public:
/**
将byte转换成十六进制字... |
5ba1fba612afe4f505e31562301fd28a5057d57b | 3b36e19abaf532074d1ff57d3d8c87a037214a73 | /curr/common/libs/oqstring.cpp | 761232faecf147f5cf6538687072fe83e2ac52f1 | [] | no_license | schdorm/openhanse-project | 9823d767b5d5921dfddea019adc501c72c361057 | 89a3241e2d6360b53c7711a9cedce8132604581e | refs/heads/master | 2021-01-22T07:03:06.034567 | 2012-08-13T10:15:39 | 2012-08-13T10:15:39 | 5,397,358 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,410 | cpp | oqstring.cpp | /***************************************************************************
* Copyright (C) 2009 - 2010 by Christian Doerffel *
* oh.devs@googlemail.com *
* *
* This pr... |
9dbc3c182e1a72a6845505942e64b531bc254a38 | 0c2597ede91be97f8a09e6bfbadc1937570d9bc3 | /src/main.cpp | cbb378bc6c89cb3aa5cd8d99772e83563be51680 | [] | no_license | Cecish/pso-lib-cop | 3f40bc230c76a42744c1b51b1e201b3ba9c1485d | 6fa0d416ae8ac594a8c78e72b197aa5e3fd97780 | refs/heads/main | 2023-02-23T13:36:02.474906 | 2021-01-31T13:22:14 | 2021-01-31T13:22:14 | 334,632,105 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,048 | cpp | main.cpp | /*!
* \file main.cpp
* \author Sebastien Griolet, Cecile Riquart, Matthieu Sauboua-Beneluz
* \date 31 mars 2015
* \version 0.1
* \brief Optimisation par essaims particluaires
* \remarks aucune
*/
#include "headers/mpi-bind.h"
#include "headers/Essaim.h"
#include "headers/EssaimOMP.h"
#include "headers/EssaimMPI... |
4416f304a82a430d5d2687f5637c33649f16ef28 | 40739e1e1fc9bf9845c43edeef1931d564609133 | /src/core/kext/RemapFunc/ForceNumLockOn.hpp | 9de5d7e55d52d76eb596e131e14b40d4b637d255 | [] | no_license | problame/Karabiner | 2dc43413cfb87f1258850e7a78761a49052132de | 21b83baf7ac5847f813cfb6f765e5329d9dd0451 | refs/heads/master | 2020-04-05T23:26:02.708377 | 2014-09-24T14:29:35 | 2014-09-24T14:29:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 642 | hpp | ForceNumLockOn.hpp | #ifndef FORCENUMLOCKON_HPP
#define FORCENUMLOCKON_HPP
#include "RemapFuncBase.hpp"
namespace org_pqrs_Karabiner {
namespace RemapFunc {
class ForceNumLockOn : public RemapFuncBase {
public:
ForceNumLockOn(void) :
RemapFuncBase(BRIDGE_REMAPTYPE_FORCENUMLOCKON),
index_(0)
{}
... |
3358bd6f946526ad784590e0cd6047437cd434af | 63bb7bb2061b6101669aed07a08e11bc21a84028 | /seznam.h | a2b115b19a5d9b2c78f062b3d2f98273611c8921 | [] | no_license | jjunior776/seznam | b05ff0d1387306d50c7a6fa04ff1b2186ae90c4d | 7686f9262d8a8f6505eae1b438a065c6b4847373 | refs/heads/master | 2021-01-19T06:35:08.830540 | 2016-06-15T17:28:27 | 2016-06-15T17:28:27 | 61,223,942 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 467 | h | seznam.h | #ifndef SEZNAM_H
#define SEZNAM_H
#include "clanek.h"
#include "stdlib.h"
#include "stdio.h"
#include "iostream"
using namespace std;
class Seznam
{
public:
Seznam(int pocet);
Clanek *hlava;
Clanek *ocas;
int velikost;
void vypisSeznam();
void nagenerujData(int maximum);
Clanek *n;
voi... |
314c24e9ba517725cbb04d39e7367f9382dd6881 | 9ba50135a412fc8edc7831b168a91a70f502f480 | /CppGame/src/Vec2.h | 1dafc04ef51a9d6b9bea97fcb66ccb03d29722be | [] | no_license | Danielwbolson/CppGame | 5850d7f574cbef659944bb225b553b797ad9e459 | 7417e661b1a05041155894f27d840e38a518eda1 | refs/heads/master | 2020-08-09T11:29:03.037274 | 2019-10-13T22:09:52 | 2019-10-13T22:09:52 | 214,077,421 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 736 | h | Vec2.h |
#ifndef VEC_2_H_
#define VEC_2_H_
#define _USE_MATH_DEFINES
#include <math.h>
class Vec2 {
public:
Vec2();
Vec2(float x, float y);
~Vec2();
float x, y;
// Operators
Vec2 operator+(const Vec2&) const;
Vec2 operator-(const Vec2&) const;
Vec2 operator+=(const Vec2&);
Vec2 operator... |
54a0c47ab7f70d1709ca051098aea458c080c111 | d14bcd4679f0ffa43df5267a82544f098095f1d1 | /inst/include/base/base.hpp | 2f4c79db848f06c085acc9bb08594900a1db0816 | [] | no_license | anhnguyendepocen/SMRD | 9e52aa72a5abe5274f9a8546475639d11f058c0d | c54fa017afca7f20255291c6363194673bc2435a | refs/heads/master | 2022-12-15T12:29:11.165234 | 2020-09-10T13:23:59 | 2020-09-10T13:23:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 195 | hpp | base.hpp | #ifndef smrd_base_H
#define smrd_base_H
#include <Rcpp.h>
#include <base/globals.hpp>
#include <base/constants.hpp>
using namespace constants;
using namespace Rcpp;
using namespace debug;
#endif
|
cd4b9e32113b91596753fc2ed6cea70c46d220db | dd52ec42a528dfe3f8e42cea014ef4a79c18dcab | /Codechef/MAY18/MTYFRI.cpp | 61620ee2d79bccb418775ffda2d8d75113b11031 | [] | no_license | sKAR04/CP-Practice | abdc16c5348ec582307580b9f43c10d94079f4ef | 6655b6e9d40b970224fad982d8602e9f57e87133 | refs/heads/master | 2021-04-15T14:31:53.471126 | 2019-05-21T08:39:04 | 2019-05-21T08:39:04 | 126,747,690 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,827 | cpp | MTYFRI.cpp | //Strike me down and I shall become stronger, than you can possibly imagine
#include <bits/stdc++.h>
using namespace std;
//save time
#define endl '\n'
typedef long long ll;
//for sorting
#define all(a) a.begin(),a.end()
//Constants
#define PI 3.141592653593
#define MOD 1000000007LL
#define EPS 0.000000001
//l... |
27072cad5c6685881677a3d3fd6ef1f7cbd82ccc | 5a77b5092acf817ac37a5fafd006feea434dd0d6 | /Doxygen_Graphviz/DesignPatternExample/大話/cpp/interpreter/PlayContext.h | 604ac794e30a664ecff15f2d08b58063770dcf02 | [] | no_license | shihyu/MyTool | dfc94f507b848fb112483a635ef95e6a196c1969 | 3bfd1667ad86b3db63d82424cb4fa447cbe515af | refs/heads/master | 2023-05-27T19:09:10.538570 | 2023-05-17T15:58:18 | 2023-05-17T15:58:18 | 14,722,815 | 33 | 21 | null | null | null | null | UTF-8 | C++ | false | false | 246 | h | PlayContext.h | #pragma once
#include <string>
namespace interpreter {
class PlayContext {
private:
std::string context;
public:
virtual std::string getContext();
virtual void setContext(std::string context);
};
} |
e9d5b390239e7af1d8b9ab655eb79bfcdc1490ca | 08495614d81553d247b780ffd70a742f269e31d4 | /release/data/unigine_project/unigine_project.cpp | 5b1fbb1fd353df23376325a297f7c676a4feaee2 | [] | no_license | lubansoft-developer-platform/MotorDesktopGraphicsEngine | b31ba7b285237b94393d9ecb9ea75ada0d3bc0d2 | f4855aff461244cff7689138bd222ba91af27909 | refs/heads/master | 2022-05-21T08:40:38.458194 | 2020-04-27T07:10:46 | 2020-04-27T07:10:46 | 185,173,044 | 11 | 13 | null | 2019-05-30T03:27:48 | 2019-05-06T10:15:04 | QML | UTF-8 | C++ | false | false | 1,497 | cpp | unigine_project.cpp | #include <core/unigine.h>
#include <weather/scripts/weather.h>
// This file is in UnigineScript language.
// World script, it takes effect only when the world is loaded.
int init() {
// Write here code to be called on world initialization: initialize resources for your world scene during the world start.
Player pl... |
fbf8d3e1af21b6cee301b472ae4e25429462e98f | ea34c76a8434e34615b5e145db83382754b584ae | /Project 17/include/WoodyListener.h | 9b84388f8daada6d4b2a7a9ab859e50bf1953269 | [] | no_license | xDusk/lostisland04 | bd4f35da19b8a83dda3bae4f6d9460279964d25a | c5fe1d75d3772064fdace43d36f9ce530e715041 | refs/heads/master | 2020-05-29T11:10:57.376119 | 2012-06-23T16:26:47 | 2012-06-23T16:26:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 39,325 | h | WoodyListener.h | /*
#pragma once
// General includes
// ----------------------------------------------------------------
#include <windows.h>
#include <Tchar.h.>
#include <mmsystem.h>
#include <d3d9.h>
#include <d3dx9.h>
#include "assert.h"
#include "stdio.h"
#include <Ogre.h>
#include "SharedData.h"
// Woody include
// ------------... |
92bba6ca7a0a2cbcee3f051c6bd14f1546bd4a4f | 2cf314b8237fc6a77b7f1a096f17a679179b0057 | /internal/core/src/pb/schema.pb.h | 8b2338f1180f0ea07af9803cf7af29827306d37a | [
"Apache-2.0"
] | permissive | milvus-io/milvus | a02d732cf746effec1ea723f9e4d17856843f8a8 | 0530fd80c91dc5b200606c00214c12bf8dd17cb4 | refs/heads/master | 2023-09-04T06:28:57.681855 | 2023-09-04T02:01:04 | 2023-09-04T02:01:04 | 208,728,772 | 23,316 | 2,917 | Apache-2.0 | 2023-09-14T15:06:12 | 2019-09-16T06:43:43 | Go | UTF-8 | C++ | false | true | 255,294 | h | schema.pb.h | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: schema.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_schema_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_schema_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3021000
#error This file was generated... |
f7bfc87c514a9d27ebb4f23250ad355f818bcccc | 325770e648204b9715ade4c446940f46501ec3ea | /2021/RF/Receiver/RF_receiver_RCSwitch_wOLED/RF_receiver_RCSwitch_wOLED.ino | 9524445be65a840b142e1f24f281857245201477 | [] | no_license | JackBauer76/IOTanks | 17e3714a199dda5b91f9f93809e6c499f69c46db | 424a4d1ca14a20bccf4e1f131980296b72edd11c | refs/heads/master | 2021-12-29T22:40:45.819752 | 2021-12-28T19:58:41 | 2021-12-28T19:58:41 | 161,743,249 | 1 | 0 | null | 2019-01-31T19:06:46 | 2018-12-14T06:44:35 | C++ | UTF-8 | C++ | false | false | 1,313 | ino | RF_receiver_RCSwitch_wOLED.ino |
#include <RCSwitch.h>
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define OLED_RESET 4
#define NUMFLAKES 10
#define XPOS 0
#define YPOS 1
#define DELTAY 2
#define LOGO16_GLCD_HEIGHT 16
#define LOGO16_GLCD_WIDTH 16
Adafruit_SSD1306 display(OLED_RESET);
RCSwitch mySwit... |
76727d4b01a0942b02df19e40958f2b71828974d | 26df6604faf41197c9ced34c3df13839be6e74d4 | /ext/src/java/awt/geom/IllegalPathStateException.hpp | 8e1b6fa141a76232849b968402b61697637cc19e | [
"Apache-2.0"
] | permissive | pebble2015/cpoi | 58b4b1e38a7769b13ccfb2973270d15d490de07f | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | refs/heads/master | 2021-07-09T09:02:41.986901 | 2017-10-08T12:12:56 | 2017-10-08T12:12:56 | 105,988,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 771 | hpp | IllegalPathStateException.hpp | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#pragma once
#include <java/awt/geom/fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <java/lang/RuntimeException.hpp>
struct default_init_tag;
class java::awt::geom::IllegalPathStateException
: public ::java... |
8ee4aad2820d1a9d1dc838e70731611c943272d1 | 2586504dd635fd0dc8f39514009210b0cd9a72fb | /Code Jam LG/2018 Final/Rectangles.cpp | 1dfbd5860d4817f144c64cba73d7c463f996bf9a | [] | no_license | clarkhungson/Algorithm | e746ad7b2377aee55c343691ca686e045ca8ebe3 | 33e96e9af1f9ec8690ceeafd1c5425365823ed9d | refs/heads/master | 2023-06-25T05:07:15.016952 | 2021-07-21T16:48:53 | 2021-07-21T16:48:53 | 368,232,533 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,227 | cpp | Rectangles.cpp | // https://codejam.lge.com/problem/16207
// build: g++ -o Rectangles Rectangles.cpp -std=c++11 && Rectangles
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <iostream>
#include <vector>
#include <bits/stdc++.h>
#include <algorithm>
#include <unordered_map>
using namespace std;
/*
9
10 3 4 4 4 5 6 ... |
d41b8b2da5e7001c6ec88b6a62a1435506956446 | 2b6366070b9408137f5cfc593b0f6c260b76d022 | /NhEast.ino | f5f58312ffcaa3eef1ef69a18752232b199508db | [] | no_license | gciurpita/NhEast | 2dd13f9918c0067b61deddef093cf4543617c7bb | 1f43e6ca6593ddea57daf6dc2bf5bc708d6ffb70 | refs/heads/master | 2023-08-23T18:58:05.966010 | 2021-10-08T11:48:27 | 2021-10-08T11:48:27 | 402,087,450 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 42,116 | ino | NhEast.ino | // New Haven East 3
// Bill's panel program by Geoff Smith w/ correctio
// enhanced with serial monitor debugging by gregc
const char version [] = "New Haven East 3 211005a";
#include "Wire.h" //For I2R operations with MRC cards
byte Input[4];
byte Output = 0;
//Chip addresses
int chip20 = 0x020;
int chip21 = 0x0... |
aeb7223a49f855ee24a751235ea80a51204508d4 | b596414720ecf38b0c9b79faddd1068d1436e0a9 | /flowvr/flowvr-interface/gltrace/src/stats.cpp | 76ad41cfc6ed8ba7447dddbd0f0a94f67bf6a9a3 | [] | no_license | TNick/FlowVR | f66302c23ddaf19bbbc23fe9e7efb32cb45b76bf | 80a6e504294fbd99b14bfb2c32b022dddf40448c | refs/heads/master | 2021-01-15T16:47:07.670183 | 2015-02-10T14:12:14 | 2015-02-10T14:12:14 | 30,590,575 | 0 | 0 | null | 2015-02-10T12:14:19 | 2015-02-10T12:14:18 | null | UTF-8 | C++ | false | false | 13,237 | cpp | stats.cpp | /******* COPYRIGHT ************************************************
* *
* FlowVR *
* Utils *
* ... |
95474a88eddd68b533382be20d1fe972cf81c08e | 01969323491cdd8db5876e819a283325ddcd6ec1 | /RYU_prototype/Private/Character/States/RyuCharacterSprintState.cpp | 0998007d992e6b56a81ea1dcc869de70505d22f6 | [] | no_license | Hengle/Ryu | 8f3de7e3883dbb633a2e3d7c048734d429771b16 | 4c8e4c0c225195dc6949b3ac8b3997fe70816789 | refs/heads/master | 2023-04-19T18:34:05.889585 | 2021-05-03T16:15:01 | 2021-05-03T16:15:01 | null | 0 | 0 | null | null | null | null | ISO-8859-10 | C++ | false | false | 2,197 | cpp | RyuCharacterSprintState.cpp | // Copyright 2019 80k Games, All Rights Reserved.
#include "RyuCharacterSprintState.h"
#include "Enums/ERyuInputState.h"
#include "Enums/ERyuMovementState.h"
#include "RYU_prototype.h"
#include "RyuBaseCharacter.h"
#include "RyuCharacterIdleState.h"
#include "RyuCharacterJumpForwardState.h"
#include "RyuCharacterOnGro... |
7c8182f9fae8280cec325fc61ef7eedeed0de0d5 | 7f7d7be77ff8d1a8c16440eff45a8a3fef872b1e | /vec.cpp | ff697a04ce076dd695cb060c365ab8052d133d35 | [] | no_license | sujoy98/cppOLD | 80bd10029abbbe1cf10d325d68fe599e27b2e6c9 | 0da80506c9598b115a5f806b0565663b49b7ed17 | refs/heads/master | 2022-11-24T05:39:20.120053 | 2020-07-27T17:12:03 | 2020-07-27T17:12:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 165 | cpp | vec.cpp | #include<iostream>
#include<vector>
using namespace std;
int main(){
vector<int> data ={1,2,3};
data.push_back(12);
cout<<data[3]<<endl;
return 0;
}
|
72d123e6cee1d5a5e686e374ce79c923753993a3 | 21262e403efd2b8eef212894bbc6b3794ceeaea5 | /Arduino/MotorOdometry/MotorOdometry.ino | 886473d957043317e4f18831d2b2079de7566d3b | [] | no_license | ChenBao294/tas | 7cc4358bb8aea90823f7ae87f4c855e4b349069e | c7fde936847bb08c90b6bfa43f2e2eb034fea2cb | refs/heads/master | 2021-01-20T11:10:53.442205 | 2016-01-28T09:48:12 | 2016-01-28T09:48:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,420 | ino | MotorOdometry.ino | /* Motor Odometry
*
* This sketch reads in three hall encoder sensor lines from a sensored
* brushless motor. It decodes the tri-phase quadrature signal and publishes it
* via rosserial to the ROS network, where it can be used as odometry signal.
*
* Laurenz 2015-01
* ga68gug / TUM LSR TAS
*/
// This define is... |
5a566b5071405dff598fd91d1b185f50b5832380 | f51e190b5212f39075d9ba169bbd2daa583be538 | /ItemShop/ItemShop/ItemShop.cpp | da05d8b397d1a001648e2b5679fe5566353a43a1 | [] | no_license | Epikkat/TextBasedRPG | 6aad3205731e86e0337346176ed48c8a9807fda2 | ab0d1b8cba03206ced5eec67c23399100375749b | refs/heads/master | 2020-07-11T16:00:23.847777 | 2019-09-06T19:14:18 | 2019-09-06T19:14:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,746 | cpp | ItemShop.cpp | // ItemShop
#include <iostream>
using namespace std;
int shopSelection;
int coin = 200;
int potion = 50;
int sword = 100;
int shield = 80;
int main()
{
cout << "(Enter the Item shop. The shopkeeper greets you)\n\n";
cout << "Hello, Adventurer! Please, have a gander at our items.\n";
do {
int itemAmount;
int ... |
5a56ffe692f0da7899709fffe22e033276ebeeeb | 56d297b034a34b48a11cc30d8a8c5f327bcce925 | /zbluenet/zbluenet/src/zbluenet/logger_base.h | 90e7c1a817967b5db266929ce83acb2c0fccda10 | [
"Apache-2.0"
] | permissive | zhengjinwei123/zbluenet | accbde850a801f3876c5ada8447efd927d7e262d | 2d3c26f587de34ca7924176487b92e0700756792 | refs/heads/main | 2023-07-19T14:41:32.075978 | 2021-09-08T09:19:26 | 2021-09-08T09:19:26 | 392,528,193 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,145 | h | logger_base.h | #ifndef ZBLUENET_LOGGER_BASE_H
#define ZBLUENET_LOGGER_BASE_H
#include <cstdarg>
#include <functional>
#include <zbluenet/class_util.h>
namespace zbluenet {
class LoggerBase {
public:
struct LogLevel
{
enum type {
MIN = 0,
DEBUG = 0,
INFO,
WARNING,
ERR,
MAX
};
};
using Log... |
392ee1341f3d2aa6dbf474668ab742b9bebc0b48 | 4d3a9a026674958d4d077da2f3d0fd4adb94e7ac | /LAB4/LAB4/Source.cpp | 0722a395ee53f8bb11ce2e8bbbfee512af5fab01 | [] | no_license | Hirikava/KGG | e219b4caea3c4a69b9513fcbf432e3fa0367d4dd | dae46c377f1251346e9ac6c1f4b54213583a8093 | refs/heads/master | 2021-01-16T01:14:56.994870 | 2020-04-08T13:50:28 | 2020-04-08T13:50:28 | 242,921,947 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 5,827 | cpp | Source.cpp | #include <glad/gl.h>
#include <glfw3.h>
#include <iostream>
#include <cmath>
#include "camera/camera.h"
#include "tools/shaders.h"
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>
float func(float x, float y)
{
return std::cos(x * y);
}
bool mouseFirst = true;
Camera... |
349b582e1f09bc0233f8407f9fd6b875c0216c86 | 10bdf7284ced1bbebe606298d9893fc3006cd3e0 | /lib/cocos2d-x/core/platform/android/jni/JniHelper.cpp | 7ed45ceeb1234a8501a431adc78a845f0f3d19d3 | [
"MIT"
] | permissive | qcdong2016/quick-x | bcd54f9cb744ea4d07ec3c4b869b0331aceff5fd | 6eba67489971ac673b17f8af1355880a6b0caf94 | refs/heads/master | 2021-06-24T00:25:21.467206 | 2017-07-14T02:20:59 | 2017-07-14T02:20:59 | 67,413,006 | 5 | 0 | null | 2017-07-14T02:21:00 | 2016-09-05T10:52:41 | C | UTF-8 | C++ | false | false | 3,901 | cpp | JniHelper.cpp | /****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation file... |
d634f4f7e1c355a9d6f3bcba7c66ca5b4f1ab325 | b6afdd7ea068479901d1e33592c81e55b7a0189e | /hazard.cpp | f7943efbaa89bf66f5de25b00ed1835c4b3758c9 | [] | no_license | adityaiiitv/Computer-Architecture | f77e1dc7321344897da561c63f4dc37d72d3508b | b003e662ae52020585bf9ba948211b942b3dafa2 | refs/heads/master | 2021-01-19T08:27:56.662002 | 2017-04-08T12:54:12 | 2017-04-08T12:54:12 | 87,633,624 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,539 | cpp | hazard.cpp | #include<iostream>
#include<string.h>
using namespace std;
int main()
{
string i[4];
cout<<"\n Four instructions using _ in place of spaces.\n";
i[0]="ADD_R1,R1,R1";
i[1]="SUB_R1,R1,R1";
i[2]="ADD_R1,R1,R1";
i[3]="MUL_R1,R1,R1";
cout<<"\n "<<i[0]<<"\n "<<i[1]<<"\n "<<i[2]<<"\n "<<i[3]<<"\n";
int order[4], sta... |
6ab6eff0daa53af5f3e80964ac2fd73d629bf6a0 | 08fdd8c5857acd45aa9556e1bdb7fef208e39699 | /Print/Print.cpp | 75945ddc3fe68e2bab09f9fd8cc0c7b1cfa2f836 | [] | no_license | AhmadBan/Visual-studio-Mock-for-Arduino | d5e4d6b324be5e74ea3c79b66717d118bdf8568b | f42337edbc14693fba89c1894dd214ebca4ec00e | refs/heads/master | 2023-07-07T12:54:57.009458 | 2020-12-03T16:40:33 | 2020-12-03T16:40:33 | 318,246,646 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,009 | cpp | Print.cpp |
#include "Print.h"
#include <iostream>
using namespace std;
#define String std::string
// Public Methods //////////////////////////////////////////////////////////////
/* default implementation: may be overridden */
size_t Print::write(const uint8_t* buffer, size_t size) {
cout << buffer;
return size;
}
... |
99563ad745fd30f3a4bee16116b9f09914eb17ef | 9a712f98b3b7efe4933a2a4bcdd3586ed73b3334 | /Classic Tower Defence/Game/cursor systems.hpp | fa98e28d4d32c8ce8ad95ea96ec3015af0d41142 | [] | no_license | indianakernick/Classic-Tower-Defence | a3244ff347ac59db991220719b5db495bd050c38 | b71711becd01c7774ee39f8fef3fe4f93893379b | refs/heads/master | 2022-05-14T07:35:31.075179 | 2018-10-07T04:05:49 | 2018-10-07T04:05:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 538 | hpp | cursor systems.hpp | //
// cursor systems.hpp
// Classic Tower Defence
//
// Created by Indi Kernick on 19/5/18.
// Copyright © 2018 Indi Kernick. All rights reserved.
//
#ifndef cursor_systems_hpp
#define cursor_systems_hpp
#include <glm/vec2.hpp>
#include "input consumed.hpp"
#include <Simpleton/ECS/registry.hpp>
#include <Simpleto... |
6844f1997c73f77870530c19f51c53dd90b44068 | 29b81bdc013d76b057a2ba12e912d6d4c5b033ef | /boost/include/boost/geometry/io/wkt/read.hpp | d60bc29d5db00190414bf53bc72e4c9cd78ee87a | [] | no_license | GSIL-Monitor/third_dependences | 864d2ad73955ffe0ce4912966a4f0d1c60ebd960 | 888ebf538db072a92d444a9e5aaa5e18b0f11083 | refs/heads/master | 2020-04-17T07:32:49.546337 | 2019-01-18T08:47:28 | 2019-01-18T08:47:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 130 | hpp | read.hpp | version https://git-lfs.github.com/spec/v1
oid sha256:4ad16593ae7d9f08bbb9831a3b701d097354e38f39eb2bc05b3a9f22c8aad16c
size 26500
|
48af446154657faf3bcbd0ca36167497cb2d59a6 | ef57a7d942cb26b0f4ac91277cd9f094703bc2f9 | /main.cpp | f87230854633bd92729593b036b693bbe75423ab | [] | no_license | jm125/Undergrad-Research | 78b42e53b02f5cc463bf803872d603bd7ddcb44a | 0d044e76720d924b16bdae33063774fb9dff5506 | refs/heads/master | 2021-01-19T20:16:25.775392 | 2014-08-10T23:50:58 | 2014-08-10T23:50:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,709 | cpp | main.cpp | #include <nvector/nvector_serial.h>
#include <sundials/sundials_types.h>
#include <cvode/cvode.h>
#include <sundials/sundials_math.h>
#include "force.h"
#include <fstream>
#include <vector>
void printPoints(realtype[], int);
void PopulateLists(std::vector<double>&, std::vector<int>&, std::vector<int>&,int&,bool&);
int... |
6c824ace6725e26d609c0f6b0932d5d1752df47f | f6529b63d418f7d0563d33e817c4c3f6ec6c618d | /source/menu/menu_main.cpp | 96d6f2c55f673cf9eee50def054584fdfb333107 | [] | no_license | Captnoord/Wodeflow | b087659303bc4e6d7360714357167701a2f1e8da | 5c8d6cf837aee74dc4265e3ea971a335ba41a47c | refs/heads/master | 2020-12-24T14:45:43.854896 | 2011-07-25T14:15:53 | 2011-07-25T14:15:53 | 2,096,630 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 12,637 | cpp | menu_main.cpp |
#include "menu.hpp"
#include <wiiuse/wpad.h>
#include <unistd.h>
#include <fstream>
#include "wbfs.h"
#include "gecko.h"
using namespace std;
extern const u8 btnconfig_png[];
extern const u8 btnconfigs_png[];
extern const u8 btninfo_png[];
extern const u8 btninfos_png[];
extern const u8 btnquit_png... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.