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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a0326628952ca95a1c286fb84037b87a2c018aa3 | da99225787e5f49af3f5bf332b219e913e7cd5e3 | /udp/UDPTest/CRCCheck.cpp | 5f9108ff16fb5c54d9c951faf363bfdb776b67dd | [] | no_license | jiangjinggen/net | a66e081bf99e2340751a386b8df2a3adaeaa7aca | 64ec673419e6e1d64da0c4f1d724ed714624dc68 | refs/heads/master | 2020-07-17T06:01:04.322880 | 2019-09-03T01:28:43 | 2019-09-03T01:28:43 | 205,962,291 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,059 | cpp | CRCCheck.cpp | // CRCCheck.cpp: implementation of the CCRCCheck class.
//
//////////////////////////////////////////////////////////////////////
//#include "stdafx.h"
#include "CRCCheck.h"
//#ifdef _DEBUG
//#define new DEBUG_NEW
//#undef THIS_FILE
//static char THIS_FILE[] = __FILE__;
//#endif
//unsigned long CCRCCheck::m_pdwCrcTa... |
a1e8191d825c00888694dff6f150a50973d30efc | 1cfd777c6518b4e379f5fc50dfe5416f90c76abf | /src/boundaryScheme.hpp | 9088c156c18f8dc8ff075a1cd24828d9ebe7c0cf | [] | no_license | juncas/NUC3d | 931f27588ddca008ae66dccc791a259af7c6d605 | 47556e1d801c15dd864d2dcd0e76587350626147 | refs/heads/master | 2021-01-10T09:27:11.186430 | 2018-04-27T11:42:51 | 2018-04-27T11:42:51 | 44,386,549 | 9 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,751 | hpp | boundaryScheme.hpp | //
// boundaryScheme.hpp
// NUC3d
//
// Created by Jun Peng on 16/1/9.
// Copyright © 2016年 Jun Peng. All rights reserved.
//
#ifndef boundaryScheme_hpp
#define boundaryScheme_hpp
#include <stdio.h>
#include "fieldOperator.h"
namespace nuc3d
{
class boundaryScheme: public differential
{
typedef... |
2fbcc203cc158a91b7cfba9d92248722dc9b486a | ecaa8d976ca35082d38bca8df2109249574ac43d | /src/CJsonValidatorAdapter.hpp | 9c69aa6981f9d2dc74798f7b63ffa40676737078 | [] | no_license | isergeyam/Kingdom-Fall | 98335060f54c304860beeba959b053c8c22ce7ca | b91c209c229919d4c638cddeca08c683999068ba | refs/heads/master | 2021-04-06T20:43:58.887742 | 2018-05-20T00:51:25 | 2018-05-20T00:51:25 | 125,379,046 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 254 | hpp | CJsonValidatorAdapter.hpp | //
// Created by sg on 18.04.18.
//
#pragma once
#include "json-validator.hpp"
#include <istream>
class CJsonValidatorAdapter {
private:
json_validator m_validator;
public:
void set_schema(const json &val);
void validate(const json &obj_);
};
|
3c32e2311e6484a6ba248f51f7275cd5817bb04d | 54a14840a27f8f955ea0b9ff79e3ef3d84465e9f | /Recursion/Fibonacci.cpp | e73fe24da091f9b4f7017ee20fa7f1ce0c86eec6 | [] | no_license | guptavarun619/Data-Structure | 5cea85e5d6ff5bfc71b33d9ff42068634c4c23bf | ee6141b5a2541dce1e4675db079e322b1537124f | refs/heads/master | 2023-06-23T14:37:39.513019 | 2021-07-21T07:00:07 | 2021-07-21T07:00:07 | 251,252,265 | 0 | 0 | null | 2020-07-19T03:08:21 | 2020-03-30T08:58:53 | C++ | UTF-8 | C++ | false | false | 400 | cpp | Fibonacci.cpp | // 0, 1, 1, 2, 3, 5, 8 ....
// 0, 1, 2, 3, 4, 5, 6th
// Place /\
#include<iostream>
using namespace std;
int fibo(int n)
{
if(n == 0)
return 0;
else if (n == 1)
return 1;
else
return fibo(n-1) + fibo(n-2);
}
int main()
{
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", s... |
40dfbcdb8982feaec61429180a20aab8571e3cd0 | 2370dbd731ec6da5a3791932043c39a97d5acaa2 | /lut/assets/project/src/Foo.cpp | 6f5ac6792ba8d60ba2ed5f4fe3324acf0b521eb6 | [
"MIT"
] | permissive | lubyk/lut | 1583c9016c532d19c38bb94d2433bde1904e0d03 | 2e7b8859e852316390821bb1fca8b7f8bf80a5dd | refs/heads/master | 2020-04-15T11:37:41.267549 | 2015-05-11T13:06:54 | 2015-05-11T14:15:51 | 8,930,893 | 2 | 0 | null | 2013-04-03T00:57:22 | 2013-03-21T14:42:03 | Lua | UTF-8 | C++ | false | false | 97 | cpp | Foo.cpp | #include "{{type}}/Foo.h"
using namespace {{type}};
float Foo::doSomething() {
return 1.0;
}
|
94e4161adbc3950613bad3b1bcc828e3f4c4ea93 | 792367914f4b3aae9eac8e0ece52dfbd0ecb5f8a | /MFCApplication1Dlg.h | 4b0dca00a63a1a1acf7d77b1d9178d2407a138f4 | [] | no_license | marcozille/Various | 2169d1a3c7a331e7fbd5af6fe6b697cedff15724 | 3e8d305a76d1200a762ffe71b0f1ea7975832599 | refs/heads/master | 2016-08-03T03:20:40.199070 | 2013-09-04T12:05:45 | 2013-09-04T12:05:54 | 12,455,245 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,120 | h | MFCApplication1Dlg.h |
// MFCApplication1Dlg.h : file di intestazione
//
#pragma once
#include "afxwin.h"
#include "MDVSEdit.h"
// finestra di dialogo CMFCApplication1Dlg
class CMFCApplication1Dlg : public CDialogEx
{
// Costruzione
public:
CMFCApplication1Dlg(CWnd* pParent = NULL); // costruttore standard
// Dati della finestra di dia... |
26b6b5f4bb10696f7a24847d9ac31909d60346af | 88ae8695987ada722184307301e221e1ba3cc2fa | /buildtools/third_party/libc++/trunk/test/std/iterators/predef.iterators/counted.iterator/iter_move.pass.cpp | 1494a9d649980dde45af08ddec0733796c51a71c | [
"BSD-3-Clause",
"NCSA",
"MIT",
"LLVM-exception",
"Apache-2.0"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 2,768 | cpp | iter_move.pass.cpp | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
2a61617d11b5dcf28566d0706c2316eb539fa7c9 | 095fe9acd81d382c9543150495254bdf08a28cc6 | /dial.cpp | 6d229d1c93e0a7c54508d5b8223377a3857c97f5 | [] | no_license | fwmiller/openglDial | 96d3fc0d6fa32986fdd5cca3a8230753ac0e67f6 | c4a24bfd86dc9ac4fdc362721471fe8f80fc13fe | refs/heads/master | 2020-04-06T12:30:07.963708 | 2018-12-25T22:50:50 | 2018-12-25T22:50:50 | 157,458,102 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,873 | cpp | dial.cpp | #include <GL/glut.h>
#include <math.h>
static int windowWidth = 800;
static int windowHeight = 800;
static GLfloat x;
static GLfloat y;
static GLfloat z;
static GLfloat radius;
static GLint numberOfSides;
static GLfloat pos = 0.0;
void
DisplayNeedle()
{
GLfloat twicePi = 2.0f * M_PI;
glColor3f(0, 0.5, 0.5);
glLi... |
c2417fff53eb54caa3b1b34cebed9f67b2218591 | f81ce7b39b4af9b233db8061cad4e312582e2420 | /src/pddl/instance.cc | 8fb148c06256b2a8af04a1014a6e3cfe98dbb58e | [] | no_license | lillanes/pddl_parser | 6debb2fe0486b80784f9f4fe8e2514370d83675d | 5a3d7810059391657325d31bb1b160528390a40c | refs/heads/master | 2022-12-24T03:02:26.306503 | 2020-09-30T21:23:11 | 2020-09-30T21:23:11 | 218,558,219 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,420 | cc | instance.cc | #include <iterator>
#include <map>
#include <set>
#include <utility>
#include <pddl_parser/instance.hh>
namespace pddl_parser {
void Instance::set_name(std::string &&name) {
this->name = std::move(name);
}
void Instance::set_domain_name(std::string &&domain_name) {
this->domain_name = std::move(domain_name)... |
d3b5e48a820df5c2b3e69a2c9c3b8575ed644c60 | 3753588aa125026f994a99421ad67fc40bbe574c | /src/Geometry/Vector3.cpp | c609b8ab3c6f5fb0c10766ee961d0046a1608d86 | [] | no_license | peterix/Khazad | 1cda26c34c91bdaa6cfe214f85b3a96d8d1024cf | 6849bbf69d10c8ce73a822f3033556a6537db908 | refs/heads/master | 2021-01-04T14:45:36.818935 | 2020-02-14T21:10:43 | 2020-02-14T21:13:24 | 240,596,045 | 0 | 0 | null | 2020-02-14T20:48:32 | 2020-02-14T20:48:32 | null | UTF-8 | C++ | false | false | 2,957 | cpp | Vector3.cpp | #include <stdafx.h>
#include <Vector3.h>
Vector3::Vector3( float x_, float y_, float z_ )
{
x = x_;
y = y_;
z = z_;
}
Vector3::~Vector3()
{
}
void Vector3::set( float x_, float y_, float z_ )
{
x = x_;
y = y_;
z = z_;
}
float Vector3::length( void )
{
return((float) sqrt( x * x + y... |
602264e8f8152fcf5a1eb0576b1cbda15e39633b | cc62d037a96ddd95cc3fb1af33455076c35a561a | /APA/Maxima Cobertura/main.cpp | b0b70cbfcc4eedc3d5a44221d83e1742db332a70 | [] | no_license | gabrielgoncalves95/UFPB | 5c444ac77c2627804b1cc80fe27944277b22dbb3 | 354597af3374f110a6c822f51ed1b7ccc3b58a66 | refs/heads/master | 2020-04-29T11:54:33.252903 | 2019-03-17T15:05:40 | 2019-03-17T15:05:40 | 176,117,713 | 1 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 18,519 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include <vector>
#include <map>
#include <math.h>
#include <climits>
#include <cstdlib>
#include <time.h>
#include "include/Conjunto.h"
#define ALPHA 0.75
#define GRASP_ITERACOES 15
using namespace std;
// Função que carrega a instância no vetor de objetos
vector <Conjunto> C... |
358ca63014f563b37b0ca9a8d9948c008a6cc0b5 | 435bea0ce60f07d6f8191db28873e621e1fb2aac | /bvh.cpp | 82c8ed7ecf87988a182256713b38615106e04452 | [] | no_license | lizardxcc/ray_tracer | cc5efc118291ba3aa7a0f4576186cf7364713437 | c8a6d3e20befddd22e844a15bf6ce42f7eba520a | refs/heads/master | 2022-04-10T13:04:18.853141 | 2020-03-18T07:53:55 | 2020-03-18T07:53:55 | 183,452,178 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,431 | cpp | bvh.cpp | #include <algorithm>
#include <assert.h>
#include "bvh.h"
//bool box_x_compare(const Hittable& a, const Hittable& b);
//bool box_y_compare(const Hittable& a, const Hittable& b);
//bool box_z_compare(const Hittable& a, const Hittable& b);
bool box_x_compare(const std::shared_ptr<Hittable> a, const std::shared_ptr<Hitt... |
ba71a250b4f804cfe42d68986ea306025367fb2c | 02249b7efb396c5ab9d62810e5cec8a50258764c | /Project4/NP_4/httpServer.cpp | af8178dfbdfaf544f3b428bf6f5dafe4f13fd959 | [] | no_license | tnmichael309/Network-Programming | 6e56b54df8aabddd01a979c062ce4a9d8c77be0d | d523c24e4bf9ec413798b2d61e7010970e1e4e01 | refs/heads/master | 2016-09-05T09:18:03.361368 | 2015-06-02T02:29:36 | 2015-06-02T02:29:36 | 33,771,644 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,203 | cpp | httpServer.cpp | #include "httpServer.h"
static void splitString(string originalString, vector<string>& resultString){
stringstream ss(originalString);
string subString;
while(getline(ss,subString,'&')) // divide string by '&'
resultString.push_back(subString);
return;
}
int server::staticListenerD = 0;
void copyStringToCha... |
53c62229a6e6394fa86733baa61fd3f0f8308f11 | e65e6b345e98633cccc501ad0d6df9918b2aa25e | /Contests/Andrew Stankevich Contests/ASC13/A.cpp | 5d52ded83f5f0f4ff1e6e1a74a18ef56572d321b | [] | no_license | wcysai/CodeLibrary | 6eb99df0232066cf06a9267bdcc39dc07f5aab29 | 6517cef736f1799b77646fe04fb280c9503d7238 | refs/heads/master | 2023-08-10T08:31:58.057363 | 2023-07-29T11:56:38 | 2023-07-29T11:56:38 | 134,228,833 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,136 | cpp | A.cpp | #include<bits/stdc++.h>
#define MAXN 205
#define INF 1000000000
#define MOD 1000000007
#define F first
#define S second
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
struct edge{ll to,cap,cost,rev;};
ll dist[MAXN],h[MAXN],prevv[MAXN],preve[MAXN];
ll V;
vector<edge> G[MAXN];
void add_edge(ll from,l... |
767c55626db0693c087f671fbd0d9935190d8254 | bdc4e54c9a76a6b51e8d60900b04ed55270a6eb8 | /multiple3and5/multiple3and5.cpp | ca39d1716ff262ec55061e8a10d3346fe14b9cb0 | [] | no_license | lmontigny/project_euler | 1988ff0e1ecf6edbc5a310e4f15e3d0490d0c319 | 57f1be52e41e85adec810b0d8e60e0c54e2e20c8 | refs/heads/master | 2021-01-24T07:27:23.873368 | 2017-06-09T18:06:37 | 2017-06-09T18:06:37 | 93,343,861 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 312 | cpp | multiple3and5.cpp | // ConsoleApplication13.cpp : Defines the entry point for the console application.
//
#include <iostream>
int main()
{
int sum=0;
int limit = 1000;
for(int i=1; i<limit; i++){
if (i%3==0 || i%5==0){
sum+=i;
}
}
std::cout << sum << std::endl;
return 0;
}
|
607ebbf54dd239d1284dc263b60726f62e76c6ff | 3f7028cc89a79582266a19acbde0d6b066a568de | /test/mocks/http/stream.h | c2001816e617821e52ab0dbc624cd00ac881c46c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | envoyproxy/envoy | 882d3c7f316bf755889fb628bee514bb2f6f66f0 | 72f129d273fa32f49581db3abbaf4b62e3e3703c | refs/heads/main | 2023-08-31T09:20:01.278000 | 2023-08-31T08:58:36 | 2023-08-31T08:58:36 | 65,214,191 | 21,404 | 4,756 | Apache-2.0 | 2023-09-14T21:56:37 | 2016-08-08T15:07:24 | C++ | UTF-8 | C++ | false | false | 1,945 | h | stream.h | #pragma once
#include "envoy/http/codec.h"
#include "source/common/network/socket_impl.h"
#include "gmock/gmock.h"
namespace Envoy {
namespace Http {
class MockStream : public Stream {
public:
MockStream();
~MockStream() override;
// Http::Stream
MOCK_METHOD(void, addCallbacks, (StreamCallbacks & callback... |
7209d06e45d634acb70f7eba9be47e476c1f513f | 8a1fe9c7cd29a097be3472f5af801886ff9e947b | /Lab2OOP/Lab2OOP/Furie.cpp | c34562ac4e2878eabe4fe0bb20bca551de87dab2 | [] | no_license | Don4ikkryt/OOPLab2 | 09f32ba70ed53e4eb1ccb4f7b2e5d33c5f87c997 | 97af67235677b8fa908260f42486f6fa1cb1d899 | refs/heads/master | 2020-08-04T13:56:58.777955 | 2019-10-10T15:12:00 | 2019-10-10T15:12:00 | 212,159,639 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,148 | cpp | Furie.cpp | #include "Furie.h"
#include <vector>
#include <complex>
#define PI 3.14159265358979323846
#include <cmath>
#include <algorithm>
using namespace std;
typedef complex<double> base;
void FurieTransfomation::fft(vector<base> & a, bool invert) {
int n = (int)a.size();
if (n == 1) return;
vector<base> a0(n / 2),... |
5c094227d99be559fb4de010fc64d754adb454b6 | 8d385ec39e64e015e1035a89141332d7d55fe016 | /src/opt/gm_opt_remove_unused_scalar.cc | 27b66d63d34b54adf42be4946b09e2d77b67498c | [] | no_license | omsn/Green-Marl | ace523476264c45460207aeaafa5d28ce6d463ba | 1bcf23e81792cffd0039aa5f122af1265e30d545 | refs/heads/master | 2021-01-18T04:58:32.095509 | 2013-01-13T22:09:40 | 2013-01-13T22:09:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,982 | cc | gm_opt_remove_unused_scalar.cc | #include "gm_ind_opt.h"
#include "gm_misc.h"
#include "gm_traverse.h"
#include "gm_transform_helper.h"
#include "gm_rw_analysis.h"
#include "gm_check_if_constant.h"
//-------------------------------------------------------------------
// Remove unused scalar variables
// targets:
// type - primitive or node or ed... |
d488350d9f528b80d881dfe8f8658aebf5bc9d60 | 294c7cca849cda6e5b40481748ce69c649be78cb | /code force/Round#499/Div.2/c.cpp11.cpp | 9ef5c0022a752ef478464a9ae1e1db7c93ee2ef6 | [] | no_license | dgu14/cbs | 06b7a686dc84ce5d77cc6c9fe101738430665053 | 1eb4e3de5e91507364cf5840f2c4f432df5504d8 | refs/heads/master | 2021-07-10T18:41:39.155115 | 2019-02-24T05:07:08 | 2019-02-24T05:07:08 | 142,029,094 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,048 | cpp | c.cpp11.cpp | #include <bits/stdc++.h>
using namespace std;
int n,m,a[1005],b[1005];
bool canfly(double fuel, bool test)
{
double tot = fuel+m;
for(int i=0;i<n-1;i++)
{
fuel -= tot/a[i];
tot -= tot/a[i];
if(fuel < 0) return false;
fuel -= tot/b[i+1];
tot -= tot/b[i+1];
... |
9397ede1f20a1d35b3a79e14f38cd2f908bb8cc4 | 3b6d1533615bfc95518774bd551316fe37300364 | /tutorial/lesson7/demo1_7.cpp | b94285f9a07d96f657c67bb54d1e0da058c36851 | [] | no_license | ljwwwiop/C_multithread_code | 14a6d7d927a11334e7692b8f4d89b42a4d160773 | 221fc3dc9067ccd3c8169fec4319bae9f223e502 | refs/heads/master | 2023-07-11T13:04:05.342055 | 2021-08-19T09:15:24 | 2021-08-19T09:15:24 | 294,396,294 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 627 | cpp | demo1_7.cpp | #include <iostream>
#include <string>
#include <thread>
#include <mutex>
#include <fstream>
#include <future>
using namespace std;
// 将子线程中的变量传入主线程
int factorial(int N)
{
int res = 1;
for(int i = N;i > 1;i--)
res *= i;
cout<<"res : "<<res<<endl;
return res;
}
int main()
{
int x ;
... |
e1d28930ce750de74b5f317f89aa3fd37e40088a | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch.alternative.numerics/eulerVortex.cyclic.twitch.moving/2.83/p | d96a57e60f38bda8e8d2a5af3c03908faa0a9357 | [] | 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 | 161,745 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
617091f3380a28c66e640dfd79de89222343e272 | c7d98beb689410cbba2c712a01c25863f267b5dc | /src/Include_lines/new/isotropic_exponential_similarity.cpp | 62efc96af680641055a0a622a595096d3b918563 | [] | no_license | ml4ai/hamlet_experiment_py2 | 2b8d5b21e9c3c62bc17409da4971869aaf13f705 | 2d49f797d0ee0baa0447e0965468e7c15e796bb7 | refs/heads/master | 2021-03-27T11:41:43.494446 | 2017-11-06T14:31:18 | 2017-11-06T14:31:18 | 61,496,702 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 139 | cpp | isotropic_exponential_similarity.cpp | "hdp_hmm_lt.h"
"isotropic_exponential_similarity.h"
"state_model.h"
"util.h"
<boost/bind.hpp>
<boost/make_shared.hpp>
<third_party/arms.h>
|
461aec1704f53ddd61631db3aa58ebf3a10cb5ce | 865ce9523e1f7ed17491adac1b841fe2428ad041 | /2018-9/9-15(ICPC Interner JiaoZuo)/K.cpp | 3a5bea84fe0d68388fc5301f04e35ad6d62fc689 | [] | no_license | Hydrogen5/ACM | a1ed3139c287fbd90bdbe91adc45a9015e74664e | 7b19f253308793b176e8e942e0ae1d5d998d2057 | refs/heads/master | 2021-07-16T02:29:38.267256 | 2018-12-12T04:38:30 | 2018-12-12T04:38:30 | 129,661,683 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,102 | cpp | K.cpp | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
#define MOD 1000000007
#define ll long long
using namespace std;
int c[2200];
ll dp[10010];
int main()
{
int T;
scanf("%d", &T);
... |
275f50e293338cacac6d305502957c5b2ec80cf1 | e60112ee47d6887f00512e01d2c919495d578335 | /iriclib_init.cpp | 433972f0e892b8c29865f96b641f2555e8eae41f | [
"MIT"
] | permissive | usgs-coupled/iriclib-test | 85ef24ef493d6caf8973405fffe1d2f387606a00 | f89e03024788d3ae8d8b751007fe38f341b9196f | refs/heads/develop_v4 | 2023-08-14T19:20:20.815199 | 2021-09-14T21:22:35 | 2021-09-14T21:22:35 | 406,461,481 | 0 | 1 | MIT | 2021-09-14T21:22:00 | 2021-09-14T17:25:28 | C++ | UTF-8 | C++ | false | false | 2,797 | cpp | iriclib_init.cpp | #include "error_macros.h"
#include "h5cgnsfile.h"
#include "h5cgnsfilesolutionwriter.h"
#include "iriclib.h"
#include "iriclib_errorcodes.h"
#include "internal/iric_h5cgnsfiles.h"
#include "internal/iric_logger.h"
#include <Poco/Environment.h>
#include <Poco/File.h>
#include <sstream>
using namespace iRICLib;
name... |
77d6b122045cbbb83a0bcd71ff01503945fe1497 | 0d439569aab54d66062006501214e0ff745dc192 | /mainwindow.cpp | 6008449f471b1c526e9f7c73be65c55e0f38a4bb | [
"MIT"
] | permissive | Mintpasokon/Flying-chess-qt | 8adb3901c438f98e7f1461301ca96941b86c0d36 | 6ed0d651046fee74d2526ddca02ca7eebcd21e10 | refs/heads/master | 2020-08-11T18:35:04.045107 | 2019-10-12T11:17:15 | 2019-10-12T11:17:15 | 214,609,210 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,031 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent)//,
//ui(new Ui::MainWindow)
{
//ui->setupUi(this);
this->planes = new plane*[16];
this->messageLabel = new QLabel(this);
this->maps = new map();
//connect to ser... |
347683ad10ad45874cbbbe2adef091642fb474c0 | 36147a67342ff00faaa27151fd36af2650603c3b | /audio/source/Audio.cpp | 1cd66b013404bfba826ecb835ff61a6739d57065 | [] | no_license | cthornsb/OtterGB | 5eda3c1715d322fbaafa1e7912c44a7a87accca3 | aa2495b7e1a604b4842bebff5e1bd6b2764b4235 | refs/heads/master | 2023-06-26T09:05:35.075680 | 2021-02-19T23:36:03 | 2021-02-19T23:36:03 | 303,243,408 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,794 | cpp | Audio.cpp | #include <cmath>
#include <iostream>
#include "SoundManager.hpp"
#include "SimpleSynthesizers.hpp"
#include "WavFile.hpp"
typedef struct{
float left;
float right;
}
paTestData;
/* This routine will be called by the PortAudio engine when audio is needed.
* It may called at interrupt level on some machines so don't... |
d936e63556789468f2e532aa3f869a258287aa8c | 0f2d80a5eb7661ff551a603a09697af39cb5223c | /xnsclientwebserver.h | 8080f9d970a84aea15e80acf42c6154f311ad860 | [
"MIT"
] | permissive | xnsense/xns-client | 156a76e5d89225b9b4d25d72dee1d76d069dd042 | ff819dc0ed0e0976afb98228b6c06054f37bf94b | refs/heads/master | 2021-01-11T12:36:01.839110 | 2017-02-25T20:31:20 | 2017-02-25T20:31:20 | 79,482,020 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 626 | h | xnsclientwebserver.h | // xnsClientWebServer.h
#ifndef _xnsClientWebServer_h
#define _xnsClientWebServer_h
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include "xnsclientconfig.h"
class xnsClientWebServerClass
{
public:
xnsClientWebServerClass()
{
}
static void Setup(xnsClientConfig *pConfig);
static void Handle();
sta... |
b9a24f38691a70ecf756eca18da9d4cd0d96f248 | dc5a9aba7f1c9c22bc2c6ae28316cfe106ba799a | /lang_trick/type_or_value.cpp | 8d609eab2a1426699515aa4866257e9bd059e256 | [
"WTFPL"
] | permissive | hczhcz/trick-n-trick | 4e3dade3aea388986016183e5c379fbd7e1c31f9 | 5415741c40b836e9604a36409b47927a2dd6f865 | refs/heads/master | 2022-08-12T08:59:10.197879 | 2022-07-29T16:35:43 | 2022-07-29T16:35:43 | 17,470,002 | 7 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 685 | cpp | type_or_value.cpp | #include <iostream>
#include <string>
#include <typeinfo>
class Magic {
public:
template <class T>
Magic(const T &value) {
std::cout << "Value: " << value << std::endl;
}
};
template <class T>
void printType(Magic (*value)(T)) {
std::cout << "Type: " << typeid(T).name() << std::endl;
}
void p... |
f3609f07641360416aac463f55a5b272065d1e5a | 39cdb6ff35231538ef25c565181981ccf237cc30 | /BOJ/16928.cpp | d3a6fd1f42d642848a553a84783db8f1f51bea67 | [] | no_license | dittoo8/algorithm_cpp | 51b35321f6cf16c8c1c259af746a9f35d5ba8b76 | d9cdda322d3658ffc07744e4080c71faeee6370c | refs/heads/master | 2023-08-03T14:49:08.808253 | 2021-02-16T04:13:53 | 2021-02-16T04:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 865 | cpp | 16928.cpp | #include <cstdio>
#include <queue>
using namespace std;
int map[102];
int c[102];
int n,m;
int main(){
for(int i=1;i<=100;i++){
map[i] = i;
c[i] = -1;
}
scanf("%d %d", &n, &m);
for(int i=0;i<n;i++){
int a, b;
scanf("%d %d", &a, &b);
map[a] = b;
}
for(int ... |
1679da8f99e662675ccf3427c97e0626628721d3 | da1500e0d3040497614d5327d2461a22e934b4d8 | /cobalt/updater/updater_unittest.cc | fd2d7dd2b3011023c9c6fed3b57dd622bd4062f6 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | youtube/cobalt | 34085fc93972ebe05b988b15410e99845efd1968 | acefdaaadd3ef46f10f63d1acae2259e4024d383 | refs/heads/main | 2023-09-01T13:09:47.225174 | 2023-09-01T08:54:54 | 2023-09-01T08:54:54 | 50,049,789 | 169 | 80 | BSD-3-Clause | 2023-09-14T21:50:50 | 2016-01-20T18:11:34 | null | UTF-8 | C++ | false | false | 1,346 | cc | updater_unittest.cc | // Copyright 2019 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.
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "base/process/launch.h"
#include "base/process/pr... |
24210a4f8de2f729957875a7da05e659f9a26fa0 | e8916b1c395c3d20226cec21a74c49399ce6da01 | /src/Public.cpp | 0d995abb87b43bc37210c071abd51f047825b6d1 | [] | no_license | santhosh-kumar/MultiCameraTracking | 1b89b4850b5ee1150ff037df2e14da8e5b20a44a | 1aaa0abe22d6832007db04e8828091606f74f12d | refs/heads/master | 2021-01-01T16:20:05.155860 | 2018-02-16T00:45:08 | 2018-02-16T00:45:08 | 19,094,498 | 65 | 33 | null | null | null | null | UTF-8 | C++ | false | false | 2,436 | cpp | Public.cpp | // MILTRACK
// Copyright 2009 Boris Babenko (bbabenko@cs.ucsd.edu | http://vision.ucsd.edu/~bbabenko). Distributed under the terms of the GNU Lesser General Public License
// (see the included gpl.txt and lgpl.txt files). Use at own risk. Please send me your feedback/suggestions/bugs.
#include "Public.h"
////////... |
7f220b461e7e6f7a819a6259f632169bd8a86759 | 790cca6b19cfec4be8d2f6c02313b9d3fdbdb09d | /Source/Bomberman1/PlayerCharacter.h | 76d0d1732254d6a988d1371a5c11856ff75dc885 | [] | no_license | chrcy/Bomberman | d05b63e8a6d6708dec62bf3b3b5d6e751c9616a1 | aa2b2d88e10488f63b7d2c7918517abc3c28bcfb | refs/heads/master | 2020-03-08T18:53:10.753042 | 2018-04-09T03:52:51 | 2018-04-09T03:52:51 | 128,325,468 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,852 | h | PlayerCharacter.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "DestroyInterface.h"
#include "PowerUpInterface.h"
#include "BombInterface.h"
#include "PlayerCharacter.generated.h"
UCLASS(blueprintable)
class BOMBERMAN... |
76818156b241a4d975a5f6671edd1d2ade402eaa | dae907db0cf43b427fd1a456b338be3910fc5f90 | /P17921_ca_Reines__2_.cc | d0d87d85e4b7a0a7422da0a3887f9fe978278552 | [] | no_license | FranciOrtiz/jutge_problems | 4c5c273ada09f20088b08287356bbb967a642e45 | a838f6ad8995cf57ae6f11cc6beeb3f13fa7e55d | refs/heads/master | 2022-12-23T20:33:43.775974 | 2020-09-24T09:49:10 | 2020-09-24T09:49:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 934 | cc | P17921_ca_Reines__2_.cc | #include <iostream>
#include <vector>
using namespace std;
int n;
template <class T>
inline T abs (const T& n) { return (n<0)? -n: n; }
#define m int(v.size())
void back(vector <int> v = vector <int> (0), vector <bool> f = vector <bool> (n,0)) {
if (m==n) {
for (int i = 0; i < m; i++) {
for (... |
99eb323380a7b9beb4097f738c6badec8eccb5bf | af180db27145eae7511360f11d51b796354bf4f9 | /Extramen2012/EX_J12_2.CPP | ba90702b3ab6401616708603f3d3fd7972d82179 | [] | no_license | Amnesthesia/Course-OOP | 3577a2ee87ab6816d471382692e29029a37c5559 | 5a22dfa49def7cbcd26763f15994ca41b1ebe427 | refs/heads/master | 2020-04-27T15:03:01.314271 | 2014-11-29T01:56:28 | 2014-11-29T01:56:28 | null | 0 | 0 | null | null | null | null | WINDOWS-1257 | C++ | false | false | 17,324 | cpp | EX_J12_2.CPP | // Fil: FRODEH \ OO \ EXTRAMEN \ EX_J12_2.CPP
// L›sningsforslag til kontinuasjonseksamen i OOP, 5.januar 2012, oppgave 2.
// Laget av Frode Haug, HiG, desember 2009.
// Programmet holder orden p† ulike typer gjenstander (malerier, m›bler og
// ting). Alle diss (arvede objektene) ligger i en og samme... |
5835af196ef143897a8a3b934eb328ca22d9eb72 | 4d317369bd7de599e0364e9097e50f381845e22c | /Contests/CodeForces Global Round 5/Programs/Balanced Rating Changes.cpp | d2683bda0a3b8e763b762daf1aa0c43a552db036 | [] | no_license | MathProgrammer/CodeForces | 4865f0bad799c674ff9e6fde9a008b988af2aed0 | e3483c1ac4a7c81662f6a0bc8af20be69e0c0a98 | refs/heads/master | 2023-04-07T11:27:31.766011 | 2023-04-01T06:29:19 | 2023-04-01T06:29:19 | 84,833,335 | 256 | 114 | null | 2021-10-02T21:14:47 | 2017-03-13T14:02:57 | C++ | UTF-8 | C++ | false | false | 1,029 | cpp | Balanced Rating Changes.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
int no_of_students;
cin >> no_of_students;
vector <int> rating(no_of_students + 1);
vector <int> was_odd(no_of_students + 1, false);
int sum = 0;
for(int i = 1; i <= no_of_students; i++)
{
... |
bf1e7bd4c1c57bf80a767bf2dbf5e6045ba212a8 | 229f25ccda6d721f31c6d4de27a7bb85dcc0f929 | /solutions/codeforce/Codeforces Round #204 (Div. 2)/B. Jeff and Periods/solution.cpp | 77bf5ab06352957a0747d95cc6159032538f26b8 | [] | no_license | camil0palacios/Competitive-programming | e743378a8791a66c90ffaae29b4fd4cfb58fff59 | 4211fa61e516cb986b3404d87409ad1a49f78132 | refs/heads/master | 2022-11-01T20:35:21.541132 | 2022-10-27T03:13:42 | 2022-10-27T03:13:42 | 155,419,333 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 957 | cpp | solution.cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false); cin.tie(NULL);
int n;
while(cin >> n){
map<int, vector<int>> v;
for(int i = 0; i < n; i++){
int tmp;
cin >> tmp;
v[--tmp].emplace_back(i);
}
vecto... |
d85d76d28827e001f295b2f160ac9f1b125b0cb0 | ece8eb987e8edc81507d922dafea63965b833bf2 | /build/vs2017/menu_state.cpp | 734df8d4b0c8f0ebecbb1bc1e083df94302cffb3 | [] | no_license | JojoXx1999/cAR | d88ccc3fa79276db7447c8f665ee3773d0cf4fbc | 75780141f5060ac94a0b5f77b4fc2976eb2b34e8 | refs/heads/main | 2023-06-18T07:29:31.324491 | 2021-07-21T17:53:10 | 2021-07-21T17:53:10 | 387,905,064 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,266 | cpp | menu_state.cpp | //-----------------------------------------------------------------------------------------------------------------------------------------------------------//
//-----------------------------------------------------------------------------------------------------------------------------------------------------------//
... |
7dcb746bd696797573e6e9c3c9af0cf87ca5ab34 | 69b7ee977a5d180b785280f2c5cf5b45895f5360 | /include/open_coders.hpp | 77f81cb8dd0de692a9ed1fe7417b649196fb9e13 | [
"Apache-2.0"
] | permissive | bjzu/open_coders | d99fa7d0cd25e889caa7f7494a9c962b60aac02b | da2b659f7d89362d6b6c9e9fb5b35799479881d0 | refs/heads/master | 2021-01-21T00:29:19.341741 | 2012-01-05T19:33:36 | 2012-01-05T19:33:36 | 3,702,432 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,533 | hpp | open_coders.hpp | /*-----------------------------------------------------------------------------
* open_coders.hpp - A header for global variables, or something.
*
* Coding-Style:
* emacs) Mode: C, tab-width: 8, c-basic-offset: 8, indent-tabs-mode: nil
* vi) tabstop: 8, expandtab
*
* Authors:
* Takeshi Yamamur... |
27313125c8377a47e22ff9482b48987f624153e6 | 7fc063d09eb9bd01155091b9331bf4282e6f1686 | /EditorFotos/utils.h | b6ef36a2c322f6b2d4f46734fa472faa553c53eb | [] | no_license | BriggiRivera/ImageEditor | 717970a655fe5f6ec533b8d433e25d1426693a03 | 2caddce966e1260d1aa0b1c5f9b99203e9ff062d | refs/heads/master | 2020-03-23T17:09:34.966486 | 2018-11-10T02:03:27 | 2018-11-10T02:03:27 | 141,819,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,982 | h | utils.h | #ifndef UTILS_H
#define UTILS_H
#include "stdafx.h"
#include "EditorFotos.h"
#include "EditorFotosDlg.h"
#include "afxdialogex.h"
#include "BMP.h"
#include "PixelRGB.h"
#include <algorithm>
#include <cmath>
#include <vector>
#define cimg_use_jpeg
#include "CImg.h"
#include <cstdio>
using namespace std... |
eb6c8751fea209a335ea75107050fb264dce5309 | ed70171946678f9d8f9f018aeb1a50cb71558446 | /app/src/main/cpp/sample/ScratchCardSample.h | 240509d8ab3b04ce46656e7851394e76fabcbbdc | [] | no_license | fdsajkl0724/OpenGlNDK | c9a364300f5f2d9e7615f3e4ee53640f4ac0b085 | 414ba5c5271ff3d3e44bf614b274f5be46c854cb | refs/heads/master | 2023-06-27T06:44:30.398596 | 2021-08-02T00:52:56 | 2021-08-02T00:52:56 | 391,776,566 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,393 | h | ScratchCardSample.h | //
// Created by Administrator on 2021-07-23.
//
#ifndef OPENGLNDK_SCRATCHCARDSAMPLE_H
#define OPENGLNDK_SCRATCHCARDSAMPLE_H
#include "GLSampleBase.h"
#include <detail/type_mat.hpp>
#include <detail/type_mat4x4.hpp>
#include <vector>
#include <vec2.hpp>
#include <vec3.hpp>
#define TRIANGLE_NUM 43
#define EFFECT_R... |
89a14c2c2daa163b115d5591f70f77516d68ca01 | e8ab6a8108801dfedb694557626fd847651564e2 | /Dragon/src/operators/arithmetic/inner_product_op.cc | 136f9273bd9b8221375f5da2048d82095193be1c | [
"BSD-2-Clause"
] | permissive | Spark001/Dragon-1 | 87f722bcb0feaec7fad29d923c60681cf9584267 | 310bcb5f6d9a6623bb58ed3d1ad02d1f440da474 | refs/heads/master | 2020-03-09T22:52:08.171500 | 2018-04-01T10:13:50 | 2018-04-01T10:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,660 | cc | inner_product_op.cc | #include "operators/arithmetic/inner_product_op.h"
#include "core/workspace.h"
#include "utils/filler.h"
namespace dragon {
template <class Context> template <typename T>
void InnerProductOp<Context>::TransRunWithType() {
vector<TIndex> weight_shape({ num_output, K });
vector<TIndex> bias_shape(1, num_output)... |
0312c706d4a013e31802d3b2bfd4cb1aba69ed32 | 69ad5952942a1de9dae4528adee16d67e84b84be | /clickableBt.h | 1dc9aead158e4848fa9944c4afd5bfa3e0729f02 | [] | no_license | innkuika/CISC220LAB3beta | 3f2aacd10c85f8ebc63d0bd8ae952b8107650a49 | c4031d90b2a838380af5f229254396f75cb7f27d | refs/heads/master | 2023-03-30T04:42:52.754970 | 2021-03-24T04:47:12 | 2021-03-24T04:47:12 | 249,096,536 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 402 | h | clickableBt.h | #include <QLabel>
#include "QMessageBox"
class CClickableLabel : public QLabel
{
Q_OBJECT
public:
CClickableLabel(QString text, int x, int y, QWidget *parent = 0);
~CClickableLabel() {}
public:
int x;
public:
int y;
signals:
void clicked();
public:
QString text;
public:
void printBoard2(... |
5d2e0cd76103f6d2c3ec6304ae84efbf46c06f1c | f9823b937b589e07af236bdd111dcd95458d348f | /external/include/Window.h | ce637d719eb9cec31f686e6247bfb3189fa7b1ca | [] | no_license | jercypackson/ezg18-IdasDream | ff083bccf76e65be47d8eae253258dd28638b65f | c72f088f41cf2ad10597c90caea715b9c8b73a92 | refs/heads/master | 2022-03-29T05:08:03.997264 | 2019-01-18T19:45:25 | 2019-01-18T19:45:25 | 148,811,915 | 0 | 0 | null | 2020-01-18T09:42:40 | 2018-09-14T16:00:49 | C++ | UTF-8 | C++ | false | false | 3,241 | h | Window.h | #pragma once
#include <string>
#include <iostream>
#include <sstream>
#include <functional>
#include <unordered_map>
#include <GL/glew.h>
#include <GLFW\glfw3.h>
#include "IDManager.h"
struct MouseInput {
enum class Action {
PRESSED, RELEASED, SCROLLED
} action;
enum class Button {
LEFT, RIGHT, MIDDLE
} but... |
eb68b6816d37dd3206c7bff03ec9727509084a55 | 53ee3c9e9d5aad21811d32a2cea83bbd929682e2 | /testcurrent.ino | 076ba5a29c747be024d2f1e20777a11bd36f009f | [
"Apache-2.0"
] | permissive | cristobal23/arduino-ups-12v | a112a861706a142f4b15732b41485a5392b181e1 | 11a5a7edad2ac185807e2e64d3a494b231cadc0d | refs/heads/master | 2021-01-01T19:56:29.542216 | 2014-03-15T05:15:19 | 2014-03-15T05:15:19 | 17,768,585 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 745 | ino | testcurrent.ino | #include <Wire.h>
#include <Adafruit_INA219.h>
Adafruit_INA219 ina219;
void setup(void)
{
uint32_t currentFrequency;
Serial.begin(115200);
Serial.println("Hello!");
Serial.println("Measuring voltage and current with INA219 ...");
ina219.begin();
}
void loop(void)
{
float shuntvoltage = 0;
flo... |
44791904aef3d72ad9ac42559b16d288470f6612 | 8638ba6c20f396878aa03ca1f332b04de605afaf | /Dynamic Programming/Scramble String.cpp | d001eeddfc86a99b34971bf3d41a5b399a7e7193 | [] | no_license | AnimeshMore/Data-Structures-and-Algorithms | d146f6b11fe294b3054b2194ed881f3c8c51d633 | 2b6d3d30fbe53d556e6ab0dc62806b100928f8c8 | refs/heads/master | 2023-08-06T14:04:46.348243 | 2021-10-05T14:35:29 | 2021-10-05T14:35:29 | 397,944,300 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 978 | cpp | Scramble String.cpp | //LeetCode Problem Link - https://leetcode.com/problems/scramble-string/
unordered_map<string,bool> mp;
class Solution {
public:
bool isScramble(string s1, string s2) {
if(s1.length()!=s2.length()){
return false;
}
int n=s1.length();
if(n==0){
return true;... |
d902abb1f9e36dc66061dc50e2648c7b09d876de | d7785d0fcb6ded7401c0fe569110c17296edf538 | /Ruminate/include/HelperFiles/a_funcs.hpp | 5ba2d7d57776526c8e3935a75c6cae15a1546216 | [
"MIT"
] | permissive | AlexandreRouma/Ruminate | f3a33227757d57c3ae1fbb13fce91aa23a6e0484 | 7c87d78782fb7547929973ee92b05b85714f9773 | refs/heads/main | 2023-01-23T11:11:11.362451 | 2020-12-05T00:30:39 | 2020-12-05T00:30:39 | 318,660,043 | 1 | 0 | MIT | 2020-12-05T00:30:40 | 2020-12-04T23:36:46 | null | UTF-8 | C++ | false | false | 383 | hpp | a_funcs.hpp | #pragma once
#include <cmath>
constexpr auto A = 0.0001;
//relu
float Relu(float x);
float ReluPrime(float x);
//leaky relu
float ReluLeaky(float x);
float ReluLeakyPrime(float x);
//tanh
float Tanh(float x);
float TanhPrime(float x);
//sigmoid
float Sigmoid(float x);
float SigmoidPrime(float x)... |
7c7605cd0520ffdfb8361e3c87a0442e5f6a7872 | 4464bd12408f155b7129bc62de465633caaf8f77 | /A1/mainwindow.cpp | 7cbd3cfaaf8900e79ed9b22d5f1b6d6e71b3723c | [] | no_license | minalhk/Computer-Graphics | ff2a6da826e53c16a123bc20a87d5ef8df839966 | b5b5cf1bc4783f9a1d065e371fb1df64e04ed15d | refs/heads/master | 2022-11-16T09:53:02.028412 | 2020-07-16T17:15:51 | 2020-07-16T17:15:51 | 279,947,597 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,065 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
QImage image(300,300,QImage::Format_RGB888);
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_pushButton_clicked()
{
float... |
497888cd56630f9782b766ea7d8d88e153a01a41 | f7b8fbcd8d24c5a15351930876f5e70eabc7bf6e | /compiler/symbolTable.cpp | 027141fd3b524d655ba8bc427901d87b09923341 | [] | no_license | jaeyeom/bubble | e7a6cbdbbd24731c9cb2496b264e8497f47c401b | acc61399ad21b89fd5bb8e73a6c885f4f668e795 | refs/heads/master | 2020-05-17T23:28:30.619736 | 2012-05-01T09:42:58 | 2012-05-01T09:42:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,673 | cpp | symbolTable.cpp |
#include <iostream>
#include <set>
#include "symbolTable.hpp"
namespace Bubble
{
Env::Env()
: lOffset(-16), pOffset(0)
{
}
/*
* 환경 내에 tok을 복사해 넣는다. 직접적으로 쓸 일이 없다.
*/
void Env::put(const string& id, const IDToken& tok)
{
*items[id] = tok;
items[id]->setAddr(lOffset);
lOffset -... |
cb2794a653f79ed1176feeb1a01442e9ed412dee | 7b6a09da65bc7ea3f7956fafd078841adb4f4c4c | /Lightning/sources/resource/AssimpModel.cpp | e8bf4fb2673c4c9c2c4681d74fd3ed4ecc3c8db4 | [] | no_license | Labrasones/Lightning | 909d9cf4ceb4e9b8b11ad6b93559d93d5a48c0db | c8de3953afcda269c7ea469f7cb233dc8cbaaa84 | refs/heads/master | 2021-01-10T19:14:02.254051 | 2015-10-04T15:25:15 | 2015-10-04T15:25:15 | 39,917,390 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 845 | cpp | AssimpModel.cpp | #include "resource/AssimpModel.hpp"
using namespace Resource;
AssimpModel::AssimpModel()
{
}
AssimpModel::~AssimpModel()
{
}
bool AssimpModel::load(Manager::ResourceManager* container, std::string path)
{
Assimp::Importer importer;
importer.SetIOHandler(new File::AssimpIOSystem(container->file())); // Set the ... |
8530a1f8c746857887bcb184789dab5996bc5406 | e815f3acb9c58e9ffe9234fcc5c1bcf3db505f76 | /quol/red/include/Except.h | 2d06bcc8d15ba83293ef1c392e0eac0740c4d592 | [
"MIT"
] | permissive | zezax/one | 7605400cf365706c60c95890f8f21e70f05be2bb | 4d46d2324a7bfc024ae740785af48d6c9133cf5e | refs/heads/master | 2023-08-31T22:06:25.080378 | 2023-08-30T22:53:05 | 2023-08-30T22:53:05 | 252,308,249 | 1 | 0 | MIT | 2023-09-04T04:32:15 | 2020-04-01T23:21:42 | C++ | UTF-8 | C++ | false | false | 2,789 | h | Except.h | /* Except.h - zezax::red exception header
These are all the custom exceptions thrown by the regular expression
code. All descend from std::runtime_error. The top-level custom
exception is RedExcept.
Exception hierarchy:
RedExcept - superclass
RedExceptInternal - programming erro... |
06f327129ced0e04f1e947c03b234321dc5d2891 | 1025bc2aa5aaa40970ad1a51d8d0b1202a1ea11e | /PatTools/src/PhosphorCorrectorFunctor.cc | 4e9ba1ab2688c8029f00a987b378f9c5e22d79ad | [] | no_license | uwcms/FinalStateAnalysis | f2be318546728621676a4b90ed2678b2560c94e6 | bcb164a8e27d459a9ac438780f6c8730d3e856bf | refs/heads/miniAOD_9_4_0 | 2022-11-09T01:28:52.199025 | 2019-03-15T19:25:10 | 2019-03-15T19:25:10 | 5,201,989 | 5 | 32 | null | 2020-11-19T17:02:32 | 2012-07-27T07:51:18 | Python | UTF-8 | C++ | false | false | 23,625 | cc | PhosphorCorrectorFunctor.cc | #include <iostream>
#include <fstream>
#include <sstream>
#include <math.h>
#include "stdio.h"
#include "stdlib.h"
#include "FinalStateAnalysis/PatTools/interface/PhosphorCorrectorFunctor.hh"
namespace zgamma {
using std::stringstream;
using std::pair;
PhosphorCorrectionFunctor::PhosphorCorrectionFunctor(){
}//... |
d7d1d1786fd31341ddf897a25976992e789ef143 | c8ee531a51c49f765d6bc92409ce50d82663d31e | /Code/Libs/Window/Application.hpp | c603c2c323481e1daa79528281f1665f132a1302 | [
"Zlib"
] | permissive | NotKyon/Tenshi | 8dcfdb0a7fdd80d2e40ef092af26984ab042a488 | 9bd298c6ef4e6ae446a866c2918e15b4ab22f9e7 | refs/heads/master | 2021-01-17T16:40:08.688678 | 2017-05-05T08:26:57 | 2017-05-05T08:26:57 | 63,018,850 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 170 | hpp | Application.hpp | #pragma once
namespace Ax { namespace Window {
void SubmitQuitEvent();
bool ReceivedQuitEvent();
bool WaitForAndProcessEvent();
bool ProcessAllQueuedEvents();
}}
|
ab7a4ef35856da14e5189a05b04c65d971d15191 | e91646ac6e1f6c880203f86501a5fc93cd9e4acb | /src/shading/spherical_shading.cc | de3b8a928e9dd5e5bd73bb63aa35d7b45cd44309 | [
"WTFPL"
] | permissive | stephenmcgruer/University-CG | c2bcf4d2253d4690c1fa4cea0dfe7365af921520 | 44000935da96dc74cce3622c68bd14601949f50a | refs/heads/master | 2021-01-18T15:16:36.105175 | 2013-05-21T19:25:25 | 2013-05-21T19:25:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,254 | cc | spherical_shading.cc | //! \author Stephen McGruer
#include "./spherical_shading.h"
namespace computer_graphics {
//! A z-buffer approach is used to draw points in the correct order. Note that
//! multiple entries may exist in points for a single coordinate, so the drawing
//! must be done by iterating from the front of the points vector ... |
d0e6190236ce7b98493384e8f1c856c2082bb48f | 57ab0abe5071faa24cd547abe5980a06fdad9688 | /ESP_CUBE/ESP_CUBE.ino | 91a6109f53d312420ae793efb2fd4ef01cea860a | [] | no_license | TGC-TECH/ESP32-WiFi-LED-Cube-3x3- | 695d9eec1d0235b101924606a9c5a9e006e8aaa1 | d90dd63b804e3fbf338be77b5db9256df4d8516b | refs/heads/master | 2020-06-13T05:08:02.477701 | 2019-12-01T15:08:14 | 2019-12-01T15:08:14 | 194,546,101 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,232 | ino | ESP_CUBE.ino |
#include <WiFi.h>
// Variables to store network name and password
const char* ssid = "Cowles-WiFi"; // Enter your network name
const char* password = "--------"; //Enter your network password
// Set the server port nunber to deafualt 80
WiFiServer server(80);
// this variable header stores the HTTP request... |
111fafec4dbeeb3f229c7de1f4a3ba580288242b | 01f8171fdaf0177123866b9c8706d603e2f3c2e8 | /io/image/image_writer_png.h | 83d3864a30241c398a4cc0bf098270bd2ed131ce | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | ppearson/ImaginePartial | 5176fb31927e09c43ece207dd3ae021274e4bd93 | 9871b052f2edeb023e2845578ad69c25c5baf7d2 | refs/heads/master | 2020-05-21T14:08:50.162787 | 2020-01-22T08:12:23 | 2020-01-22T08:12:23 | 46,647,365 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 952 | h | image_writer_png.h | /*
Imagine
Copyright 2011-2012 Peter Pearson.
Licensed under the Apache License, Version 2.0 (the "License");
You may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... |
3e2601688c6690197240344dd60cc256abe6d3fb | 71c1c86b30c1518e21728f7d5e0f09b5e602baac | /ROC.Window/APISRLab/APISRLab/CSync.h | 2e2854451b70ad6f1f8b7db583a3c263b8aa42f9 | [] | no_license | ssh352/ronin | 3ddf360fec5f106015c6902b5107aedefe934836 | 33301b6c5e68fa9d02c7d54bc86f6b7732985fc2 | refs/heads/master | 2023-05-03T11:00:39.368460 | 2021-05-17T18:41:08 | 2021-05-17T18:41:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 764 | h | CSync.h | class CSync
{
public:
CSync() { InitializeCriticalSection(&m_CriticalSection); }
~CSync() { DeleteCriticalSection(&m_CriticalSection); }
void Acquire() { EnterCriticalSection(&m_CriticalSection); }
void Release() { LeaveCriticalSection(&m_CriticalSection); }
private:
CRITICAL_SECTION m_CriticalSec... |
ad8cf977e7f4c569025838dae41bce722177522c | 812d81c893443325d8cf5b9ca25ddf64f3009c45 | /HTU21D_New.ino | 38c420cd5fdbe2d2fa37a61b61c13ce87574a36d | [] | no_license | Luxorchegone/HTU21D-automatic-fan | c6935876dbfa1d9842b16bb414dba80dd709da3c | 13079fc607b8284d76b3d25394bcdee9d7ea77a6 | refs/heads/main | 2023-01-09T03:19:12.975479 | 2020-11-10T07:50:03 | 2020-11-10T07:50:03 | 311,424,220 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,950 | ino | HTU21D_New.ino | /***************************************************************************************************/
/*Программа написана для управления вентилятором ванной комнаты.
Для сборки схемы необходим датчик HTU21, LCD дисплей 160Х (в моем случае 1601, но можно любой другой
из этой серии), пара кнопок, транзистор для управле... |
f92fc83127c02d3e6821d2ff3eb457f05b3557d5 | f4ad4581cffee0416b1dee2624467673337f6135 | /src/competitorCategoryResultEditU.h | ba7c0f116ee09a43c2c0a260f52b4ad54206fe99 | [] | no_license | agoffer/secretary | 76fba58e33e39f4ba784590c7779d69f2be29ded | 0c24719741f7796ae8231d1452c81466b7620ad2 | refs/heads/master | 2020-05-19T11:53:56.836823 | 2018-02-15T18:22:50 | 2018-02-15T18:22:50 | 6,301,848 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 4,846 | h | competitorCategoryResultEditU.h | //---------------------------------------------------------------------------
#ifndef competitorCategoryResultEditUH
#define competitorCategoryResultEditUH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Form... |
875a53e92becf200d56653384b51b95c5520382a | 0df0ad2215e548e5eeed1b2e6fbda9fde4c15116 | /ReadRED/show_red.cxx | d6b99a6c955b70e71512762e24498b0b2b13b6d4 | [] | no_license | SuperNEMO-DBD/Commissioning | 2f3a37be7f42ffb3b6c3672a653fa7ef51e06865 | c63dbe03df01e7a8b9d4250048c63b6a4b7065f6 | refs/heads/master | 2023-07-07T19:21:50.706075 | 2023-06-28T13:28:28 | 2023-06-28T13:28:28 | 253,787,170 | 0 | 0 | null | 2020-04-07T19:35:07 | 2020-04-07T12:32:00 | CMake | UTF-8 | C++ | false | false | 11,403 | cxx | show_red.cxx | #include <cstdlib>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
#include <snfee/snfee.h>
#include <snfee/io/multifile_data_reader.h>
#include <sncabling/om_id.h>
#include <sncabling/gg_cell_id.h>
#include <sncabling/label.h>
#include <snfee/data/raw_event_data.h>
#include <snfee/data/cal... |
b26b870d3f0266471baf6bc25092f5ddd68f85fb | 26797ca0efc0e8dce976eecccb1fe9c042a75692 | /PrivateProfile.h | 396c933736c711d0d67f8ca141ff276dc0445f5a | [] | no_license | xken/ImgAnaForDS | 57cf1275ce6840442093248810e9fefa4ce88765 | f0b814fae6c833e9e4d38dc6949c8b0d23553ba8 | refs/heads/master | 2022-04-05T01:47:51.222840 | 2019-10-29T01:41:55 | 2019-10-29T01:41:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 594 | h | PrivateProfile.h | #pragma once
class CPrivateProfile
{
public:
CPrivateProfile(void);
CPrivateProfile(LPCTSTR pszPath);
~CPrivateProfile(void);
private:
CString m_strPath;
public:
void set_path(LPCTSTR path);
int read_int(LPCTSTR section, LPCTSTR entry, int def_val);
double read_dbl(LPCTSTR section, LPCTSTR entry, dou... |
6704f7135e96d9fcc8fb21634a674d8e6860c89f | 5d12283434dc723419fb05ae5303060cc309b044 | /second semester/oop/test2/test2/UI.cpp | 755c63141aa67be11450e8f1079c6ec260b741be | [] | no_license | alexresiga/courses | 8b33591660c887dcea3b6a850aaacf90e204a94d | c1124a848e100f97ca3589f2f7bacc3c8434c220 | refs/heads/master | 2020-04-06T07:40:31.042062 | 2019-05-12T23:58:38 | 2019-05-12T23:58:38 | 157,281,121 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,394 | cpp | UI.cpp | //
// UI.cpp
// test2
//
// Created by Alex Resiga on 17/05/2018.
// Copyright © 2018 Alex Resiga. All rights reserved.
//
#include "UI.hpp"
#include <iostream>
void UI::run()
{
while (true) {
cout<<"\n\n1.add new car\n2.show all cars\n";
int cmd{0};
cout<<"Enter command: ";
ci... |
1a3938b795ef02720d16eca20571ef2c9e3524e3 | c51d671c9b52803060f537d54a231039be4b667c | /proyecto_final/interfaz.cpp | 1554eb0bc6500ebdc791c613c76f2b016ea64670 | [] | no_license | juan-suarez/calculadora-grafica-en-c | d8338b1a1dd635115f4d0d01342d6dc27f581dae | 9d7b9b4a50a7bde4f91ec46afd01fffe5629e219 | refs/heads/main | 2023-04-19T06:31:11.370965 | 2021-05-12T00:27:52 | 2021-05-12T00:27:52 | 366,183,764 | 0 | 0 | null | null | null | null | ISO-8859-10 | C++ | false | false | 14,410 | cpp | interfaz.cpp | #include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
#include<unistd.h>
#include<time.h>
#include "final.cpp"
time_t tiempoahora;
struct tm *mitiempo= localtime(&tiempoahora);
typedef struct //estructura para modulo de usuarios
{
char username[20] = " ";
char pass... |
401da3758150c5b9589d6b3cda16861ef80602e4 | 17e62b549499c33f19c6a6ca7b007c3e9ac4ecfa | /Engine/Src/Camera.h | e53588a67289accb271356a91eac07a82b257661 | [] | no_license | mathias234/3DGameCpp | 04f8daf0015d2394b0af5cf8a607201b1e5454b7 | 995492460918fda8cb184edb20aaa70abd634d06 | refs/heads/master | 2021-04-03T05:03:23.550926 | 2019-05-09T20:07:56 | 2019-05-09T20:07:56 | 124,404,300 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 219 | h | Camera.h | #pragma once
#include "Common.h"
#include <GLFW/glfw3.h>
class Camera
{
private:
public:
Camera();
~Camera();
Vector3f Rotation;
Vector3f Position;
Matrix4f GetViewMatrix();
void Input(GLFWwindow* window);
};
|
07d6784b59c0d47e656171d1a0d32cc8bfe62dfa | b1f4330eff7f24b62e584c77a53285aa16d03319 | /src-hlr-service/base/dbWaitress.h | e8f645ff7e7f2707bb5adb157d2a73821aa5da43 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | andreaguarise/dgas | 62ea27ea850b8b7d8ba5c5cf796bedee80fef35a | 523a0f57e5a4f5dc74ec0985e78051cbca501ac2 | refs/heads/master | 2016-09-06T08:25:58.189796 | 2013-04-19T13:17:55 | 2013-04-19T13:17:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,481 | h | dbWaitress.h | #ifndef dbWaitress_h
#define dbWaitress_h
#include <string>
#include <vector>
#include <fstream>
#include <unistd.h>
#include "glite/dgas/hlr-service/base/db.h"
#include "glite/dgas/common/base/stringSplit.h"
#include "glite/dgas/common/base/int2string.h"
#include "glite/dgas/common/base/libdgas_log.h"
#include "glite... |
964e5174933c0ebf59b250709b78047ea1efe3d6 | 3894c1c0a265dfa91e114ff4df12236454efdb2c | /LeetCode/iter1/c++/InsertDeleteGetRandomO(1).cpp | b81823c7a09b8a31ae0fbd361d8ed3b0386fe595 | [] | no_license | jonathenzc/Algorithm | d770802337a8f4f36b94e42722d4d1954b45f408 | f6b3d1a3f987dd3f38aa38c6de4b37caef0880bc | refs/heads/master | 2020-04-04T00:16:38.780515 | 2020-03-12T16:10:43 | 2020-03-12T16:10:43 | 33,028,640 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,262 | cpp | InsertDeleteGetRandomO(1).cpp | #include <iostream>
#include <vector>
#include <unordered_map>
#include <time.h>
using namespace std;
class RandomizedSet {
public:
/** Initialize your data structure here. */
RandomizedSet() {
srand((int)time(0));
}
/** Inserts a value to the set. Returns true if the set did not already contain the specified ... |
e9f9d64a75ec8e54f1872a3831c7f3bde73f13d2 | 42a8c3839e21c54bc169085732dba27b84029726 | /chap8/chap8-1.1.cpp | 9ab671943b19a3e532bb23ecf6a6fdd8b0c1650d | [] | no_license | whaom/Liang_Aha-Algorithms | 5746854eef3f65098c5f6ab1d43045f58d7d697b | b13b5ee85bbd96f7765d2764ca2b62ea5031c6cd | refs/heads/master | 2022-03-19T11:17:17.074558 | 2019-11-14T04:14:40 | 2019-11-14T04:14:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,850 | cpp | chap8-1.1.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
//图的最小生成树
/*
首先,按照边的权值进行从小到大排序,
每次从剩余的边中选择权值较小且边的两个顶点不在同一个集合内的边(就是不会产生回路的边)
加入到生成树中,直到加入了n-1条边为止
*/
struct edge
{
int u;
int v;
int w;
};//为了方便创建,这里创建了一个结构体来存储边的关系
struct edge e[10];//数组大小根据实际情况来设置,要比m的最大值大1
int n, m;
in... |
7d10e4e3545128c75d0a6955593557436dd68625 | d96ebf4dac46404a46253afba5ba5fc985d5f6fc | /gfx/skia/skia/src/effects/SkHighContrastFilter.cpp | 3e93bb0119dede2e33e68a255da7dd21ad92967c | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | marco-c/gecko-dev-wordified-and-comments-removed | f9de100d716661bd67a3e7e3d4578df48c87733d | 74cb3d31740be3ea5aba5cb7b3f91244977ea350 | refs/heads/master | 2023-08-04T23:19:13.836981 | 2023-08-01T00:33:54 | 2023-08-01T00:33:54 | 211,297,165 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,856 | cpp | SkHighContrastFilter.cpp | #
include
"
include
/
effects
/
SkHighContrastFilter
.
h
"
#
include
"
include
/
core
/
SkColorFilter
.
h
"
#
include
"
include
/
core
/
SkRefCnt
.
h
"
#
include
"
include
/
core
/
SkTypes
.
h
"
#
ifdef
SK_ENABLE_SKSL
#
include
"
include
/
core
/
SkAlphaType
.
h
"
#
include
"
include
/
core
/
SkColorSpace
.
h
"
#
inclu... |
f8f52945fa53c8222e46a0ff32b6f4d01881745d | 5d071b1aee999038b2ee4d491c6590085506378f | /Data Structure and Algorithm/LeetCode/before21April/Letter Case Permutation.cpp | 64a64e1c6bb935db1392a97ae4d6602e718a4058 | [] | no_license | seock04/Uncertainty-Handler | 78361056f8bbf505d8fd137a71534d71d447b8d2 | 981cb829ab3a7390e587548cc1eaee0027a7bd01 | refs/heads/master | 2023-09-01T06:29:33.853000 | 2023-08-29T08:01:08 | 2023-08-29T08:01:08 | 228,979,686 | 4 | 2 | null | 2020-11-05T11:45:07 | 2019-12-19T05:11:30 | C++ | UTF-8 | C++ | false | false | 1,613 | cpp | Letter Case Permutation.cpp |
///////////////////using bit operation ////////////////////////
class Solution {
public:
vector<string> letterCasePermutation(string S) {
int count_alpha = 0;
for(char c : S){
count_alpha += (isalpha(c) > 0);
}
vector<string> result;
for(int mas... |
334955c520f3fbad0834c2744a2d95dde31385d8 | 16be3a6fec1050d9fb71919c7fa2e77c9d2b0ab4 | /DDProject/Client/Codes/Stage2_SkyBall.cpp | 6cc1b2efe6440c11c416ddb3382752db4eb86355 | [] | no_license | beckchul/Jusin3DTeamProject | 3c5c7fd14d8309b57eaf79d20584ae24774a2cd6 | f28fa0316911b19187b276da3e5e6055fed9953c | refs/heads/master | 2021-04-20T20:48:45.439327 | 2020-03-24T13:28:39 | 2020-03-24T13:28:39 | 249,716,053 | 1 | 0 | null | null | null | null | UHC | C++ | false | false | 3,447 | cpp | Stage2_SkyBall.cpp | #include "stdafx.h"
#include "Stage2_SkyBall.h"
#include "Renderer.h"
#include "DataManager.h"
#include "TextureManager.h"
USING(Engine)
CStage2_SkyBall::CStage2_SkyBall(LPDIRECT3DDEVICE9 pGraphicDev)
: CStaticObject(pGraphicDev)
, m_fTime(0.f)
{
}
CStage2_SkyBall::~CStage2_SkyBall()
{
}
HRESULT CStage2_SkyBall::... |
5886cd9fb99ad29f0bbc3fb20a8f9cabd313ddcd | bf1c7016681b5b7c6569a5f20d037e9c5db37854 | /II_semester/oop_1/U4/DigitalFile.h | 61083e6d8a7f000d431b2fc47b3fe91f3b1be568 | [
"Beerware"
] | permissive | dainiusjocas/labs | ae62d4672f4c43d27b4e9d23e126fa9fb9cf58a9 | 25aa0ae2032681dbaf0afd83f3d80bedddea6407 | refs/heads/master | 2021-01-23T23:03:10.271749 | 2011-12-13T15:38:48 | 2011-12-13T15:38:48 | 6,511,648 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 478 | h | DigitalFile.h | #ifndef DIGITALFILECLASS
#define DIGITALFILECLASS
/* Abstrakti klase : nera implementacijos, nera data member'iu */
class DigitalFile
{
public:
DigitalFile(){};
virtual ~DigitalFile(){};
virtual void display() = 0; //spaudinti duomenis i console
virtual void editData... |
443618a6b4897990453bb13a5622898c6553b064 | 087e6c9cfb46ac72ec4347dcfbcfe1d1a7018b9f | /AutonomousTwoWheel/AutonomousTwoWheel.ino | 95466dd0ae8bd4bb0f8c6957ac42800ded89d7ff | [] | no_license | rdockstader/Arduino | af4ddbbd9dfe9f3999056ab1903f74c7b8879381 | 0f7dceb1cad92273a31cd86d2e8047d8be22a7b7 | refs/heads/master | 2021-01-10T05:03:29.412530 | 2015-12-25T06:12:52 | 2015-12-25T06:12:52 | 46,595,297 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,888 | ino | AutonomousTwoWheel.ino | //Toggle Debug Mode (disables motors, and insteads outputs direction, etc. to the the serial monitor).
bool debugMode = true; //True turns on debugMode, false disable debugMode, and will run the motors.
//AFMotor.h will need to be downloaded. Instructions/Link to download @ https://learn.adafruit.com/adafruit-motor-s... |
24f627be2b9d9101a8d990fc5e37553291c82179 | 00add89b1c9712db1a29a73f34864854a7738686 | /packages/utility/distribution/src/Utility_HistogramDistribution.hpp | 9dc27d879cec53b52ffeac16876bb2d8ca094b77 | [
"BSD-3-Clause"
] | permissive | FRENSIE/FRENSIE | a4f533faa02e456ec641815886bc530a53f525f9 | 1735b1c8841f23d415a4998743515c56f980f654 | refs/heads/master | 2021-11-19T02:37:26.311426 | 2021-09-08T11:51:24 | 2021-09-08T11:51:24 | 7,826,404 | 11 | 6 | NOASSERTION | 2021-09-08T11:51:25 | 2013-01-25T19:03:09 | C++ | UTF-8 | C++ | false | false | 11,523 | hpp | Utility_HistogramDistribution.hpp | //---------------------------------------------------------------------------//
//!
//! \file Utility_HistogramDistribution.hpp
//! \author Alex Robinson
//! \brief Histogram distribution class declaration.
//!
//---------------------------------------------------------------------------//
#ifndef UTILITY_HISTOGRAM... |
4eae6ad0cbf8ee941c13d550e364b738ba9e803a | 410f415bd30c0714ed4f6cace3dadda7f8ac414e | /FireBender.h | b5a1eb389a5271fe775006673cf76e5f8a5a06c5 | [] | no_license | mikeen97/p3_lab5_MiguelFlores | 02770410630a2844b4cbebdd61d437256797b0fb | 2bc5016f8eaf0cb1eddb43a9bcf4c89ee7d9f4f2 | refs/heads/master | 2021-08-15T17:37:02.717440 | 2017-11-18T01:02:42 | 2017-11-18T01:02:42 | 111,141,095 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 613 | h | FireBender.h | #include <iostream>
#include <string>
#include <vector>
#include "Persona.h"
#include "PoderEspecial.h"
using namespace std;
#ifndef FIREBENDER_H
#define FIREBENDER_H
class FireBender : public Persona{
protected:
int NumeroCicatrices;
int NumeroVictorias;
PoderEspecial* Poder;
public:
FireBender(string ,st... |
71886484715b61f4f9ba0dfc9b6677f767eb104e | 56649046304376279d71bf6fd82562f7efa293ca | /PracSim/include/filtfunc.h | 6e2ac8e027a4fae2ebbd80dd1805f8940965d5c6 | [] | no_license | zwm152/WirelessCommSystemSimuC-Model | b9b3de73956caa8e872c3d36580ec863962d8ef2 | 7be3562b5a516c73f06c4090b5806ffe7319fe8a | refs/heads/master | 2021-09-23T15:41:08.088030 | 2018-09-25T12:04:04 | 2018-09-25T12:04:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,734 | h | filtfunc.h | //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
// File = filtfunc.h
//
//
#ifndef _FILTFUNC_H_
#define _FILTFUNC_H_
//#include <fstream>
#include "poly_T.h"
//#include "typedefs.h"
class FilterTransFunc
{
public:
FilterTransFunc( void );
FilterTransFunc( int order);
... |
b0d6e2094d169d6f67f3597186ccc6a1dc7d1de4 | 182322f4f2800f851754bb1bcb85fd4f9fc324ea | /pcca/2015_1/1002/pd.cpp | e04fa40ba4bb9eaa4e3a0f613cd4ebb6a44762f8 | [] | no_license | Tocknicsu/oj | 66100fe94d76b6fe8d1bd3019f5ada9d686c1753 | e84d6c87f3e8c0443a27e8efc749ea4b569a6c91 | refs/heads/master | 2021-01-17T08:12:32.510731 | 2016-04-18T02:09:04 | 2016-04-18T02:09:16 | 32,704,322 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,052 | cpp | pd.cpp | #include <bits/stdc++.h>
using namespace std;
struct C{
int x, y, r;
C(){}
C(int _x, int _y, int _r):x(_x),y(_y),r(_r){}
};
inline int squ(int x){
return x * x;
}
void Solve(int n){
vector<C> c;
bool go[n][n];
memset(go, 0, sizeof(go));
for(int i = 0 ; i < n ; i++){
int x, y, r;
... |
482898803ca7ce55f866289030793ece9f42453c | 38e285c91fe584aa5203b5eddd7c124303b2ce92 | /05.chapter/frame.cpp | 698fbd1cd38739211f15943eacbfea5ecf15ef54 | [] | no_license | lookat23/studyAcceleratedCPP | bbab9e43b4c56bbe3f8cbbfc61b6d5cddf18c446 | 2f1c86ee221e340195b9b874c3ef6d426aefed49 | refs/heads/master | 2021-01-02T09:53:50.712119 | 2014-04-06T02:03:11 | 2014-04-06T02:03:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,035 | cpp | frame.cpp | #include <iostream>
#include <string>
#include <vector>
using std::endl;
using std::cin;
using std::cout;
using std::istream;
using std::string;
using std::vector;
using std::max;
typedef vector<string>::size_type st;
void read(istream& in, vector<string>& vec)
{
string s;
while(getline(cin, s))
{
vec.push_back... |
60f8bedd2003f3a50a96a96c1f9f8b43f8993c0b | dd52b00f1deed89fc3263056857dc096e9d593e9 | /lattice.hpp | 609449448a9b16768d6670db72cacface7950b1d | [] | no_license | fulkast/Cantilever_in_channel_flow | ca1aa48c957db024811fcf4b3ee95f2e232549a2 | 7d6c22657a13061ddd422ebdc8ca29d3e39ca9cd | refs/heads/master | 2021-01-10T11:06:21.359923 | 2016-02-17T21:59:41 | 2016-02-17T21:59:41 | 51,243,996 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 24,608 | hpp | lattice.hpp | /**
* @file
* @author Fabian Bösch
* @brief lattice and node
*/
#ifndef LB_LATTICE_HPP_INCLUDED
#define LB_LATTICE_HPP_INCLUDED
#include "velocity_set.hpp"
//#include "distance.hpp"
#include "property_array.hpp"
#include <vector>
#include <fstream>
#include "geometry_2D.hpp"
#include "cylinder_2D.hpp"
#includ... |
628bf3372e80a79a69f20c642f16802ef37275e1 | 087cbbd3099ff8fd8d2051c60461a0458333dbac | /contests/educationRound102/G_fast.cpp | 85ff83e8c7542acc3e89a71c5d25861b64f7afa6 | [] | no_license | 1998factorial/Codeforces | 1046ffb2dbee582191fa59e7290c53e902c0af5c | f5b8139810e0724828e6ce7e26f3f8228589b00a | refs/heads/master | 2021-07-05T21:34:45.053171 | 2021-04-10T06:21:33 | 2021-04-10T06:21:33 | 228,158,437 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,374 | cpp | G_fast.cpp | #pragma GCC optimize(3)
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma comment(linker, "/stack:200000000")
#include <bits/stdc++.h>
#define sz(a) a.size()
using namespace std;
typedef long long ll;
const int mod = 998244353;
const int maxn = 1e5 + 10;... |
d686027bc43e58c9efe7e74b80ce5242639b008b | 3fe5a22f84e76115a04cc7555278e8bee8f829f6 | /src/herd/dev/androiddevices.cpp | 0b92c22a11052da8fac3bbac66ead3c0e257fef1 | [] | no_license | icebald/dormouse | 09a990290a78a75967d4623ab1073a3bc17ef8a7 | df1bb3033a781c5574e17c5dc3d48949f76dae1c | refs/heads/master | 2021-07-09T20:24:48.455939 | 2019-02-12T01:31:40 | 2019-02-12T01:31:40 | 146,267,301 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,163 | cpp | androiddevices.cpp | #include "ui/mainwindow.h"
#include "androiddevices.h"
#include "device.h"
#include "adb/adbhelper.h"
#include "ui/events.h"
#include <QDebug>
#include <thread>
#include <QEvent>
#include <QApplication>
AndroidDevices::AndroidDevices(MainWindow *window) : mHwnd(window), mIsRun(false)
{
}
void AndroidDevices::buildD... |
d21e00d5d91eb831f5bfae42b183d9e9c64f54e8 | b4af26ef6994f4cbb738cdfd182e0a992d2e5baa | /source/leetcode/2047/hyo.cpp | 0ca3b2377c044f6d14f936b9b8d10a81cab3d997 | [] | no_license | wisest30/AlgoStudy | 6819b193c8e9245104fc52df5852cd487ae7a26e | 112de912fc10933445c2ad36ce30fd404c493ddf | refs/heads/master | 2023-08-08T17:01:12.324470 | 2023-08-06T11:54:15 | 2023-08-06T11:54:15 | 246,302,438 | 10 | 17 | null | 2021-09-26T13:52:18 | 2020-03-10T13:02:56 | C++ | UTF-8 | C++ | false | false | 1,014 | cpp | hyo.cpp | class Solution {
public:
int countValidWords(string sentence) {
istringstream is(sentence);
string s;
int ret = 0;
while(is >> s) {
bool valid = true;
bool h = false, p = false;
for(auto i = 0; i < s.size(); ++i) {
if(isdigit(s[i]))... |
9dab4f3258c59c7beeae0ef860f5eefd4e3e62b7 | 5710451582f05d78fc6226ee8784fa9cd74a2ef6 | /Project3/QueuedWorkItems/TypeTable.cpp | 466d9612facfaac610ad7a33797485421d0a5da7 | [] | no_license | sidmarkjoseph/C--piggybank | 360c549d5683465c6997510d07e224690d5f7360 | 29041aaf9a7a5f5d399d983e30f5a3cd7818387f | refs/heads/master | 2021-01-19T03:27:43.344073 | 2016-07-23T18:04:32 | 2016-07-24T01:40:02 | 55,188,509 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 190 | cpp | TypeTable.cpp | #include "TypeTable.h"
int main()
{
TypeTable a;
std::vector<std::string> str = { "sid", "mark" };
std::string b = "SJBHS";
a.addRecord(b, str);
a.show();
std::getchar();
} |
9ae7cbe7fd0e6648c0c9553efe149ca5114b47ef | 463f8b7ac1e5c91d783ee06374a3a8555e56c338 | /RocketEngine/RocketEngine/src/core/EngineSubsystem.h | cee8d2af1dd05c700cbee252c87aacde7b32c913 | [] | no_license | dale-findlay/rocket-engine | db3e1954b37fa9fd70094649f628515c22c852e3 | 66d7b912f2de49050f96ffc4c865238a6199c932 | refs/heads/main | 2023-08-07T16:21:30.698681 | 2023-08-06T12:37:43 | 2023-08-06T12:37:43 | 342,523,437 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 743 | h | EngineSubsystem.h | #pragma once
#include "core/CoreMinimal.h"
#include "core/CoreSubsystem.h"
namespace Rocket
{
class RkEngineSubsystem : public RkObject, CoreSubsystem
{
RK_OBJECT_BODY()
public:
RkEngineSubsystem();
virtual bool Init() = 0;
virtual void Shutdown() = 0;
bool IsInitialized() const {
return m_Initializ... |
aa88fc30eac52228b40c1f48c4e69f8d3db3a1e5 | 12c2776a23f81d67ebebddbb663c5b9a89342764 | /src/GUI/Lib/EventObserver.cpp | c875bb8c99ae5095a606086f139d34fb02ef4069 | [] | no_license | kxait/pp_bank | 8444dc7d5291db9fbe803081c676896aa5576d44 | 9b673f55cb2b190994643f794637d55949ee7d1f | refs/heads/master | 2023-05-13T18:58:49.954012 | 2021-06-11T11:16:14 | 2021-06-11T11:16:14 | 365,543,881 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 629 | cpp | EventObserver.cpp | #include "EventObserver.h"
#include "../../Log/UserLogger.h"
UserLogger* logger;
EventObserver::EventObserver(EventObserver * par)
:parent(par) {
logger = UserLogger::getLogger();
}
void EventObserver::emitParent(std::string a, long b) {
#ifdef DEBUG
logger->logInfo(UserLogger::getString({"event wystrzel... |
15e20e96d6eb3544529d2876cd424b49ef1b9e01 | 466613e0ea5e663dd6bc03a443206179bf3ef8a8 | /code/src/utility/ShaderLibrary.hpp | d84113f2225b78b0e07615ee05a8d6c939b43d35 | [] | no_license | alexanderraymartin/AnglerExperience | 3c10062e32602f43fb35ad2ec4e751d5de7c9972 | 9153695f977f501ff7ed70d745c9e4c99c32d0ab | refs/heads/master | 2020-03-07T08:32:26.465390 | 2018-03-25T19:55:29 | 2018-03-25T19:55:29 | 127,381,354 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,657 | hpp | ShaderLibrary.hpp | #pragma once
#ifndef SHADERLIBRARY_H_
#define SHADERLIBRARY_H_
#include <unordered_map>
#include <vector>
#include <string>
#include "common.h"
#include "Program.h"
using namespace std;
class ShaderLibrary{
// This is a gray area of no referencing outside of ./utility because I think friend declarations
// apply by ... |
5cea8f24c1bcd265c368674eb81478594feb94ef | a20bc243e4a63bb08f84660051ca96e5c1e332c1 | /src/Actor.h | 77db146aa2ec81473d5473fedd380753456f447b | [] | no_license | zach2good/MetalRL | 9a7bab0f6e7dfd00edf60cd15fca6d2dbaa48f59 | 3b54b10e4428b6b4ee343f482b47c0c65dab10b1 | refs/heads/master | 2020-04-02T09:58:08.905083 | 2018-11-16T22:46:50 | 2018-11-16T22:46:50 | 154,318,841 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,618 | h | Actor.h | //
// Created by Zach Toogood on 13/11/2018.
//
#pragma once
#include "common.h"
#include "Log.h"
class Actor : public GameObject
{
public:
Actor(const char* name, int x, int y, int ch, const char* color)
: name(name), GameObject(x, y, ch, color)
{
}
void step(std::shared_ptr<Log> log) override... |
a2f216b957335bd759ef4429853faf17b71c0922 | c8653c6404103867f04479ad0c47662adb19c29d | /ConsoleApplication6/ConsoleApplication6/Rectangle.cpp | 7be47db0bc6caab745b1f8d4f79bdc7b1eb7f448 | [] | no_license | Piter17/asasasas | 37f3c91057d39b15d340a8aba381d28521ddb92a | 0f93ee8eb1e8a9c0ae75e41bf17dc8d96ac2a642 | refs/heads/master | 2021-01-01T16:02:19.302963 | 2017-07-20T14:23:36 | 2017-07-20T14:23:36 | 97,760,815 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,669 | cpp | Rectangle.cpp | #include "stdafx.h"
#include "Rectangle.h"
Rectangle::Rectangle(coordType X, coordType Y, coordType W, coordType H, rotType Rotation, eTexture TextureId)
{
_rect = { X, Y, W, H };
_rot = Rotation;
_color = al_map_rgb(255, 255, 255);
SetTexture(TextureId);
}
Rectangle::Rectangle(coordRect Rect, rotTyp... |
4240de6c8f3b6479b9b1164916ddbad6c53f9165 | b62b5d5b5a5b76624bf6395c22066ae6c51950f0 | /PanelGUI.cpp | 4f1d9257c71bc2ccc7a86329a943c20204259fe0 | [] | no_license | CalicoSpartan/ImmerseEngine | 9268a7cb7cd24a7a157e82d0ce05f0b975a68ba9 | b2f6b587c27aee07785f8bb4dc5b92e7335e507d | refs/heads/master | 2021-07-16T03:46:52.517990 | 2018-10-27T02:10:32 | 2018-10-27T02:10:32 | 135,935,705 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,096 | cpp | PanelGUI.cpp | #include "PanelGUI.h"
#include "ImmerseText.h"
PanelGUI::PanelGUI(float x, float y, float width, float height)
{
meshData.Vertices.resize(4);
meshData.Indices32.resize(6);
// Position coordinates specified in NDC space.
meshData.Vertices[0] = GeometryGenerator::Vertex(
x, y - height, 0.0f,
0.0f, 0.0f, -1... |
e624d5fb2e685e4a2286611f61aa4ffb8536762e | 3525c13d3995f48640feb113e28787884eb2be47 | /Networking/Assignment2-ConcurrentBlackJack/Assignment2-ConcurrentBlackJack/BlackjackGame.cpp | e3f2e0c65a83ac177e258fb90b45322a6ba9b8fa | [] | no_license | james-zinger/HumberCollegeGAMEWinter2014 | 5d144ad52e06cc20abf07a123484b4cfaf47b1bc | a4f8e1bef685acbc6a418459d3043181bfa807d2 | refs/heads/master | 2021-05-27T09:12:33.037316 | 2014-03-29T01:25:06 | 2014-03-29T01:25:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,937 | cpp | BlackjackGame.cpp | ///////////////////////////////////////////////////////////
// BlackjackGame.cpp
// Implementation of the Class BlackjackGame
// Created on: 14-Mar-2014 5:29:06 PM
// Original author: James
///////////////////////////////////////////////////////////
#include "BlackjackGame.h"
#include "TCPGameServer.h"
#inclu... |
5d3bc854900024ff01fa875af3c3d29f672a8a92 | 1e8ecbf2948996076dff5a80a96b19e72a9a5714 | /QuickHullLib/ConvexHullSolver.h | 5d03887480aca534732423449d0a790a6692697d | [] | no_license | drakeor/Convex-Hull-Solver | a19a23098522357a255a7fe8cff0f3e80d795f6a | 18b3df17df16fe544d6fe8f2cd0b9bc5f7c19d47 | refs/heads/master | 2021-04-12T04:20:42.612483 | 2018-03-19T08:50:59 | 2018-03-19T08:50:59 | 125,768,002 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 679 | h | ConvexHullSolver.h | #pragma once
#include <vector>
#include "HullPoint.h"
#include "HullLine.h"
class ConvexHullSolver
{
protected:
long totalNumberOfSteps;
long pointCount;
std::vector<HullPoint> points;
std::vector<HullLine> lines;
long cPoint1;
long cPoint2;
bool isConvex;
public:
ConvexHullSolver(std::vector<HullPoint> P... |
0e021db73ad0060e095832300b91573aef522bee | 29b9127ce7ac961fd673061d3d6f4b3ea8d22fb9 | /src/collisionDetection/engine/CollisionDetection.h | 64a53aa47c07085536f405821c0d6418729db1e1 | [
"Zlib"
] | permissive | MostafaHassan/Robograde | 460379d7af19d0f30ab6995e43540d9103a6325d | 2c9a7d0b8250ec240102d504127f5c54532cb2b0 | refs/heads/master | 2023-07-15T19:37:49.943853 | 2015-10-10T21:06:35 | 2015-10-10T21:06:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,347 | h | CollisionDetection.h | /**************************************************
Zlib Copyright 2015 Ola Enberg
***************************************************/
#pragma once
#include "../ICollisionDetection.h"
#include <memory/Alloc.h>
#include "../entity/Entity.h"
#include "../detection/IntersectionTestLookupTable.h"
class CollisionDetect... |
a4f83aba60a9efcd5808754db147385f2812a326 | 2524f2b9bc706e881229d65a2b10c1adc8ec5a6e | /RobotArdu/src/test/resources/ast/actions/arduino_rgb_led_test.ino | 4cf40a7419d1c437d034fa67a464d55a6bc5b273 | [
"MIT",
"GPL-3.0-only",
"Apache-2.0"
] | permissive | rohit-bindal/openroberta-lab | 13831724073cc355db19ad804010924ade09a1b2 | 7ed823538e34b3dbee93a902b61630c39f8909a3 | refs/heads/master | 2020-12-18T11:42:30.766451 | 2020-01-21T16:57:58 | 2020-01-21T16:57:58 | 235,364,711 | 3 | 0 | Apache-2.0 | 2020-01-21T14:42:53 | 2020-01-21T14:42:53 | null | UTF-8 | C++ | false | false | 968 | ino | arduino_rgb_led_test.ino | // This file is automatically generated by the Open Roberta Lab.
#include <math.h>
#include <NEPODefs.h>
unsigned int ___item;
unsigned int ___item2;
unsigned int ___item3;
int _led_red_R = 5;
int _led_green_R = 6;
int _led_blue_R = 3;
void setup()
{
Serial.begin(9600);
pinMode(_led_red_R, OUTPUT);
pinM... |
abff00e5d050088f4be356958fba67aa71666656 | d549434afc05a64daf758b82c98ca23fcc43876e | /map_elem.cpp | 357ffe4d00ee6f6c70a8e5089dce4de7dbd5ac36 | [] | no_license | badoll/Sokoban | 3a6dcf6f007115e5a8c1eb9612871f01b2c0ffe6 | 5a185827d2e6e3f2011b941928568c77c759cbbf | refs/heads/master | 2020-11-27T04:15:12.118518 | 2019-12-20T16:48:01 | 2019-12-20T16:48:01 | 229,300,434 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 952 | cpp | map_elem.cpp | #include "map_elem.h"
void
map_elem::move(int dir)
{
switch (dir) {
case UP: {
y--;
break;
}
case DOWN: {
y++;
break;
}
case LEFT: {
x--;
break;
}
case RIGHT: {
x++;
}... |
ab4acec243d401123a460054db5ea871127536a3 | 5b2953ac5e58d502e682e34931a45657d71c2744 | /SFCGAL/include/SFCGAL/MultiPolygon.h | b9c71279717180ee2b7f85bc6a047a67f389a009 | [] | no_license | cuulee/sfcgal-with-postgis | 3817bae920dbf0da5d8ede6dd653670170a15836 | 25bbaf83316f62208da7544e8f6dab816fa0d293 | refs/heads/master | 2020-03-12T12:54:45.005274 | 2012-06-11T09:33:54 | 2012-06-11T09:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 962 | h | MultiPolygon.h | #ifndef _SFCGAL_MULTIPOLYGON_H_
#define _SFCGAL_MULTIPOLYGON_H_
#include <vector>
#include <boost/assert.hpp>
#include <SFCGAL/Polygon.h>
#include <SFCGAL/GeometryCollection.h>
namespace SFCGAL {
/**
* A MultiPolygon in SFA.
*
* @ŧodo add polygon() etc.
*/
class MultiPolygon : public GeometryCollection {
... |
91a456bb3f846157d3bbd03636315d1bab8c999a | 81bf548ee9a4a9bc506782ba4b8e5632d16bf86a | /src/sdktools/maya/valveMaya/VsVguiWindow.cpp | 572f5a14d23591f00ba523292e8c2d2d8f3f2add | [] | no_license | hackovh/- | f6b83e6a1c514f8b452d4d14f932d452e4b4110d | 72286069ef9dd5975448cc6fe4c5911734edabe6 | refs/heads/master | 2020-05-19T06:12:56.778623 | 2019-05-04T07:57:52 | 2019-05-04T07:57:52 | 184,868,637 | 4 | 1 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 15,333 | cpp | VsVguiWindow.cpp | //===== Copyright © 1996-2006, Valve Corporation, All rights reserved. ======//
//
// Base class for windows that draw vgui in Maya
//
//===========================================================================//
#ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later.
#define _WIN32_WINNT 0... |
a1aa8100890886383bc78f4227d6def1373ad6a0 | 9844e4c7b35441c7d90e1f244edf6d8d8a45082a | /SrandEngine/SrandEngine/ECS/Component.h | 17be139ce4ddc10111340bbf2541ce9f684eb8e1 | [] | no_license | DarkFace99/GameProject01_2020 | 3cff971baa5ad4bf97cef7f78990e2855edd611f | e59bbfead0cfb29f75db9e07db09bcd49db7aba5 | refs/heads/master | 2023-04-24T19:23:54.962671 | 2021-05-14T23:48:49 | 2021-05-14T23:48:49 | 288,905,490 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 300 | h | Component.h | #pragma once
class GameObject;
class Component {
public:
Component() = default;
virtual ~Component() = default;
GameObject* gameObject = nullptr; // The game object that this component will be attached
virtual bool Init() { return true; }
virtual void Draw() {}
virtual void Update() {}
};
|
17446b18db7c88eda9ccf1519d31042f4c3c13e4 | 6cd12c10c123ab178c282fa8848d4eda03a45284 | /HardCodeNode/HardCodeNode.ino | 87462ab4c4efed62b96bb5a00a9045fb0acb3c25 | [] | no_license | nileshkulkarni/StreelLighting | 3ff8c7ca893e3350d5d154e15542771b65b43144 | bb4e9bce466da03403f265f83f99c6b8fdbe6af7 | refs/heads/master | 2021-01-01T19:39:10.755896 | 2015-04-23T03:54:08 | 2015-04-23T03:54:08 | 34,185,660 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,400 | ino | HardCodeNode.ino | /**
* Copyright (c) 2009 Andrew Rapp. All rights reserved.
*
* This file is part of XBee-Arduino.
*
* XBee-Arduino 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
* ... |
276a3e8623a7236661aa56f2bfaba98dd60bd590 | 9a66d8339de7cf8debcd79b2d6bc4b669245087e | /郭明君/第3次-2017310232-郭明君-金融实验/6-22.cpp | 304658e8b17f0cd77b23b4c00d963556afdbbb2c | [] | no_license | jinrongsyb17/homework-space | 391183e268f1a09e586a18e4cbe2735b59173074 | f0c8fe0c17c6fb08c55d967899d9b26a1782b0e3 | refs/heads/master | 2020-03-28T14:40:12.876141 | 2019-01-02T04:57:27 | 2019-01-02T04:57:27 | 148,510,153 | 9 | 18 | null | 2018-09-18T11:05:38 | 2018-09-12T16:33:38 | C++ | GB18030 | C++ | false | false | 552 | cpp | 6-22.cpp | // 6-22.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include<iostream>
#include<string>
using namespace std;
void reverse(char*s, char*t)
{
char c;
if (s < t)
{
c = *s;
*s = *t;
*t = c;
reverse(s += 1, t -= 1);
}
}
void reverse(char*s)
{
reverse(s, s + strlen(s) - 1);
}
void m... |
ea74c32e232c2d48ac945b542ce3a53926eff12a | a6cabbd591226887c4047a984388b823d962e377 | /include/MiniGLM.hpp | 8713c1b5c0d965c791a3c3aa41cf61d4fa44f0d9 | [] | no_license | PatrickPurcell/MiniRenderer | f6fea4f50cf0ad63216ef86271f4a1d26e64e5f5 | cc5e887445230adb5e0d324b04d27ad7b2e622de | refs/heads/master | 2021-09-04T02:50:02.400453 | 2018-01-14T23:14:40 | 2018-01-14T23:14:40 | 92,783,191 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,399 | hpp | MiniGLM.hpp |
#pragma once
#include "MiniDefines.hpp"
namespace glm {
template <size_t C>
using vec = std::array<float, C>;
using vec2 = vec<2>;
using vec3 = vec<3>;
using vec4 = vec<4>;
#define VEC_OPERATOR(OPERATOR) \
template <Z C> ... |
6e6cbcaf51cfa1be16c28d107b1a545e855c2229 | 8b8faa1ae046741473ea81f17fbbf4b55f7cc45d | /ConsoleApplication2/Enemy5.cpp | a8e7f7035ebbfa8fefda4d0e01598f87d244d5ea | [] | no_license | Vicen04/Space-Game-test | 634e476c41c3c7029a4415ad0d7793954fc9851e | b3ceb3da592319bba8925d9a4d6ceb3ad7778225 | refs/heads/master | 2023-02-10T02:00:09.549787 | 2021-01-02T19:03:08 | 2021-01-02T19:03:08 | 291,293,628 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,164 | cpp | Enemy5.cpp | #include "Enemy5.h"
#include "Texture2D.h"
#include "TransformComponent.h"
#include "MeshComponent.h"
#include "RigidbodyComponent.h"
#include "CameraComponent.h"
#include "MaterialAsset.h"
#include "Player.h"
Enemy5::Enemy5(shared_ptr<MeshComponent> mesh, shared_ptr<TransformComponent> transform, shared_ptr<Rigidbody... |
fcb82468f46c53bfc9787a0670348eb51fb4912f | 59e10fdac99debbbcfef3190e7a0467b6e30fd26 | /Plane-Game-master/Source/CMovingObject.cpp | 8681f95a847492517572e429d8c2645501ee4044 | [] | no_license | VaduvaAlexandraMihaela/Plane-Game | f47b35d4e6098f8d9a3c6bcab2ff6ae585384c87 | d69f5b3ba39f8bfece263944e21d8d11f07911b3 | refs/heads/master | 2022-11-19T19:54:29.016812 | 2020-07-11T11:16:27 | 2020-07-11T11:16:27 | 278,846,010 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 261 | cpp | CMovingObject.cpp | #include "CMovingObject.h"
CMovingObject::CMovingObject()
{
}
CMovingObject::~CMovingObject()
{
//delete m_pSprite;
}
void CMovingObject::Update(float dt)
{
// Update sprite
m_pSprite->update(dt);
}
void CMovingObject::Draw()
{
m_pSprite->draw();
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.