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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0d77eec32b651f962b0fdb378b72699ba088986e | 33394856a8de0e824ec49a3643e387cdbacca0c6 | /SolvedProblems/HDU/2028.cpp | c3993fc634a8072bfa347df92bdc0d040ac6957b | [] | no_license | MoogleAndChocobo/ACM-Learning | caf116d713c24d14af166dac701e7812e495405b | 9a86daf172c3a74aab69f2054f222f51c5939830 | refs/heads/master | 2021-08-10T15:40:43.108255 | 2018-09-14T07:06:04 | 2018-09-14T07:06:04 | 129,596,917 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 495 | cpp | 2028.cpp | #include <stdio.h>
#include <math.h>
long long mie(long long m, long long n);
int main()
{
int num;
long long s[1000] = {0};
while(~scanf("%d", &num))
{
long long re;
for(int i = 1; i <= num; i++)
scanf("%lld", &s[i]);
re = s[1] * s[2] / mie(s[1], s[2]);
for(int i = 3; i <= num; i++)
re = re / mie(r... |
71e2c9e52746c6aa0eb26c2f6c3814168f70f377 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/blink/common/origin_trials/persistent_origin_trials.cc | 4c1c0bb30077b8c3546d4999452d52a76782ad6e | [
"GPL-1.0-or-later",
"MIT",
"LGPL-2.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"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 | 1,127 | cc | persistent_origin_trials.cc | // Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file provides IsTrialPersistentToNextResponse which is declared in
// origin_trials.h. IsTrialPersistentToNextResponse is defined in this file
// since changes to it re... |
ea09bfda0b1a6fe1a2dbc1f2603ab73832cf13cd | 0ba5c433204ac320aa08dd58f17d3e68cf87f113 | /cpp/082删除排序链表中的重复元素 II/082删除排序链表中的重复元素 II.cpp | 28b9d547d17c1efcffa9adf59b9edbfb908da368 | [] | no_license | wtrnash/LeetCode | 372d6ca53464cf661036e953e28fa6295a72fb98 | 37a7d3d836cad4880dd42612017768600dcf2864 | refs/heads/master | 2020-03-24T16:01:22.277063 | 2019-07-12T01:20:08 | 2019-07-12T01:20:08 | 142,809,896 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,426 | cpp | 082删除排序链表中的重复元素 II.cpp | /*
给定一个排序链表,删除所有含有重复数字的节点,只保留原始链表中 没有重复出现 的数字。
示例 1:
输入: 1->2->3->3->4->4->5
输出: 1->2->5
示例 2:
输入: 1->1->1->2->3
输出: 2->3
*/
//解答:链表操作。注意删除下一个元素和当前元素,以及是否头结点的区别
#include <vector>
#include <iostream>
using namespace std;
/**
* Definition for singly-linked list.
*
*/
struct ListNode {
int val;
Lis... |
c738f8ce287d473090b86b71cf15c62bb4fcfb08 | 2351872312e3b5e38e4f625715ee5dfee4392302 | /$P@/SPA/SPA/VARTable.h | b38f887869ddb211c8960551deedf78523dcb4f0 | [] | no_license | allanckw/32Ol_32oII_intelli-spa | 737c4dae974cd08cf98ad414b4da847bdc19af62 | e6929f146275ae2127a58584c65de7a1d83ce8a5 | refs/heads/master | 2020-05-07T13:18:03.290332 | 2013-04-25T14:20:07 | 2013-04-25T14:20:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 286 | h | VARTable.h | #pragma once
#include "stdafx.h"
typedef int VARIndex;
class VARTable
{
public:
VARTable();
VARIndex insertVAR(string VARName);
string getVARName(VARIndex);
VARIndex getVARIndex(string VARName);
int getSize();
bool isExists(VARIndex);
private:
vector<string> vars;
};
|
1eb01ba7a4875749e7aa30c464efb44a989a26a8 | 239994fd79fdec7a4184db3e230828b8347dd997 | /Frost/Forms.cpp | 9d13920219d00be9c89cf8bf75bbe5690570a98f | [] | no_license | ClericX/Projects | bd0944c6994658b539b61ae90580ee0db440f84c | 9c705315cb16d42a0116f88f156fb748ca46ccfc | refs/heads/master | 2021-01-01T19:42:21.981590 | 2013-03-16T15:49:00 | 2013-03-16T15:49:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 90 | cpp | Forms.cpp | #define FROST_EXPORT
#include "Forms.h"
namespace Frost
{
namespace Forms
{
//
};
}; |
f677654cc44054d0750e742e21f76ad2606ab172 | 2ebd2032a922f309019480d02f0746c4cd0fd24c | /04 intro estructuras repetitivas/01 imprimir 1-10.cpp | 368794cec0dbd1ee1b822c32f165b4c0b2a7ff40 | [] | no_license | migdus/PDC | ecb78a63b9e6dd21fb3fb82e8ad8f3a5694e0fae | fe1988b982085dcb8893f616f5dfd050be969a7c | refs/heads/master | 2021-01-22T11:38:31.754337 | 2014-10-30T22:46:08 | 2014-10-30T22:46:08 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 567 | cpp | 01 imprimir 1-10.cpp | // Autor: Miguel Dussán
/*
Programa que muestra los números desde 0 hasta 10
utilizando ciclo mientras
*/
#include <iostream>
#include <cstdlib>
using namespace std;
int main(){
//Variable de control de ciclo
//También se utiliza para mostrar el número actual dentro del ciclo
int i = 1;
w... |
15af5daddd3315ead8bd13cfa2337a1803fc8947 | 8c32da47296d16e79767645a6324409d2686afe6 | /String Questions/removeDuplicate.cpp | 1934857f573cdb7135373da5d15460952d77ec47 | [] | no_license | sumrah/cpp_learning | 43063d2e95d346fb60f68a0758ef07db9460e930 | 87527752a09369ede47aceb666478008b9bf3eb7 | refs/heads/master | 2023-03-28T13:36:41.396037 | 2021-03-20T21:02:13 | 2021-03-20T21:02:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 355 | cpp | removeDuplicate.cpp | //Remove Duplicates from string
#include<bits/stdc++.h>
using namespace std;
int main(){
string str,res="",temp;
cin>>str;
int hash[123]={0};
for(int i=0;i<str.length();i++){
if(hash[str[i]]==0){
hash[str[i]]=1; //Visited this
res +=str[i];
}
}
... |
5d94e80b4d70854c0bffe6e45c9197cb10ae14f9 | 30ecfdaed7d26e3235483edfd66a0176592bbc1e | /EditGroup.cpp | b29966362e3582c9328df048dc35b9be08976dd3 | [] | no_license | sarum9in/Schedule | d0430815dd590105468ca9a56e62e8034829ddf8 | ef0c987d44537ea8a62e5a2ae0e78ed627523cbc | refs/heads/master | 2020-05-27T03:00:20.533915 | 2012-07-09T17:50:39 | 2012-07-09T17:50:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,884 | cpp | EditGroup.cpp | #include "EditGroup.hpp"
#include "ui_EditGroup.h"
#include <QMessageBox>
EditGroup::EditGroup(GroupByNameMap &groupByName_, const QString &group, QWidget *parent) :
QDialog(parent),
ui(new Ui::EditGroup),
m_studentsModel(new QStringListModel(this)),
m_groupByName(groupByName_),
m_name(group)
{
... |
8b390bc48e9ce2a7c80865884d30ce98b25aaac6 | 5b3bf81b22f4eb78a1d9e801b2d1d6a48509a236 | /leetcode/archive/380.insert-delete-getrandom-o1.cpp | f572d4e0aec695f0d2c3cca1f558e74ba7f9cc83 | [] | no_license | okoks9011/problem_solving | 42a0843cfdf58846090dff1a2762b6e02362d068 | e86d86bb5e3856fcaaa5e20fe19194871d3981ca | refs/heads/master | 2023-01-21T19:06:14.143000 | 2023-01-08T17:45:16 | 2023-01-08T17:45:16 | 141,427,667 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,358 | cpp | 380.insert-delete-getrandom-o1.cpp | #include <unordered_set>
#include <random>
using namespace std;
class RandomizedSet {
private:
unordered_set<int> inner;
unordered_set<int>::iterator it;
mt19937 rng;
uniform_int_distribution<int> dis;
public:
/** Initialize your data structure here. */
RandomizedSet() {
random_de... |
a681278178f021e303bf1184e84f1cc206d7aecd | e6ad8a441e5c4dc8b2cf9f3354808656d97de646 | /FlowerGame/Classes/GameScene.cpp | a04c3c1dce26ab18c0434951977ea0da93a39d58 | [] | no_license | tearpls/FlowerGame | 10e0fd85b28263d5eb38436fe97f3f103f021cdf | 1df9a079b29e75cf8ada3e99d8cf25639b03721a | refs/heads/master | 2020-05-20T23:35:00.221446 | 2017-03-10T11:09:46 | 2017-03-10T11:09:46 | 84,546,356 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,875 | cpp | GameScene.cpp | //
// GameScene.cpp
// FlowerGame
//
// Created by ievgenii shcherbina on 3/5/17.
//
//
#include "GameScene.h"
#include "Intro.h"
USING_NS_CC;
Node* GameScene::gameNode;
Scene* GameScene::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorel... |
2bcdcf6b006b84ddc68acafa8efc869bd0f8655c | 80b37479d036df15f1a841403e3505db78eeffc8 | /recoverImu.cpp | 1d64421e69a0d2a06ad3bbd0ad6dfae013b31cc1 | [] | no_license | ChenhaoLiu-SeasPenn/msf_helper | b1e01ded33cec0ac6e740702dc431d280d182a84 | bad2b315b87ca2f164d047e4dbb9658cf7d61125 | refs/heads/master | 2020-05-15T09:23:54.997023 | 2019-04-19T03:10:05 | 2019-04-19T03:10:05 | 182,176,737 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,742 | cpp | recoverImu.cpp | #include <ros/ros.h>
#include <message_filters/subscriber.h>
#include <message_filters/synchronizer.h>
#include <message_filters/sync_policies/approximate_time.h>
#include <sensor_msgs/Imu.h>
#include <imu_3dm_gx4/FilterOutput.h>
using namespace recoverImu;
void recoverCallback(imu_3dm_gx4::FilterOutput& fo, sensor_m... |
09e766f9982c78d68b48dcfe5cc94cc27813cd38 | c4ce8f47a4923054e85d6add96984c8fa70ae3d6 | /Bishop.cpp | 14f53562d32472a6bb0dd9a4b419a6d28f02652f | [] | no_license | MindEater123/Chess | 17afd0312ee145eaa5180ee2d179b355af7818ef | 01a2aaeb3e1cd6144efddbd208135b0020302c44 | refs/heads/master | 2021-01-12T05:27:06.214207 | 2017-01-03T15:29:53 | 2017-01-03T15:29:53 | 77,929,106 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,159 | cpp | Bishop.cpp | #include "Bishop.h"
Bishop::Bishop(bool color, Point chise) : Tool(color, chise)
{}
Bishop::Bishop() : Tool()
{}
Bishop::~Bishop()
{}
int Bishop::canMove(Point toMove, Tool* board[BOARD_SIZE][BOARD_SIZE])
{
/* Checks if Bishop can move to the position */
/* ... |
36955027e5dcc2f9efbe031686db97433fb35f93 | 2480ceee9f28f5e8a69fb6f5ed42fd63c22b4205 | /src/Platform.Win32/GameHostWin32.hpp | 5cc1fdb3ce0db82e87de10a5740af612b791cd1f | [
"MIT"
] | permissive | rokrepo/pomdog | 165db7884598c74bd530a4b7a1e83bc1e315c945 | b21fd4fef295aaa3e06ca15e5952109cd8e93f00 | refs/heads/master | 2022-10-25T04:09:09.721827 | 2020-06-18T05:33:25 | 2020-06-18T05:33:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,582 | hpp | GameHostWin32.hpp | // Copyright (c) 2013-2020 mogemimi. Distributed under the MIT license.
#pragma once
#include "Pomdog/Application/GameHost.hpp"
#include <memory>
namespace Pomdog {
class EventQueue;
class Game;
struct PresentationParameters;
} // namespace Pomdog
namespace Pomdog::Detail::InputSystem {
class NativeGamepad;
} // na... |
7b6ac474c02d54b203427f9367b383c5f9413bc4 | d1bad642f3525a5bfa5be419fc3fe29bed245001 | /coding/cplus/basic/ZeroArray.cc | dc28ef167bde66aea347da36e578dbd053798752 | [] | no_license | arthurxuwei/Study | 40c96de85e4687213369aad981a6eb745cf8c0a0 | 9ae024e9a9df6d619fe684cdfa4d4e7cce5367c0 | refs/heads/master | 2022-11-01T22:55:20.544581 | 2022-10-21T08:33:34 | 2022-10-21T08:33:34 | 14,636,648 | 1 | 0 | null | 2022-09-16T09:16:57 | 2013-11-23T05:00:17 | HTML | UTF-8 | C++ | false | false | 334 | cc | ZeroArray.cc | //cannot use zero array in c++ standard
//only use in GUN C
#include <iostream>
using namespace std;
struct A{
int size;
char o;
int size2;
char data[0];
};
main() {
cout << sizeof(A) << endl;
A a;
cout << "a addr: " << &a << endl;
cout << "data[0]: " << a.data << endl;
cout << "data[0] addr: " << &a.data[0]... |
490631944d5ce53f7807f45b96db691c8a45c78e | 8c527c5371e63707546f34cb48681929786b541e | /camera.hpp | d0fd3012c22bfa1aa183dc5095013e3f46f2e526 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"Unlicense"
] | permissive | Asmodean-/sandbox | 757d29dcfcaf79479124f5ff60ab8500a14380e4 | a4808a5402df6263f44f16e74c7ddeaf92a483d3 | refs/heads/master | 2020-12-25T03:40:01.336461 | 2016-06-05T19:38:34 | 2016-06-05T19:38:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,808 | hpp | camera.hpp | #ifndef camera_h
#define camera_h
#include <vector>
#include <array>
#include "GL_API.hpp"
#include "math_util.hpp"
#include "geometric.hpp"
namespace avl
{
struct GlCamera
{
Pose pose;
float fov = 60.0f;
float nearClip = 0.1f;
float farClip = 70.0f;
... |
d9af09deb0ff46d09c0adbbff8a732b9d6fe6730 | f4bef70b510627484d6115a0d5b9067f8a97f011 | /src/drain_buffer.cpp | 2b22197bb25802d0f952bb7f2306cefdb729161a | [
"MIT"
] | permissive | alifahmed/atomic-memory-trace | 5d28dcf91eedc2973e5c3e977e1a1bf12169932c | 4626939dd77b19e2dbf2bf4ef44d0dff79a2a273 | refs/heads/master | 2020-04-07T01:19:47.480841 | 2013-10-18T07:25:31 | 2013-10-18T07:25:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,011 | cpp | drain_buffer.cpp | // Copyright (c) 2013 Steven Pelley
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, publish... |
b90a856d3cbd3ee38339f0552d99b46b260cf11b | a47c75cc963f5f181b38084983fc145a534f545d | /src/main-win-controller.cc | c747e87adf362c06ba2146b3348c3fde40addfb0 | [
"Beerware"
] | permissive | eryjus/cba-elements | cfb8dc605fe938d644a5fe2a3d9c6e4e821f7287 | 8e033ae3d1cd11f75e4f051e0a3c5201806d65cb | refs/heads/master | 2020-03-24T14:51:31.365777 | 2018-08-14T23:57:53 | 2018-08-14T23:57:53 | 142,778,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,770 | cc | main-win-controller.cc | //===================================================================================================================
//
// src/main-win-controller.cc -- The main entry point and main window for the elements applicaiton
//
// ----------------------------------------------------------------------------------------------... |
380a157aed4c6bb453531b677da40073d221e644 | 4adf1af00b34d5b9aa633f89d8405970e5f078bb | /Vector Tracking/real_math.inl | 337c86a7bd037017dbea0e9647516b9c4850f0fe | [] | no_license | brettonw/Archive | b849ae7f2f5a8a4bae249a798d54b3bdfa088797 | 3e54ece5261b4eff5947848392da9d36db9254d5 | refs/heads/master | 2021-09-16T10:51:32.395809 | 2018-06-19T19:05:20 | 2018-06-19T19:05:20 | 12,793,011 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,452 | inl | real_math.inl | //-----------------------------------------------------------------------------
// Copyright (C) 2002 Microsoft, All rights reserved
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// includes
//------------... |
0d3c3a47b87f4669588a29758bc58c89fca3a595 | fea779942fbbe4e3c03cb9bc78b0a99e56cb17e5 | /cpp/m4mdfac/inc/cltitem.hpp | f546660b5347a61c83020531e4061ff0bb1b8510 | [] | no_license | jesuscraf/peopletech | 66e372af07f9a3dd4660ef14b93daddf92a5e3c8 | 3ab9470cf2e7cb7a44baf4185710cb707f081ff4 | refs/heads/master | 2021-09-03T13:37:13.701453 | 2018-01-09T11:49:34 | 2018-01-09T11:49:34 | 114,750,048 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 14,256 | hpp | cltitem.hpp |
//==============================================================================
//
// (c) Copyright 1991-1997 Meta Software M.S., S.A
// All rights reserved.
//
// Module: m4mdfac.dll
// File: cltitem.hpp
// Project: mind3.x
// Author: Meta Software M.S. ... |
8746b37490935521b6ec13f23b4af765cd1e6012 | c7dadd5f8ca9e65b051e4ee86286c1732bbe294b | /Geeksforgeeks/hashing/distinct_elements_in_window.cpp | 3d314b446ea9028f1a0fa8292d327563b557f1e5 | [] | no_license | vanshkapoor/DS-ALGO | 36c31e0b1a315fafcfa073a1cf9ad507b5c0923e | ea7835b5871c160bd8b09ea098e4e36771b07dcb | refs/heads/master | 2021-07-05T23:21:40.160282 | 2020-11-29T21:47:43 | 2020-11-29T21:47:43 | 206,524,703 | 2 | 7 | null | 2020-11-30T14:27:08 | 2019-09-05T09:23:52 | C++ | UTF-8 | C++ | false | false | 927 | cpp | distinct_elements_in_window.cpp | // { Driver Code Starts
#include <bits/stdc++.h>
using namespace std;
vector<int> countDistinct(int[], int, int);
int main()
{
int t;
cin >> t;
while (t--)
{
int n, k;
cin >> n >> k;
int a[n];
for (int i = 0; i < n; i++)
cin >> a[i];
vector<int> res... |
d2e99cd0cbbf626c1a0c6fa08eb4ee75490803da | 0a5645154953b0a09d3f78753a1711aaa76928ff | /common/c/abpal/src/util/combineraac/StscAtom.cpp | 5ff1b90279c085c0a9a75a670969e5d58a63216d | [] | no_license | GENIVI/navigation-next | 3a6f26063350ac8862b4d0e2e9d3522f6f249328 | cb8f7ec5ec4c78ef57aa573315b75960b2a5dd36 | refs/heads/master | 2023-08-04T17:44:45.239062 | 2023-07-25T19:22:19 | 2023-07-25T19:22:19 | 116,230,587 | 17 | 11 | null | 2018-05-18T20:00:38 | 2018-01-04T07:43:22 | C++ | UTF-8 | C++ | false | false | 5,631 | cpp | StscAtom.cpp | /*
Copyright (c) 2018, TeleCommunication Systems, 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 list of condi... |
982337503c94b164b71062d7ec7298851eeadc1d | 678d5a935039637438d509b4be456a63da685197 | /Item11/Bitmap.cpp | 227af61df208e417b604d9461d6f21b4d204f14d | [] | no_license | LuanZheng/EffectiveCPlusPlus | 80410a5752a3c338a9837971463d1e4b5e9062b9 | ba30475fbe29d33604ad263f5cf17f007407c1d6 | refs/heads/master | 2021-01-25T11:34:25.450822 | 2018-03-18T04:11:33 | 2018-03-18T04:11:33 | 123,411,498 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 111 | cpp | Bitmap.cpp | #include "Bitmap.h"
Bitmap::Bitmap() : m_X(0), m_Y(0)
{
}
Bitmap::Bitmap(int x, int y) : m_X(x), m_Y(y)
{
} |
8a4507d7f68993c7d239408a8bd303b40992354c | 284049699021837d7c9243ee1b56db344411d0d1 | /tests/test_build.cc | c154804332a42f66eb66a28b6440cd66b686edd9 | [
"MIT"
] | permissive | seznam/libsphinxql | b900dde5092ed6c49099384028d9b2d8f4ec9317 | 7d5c4f64cc12e12801bc6d540f52f1ab049f20f7 | refs/heads/master | 2023-06-03T03:53:15.776613 | 2021-06-28T16:00:14 | 2021-06-28T16:00:14 | 368,564,299 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,440 | cc | test_build.cc | /**
* Readme examples buildability check.
*/
#include <iostream>
#include "sphinxql.h"
void simpleQueryExample() {
SphinxQL::Query query;
query.addQuery("SELECT id, some_field FROM index;");
query.addQuery("SELECT id, MAX(some) as some_max FROM index GROUP BY id;");
query.connect("localhost", 9306)... |
dcb170fd97b06af64966dbdddc4a7decc57432e9 | 4f05d797d7538dae8582fa4e72b5d13200286f8d | /blockchain.cxx | 05a30f2c84427b8245ba622256a598245e222b8a | [] | no_license | adsorptionenthalpy/simpleblockchain | 9d39a90504aec122dda32421a62cda512825f682 | 051b7cc80924cf1545f338bcdb2f6d8958931c57 | refs/heads/master | 2020-03-19T02:21:22.192320 | 2018-05-31T22:28:07 | 2018-05-31T22:28:07 | 135,621,335 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 451 | cxx | blockchain.cxx | #include "blockchain.h"
//Block 0 was not mined but simply exists when Blockchain instantializes
Blockchain::Blockchain() {
_vChain.emplace_back(Block(0, "Genesis Block Datum"));
_nDifficulty = 6;
}
void Blockchain::AddBlock(Block bNew) {
bNew.sLastHash = _GetLastBlock().GetHash();
bNew.Mine... |
e2707e61b986d4eb0060bf9022cb956e322278b2 | 8e943d5e1b9c41e2baf99f855754a78dd76a730f | /UVa12250.cpp | 7110338c9ea369d97ff83705e440098197a82316 | [] | no_license | shubhamverma1997/UVa-Codes | 1e22f4be8c08b77f56c23bc0e1239fde07d9e20f | bd74711b25c20fd7aa8c0ddaa082c60f19ec2597 | refs/heads/master | 2021-01-01T19:12:38.814078 | 2017-08-30T15:59:19 | 2017-08-30T15:59:19 | 98,536,434 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,073 | cpp | UVa12250.cpp | //Language Detection
#include<iostream>
using namespace std;
int main()
{
int t=1;
char s[16];
while(1)
{
scanf("%s",s);
if(s[0]=='#')
break;
if(s[0]=='H')
{
if(s[1]=='E' && s[2]=='L' && s[3]=='L' && s[4]=='O' && s[5]=='\0')
printf("Case %d: ENGLISH\n",t);
else if(s[1]=='O' && s[2]=='L' && s[3]... |
c6eeda4fa0d27a6ccf9dc22da38f0a461eea899d | 9bbd0a76dc8a8a1a22d07c152f1090abd0c963a3 | /src/XgcExtrudeCompute.cxx | bd8f035f555cb2dcd487fc6d9021a8226809ceb2 | [] | no_license | m-kim/Puma | 67ac9849cbeb99005013aafc978ba512dd6b07da | e819767cad51a66829877448fd3dfed07a25fc91 | refs/heads/master | 2022-11-09T13:27:31.668747 | 2020-06-25T01:03:02 | 2020-06-25T01:03:02 | 250,939,387 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,354 | cxx | XgcExtrudeCompute.cxx | #include "XgcExtrudeCompute.h"
#include <vtkm/cont/ArrayHandleExtrudeCoords.h>
#include <vtkm/cont/CellSetExtrude.h>
#include <vtkm/filter/ClipWithField.h>
#include <kittie.h>
void XgcExtrudeCompute::initializeReaders(std::string mp, std::string mn,
std::string dp, std::s... |
9008706f1c8a4cbbb5eb795e0e0131cd27200dcf | 245dd5a6961a888355a725481065c567b71da738 | /LMS6002D/legacy/FFTviewer/src/Logic/src/ConnectionManager.cpp | 0992a0798caa70b2d4a57114a1934e5b6ed9bfce | [
"Apache-2.0"
] | permissive | serojik91/lms-suite | 17edcee1715d1f32ba221d335b69541713606b63 | 41c3e7e40a76d2520478e9f57bcd01d904907425 | refs/heads/master | 2020-12-24T06:36:35.535434 | 2015-05-04T12:45:46 | 2015-05-04T12:45:46 | 73,470,252 | 1 | 0 | null | 2016-11-11T10:55:06 | 2016-11-11T10:55:06 | null | UTF-8 | C++ | false | false | 17,794 | cpp | ConnectionManager.cpp | // -----------------------------------------------------------------------------
// FILE: ConnectionManager.cpp
// DESCRIPTION: Manages data transfering through various connection types
// DATE: 2013-05-06
// AUTHOR(s): Lime Microsystems
// REVISIONS:
// --------------------------------------------------------------... |
c448c26933e7d8a461e112dfd04c37e3bde3a39c | 227a0db00a52dda6acb70cc83eeb02be3b2c118c | /Level-5/Kanuck/accelometer_powered_car/accelometer_powered_car.ino | 032d373a11d557768b353308590f8064ff1e15fb | [] | no_license | Obotz-Ottawa/Level-5 | 958b21636df14de5a6af5b3b46afb8f5296568ea | e54fedf33a204d0fded51756050f1b34fe5f81e3 | refs/heads/main | 2023-03-13T17:27:24.329651 | 2021-02-21T17:26:07 | 2021-02-21T17:26:07 | 336,853,104 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 482 | ino | accelometer_powered_car.ino | #include<avr/io.h>
#include<util/delay.h>
#define checkbit(x,y)((x)&(y))
#define bitn(p)(0x01<<(p))
int main (void)
{
void Forward()
PORTD = 0b01100000;
}
{
void Backward()
PORTD = 0b10010000;
}
{
void Stop()
PORTD = 0b00000000;
}
int main(void) {
int yval;
DDRD = 0xFF;
DDRA = 0x00;
}
ADMUX = 0x46... |
6ee73dde765d7faa9c6de3a92db4fd90993f37ac | f92364569ca2f0d909cdf077188eef7a7f9c2e01 | /Snake/World.h | d6fe1ddac5726465bf98bd2f1415907cb9baefc6 | [
"Apache-2.0"
] | permissive | Wiz1991/Snake-game | acb0717823748c834a2483bff5df68a92e16ef46 | e6e9bf21adf92ee8edeffd16ed7d2e6db9df5769 | refs/heads/master | 2020-05-24T02:16:53.477559 | 2019-05-17T09:11:46 | 2019-05-17T09:11:46 | 187,049,708 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 432 | h | World.h | #pragma once
#include "Snake.h"
#include <random>
#include <string>
class World
{
public:
World(sf::Vector2u size);
void Update(Snake& player);
void Render(sf::RenderWindow& target);
int getBlockSize();
void respawnApple();
private:
sf::Vector2u windSize;
sf::Vector2f mApple;
int blockSize;
sf::Font mFon... |
f20692cedef067f7ac55b7da14978d1d9c34c151 | ef15a4a77b6e1fbb3220a5047885ba7568a80b74 | /src/logger/Logger/Appenders/Syslog.hpp | bfbbce963b60d38701498cbb1cb97580dd98523a | [] | no_license | el-bart/ACARM-ng | 22ad5a40dc90a2239206f18dacbd4329ff8377de | de277af4b1c54e52ad96cbe4e1f574bae01b507d | refs/heads/master | 2020-12-27T09:24:14.591095 | 2014-01-28T19:24:34 | 2014-01-28T19:24:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 684 | hpp | Syslog.hpp | /*
* Syslog.hpp
*
*/
#ifndef INCLUDE_LOGGER_APPENDERS_SYSLOG_HPP_FILE
#define INCLUDE_LOGGER_APPENDERS_SYSLOG_HPP_FILE
#include "Logger/Appenders/Base.hpp"
namespace Logger
{
namespace Appenders
{
/** \brief sends logged messages to syslog.
*/
class Syslog: public Base
{
public:
/** \brief static method for ge... |
04ff6ecbda8541c39a3ba351997f06e7075b4865 | 34cfe613e04e84b630bf9bcb8d66ea36e379af5e | /hamiltonianCycle.cpp | 0326881d3c75d1d6f16b9ef8c1025f88788af299 | [] | no_license | happysiddharth/DynmaicProgramming | e23de5852c518cc254bd77099e89b789d5117265 | 4024311d9fa7813501632894ddf7ce8853577110 | refs/heads/master | 2020-09-26T17:57:09.470611 | 2020-01-01T19:54:46 | 2020-01-01T19:54:46 | 226,307,555 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,266 | cpp | hamiltonianCycle.cpp | #include<iostream>
using namespace std;
#define v 5
void printSolution(int path[])
{
cout << "Solution Exists \n" ;
for (int i = 0; i < v; i++)
cout << path[i] << " ";
cout << path[0] << " ";
cout << endl;
}
bool isSafe(bool graph[v][v],int *path,int vertex,int posi... |
bc7e7206f4778d0f5b2599349264f14fd2a34d55 | 0ab5ea9e1233f5653f266d6f2987022be50aaf43 | /cpp/kolakoski-sequence.cpp | 9ea9ffbee895568238db5ed26ee477742dbd3219 | [] | no_license | ly3too/leetcode | d0ddeaddfead924cd3973421587b002b860b31f2 | ee7b16379e13154704bdaccd3fc40d47fab3bb8b | refs/heads/master | 2020-06-25T05:55:42.151890 | 2017-12-28T06:12:17 | 2017-12-28T06:12:17 | 96,961,773 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 680 | cpp | kolakoski-sequence.cpp | #include <iostream>
#include <vector>
#include <cassert>
using namespace std;
int main()
{
int n, m;
cin >> n >> m;
assert(n>=0 && m>0);
vector<int> arr(m);
for (int i=0; i<m; ++i) {
cin >> arr[i];
assert(arr[i] > 0);
}
vector<int> res;
int idx = 0;... |
396361272771d03de25374b217daf151deaa513c | c8aa24cd1c5c071fce70046e50dafdbcd5a4ffc4 | /src/lib/fields/InletOutletVelocity.cpp | 9fadf396c60328a0dc4d47083fb893b2539b6a37 | [] | no_license | wgryglas/SEM | ec57966a6d4ec77029dbff3838c0c3ccbfb6ac9a | adfe38be39b6bed354a007ead6f3ca0f681ef9e9 | refs/heads/master | 2016-09-11T03:15:54.931908 | 2015-05-28T18:35:27 | 2015-05-28T18:35:27 | 35,941,688 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,276 | cpp | InletOutletVelocity.cpp | #include "InletOutletVelocity.h"
namespace SEM {
namespace field {
std::string InletOutletVelocity::TYPE_NAME = "inletOutletVelocity";
const std::string VELOCITY_DO_NOTHING= "velocityDoNothing";
InletOutletVelocity::InletOutletVelocity(const SEM::mesh::Boundary& edges)
: PatchField< SEM::Vector >(edges)
{
}... |
fdd7a04fcd962d346a30ee73d6a14a64b639b317 | 32cb44f801db97806a2209c976335256e81dbea8 | /TAAG-client/srcs/taag_title_screen_widget.cpp | f16ca3cf8bd52e9092c65810782b5dbdf40684cd | [] | no_license | Hyarius/TAAG | 698f3b1c384b41e2fcecc520f3acf9da301e763f | bbab06364bb149a6842d9043a5ea3179a44767db | refs/heads/master | 2021-06-01T20:19:10.412965 | 2021-03-27T23:41:32 | 2021-03-27T23:41:32 | 165,252,444 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,597 | cpp | taag_title_screen_widget.cpp | #include "taag_client.h"
void connect_account(jgl::Data param)
{
Title_screen* title_screen;
title_screen = param.acces<Title_screen*>(0);
title_screen->connect();
}
void signup_account(jgl::Data param)
{
Title_screen* title_screen;
title_screen = param.acces<Title_screen*>(0);
title_screen->signup();
}
Titl... |
cb43361616bed98ba6541d84d679a3e9aa9c1b0e | 6d660d843ce4b56a3bad62dcdb84d289a87de2bb | /sys/net/conn/conn_marshall.cpp | b45eeb5a2f9f7a7d4e90f272e33535af2fef8fa1 | [] | no_license | charlesg3/faux | eb0a19ec0475d6f30a41cfc4b7fc93dd730c34ce | 762f292e246a18b9ec765761bebc3c5606ce4ae3 | refs/heads/master | 2021-01-23T03:27:26.419917 | 2015-03-13T13:47:54 | 2015-03-13T13:47:54 | 32,158,202 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,923 | cpp | conn_marshall.cpp | #include <assert.h>
#include "conn_manager.hpp"
#include "conn_private.hpp"
#include "conn_marshall.hpp"
#include "transport_server.hpp"
namespace fos { namespace net { namespace conn {
/* ConnServer callbacks */
void doBindAndListenCallback(Channel *chan, DispatchTransaction trans, void *msg, size_t size, b... |
a427e56e8324aed2352d028427523d7038361f12 | 799a21e89a17fffee2508d40072d68e065c903e4 | /ts2320245/Assignment 3/Savitch_3rdEdBook_Chap3_Prob1/main.cpp | ed9b27e53993ca2f81a0526a729f4302f501052e | [] | no_license | Hillash/CSC5_Spring_2014_42450 | 5b8204b124338587a06210cf4cf05163463ac557 | 7a513d1a2f355da9a62cf86bf7ea5120699004fa | refs/heads/master | 2020-12-28T23:04:32.682727 | 2014-10-01T06:19:38 | 2014-10-01T06:19:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,418 | cpp | main.cpp | /*
* File: main.cpp
* Author: Saldana, Thomas
* Problem 1: Write a program to score the paper-rock-scissor game. Each of two users types
* in either P,R, or S. The program then announces the winner as well as the basis
* for determining the winner: Paper covers rock, Rock breaks scissors,... |
58621b262351532226a37a042c8aae32b0746b6c | 78b4e213a8177b8641fca163db0a88b81a85b304 | /Programming/C++/Introduction_to_C++_programmming/Week_1/Task_3/Source.cpp | 0bed0b264bcbae102241999741d71ba6f1862935 | [
"MIT"
] | permissive | 9weiss6/Courses | 4f4f099512e49b0da450afe1a95cc46f7b36f54a | f54680064b00036f7b0a38838a761ec635c69ebc | refs/heads/master | 2021-08-29T10:36:28.168193 | 2017-12-13T18:25:29 | 2017-12-13T18:25:29 | 106,936,495 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 554 | cpp | Source.cpp | /*
Последняя цифра
Дано натуральное число, выведите его последнюю цифру.
Формат входных данных
На вход дается натуральное число N, не превосходящее 10000.
Формат выходных данных
Выведите одно целое число - ответ на задачу.
Sample Input:
753
Sample Output:
3
*/
#include <iostream>
using namespace std;
int... |
fe5a52a3aef7d1561cb9590f1a3db9880180560e | da51e7b3cbde90592584641c5e3c2d0811f96560 | /C3/WENDE_C3_ExecutionCode/WENDE_C3_ExecutionCode/C3ProcessingApp/C3NotificationHandler.h | 624fed86ea0b1d56028143fce01fded4c8c44b42 | [] | no_license | dishbreak/wende-project | 1bdc8c59e11ce9faeb3c8d1bb4698daf8104e94d | dfb0ca0bb2b8e88e4aa2fade1729e4ea60b1682a | refs/heads/master | 2020-06-05T06:04:47.179978 | 2012-07-09T22:11:57 | 2012-07-09T22:11:57 | 40,326,166 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,282 | h | C3NotificationHandler.h | #include "stdafx.h"
#include <windows.h>
#include "C3AlertStates.h"
class C3NotificationHandler
{
public:
//Singleton Manager for the shatred memory
static C3NotificationHandler& Instance()
{
// create singleton
static C3NotificationHandler singleton;
// return reference to singleton
return sin... |
9f5574c94e7a4d30e0b215045e42e07f7df2ab0d | 4bea57e631734f8cb1c230f521fd523a63c1ff23 | /projects/openfoam/rarefied-flows/hyperCavity/test_case/0.00016/linearKEMean | 3c5317ec73098a7338b9216bcecfa3ff34366337 | [] | no_license | andytorrestb/cfal | 76217f77dd43474f6b0a7eb430887e8775b78d7f | 730fb66a3070ccb3e0c52c03417e3b09140f3605 | refs/heads/master | 2023-07-04T01:22:01.990628 | 2021-08-01T15:36:17 | 2021-08-01T15:36:17 | 294,183,829 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,887 | linearKEMean | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
... | |
d624d7ec6674344c1e4b2d7080b6e3243a8b3ae8 | 05a99e3f9b807b0a349430da68464b63ee705ea5 | /shared/udt_graph.cpp | 1b18e1680bdb0130ad7412654bd37cfc29acdf3e | [] | no_license | mayureshucsb2019/Compiler-Optimization | ef6b9bed1b492e181adafd1d831b89fa549bce36 | 8e7ea6a69e73c8502e1453ec76e98f6e0232acc3 | refs/heads/main | 2023-01-03T03:37:28.243221 | 2020-10-30T03:11:40 | 2020-10-30T03:11:40 | 308,511,720 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,292 | cpp | udt_graph.cpp | #include "udt_graph.hpp"
#include <iostream>
#include <fstream>
#include <queue>
using namespace std;
UDTGraph::UDTGraph(Graph &graph)
{
linked_list = {NULL, NULL};
if (graph.hasZeroID == false)
{
for (int i = 0; i < graph.num_edges; i++)
{
graph.edges[i].source = graph.edges[i]... |
dd08ca9d97009051aa7ac0080f0e2a40845d095e | ac06790c99de520619c4f4ae60ad27b61b01c345 | /TicTacToe Game/main.cpp | e84b34971d275e825b5651506dc9dd12ad1642c0 | [] | no_license | duskwit/C-repository | da46a92d044a54df305f6f1e14996650e070db58 | 8c320102ed9a98cee42e3853ba9c2029001ad3af | refs/heads/master | 2020-07-20T19:07:28.557411 | 2016-09-10T13:24:08 | 2016-09-10T13:24:08 | 66,405,944 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,432 | cpp | main.cpp | #include <iostream>
#include <windows.h>
using namespace std;
//tablica kolko i krzyzyk 3x3
char matrix [3][3] = { '1','2','3','4','5','6','7','8','9' };
//podprogram narysuj
void Draw()
{ //nazwa
cout << "TIC TAC TOE" << endl << endl;
//ulozenie kolumn tablicy matrix 3 na 3
for(int ... |
b142b23fc84fd8ad34d86f9915e517d42ff83533 | 3640dd135321c7dfb460bc14c4b4812639840d58 | /src/src/Camera/camera.cpp | 4b0c63399ad6e7501def626fbe5550518da93527 | [
"MIT"
] | permissive | HK416/glTF_Animation | 0237b7fda267764b233029c990475e9c7dddf9d0 | dae22da20c08a86ef1aca9ae99bfa525fa93f68d | refs/heads/master | 2020-12-01T00:49:02.669582 | 2020-06-09T15:56:36 | 2020-06-09T15:56:36 | 230,525,536 | 13 | 5 | MIT | 2020-06-09T15:18:53 | 2019-12-27T22:13:29 | C++ | UTF-8 | C++ | false | false | 530 | cpp | camera.cpp | /***************************/
/* FILE NAME: camera.cpp */
/***************************/
#include "camera.h"
// this function returns the projection matrix
orca::mat4f Camera::getProjectionMatrix(int width, int height) const
{
float aspect = static_cast<float>(width) / static_cast<float>(height);
return orca:... |
d67ae0bdf313df5fa00210896a316acd2deb9fce | 5e27f1ff6a77ddead204063f2254eee4b7f5a91c | /image_deal/test/test.cpp | eba152680402dc9cf10eea16e0e6dbfaaf7641cc | [] | no_license | K-G-1/opencv_practice | 662b1a5a5717d47287a9eee2685233aea677f938 | a9dbba133b590a77e25e6c81ace0ee356e0fd420 | refs/heads/master | 2021-04-28T20:56:13.186389 | 2018-03-29T08:23:29 | 2018-03-29T08:23:29 | 121,937,769 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,888 | cpp | test.cpp | #include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <typeinfo>
#include <iostream>
#include <fstream>
#ifndef PosSamNO
#define PosSamNO 300
#endif
using namespace cv;
using namespace std;
string intToString(int v)... |
9866e64ba4cbebcb5cbe6529b95025e1a7dad947 | 733d48617d485ac9ffc8880786d6e5146e816e8e | /14 - Arquivos/ContaCaracteres/TextFile.h | e4152ae10015cf624a6e0270f37f5c3c82ed5826 | [] | no_license | thiagoaraujocampos/programacao-orientada-a-objetos | eb01c4a09576353213d823ad7c20f8f28590923b | 3d099b6f992a6e5b9fa30ffd9530cfd8c0cded10 | refs/heads/master | 2020-09-22T04:35:10.651486 | 2019-12-07T06:26:05 | 2019-12-07T06:26:05 | 225,050,213 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 269 | h | TextFile.h | #ifndef TEXTFILE_H
#define TEXTFILE_H
#include <fstream>
#include <iostream>
#include <string>
using namespace std;
class TextFile {
public:
TextFile();
virtual ~TextFile();
static void contaCaracteres(string nome);
private:
};
#endif /* TEXTFILE_H */
|
2c63fe83e3df3a4c9539d6a98c0b06ba8b3cbba2 | 99ff6b8e429e342ce6d8d4fa59c23664eb0cd604 | /06_Src/main/main.ino | f7b2a80d690b3f10566761b6d8ac351a3b869d37 | [] | no_license | VVCi/Graduate_Thesis | f81855fc4daff134db9fc07cf15ceb6eaa9c980d | c5be9cb3db154d5940b834a472d35ce9e4fa7cce | refs/heads/main | 2023-02-12T03:55:18.154025 | 2021-01-05T04:21:54 | 2021-01-05T04:21:54 | 321,708,772 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 6,693 | ino | main.ino | #include "BTS7960.h"
/* Define Mode
0: Locked Mode
1: Auto Handling Mode
2: Remode Handling Mode
*/
/*============ Pins Table============ */
/* RF Signal Mega2560
CH2 45
CH4 47
*/
/* Water Pump ... |
9e9cc6df11aa9a38e9ff8d8433a462ef977860f8 | cb943ab416fb67ec9aca2dc764edba5b58348a86 | /_task/ITask.hpp | d8f3f9781efe742637719f5eef857744d35e4da9 | [
"Apache-2.0"
] | permissive | asumaneev/challenge.example | d85d8aca3f79c85252ed68d7a946e6ae05aea930 | bf3b97ec2525bec756be8006c9018b6774d1b327 | refs/heads/master | 2020-04-02T01:00:51.269928 | 2018-10-19T22:41:56 | 2018-10-19T22:41:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 223 | hpp | ITask.hpp | #pragma once
#include <string>
/**
* @brief Interface for task
* Print output of method to std::cout
*/
class ITask
{
public:
virtual ~ITask() = default;
virtual std::string who_is_awsome() noexcept = 0;
};
|
bcf3b9ff745557de0873ddb98bbfa23f0d5ae462 | db05624b5b9a64877608724ca2cca47f643b6692 | /UVa/UVa/htond.cpp | 1888ac3f91987631eea669521ab90a62e3051550 | [] | no_license | JJXiangJiaoJun/UVa_OJ | 0818ceba8add059ff6c2bcc8478133b674aad411 | f280a2b7076b0a36ed619f0821b775035f00117f | refs/heads/master | 2020-03-26T22:49:06.594150 | 2019-07-21T02:28:40 | 2019-07-21T02:28:40 | 145,489,569 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,417 | cpp | htond.cpp | #include <cstdio>
#include <cstring>
#include <string>
#define PRIME 127
#define HASH 256
int check_sys()
{
int num = 1;
if (*(char *)&num == 1)
{
return 1;
}
else
{
return 0;
}
}
#define swab64(x) \
((uint64_t)(\
(((uint64_t)(x)& (uint64_t)0x00000000000000ffULL) << 56) | \
(((uint64_t)(x)& (uint64_t)0x00... |
19823265cf6fba9f0913f13fc289fc0149f04899 | fcc4255330e54117e785fe4f9ad7f03f13e9b59f | /practice/cpp/dynamic_programming/climbing_stairs.cpp | f94f7a3699779f0421959f53355a13cf60e792f2 | [] | no_license | truongpt/warm_up | f5cc018e997e7edefe2802c6e346366e32c41b35 | 47c5694537fbe32ed389e82c862e283b90a9066d | refs/heads/master | 2023-07-18T11:10:22.978036 | 2021-09-02T20:32:04 | 2021-09-02T20:32:04 | 242,413,021 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 612 | cpp | climbing_stairs.cpp | /*
- Problem: https://leetcode.com/problems/climbing-stairs
- Solution:
- Liner Dynamic Programming
- d[i] is number way to go to step i
- d[i] = d[i-1] + d[i-2]
- At each time, i only depend on i-1, i-2 -> optimize memory
- Time and space complexity
- TC: O(n)
- SC: O(1)
*/
#include <ios... |
802571042508a4693dc3ba58f568fdcaad35cf4d | 38764d2ca17d8d5708222074c8d2f0a2c37b5357 | /ArtGallery/CGGeometry.cpp | 3590ce4eea73493aa7a5d80e3b1a13703cd6be1e | [] | no_license | BennyKJohnson/ArtGalleryGLUT | 56bec24afde1a80f2299efd1848832c449bbb6f4 | 2dd1b8d13d69cd94fb3b977e8d73f1c4a6acf25a | refs/heads/master | 2021-01-20T17:55:28.446420 | 2016-06-12T13:34:23 | 2016-06-12T13:34:23 | 60,840,444 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,655 | cpp | CGGeometry.cpp | //
// CGGeometry.cpp
// GLUT3DApp
//
// Created by Ben Johnson on 8/05/2016.
// Copyright © 2016 Benjamin Johnson. All rights reserved.
//
#include "CGGeometry.hpp"
#ifdef __APPLE__
#include <GLUT/GLUT.h> //GLUT Library, will make you life easier
#include <OpenGL/OpenGL.h> //OpenGL Library
#include <OpenGL/gl3.h>
... |
6c2ec9fbda32df24f2b5f9ecee706ca2d0fcb540 | 42b68e18d6bf4aef0962da5ce58f9d97028eecaf | /upredictor/uPredictor/UBCGUI/RowLayout.h | 9eb5aa05910cbc592c1f4e9e8d937cc932ebb62a | [] | no_license | ssheikho/uPredictor | 0f0b4cdea1a30193fce5d6b44307fd1e2cfe76d6 | c95a7923cb5714590496fab571d318674cb2861f | refs/heads/master | 2021-07-11T03:00:39.556540 | 2017-10-06T02:57:48 | 2017-10-06T02:57:48 | 105,960,135 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 339 | h | RowLayout.h | #ifndef ROW_LAYOUT_H
#define ROW_LAYOUT_H
#include "LayoutContainer.h"
#include <map>
using namespace std;
class RowLayout : public LayoutContainer {
public:
RowLayout(LayoutContainer *parent, int minW, int minH);
~RowLayout();
GtkWidget *getWidget();
void addChild(LayoutElement *child);
protected:
GtkWidget... |
e0fe034a6841a275f78dc29a6b3d071ab3139dcb | 0de686f437ad768c0a2e1887f6d1b3d4191a3cbb | /Codeforces-800/HittheLottery.cpp | 82d71bc8a27749ba0eaa12ee8994d18efd294139 | [] | no_license | Meeeeeow/Sorting_Algorithms | dbbd80eb35e52700b4be379f0c52cefa98331db5 | fb65ae12911cd18adbd10d816046f6f413c233ea | refs/heads/master | 2023-04-14T15:27:39.281590 | 2021-04-26T15:25:28 | 2021-04-26T15:25:28 | 282,048,786 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 284 | cpp | HittheLottery.cpp | #include<bits/stdc++.h>
#include<iostream>
using namespace std;
int main(void)
{
int n,a,b,c,d,e;
cin>>n;
a = n / 100;
n %= 100;
b = n /20;
n %= 20;
c = n / 10;
n %= 10;
d = n / 5;
n %= 5;
e = n / 1;
cout<<a+b+c+d+e;
return 0;
}
|
78323418f26b3439e36b070465f0aac3164a24cf | faebf6236ac5d8ccbd1f2ec44158c7d17ac616c3 | /Skateboard.cpp | 19bab1db946b2b838389954af52416e714eb5ba7 | [] | no_license | juliansweatt/assignment2 | fda3ba8b286059ac513a03ace6853a6cb06f992e | eff524ff340b678e8ea30d83283a5534acaa55cc | refs/heads/master | 2020-08-03T22:46:18.778417 | 2019-10-02T00:04:24 | 2019-10-02T00:04:24 | 211,908,963 | 0 | 0 | null | 2019-09-30T16:51:34 | 2019-09-30T16:51:34 | null | UTF-8 | C++ | false | false | 943 | cpp | Skateboard.cpp | #include "Skateboard.h"
#include <cstdlib>
#include <ctime>
Skateboard::Skateboard() {
setBrand("Custom");
setModel("unknown");
}
Skateboard::Skateboard(string brand, string model) {
setBrand(brand);
setModel(model);
}
Skateboard::~Skateboard() = default;
double Skateboard::mileageEstimate(double mi... |
0807eaa8cc80a7426e441cffad4dbd2ecd50fc05 | 453f3c128ea5108ea585304cf844669e85883160 | /leetcode/triangle.cpp | f06750b1e25be28e2c9dff6643d0bb302f84b110 | [] | no_license | jiangyaz/leetcode | 096f1a46cbf5f401589d2ee6b87f58cafe47432f | c187e45d51b80f64501d7493a6eb8eb01c3e5e13 | refs/heads/master | 2020-06-01T00:06:01.225396 | 2014-11-24T21:45:15 | 2014-11-24T21:45:15 | 24,919,946 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 614 | cpp | triangle.cpp | /* triangle
Given a triangle, find the minimum path sum from top to bottom.
Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[3,4],
[6,5,7],
[4,1,8,3]
]
The minimum path sum from top to bottom is 11 (i.e., 2 + 3 + 5 + 1 = 11).
*/
int minimum... |
10f6b1dc7858bcf746d6564fb824eb27a1ebd64e | 75a82007c38a912a6190a9d4e0679eb6bfacd3bb | /pennygame.cpp | c19715670184de107592143322004933748e9206 | [] | no_license | ri-sh/SPOJ | 63612bc4481b0fedee151d1cff92d5d5d13b97ec | a9ce159f83fe7d9b28ef38e45a424bd7e855d1d0 | refs/heads/master | 2021-05-27T01:44:43.173616 | 2014-02-20T07:02:38 | 2014-02-20T07:02:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,118 | cpp | pennygame.cpp | /*SPOJ Problem Set (classical)
8612. Penney Game
Problem code: NY10A
*/
#include <algorithm>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stri... |
ab6c587e4fc4bf2aa6a2f1cabbb5afd4093196bf | 9055c46b4e67e24ef7f3bad1cf0299a284f98dad | /ThreadSafeQueue/SerialQueueTests.cpp | b8b531f97235657ccc4241038b68d29c18e833ac | [] | no_license | JCBenR/For_Employers | 534eba29547145290d8d2dddaa0835f3f40a8522 | a77c13dfedef7b324ee9c0e8c753fd60920f7e9a | refs/heads/main | 2023-06-01T17:43:52.230147 | 2021-06-10T22:33:56 | 2021-06-10T22:33:56 | 371,510,275 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 814 | cpp | SerialQueueTests.cpp | //
// Created by Justin Siebenhaar on 3/30/21.
#include <cassert>
#include <iostream>
#include "SerialQueue.hpp"
int SerialQueueTests() {
SerialQueue<int> testQueue;
testQueue.enqueue(5);
assert(testQueue.size() == 1);
testQueue.enqueue(6);
testQueue.enqueue(7);
testQueue.enqueue(8);
as... |
ab3934b5e87818528035e589bff15c60f6e006da | 65693211ed5a0472fca36f6a39b697db7af9ad17 | /tree.cpp | b6a26406d103a32239bb3dfbb94ddf043c2a49b7 | [] | no_license | Nutrymaco/2-course-nonlinear-structure | 4dfa2bf30984cb05d9837ea34c8d5ca96725162c | 374b2ec871b470bb24f2a295d5a96c9393fb8852 | refs/heads/master | 2020-06-17T04:05:58.957794 | 2019-07-09T09:33:36 | 2019-07-09T09:33:36 | 195,790,102 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,156 | cpp | tree.cpp | #include <iostream>
using namespace std;
struct Unit{
Unit *rightBrother = NULL;
Unit *leftSon = NULL;
int value = NULL;
};
class Tree{
public:
Unit *topRoot;
Tree(int number){
topRoot = new Unit;
topRoot -> rightBrother = NULL;
topRoot -> leftSon = NULL;
topRoot ->... |
d003ae8329a85c0c41cddb48a181ce3aa31b115c | 330c3bd5961486a3386076c729701ed97ccb63f2 | /piece.cpp | 065f0b9d30a535f204c5ae7f0795644bb4d62afa | [] | no_license | gracemeilen/TicTacToe | 167e4cbcc35d7fd15424c4f14236995a46288ffa | 40827dad9749ceb4ee509b89151c3a84aa20e655 | refs/heads/master | 2021-01-10T10:51:19.480580 | 2015-12-26T21:16:17 | 2015-12-26T21:16:17 | 48,623,674 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,478 | cpp | piece.cpp | //Grace Meilen
#include "stdafx.h";
#include "piece.h"
#include <sstream>
using namespace std;
// A construtor that takes in a piece_color, string and string
// and creates a game piece with those values assigned to them.
game_piece::game_piece(piece_color c, string n, string d)
: color_(c), name_(n), disp... |
777f43c757cc8330999c0b074a4d03f9598de618 | 5b62f0a51e0c6d99aa2031c2872336c48c2f743d | /Robot.cpp | c9862a82995eb820c51289fdf0974158b8ed4a03 | [] | no_license | retrodaredevil/arduino-robot | 47283fac288bc9cfb56ee59dd37f4bfcb23860cd | c59e7503d1e9d41d88a23ddc61325782d84138e6 | refs/heads/master | 2020-03-22T17:02:45.311130 | 2018-07-19T05:50:09 | 2018-07-19T05:50:09 | 140,368,585 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,107 | cpp | Robot.cpp | //
// Created by josh on 7/7/18.
//
#include "Robot.h"
#include "Sensors.h"
#include "DriveProcesses.h"
String currentLine1 = "";
String currentLine2 = "";
RobotProcess *currentProcess;
Zumo32U4LCD lcd;
void initRobot(){
initSensors();
setRobotHeading(90);
}
void setRobotProcess(RobotProcess *robotProcess){
delete... |
eb6c1a672ab000c56237a6e7c467e063f11aa7b7 | fd0ca8bac9749a63fec5fec7327e0b878e817494 | /src/zobristHashing/ChessZobristHash.cpp | 14f04cc924a637e42166697425d218715e3dd511 | [] | no_license | pizmak/chessCPP11 | 2be1e6ed6ef6fb171b2795c36da3f697f4d88132 | a9cf3db683487d05a58c15a235a78a9b79648aed | refs/heads/master | 2023-02-09T05:11:05.782965 | 2014-06-21T22:25:50 | 2014-06-21T22:25:50 | 325,613,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 873 | cpp | ChessZobristHash.cpp | #include "ChessZobristHash.h"
#include "ChessBoard.h"
void ChessZobristHash::updatePiece(uint8_t field, uint8_t color, uint8_t piece) {
update<BOARD>(field, color, piece);
}
void ChessZobristHash::switchPlayer() {
update<PLAYER>(0);
}
void ChessZobristHash::updateCastlingCapabilities(uint8_t castl... |
ecfdaf5a13e85dc11ae2dda2471fc14b60babed5 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /FWCore/Framework/interface/es_impl/MayConsumeChooserBase.h | 167407a318df1969b40a4d8514f38b1910ced22f | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 1,523 | h | MayConsumeChooserBase.h | #ifndef FWCore_Framework_MayConsumeChooserBase_h
#define FWCore_Framework_MayConsumeChooserBase_h
// -*- C++ -*-
//
// Package: FWCore/Framework
// Class : MayConsumeChooserBase
//
/**\class MayConsumeChooserBase MayConsumeChooserBase.h "MayConsumeChooserBase.h"
Description: [one line class summary]
Usage:... |
646b5ee6d25e7bc5d97517727afd882f650b61e8 | 449a51d7405821c11634de6622fc5b61a5ef8799 | /031_vector/src/testApp.cpp | dd74f81bb4fb0287a9f77f016d914f26d3d3704a | [] | no_license | JosephFiola/CodeForArt | 16b7a856ac2b6f6d8e81c2a4157c96fbef1ecf9d | 2661bb6bf8a58269bdc80e831dc8f23b4c8cf044 | refs/heads/master | 2020-12-25T12:18:17.411770 | 2011-07-15T04:13:35 | 2011-07-15T04:13:35 | 2,051,334 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,938 | cpp | testApp.cpp | #include "testApp.h"
/*
In this program I show examples of how to use "vectors",
which are very similar to arrays.
Check out the "testApp.h" file.
*/
//--------------------------------------------------------------
void testApp::setup(){
ofSetFrameRate(24);
ofBackground(255,255,255);
ofSetWindowShape(1024,768)... |
e588b51b6a783ec8a0d02a8edac3a5956c149cdc | 8d82f844648ad98d554b3b82cdbff954e14bae3a | /App/H/Builder/TranWithProc.cpp | a3bbc208ffc1651b2f680e500eb8dfb6819eaedd | [] | no_license | angelinana0408/financial-transaction | 519151f05bb6c92b9b35bcf4eb1ac68ee0edc522 | e8f4696d7108dc7ff25719269f7106b8430708aa | refs/heads/master | 2021-04-27T16:43:52.282331 | 2018-02-21T08:14:21 | 2018-02-21T08:14:21 | 122,308,506 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,759 | cpp | TranWithProc.cpp | ////////////////////////////////////////////////////////////////////////////////
// File Name : TranWithProc.cpp
// Description : Withdraw
// Creator : SE
// History : 1. 2004-12-22 CUP Ver 01.01.01 AUTO - New Version
//
//
// Copyright (c) 2004, Nautilus Hyosung Inc
//////////////... |
ec1d2146a1c9797043335ad2de64332a07d43151 | fb1d7d7282a64a26a807612b5517c043f8873f27 | /Midterm_Projects/Midterm_Prob3_012814/main.cpp | 9745c7a0e8ac273ad95045469d96c88103c87387 | [] | no_license | 1Asenath/jc1929709 | 1a68bb635c0cf0cb36b0698d30b66344903cf245 | ef946c266ac38b7a5ad6325286a6168247f15dea | refs/heads/master | 2020-06-07T13:16:11.437112 | 2014-02-13T17:11:57 | 2014-02-13T17:11:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,656 | cpp | main.cpp | /*
* File: main.cpp
* Author: Jennifer Clark
* Purpose:
* Created on January 28, 2014, 11:15 PM
*/
//System Libraries
#include <cstdlib>
#include <iostream>
#include <iomanip>
using namespace std;
//Global Constants
const unsigned short CNV_D_CT=100; //convert dollars to cents
//Function Prototypes
void rea... |
7f601b92e6361e82b5814be4e1f6d384957c1c42 | fbe35ee0afa466f79fd74486b5c3258b6b7bfb38 | /tp2-mn/src/sources/main.h | 9099174f40ee373e2d5aff5e52cdcee55196d145 | [] | no_license | mtqp/metnum-desousa-valdes | 5ee883c907a417e412f5c3d7d7599fc33ebed408 | 528fefeda73749a461ad7055c16f79394e165680 | refs/heads/master | 2021-01-10T06:50:18.425162 | 2014-11-14T01:50:35 | 2014-11-14T01:50:35 | 36,199,868 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 453 | h | main.h | #ifndef __MAIN__
#define __MAIN__
#include <iostream>
#include <fstream>
#include <cmath>
#include <list>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <string>
#include "ranking_algorithm.h"
#include "web_net.h"
#include "parsing.h"
using namespace std;
ParsingAlgorithm* CreateParsingAlgorithmF... |
b1b4704bb639256d8c37d40df47fd99a962aff41 | e1b0e77f912445c7f56f5c83e72cdfdacf38a538 | /fractals/modes/fractal_mode/fractal_mode.cpp | f35726b4d7ad3a53072a53b52cec89c2d0f9ee57 | [
"MIT"
] | permissive | jaccek/fractals | 8475fc6ef8b232dad2f64eee519c949c5afbbc5e | 1164f3826eaba2f14456c785f677fbe0d9b2cef4 | refs/heads/master | 2021-01-11T03:56:59.923104 | 2016-12-31T19:52:56 | 2016-12-31T19:52:56 | 71,270,558 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,285 | cpp | fractal_mode.cpp | #include "fractal_mode.h"
#include "renderers/mandelbrot/mandelbrot_renderer.h"
#include "renderers/julia/julia_renderer.h"
FractalMode::FractalMode(ViewRefresher *refresher, FractalType fractalType, int width, int height):
Mode(refresher)
{
mWidth = width;
mHeight = height;
mCenterPointX = 0.0f;
... |
6807f4581fd47307b1ed5da0e465b4491f7dbd16 | b1f6ca0a82f4e21528cd2ebcd4eea5ae9da7ec06 | /Engine/Axis/Source/Engine/Primitive/AxModule.h | 686f65e6b21959dcaa7fa238c628ea5e9af916ff | [
"MIT"
] | permissive | Palitri/Axis | 6b79022b4153622158e8535b095fe44cebbe376c | 5ae33c8bda9610c45426c8398c607a0cd3ecd208 | refs/heads/master | 2021-01-23T12:53:25.619319 | 2018-02-19T09:30:24 | 2018-02-19T09:30:24 | 93,206,230 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 459 | h | AxModule.h | #pragma once
#include "..\..\AxGlobals.h"
#include "..\Base\AxModuleDispatcher.h"
#include "..\..\Tools\AxString.h"
#include "..\..\Tools\AxList.h"
AXDLLTEMPLATEMEMBER template class AXDLLCLASS AxList<AxModuleDispatcher*>;
class AXDLLCLASS AxModule
{
public:
AxString name;
void *handle;
AxList<AxModuleDispatche... |
253d00a6868db66af3dc139d1bbff05e6bc1aee0 | cd175f088c679f586d50e49d1b1a50dc0bfca810 | /box-test/box-test.hpp | 26db8557da1f9022dd2a50135043d1d8db06db40 | [] | no_license | mxdsxn/tec-prog | fb2bf03eafc4bf0230cf84f09895e75fc26d4eeb | 2a8f3a1cd29ecc86bf932e965ca82c96597f3b03 | refs/heads/main | 2023-04-11T12:10:59.906969 | 2021-04-19T03:07:37 | 2021-04-19T03:07:37 | 347,669,530 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 139 | hpp | box-test.hpp | #pragma once
#include "box.hpp"
class BoxTest
{
private:
Box *box1;
Box *box2;
public:
BoxTest();
~BoxTest();
void startTest();
}; |
54e0f37d5f02aac0bc58608e2effe54aee168944 | 90f68ecf9deddfccab838129aeb41a81fc6fbc8b | /CF 409/a.cpp | d7e26dc1911586826ce4f5ff02785e456f9c8e34 | [] | no_license | bishalnstu/SolveFromCodeforces | 7a25cbc0d9d34816d5068c56515c40d63157ac05 | a9097e7e21433479475697b732f4299e590e012c | refs/heads/master | 2023-01-18T17:11:43.175108 | 2020-11-02T19:55:26 | 2020-11-02T19:57:18 | 309,476,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,054 | cpp | a.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
string input;
int ptr;
bool flag;
cin>>input;
flag=false;
ptr=0;
for(int i=0;i<input.size()-1;)
{
if(input[i]=='V' and input[i+1]=='K')
{
ptr++;
... |
14ec07992c607bdb0eb4b4fc4bd1aac734db3fb3 | 8f18828d34a770523fd0f3bd562d7d1b0e9ace24 | /Abdul_bari_Sir_C++/Array/Array_limit.cpp | 3a501f7f25ba2baba37ae0f7f3853dab028faffc | [] | no_license | Tushar-99/Data-Structure | 8b161852f7f9a845f373e1672ce6b842588d0fca | 519620b16c8cdf78ec8e2567779c3290efe04ab8 | refs/heads/main | 2023-07-17T13:12:27.563438 | 2021-08-30T05:10:42 | 2021-08-30T05:10:42 | 341,862,049 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,858 | cpp | Array_limit.cpp | #include <iostream>
#include <vector>
#include <string>
#include <limits>
template <typename T>
std::string mx(T e) {
std::vector<T> v;
return std::to_string(v.max_size());
}
std::size_t maxColWidth(std::vector<std::string> v) {
std::size_t maxWidth = 0;
for (const auto &s: v)
if (s.length() ... |
87332c9fca7afb01450669388ac09f9a1c2c49cd | b4bad0f9d93d2a9a7b8f5524bef4ff65576f757a | /main.h | 328e2c3f331332e0936e7e672661d27f63d15fe0 | [] | no_license | bonoliGaetan/projetP2P | 66e98c522b1dd321d040e86c1faf23783893cd2a | 43144a3a970725a7e5fafd2bd285585683af4b96 | refs/heads/master | 2020-04-06T22:21:18.420934 | 2018-12-10T06:44:21 | 2018-12-10T06:44:21 | 157,833,483 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | h | main.h | #ifndef MAIN_H
#define MAIN_H
#include <iostream>
#include "mGraphique/fenetre.h"
#include "mClient/client.h"
#include "mServeur/serveur.h"
#include "mDataClass/configPeer.h"
#define FILECONFIG "config.json"
#if __OPSYS == linux
#define SL "/"
#elif __OPSYS == windows
#define SL "\\"
#endif
#endif |
1a9d8090acbb19137d637e0a40018d08a776c407 | a6f35398fae296a0e4f71a1e13eaa8685e03f0bf | /main.cpp | 07f531ae55813f2ed7aba3573b6baaedb113aece | [] | no_license | AWOLASAP/sdlJumper | 8e3e831b4b2614b2f9344840de0320196da93644 | 2dbc6a258154c1e9d13b54e9d5f5cd934ea0974f | refs/heads/main | 2023-01-24T13:48:06.214893 | 2020-12-08T00:21:12 | 2020-12-08T00:21:12 | 319,479,052 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,130 | cpp | main.cpp | // Created by Griffin Walraven
// ___________ __
// / ___/ ___\ \ / /
// | | _\___ \\ \ /\ / /
// | |_| |___) |\ V V /
// \____|____/ \_/\_/
//
// Simple 2d platformer to learn sdl and originally c, now cpp
#include <SDL2/SDL.h>
#include <SDL2/SDL_mixer.h>
#include <SDL2/SDL_image.h>
#include ... |
b20df110a8d1ca0efeb9ad54d0bcd5cff7772448 | fe103cd6f3fb81e74ec3e1108cb51a269b6c3c6c | /foundation/visual/linux/event_queue.cpp | e4dc17a9264a74f5ad4d374c3b59df0e4430b2c5 | [] | no_license | abdulla/ooe | c08ba08972526717fcae7e5726f5eb79659d1d07 | ef0aecd09329a845178c78db519a0bd4a6eecacf | refs/heads/master | 2021-05-01T01:09:13.266563 | 2012-12-29T06:28:59 | 2012-12-29T06:28:59 | 2,449,985 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,292 | cpp | event_queue.cpp | /* Copyright (C) 2012 Abdulla Kamar. All rights reserved. */
#include <cerrno>
#include <poll.h>
#include <X11/Xutil.h>
#include "foundation/utility/error.hpp"
#define OOE_X_HEADER_INCLUDED
#include "foundation/visual/event_queue.hpp"
#undef OOE_X_HEADER_INCLUDED
OOE_NAMESPACE_BEGIN( ( ooe )( platform ) )
//--- e... |
59b9c812326e98a06e8c9bae23cf5d9e8d63d828 | 433ff1946115dff374f7fdcafdeccc432a3d7a1b | /CAD/HText.h | 401aa756cc0bb6f77be3488891f538f71ca22884 | [
"BSD-3-Clause"
] | permissive | danheeks/PyCAD | 14eb7a9c6c00cf941a66afd7ae5263bcbc6bb2d0 | 493a2c2d1b42d2091e38b2f6666b380a61796b2d | refs/heads/master | 2023-07-25T00:13:41.566275 | 2023-07-22T11:04:37 | 2023-07-22T11:04:37 | 138,997,002 | 25 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,857 | h | HText.h | // HText.h
// Copyright (c) 2009, Dan Heeks
// This program is released under the BSD license. See the file COPYING for details.
#pragma once
#include "HeeksObj.h"
#include "HeeksColor.h"
class HText: public ObjList {
private:
HeeksColor m_color;
void GetBoxPoints(std::list<Point3d> &pnts);
public... |
784d6c9e0093f0957aac6a6e0af3c37f98e3469b | 7b3d63725bb8c5464320b90b38b367bf76288224 | /Exercises08/baseFunction.cpp | bc867c9d2ff51f2c67422b46e01a769c3d783adc | [] | no_license | Riccardo-Riva/LSN_Exercises_RiccardoRiva | d52655b1e2a3bf8ec11665f1e66cb2bce33fb88e | 56700545f3692b36f59716703943e6c4e46fb583 | refs/heads/master | 2022-11-06T02:23:01.738730 | 2020-06-21T20:39:18 | 2020-06-21T20:39:18 | 273,978,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 183 | cpp | baseFunction.cpp | #ifndef __BaseFunction__
#define __BaseFunction__
#include <vector>
class BaseFunction{
public:
virtual double Eval(std::vector<double> x) const =0;
};
#endif //__BaseFunction__ |
140093ca3a3581dc4948322d12856c681f94cd2d | 0d9572ec5740099503988081d3145bdef9d10f4e | /BIN/1.BAK | 0e25d5eb32197bb9c87f5fa9ad7d3ffb9fe781d6 | [] | no_license | babin11/Periodic-table-with-quiz | 06d9feacd5ac314161767a49f931103526834a0c | e9dac2529d6c6e2e5987f39d1baddeee7c1e78aa | refs/heads/master | 2022-04-17T22:04:43.294955 | 2020-04-15T05:13:23 | 2020-04-15T05:13:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 738 | bak | 1.BAK | #include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
clrscr();
int x,y;
int gm,gd;
gd=DETECT;
initgraph(&gd,&gm,"C:\\Turboc3\\bgi");
x=getmaxx()/2;
y=getmaxy()/2;
rectangle(x-300,y-190,x+300,y+200);
setcolor(14);
settextstyle(0,0,3);
outtextxy(x-85,y-180,"CREDIT");
setcolor(3);
settextstyle(0,0,2);
ou... |
8ba531416b85a8e53e6e9e04a5842746bb3543db | 08c1b7e60fe0903122489c214e9e12d9e728c033 | /heap/little monk and abd .cpp | c05cbbeddbeccd06d4a5a61022376057a821611e | [] | no_license | Nitinkaushik80/hackerearth | 38a17e3a9927e5b6bbedb6cfe0c3882f88e94d1d | 033cf8070116a2fc1ab7169462791367541c1f25 | refs/heads/master | 2020-05-29T13:15:11.063946 | 2019-07-25T14:53:56 | 2019-07-25T14:53:56 | 189,154,060 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,261 | cpp | little monk and abd .cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long int
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long long int t,q,p;
cin>>t;
priority_queue<ll>pqd;
priority_queue<ll,vector<ll>,greater<ll>>pqa;
vector<pair<ll,char>>v,v1;
for(in... |
d30b34a824908d1173318dcc28288647e96b7c7e | c4e1b2fad57e164b1ec250d7ef58ca6b325be916 | /TIOJ/1778/1778.cpp | 0265c3b23d7508b8fc4a6071fbf88c126a60b0fb | [] | no_license | xSeanliux/CompetitiveProgramming | ab8030fdb0dc9c4e29e4cc8c52e020e6eb564372 | 011c7ad152d7090fa3e9143a27119a2192d68144 | refs/heads/master | 2023-06-08T11:00:48.826892 | 2023-05-25T22:58:43 | 2023-05-25T22:58:43 | 158,057,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,172 | cpp | 1778.cpp | #include <iostream>
#include <vector>
#define vv vector<vector<int> >
#define int long long int
using namespace std;
const int MOD = 1000000009;
int N, M, S, T, K, u, v;
vv I, adj;
inline vv operator *(vv a, vv b){
vv res;
res.resize(N);
for(int i = 0; i < N; i++){
res[i].resize(N);
for(i... |
c7abe74753ba5c269ecc2a659041013a59c0b7d2 | 436b9a57f7cb1227bf19c6f92186d49c613cecee | /Ejemplo11-QT-CambiarIPCamara/build-Ejemplo3-Desktop_Qt_5_10_0_GCC_64bit-Debug/moc_mainwindow.cpp | c2d86a11c25be39cdd63ab872ba94b23bed87f39 | [] | no_license | Sxul-RL/CarWithArtificialVision | 21f2dd1b18f0065846761c6b4b7f8893b08501b7 | 7466029856d0c8bb512c3ce637f5e5ef00ff18de | refs/heads/main | 2023-05-02T23:47:57.424746 | 2021-05-23T22:38:25 | 2021-05-23T22:38:25 | 370,165,554 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,562 | cpp | moc_mainwindow.cpp | /****************************************************************************
** Meta object code from reading C++ file 'mainwindow.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.10.0)
**
** WARNING! All changes made in this file will be lost!
*********************************************************... |
85f916894d5c3fd87840449981a6dff2cc81e709 | 097f47c14f8ce0152db2df8915bf4c82b5633976 | /FYP_matrix/google-api/google/cloud/dialogflow/v2beta1/audio_config.pb.cc | 51ce6851d9692bf11ddac3a8e1a5956e888b9558 | [] | no_license | BenjaminChia/Ben_FYP_RPi_Matrix | a1bbffa854be723e59f60358a1dbe7a44e0a1898 | 5a7952774e3f10ddc5ca56dccba82dba25471fd7 | refs/heads/master | 2020-03-29T07:10:53.329139 | 2018-09-21T00:54:08 | 2018-09-21T00:54:08 | 149,655,972 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 59,174 | cc | audio_config.pb.cc | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dialogflow/v2beta1/audio_config.proto
#include "google/cloud/dialogflow/v2beta1/audio_config.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/co... |
608e9cf8fb580f01d9535937875ec34570f7ca0d | 4f5a2c12e693d57e42e1a94b975aed225e753c72 | /rArmC.cpp | 9ab99d402b93fb9cbbf3bad2151a0c22736f4664 | [] | no_license | KWintermute/smp-project | e9f17452be732a159b0ad12f10df90908a61cc7d | 71db200090d9e77d66d1afe35b0152ff2c84507e | refs/heads/master | 2020-04-15T23:40:15.029738 | 2016-04-25T22:57:46 | 2016-04-25T22:57:46 | 50,545,393 | 0 | 1 | null | 2016-01-27T23:26:32 | 2016-01-27T23:26:32 | null | UTF-8 | C++ | false | false | 1,318 | cpp | rArmC.cpp | #include "RcppArmadillo.h"
// [[Rcpp::depends(RcppArmadillo)]]
// [[Rcpp::export]]
RcppExport SEXP rArmMult( SEXP X_, SEXP Y_ )
{
arma::mat X = Rcpp::as<arma::mat>(X_);
arma::mat Y = Rcpp::as<arma::mat>(Y_);
arma::mat ans = X * Y;
return Rcpp::wrap(ans);
}
// [[Rcpp::export]]
RcppExport SEXP r... |
3e54d5e3b3ae41a487a8df31e7499c35328b4eba | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /ipc/ipc_multiprocess_test.h | 43aaa6b6cd31ed9f730bedeed09d21905c7639fd | [
"BSD-3-Clause"
] | 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 | 1,014 | h | ipc_multiprocess_test.h | // Copyright (c) 2012 The Chromium 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 IPC_IPC_MULTIPROCESS_TEST_H_
#define IPC_IPC_MULTIPROCESS_TEST_H_
#include "testing/multiprocess_func_list.h"
// Use this macro when your su... |
d25f724c4c74e85f06f9484dbab6eab7e540415d | fce0d1bf8e69505c67be0f929194e1d8a7475ebf | /Analyzer/NLOReweight/Archive/postFSR/Test_v01_SubMassRange/M10to15/Weight/WeightProducer.cxx | 51694555d2e920208b1fef85b3af3374b041f9c8 | [] | no_license | KyeongPil-Lee/DYScouting | e86ccfbb8fad60554f4e5a152ced9db9d013a162 | 9150e3aa82ef5dc11de83728f65ebc62304c472b | refs/heads/master | 2021-12-19T08:53:46.435674 | 2021-12-06T18:29:09 | 2021-12-06T18:29:09 | 214,085,816 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 383 | cxx | WeightProducer.cxx | #include "WeightProducer.h"
void WeightProducer()
{
TString fileName_LO = "../LO/ROOTFile_MakeGenHist_DiMuPtRap_DYMuMu_M10to50.root";
TString fileName_NLO = "../NLO/ROOTFile_MakeGenHist_DiMuPtRap_NLO_DYMuMu_M10to50_2016.root";
NLOWeightProducer* producer = new NLOWeightProducer(fileName_LO, fileName_NLO);
prod... |
bcdf73eb426a5fee526f0d421539acac83b97201 | cf8ddfc720bf6451c4ef4fa01684327431db1919 | /SDK/ARKSurvivalEvolved_Structure_LoadoutDummy_parameters.hpp | a85b8119d71f49e17c633816b62d9efe9f1f2e30 | [
"MIT"
] | permissive | git-Charlie/ARK-SDK | 75337684b11e7b9f668da1f15e8054052a3b600f | c38ca9925309516b2093ad8c3a70ed9489e1d573 | refs/heads/master | 2023-06-20T06:30:33.550123 | 2021-07-11T13:41:45 | 2021-07-11T13:41:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,215 | hpp | ARKSurvivalEvolved_Structure_LoadoutDummy_parameters.hpp | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Structure_LoadoutDummy_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//-----------------------------------------------... |
5b9a8bcd924cec70b90731b761dc71f9f085c504 | eb40a068cef3cabd7a0df37a0ec2bde3c1e4e5ae | /dnn/src/rocm/eye/opr_impl.cpp | ca5b0f42e19fa3094572a0f9725a0a3c3935c242 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | tpoisonooo/MegEngine | ccb5c089a951e848344f136eaf10a5c66ae8eb6f | b8f7ad47419ef287a1ca17323fd6362c6c69445c | refs/heads/master | 2022-11-07T04:50:40.987573 | 2021-05-27T08:55:50 | 2021-05-27T08:55:50 | 249,964,363 | 1 | 0 | NOASSERTION | 2021-05-27T08:55:50 | 2020-03-25T11:48:35 | null | UTF-8 | C++ | false | false | 1,321 | cpp | opr_impl.cpp | /**
* \file dnn/src/rocm/eye/opr_impl.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS ... |
ce6d0ac38deee9e694deff2ce411c71906a6f4b6 | 9b1639af63f7fc82f0e488b452dee0cb7ae22a3b | /Consumer/r12.0.6/src/Engine/SND/GRENLEAF/_RE.CPP | a813aab28b70547e46108d1dda79d82a71d1af87 | [] | no_license | ExpLife/Norton_AntiVirus_SourceCode | af7cd446efb2f3a10bba04db8e7438092c7299c0 | b90225233fa7930d2ef7922080ed975b7abfae8c | refs/heads/master | 2017-12-19T09:15:25.150463 | 2016-10-03T02:33:34 | 2016-10-03T02:33:34 | 76,859,815 | 2 | 4 | null | 2016-12-19T12:21:02 | 2016-12-19T12:21:01 | null | UTF-8 | C++ | false | false | 7,518 | cpp | _RE.CPP | //************************************************************************
//
// $Header: S:/GRENLEAF/VCS/_RE.CPv 1.0 12 Mar 1998 12:14:16 DCHI $
//
// Description:
// Greenleaf ArchiveLib 2.0
//
//************************************************************************
// $Log: S:/GRENLEAF/VCS/_RE.... |
52fe13a7cadbef298abd63a51dea4aaef1d5ee4b | 615c946f9206c9d10004bada0f2fd2bdf5b1139d | /RockBlock/rockBlockMain/sending_code/sending_code.ino | 5012bb181a89fabea81adb1a6617c7334e251b89 | [] | no_license | PennAerospaceClub/HAB11 | b4722a1f8f4cec92e68ead4c494817f423109b5a | 8af2426c3bb9b2127b6c2a2f3ef09e8e20f24319 | refs/heads/master | 2020-11-29T15:23:30.959730 | 2018-04-27T22:03:58 | 2018-04-27T22:03:58 | 87,483,260 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 470 | ino | sending_code.ino | #include <SoftwareSerial.h>
SoftwareSerial snd(22, 23); //for sending data (rx is pin 12, tx is pin 13)
void setup() {
// put your setup code here, to run once:
//begin communication with other arduino
snd.begin(19200);
}
void loop() {
// put your main code here, to run repeatedly:
snd.write("19535800,2... |
afe9ff53ffe4145a03f5e28445ca7601dd6e72c2 | f4dc8deb5bfc0ff1ed6fdc32ae1b6c299dc9ac2b | /chapter6/7.cpp | 104dbfe90bbac5e717734b15d8c04c2035063f95 | [] | no_license | Tibooad/Prata | d01eadbe65a4fa3c87aa6a7b45a43e0ef6fb5d34 | 44ae8f8b5ba071f26659cee12102293ed8bc654d | refs/heads/master | 2023-06-09T17:15:27.255350 | 2021-07-07T07:38:07 | 2021-07-07T07:38:07 | 294,179,804 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 764 | cpp | 7.cpp | #include <iostream>
#include <cctype>
int main(int argc, char const *argv[]) {
using namespace std;
string str;
int countVowes=0,countConsonants=0,other=0;
cout<<"Enter words (q to quit):\n";
while(cin>>str && str!="q"){
if(isalpha(str[0])){
switch (str[0]) {
case 'A':
case 'a':
... |
15af2069000e22b56bf3177c7c64b69c4d99f927 | 20511d5d30b1df3bcb92e1d9617a0e4aa8bb3fa8 | /abc/20c.cpp | ce11eb97735569e486d2157121abf511ba9839a4 | [] | no_license | hakomori64/atcoder | 1484d79ff1f3044235e45fe9cbfe4ca6a7193394 | 90445615b81e0fd934e76333af8535edb7fcd7fe | refs/heads/master | 2020-11-27T02:29:31.561387 | 2020-04-14T04:57:19 | 2020-04-14T04:57:19 | 229,271,924 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,477 | cpp | 20c.cpp | #include <bits/stdc++.h>
#define rep(i, n) for(ll i = 0; i < n; i++)
#define repr(i, n) for(ll i = n; i >= 0; i--)
#define inf LLONG_MAX
#define all(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef pair<ll, ll> P;
ll dx[] = {-1, 0, 0, 1};
ll dy[... |
88823bff291c7f758e9721c90b7222ae16ed8963 | 4b6fe0d8a552fe76a8f42ad25960a6cea9a41406 | /VSAnalysis/VSANewtonRaphsonRootFinder.hpp | da3db4ab84fe4b5f85c101084387ee8f964208f8 | [
"BSD-3-Clause"
] | permissive | sfegan/ChiLA | 769aef0486b94b5c3281273946c74b471a6a7ef2 | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | refs/heads/main | 2021-07-30T16:24:06.076214 | 2016-02-10T08:10:02 | 2016-02-10T08:10:02 | 51,363,796 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,922 | hpp | VSANewtonRaphsonRootFinder.hpp | //-*-mode:c++; mode:font-lock;-*-
/*! \file VSANewtonRaphsonRootFinder.hpp
Find a root of a function of using the Newton-Raphson method + Bisection.
\author Matthew Wood \n
UCLA \n
mdwood@astro.ucla.edu \n
\version 1.0
\da... |
27b4c40efc74a97b6a9f010106fab75607cb48ac | 9e166698278f7aea1ae3cebe8818fe6ee88ef1e3 | /BoostFileSystem/BoostFilesystem.h | 3563f45dacc4a2b2fff4ff27e5b45701d8a44433 | [] | no_license | LeePrivate/CommonCode | fddf845c83cb189d88cd9b4a664adb2c09edca55 | 076c3eca8074edd82c4bdcd072936346a68272c0 | refs/heads/master | 2020-06-05T20:42:39.109570 | 2014-12-23T10:41:59 | 2014-12-23T10:41:59 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,336 | h | BoostFilesystem.h | /*!
* \file BoostFilesystem.h
*
* \author LEE
* \date 五月 2014
*使用说明:
*该组件使用boost库来达到文件的查找,验证,转换文件编码等工作(目前该组件服务于tmx, 也就是 tilemap 生成的文件的分析读取 ,有其他类型文件请添加功能);
*使用时 需要在工作目录建立Config文件夹,其中建立 XmlConvertConfig.xml 配置文件,其中给出读取文件的路径,和要保存的目的地路径;
*
*使用步骤:
*BoostFileSystem::GetSingle().ReadXmlConfig(); 1.从XML... |
fa147aebd938857a11e1fc449114195ff03b9956 | a621e53dc4cdde038aa808be601901277262e9d6 | /Interpreter.cpp | 0bd2a705e4d6402446a117421deb7c533b9816fa | [] | no_license | mdulin2/OPL | 97276b00c25516dc36b4234e5246383dc075a776 | cd6af98871cd50a187a2259adeab2b11e6646891 | refs/heads/master | 2021-05-02T07:48:41.962563 | 2018-03-27T01:01:51 | 2018-03-27T01:01:51 | 120,838,251 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,279 | cpp | Interpreter.cpp | #include <iostream>
#include <sstream>
#include "Interpreter.h"
#include "ASTNodes.h"
using namespace std;
void Interpreter::visit(ASTSimpleBoolExpression& simpleBoolExpr) {
simpleBoolExpr.expression->accept(*this);
// Note: after visiting the above expression, (assuming it's boolean)
// it will set curr... |
506a25e5cea9aff19e27959a0441c32bcca59d26 | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch.test.test/processor0/1.54/T | 55c720f0c7cc6ba4dcf8804bbff693e4ebca7852 | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,314 | T | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
ac30f509fb414d80a580c57a4b84d755ed9b695d | 188fb8ded33ad7a2f52f69975006bb38917437ef | /Fluid/processor3/0.67/p | 3e672195b340dd46cfb914fe3ea9bf241732d02e | [] | no_license | abarcaortega/Tuto_2 | 34a4721f14725c20471ff2dc8d22b52638b8a2b3 | 4a84c22efbb9cd2eaeda92883343b6910e0941e2 | refs/heads/master | 2020-08-05T16:11:57.674940 | 2019-10-04T09:56:09 | 2019-10-04T09:56:09 | 212,573,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,898 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
... | |
c8e98511cb8f06a1e1b8b8b168629cb7af67180c | 6e27a83e99aefe840bca1a6e943cebb2f9a749a4 | /commands/ConCommandCallbacks.cpp | 3cda99f471b516b06a8a0e5f9fccb651e465b5ff | [] | no_license | Nicolous/cssmatch-plugin | f244523e5ebc27e7afb07c90b79e66a5804619d3 | ff6b715f2fbe438aff87d2b5cc2981ab77a4f6f1 | refs/heads/master | 2016-09-08T00:27:53.939432 | 2013-11-18T23:08:18 | 2013-11-18T23:08:18 | 34,910,629 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,409 | cpp | ConCommandCallbacks.cpp | /*
* Copyright 2008-2013 Nicolas Maingot
*
* This file is part of CSSMatch.
*
* CSSMatch 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) a... |
5bbb112641cae85a08aeedd359752741cfc2ea50 | 01a88329ec618bfce5ecdc4ede2e22ed731a1492 | /src/MfcDemo/RichNotepadMinusMinus/RichNotepadMinusMinusDoc.cpp | feb8871ae7f71077b41818e612529c7121ec210e | [] | no_license | dscurrey/MFCGuide | 248cd2b046771ba87c509e5f7ad04ec850b84919 | 01c445c885fae04d4cce3069e797d124f0ee31eb | refs/heads/main | 2023-02-14T21:36:51.368489 | 2021-01-04T13:06:08 | 2021-01-04T13:06:08 | 321,325,634 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,093 | cpp | RichNotepadMinusMinusDoc.cpp |
// RichNotepadMinusMinusDoc.cpp : implementation of the CRichNotepadMinusMinusDoc class
//
#include "stdafx.h"
// SHARED_HANDLERS can be defined in an ATL project implementing preview, thumbnail
// and search filter handlers and allows sharing of document code with that project.
#ifndef SHARED_HANDLERS
#include "Rich... |
e34427829e59f66cafbf35986c7fa441a1f0e17a | c531cb6c8287e0ddd37e5d1f86fddf610d40794d | /profit board search.cpp | d39c2376ea3b50f45576ca42e8aff375c7bd34f3 | [] | no_license | RafalSzelest/profit | fa31842721ba7a32bd30a60a310ab89397f8f416 | b2280e59a71757207853ec5a9d58e5ee3f84cc87 | refs/heads/master | 2020-06-02T12:58:54.768285 | 2019-06-10T12:05:02 | 2019-06-10T12:05:02 | 191,161,426 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 2,566 | cpp | profit board search.cpp | #include <iostream>
#define liczbamiesiecy 10 //definiuje symbol staly
using namespace std;
main()
/* Program wczytujący 12 kolejnych dochodów dla kolejnych dwunastu miesięcy.
Program oblicza i wyświetla dochód sumaryczny i dochód średni. */
/* Przerobic program dochody by kazda wartosc dochodu czytal bezposrednio ... |
91ab11cdeb26e34eb118dfc19ec4e47dca860795 | 1fc9ea92c72f591e8c593750b0839e5c2ae989d0 | /lardataobj/RecoBase/Slice.cxx | 21f25d58e7bd0f3aac1d55f12fe6acee72b10d11 | [] | no_license | LArSoft/lardataobj | 232609fcd10414c335efff9a39d9ba49ac9caf91 | acf875e668881deab1acb528ea486524c6dd129e | refs/heads/master | 2023-08-31T17:12:39.804720 | 2023-06-06T17:36:49 | 2023-06-06T17:36:49 | 235,572,507 | 0 | 29 | null | 2023-09-14T02:38:52 | 2020-01-22T12:50:12 | C++ | UTF-8 | C++ | false | false | 94 | cxx | Slice.cxx | #include "lardataobj/RecoBase/Slice.h"
namespace recob {
Slice::Slice() { fID = -999; }
}
|
bf6465d1e04654c8aa7605a3460f505924126b34 | 0fed3d6c4a6dbdb49029913b6ce96a9ede9eac6c | /Codeforces/844/844C.cpp | 46d45bcbcf01ec436a3f7e19a207eccc3c7b7d73 | [] | no_license | 87ouo/The-road-to-ACMer | 72df2e834027dcfab04b02ba0ddd350e5078dfc0 | 0a39a9708a0e7fd0e3b2ffff5d1f4a793b031df5 | refs/heads/master | 2021-02-18T17:44:29.937434 | 2019-07-31T11:30:27 | 2019-07-31T11:30:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,353 | cpp | 844C.cpp | #include <bits/stdc++.h>
using namespace std;
#define clr(a, x) memset(a, x, sizeof(a))
#define mp(x, y) make_pair(x, y)
#define pb(x) push_back(x)
#define X first
#define Y second
#define fastin \
ios_base::sync_with_stdio(0); \
cin.tie(0);
typedef long long ll;
typedef long double ld;
typed... |
8f623f3a379efdcf02a2eb7c0fcb2d86e56a55a3 | a899d33acac3ce0f4e4c13239df9f07044dd464f | /client/cfilelog.cpp | 886fafadf35d7fdd65572af4d8c1fcaf5d87d93b | [] | no_license | lsccode/diagnose | b5069acbc978745c3c8be0943c1646ae8ffb6521 | 83e01e2d15f050c819cd213164b8ac4e12e28d18 | refs/heads/master | 2020-04-13T19:39:42.125878 | 2019-01-09T08:21:51 | 2019-01-09T08:21:51 | 163,409,434 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,416 | cpp | cfilelog.cpp | /**************************************************************************
Copyright : NEXTVPU
Author : sicheng.lin
Date : 2019-01-07
Description : file terminal
**************************************************************************/
#include <string.h>
#include <stdio.h>
#include <sys/stat.h>
#inc... |
037c35a46b009795f2f8e50ce068eda74ee4534f | da8b8489e3f74a1eed2b72693c52e9e37abbc507 | /BoostEtc/BoostEtc/Exchange.h | ab55b98c84782779f1437e863c6370941555c85a | [
"MIT"
] | permissive | uredkar/boostetc | 8ed92f1df088ec0757e63291285933f310e7deb1 | 70b857c3cc89a67d21e5ad41684817f2de0e39d7 | refs/heads/master | 2021-01-10T02:07:18.968058 | 2016-03-01T17:27:42 | 2016-03-01T17:27:42 | 52,828,726 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 69 | h | Exchange.h | #pragma once
class Exchange
{
public:
Exchange();
~Exchange();
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.