repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
agrishutin/teambook | contrib/su4/cpp2tex/include/sql/result.h | <gh_stars>10-100
/*
* This file [sql/result.h] is part of the “libtamias” library
* Copyright (c) 2007-2009 <NAME>, <NAME>
*
* This program 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 ... |
agrishutin/teambook | contrib/su4/cpp2tex/include/data/map.h | <filename>contrib/su4/cpp2tex/include/data/map.h<gh_stars>10-100
/*
* This file [data/map.h] is part of the “libtamias” library
* Copyright (c) 2007-2010 <NAME>, <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*... |
agrishutin/teambook | contrib/su4/cpp2tex/include/data/vector_implementation.h | /*
* This file [data/vector_implementation.h] is part of the “libtamias” library
* Copyright (c) 2007-2010 <NAME>, <NAME>
*
* This program 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 2... |
agrishutin/teambook | contrib/su4/cpp2tex/include/wtf/bsql.h | /*
* libtamias/wtf/bsql.h — some improvements for sql api
*/
#pragma once
#include <cstdarg> // Hmmm... Wtf?
#include "../basic/exception.h"
#include "../basic/string.h"
#include "../basic/types.h"
#include "../data/pair.h"
#include "../sql/connection.h"
#include "../sql/driver.h"
#include "../sql/result.h"
#includ... |
agrishutin/teambook | contrib/su4/cpp2tex/include/io/format.h | /*
* This file [io/format.h] is part of the “libtamias” library
* Copyright (c) 2007-2010 <NAME>, <NAME>
*
* This program 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 2 of the License, ... |
agrishutin/teambook | contrib/su4/cpp2tex/include/sql/exception.h | <reponame>agrishutin/teambook
/*
* This file [sql/exception.h] is part of the “libtamias” library
* Copyright (c) 2007-2009 <NAME>, <NAME>
*
* This program 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;... |
agrishutin/teambook | contrib/su4/cpp2tex/include/data/tree_rbst.h | /*
* This file [data/tree_rbst.h] is part of the “libtamias” library
* Copyright (c) 2007-2010 <NAME>, <NAME>
*
* This program 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 2 of the Lice... |
jjcasmar/cgal | Combinatorial_map/include/CGAL/internal/Combinatorial_map_utility.h | <gh_stars>1-10
// Copyright (c) 2010-2011 CNRS and LIRIS' Establishments (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org)
//
// $URL$
// $Id$
// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial
//
// Author(s) : <NAME> <<EMAIL>>
//
#ifndef CGAL_INTERNAL_COMBINATORI... |
jjcasmar/cgal | Intersections_3/include/CGAL/Intersections_3/internal/intersection_3_1_impl.h | // Copyright (c) 1997-2010
// Utrecht University (The Netherlands),
// ETH Zurich (Switzerland),
// INRIA Sophia-Antipolis (France),
// Max-Planck-Institute Saarbruecken (Germany),
// and Tel-Aviv University (Israel). All rights reserved.
//
// This file is part of CGAL (www.cgal.org)
//
// $URL$
// $Id$
// SPDX-Licen... |
jjcasmar/cgal | Surface_mesh_simplification/doc/Surface_mesh_simplification/Concepts/GetCost.h | <filename>Surface_mesh_simplification/doc/Surface_mesh_simplification/Concepts/GetCost.h
/*!
\ingroup PkgSurfaceMeshSimplificationConcepts
\cgalConcept
The concept `GetCost` describes the requirements for the <I>policy function object</I>
which gets the <I>collapse cost</I> of an edge.
The cost returned is a `boost::... |
jjcasmar/cgal | Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Isotropic_remeshing/remesh_impl.h | // Copyright (c) 2015 GeometryFactory (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL$
// $Id$
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
//
//
// Author(s) : <NAME>
#ifndef CGAL_POLYGON_MESH_PROCESSING_REMESH_IMPL_H
#define CGAL_POLYGON_MESH... |
jjcasmar/cgal | Polyhedron/include/CGAL/draw_polyhedron.h | // Copyright (c) 2018-2020 ETH Zurich (Switzerland).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL$
// $Id$
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
//
// Author(s) : <NAME> <<EMAIL>>
#ifndef CGAL_DRAW_POLYHEDRON_H
#define CGAL_DRAW_POLYHEDRON_H
#... |
jjcasmar/cgal | BGL/include/CGAL/boost/graph/generators.h | <gh_stars>1-10
// Copyright (c) 2014, 2017 GeometryFactory (France). All rights reserved.
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org)
//
// $URL$
// $Id$
// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial
//
// Author(s) : <NAME>,
// <NAME>
#ifndef CGAL_BOOST_... |
jjcasmar/cgal | Combinatorial_map/include/CGAL/Combinatorial_map_fwd.h | <reponame>jjcasmar/cgal<filename>Combinatorial_map/include/CGAL/Combinatorial_map_fwd.h
// Copyright (c) 2010-2011 CNRS and LIRIS' Establishments (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org)
//
// $URL$
// $Id$
// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial
//... |
leohu2011/Phoice_Proper | experiment/userInfo.h | //
// userInfo.h
// experiment
//
// Created by Sina on 16/6/28.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#ifndef userInfo_h
#define userInfo_h
#import <UIKit/UIKit.h>
@interface userInfo : NSObject
@property (nonatomic, copy) NSString * user_name;
@property (nonatomic, copy) NSString * user_passwor... |
leohu2011/Phoice_Proper | Pods/Headers/Public/DZNPhotoPickerController/DZNPhotoDisplayViewCell.h | <filename>Pods/Headers/Public/DZNPhotoPickerController/DZNPhotoDisplayViewCell.h<gh_stars>1-10
//
// DZNPhotoDisplayViewCell.h
// DZNPhotoPickerController
// https://github.com/dzenbot/DZNPhotoPickerController
//
// Created by <NAME> on 10/5/13.
// Copyright (c) 2014 DZN Labs. All rights reserved.
// Licence: MIT... |
leohu2011/Phoice_Proper | experiment/tableViewController.h | <reponame>leohu2011/Phoice_Proper<gh_stars>1-10
//
// tableViewController.h
// experiment
//
// Created by Sina on 16/6/17.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#ifndef tableViewController_h
#define tableViewController_h
#import <UIKit/UIKit.h>
#import "FolderArray.h"
#import "detailViewController... |
leohu2011/Phoice_Proper | experiment/UserLoginController.h | //
// UserLoginController.h
// experiment
//
// Created by Sina on 16/6/28.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#ifndef UserLoginController_h
#define UserLoginController_h
#import <UIKit/UIKit.h>
@interface userLoginController : UIViewController
@end
#endif /* UserLoginController_h */
|
leohu2011/Phoice_Proper | Pods/Headers/Public/DRCellSlideGestureRecognizer/DRCellSlideGestureRecognizer.h | //
// DRCellSlideGestureRecognizer.h
// DRCellSlideGestureRecognizer
//
// Created by <NAME> on 12/5/15.
//
//
#import <UIKit/UIKit.h>
#import "DRCellSlideAction.h"
@interface DRCellSlideGestureRecognizer : UIPanGestureRecognizer <UIGestureRecognizerDelegate>
- (void)addActions:(id)actions;
@end
|
leohu2011/Phoice_Proper | experiment/tableViewCell.h | <filename>experiment/tableViewCell.h
//
// tableViewCell.h
// experiment
//
// Created by <NAME> on 16/5/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#ifndef tableViewCell_h
#define tableViewCell_h
#import <UIKit/UIKit.h>
#import "photoItem.h"
@interface tableViewCell : UITableViewCell
//typedef void ... |
leohu2011/Phoice_Proper | experiment/startUpViewController.h | <gh_stars>1-10
//
// startUpViewController.h
// experiment
//
// Created by Sina on 16/6/17.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#ifndef startUpViewController_h
#define startUpViewController_h
#import <UIKit/UIKit.h>
@interface startUpController : UIViewController<UINavigationControllerDelegate>
... |
leohu2011/Phoice_Proper | experiment/detailViewController.h | //
// detailView.h
// experiment
//
// Created by <NAME> on 17/5/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#ifndef detailView_h
#define detailView_h
#import <UIKit/UIKit.h>
@class rootViewController, photoItem;
@protocol detailViewDelegate <NSObject>
-(void) changeCellInfoWithText: (NSString*) str... |
leohu2011/Phoice_Proper | experiment/FolderArray.h | //
// Folder_Photo_Array.h
// experiment
//
// Created by Sina on 16/6/16.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#ifndef Folder_Photo_Array_h
#define Folder_Photo_Array_h
#import <UIKit/UIKit.h>
//folderArray could contain both folder_array and AVUnit items.
@interface folderArray : NSObject<NSCodi... |
leohu2011/Phoice_Proper | experiment/rootViewController.h | <gh_stars>1-10
//
// rootViewController.h
// experiment
//
// Created by <NAME> on 16/5/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#ifndef rootViewController_h
#define rootViewController_h
#import <UIKit/UIKit.h>
#import "tableViewCell.h"
#import "photoItem.h"
#import "detailViewController.h"
@inter... |
leohu2011/Phoice_Proper | experiment/AVUnit.h | <reponame>leohu2011/Phoice_Proper<filename>experiment/AVUnit.h
//
// AVUnit.h
// experiment
//
// Created by Sina on 16/6/17.
// Copyright © 2016年 <NAME>. All rights reserved.
//
#ifndef AVUnit_h
#define AVUnit_h
#import <UIKit/UIKit.h>
@interface AVUnit : NSObject
@property (nonatomic, copy) NSString *small_add... |
leohu2011/Phoice_Proper | Pods/Headers/Public/DZNPhotoPickerController/DZNPhotoServiceConstants.h | <gh_stars>1-10
//
// DZNPhotoServiceConstants.h
// DZNPhotoPickerController
// https://github.com/dzenbot/DZNPhotoPickerController
//
// Created by <NAME> on 2/14/14.
// Copyright (c) 2014 DZN Labs. All rights reserved.
// Licence: MIT-Licence
//
#import <Foundation/Foundation.h>
#import "DZNPhotoPickerControlle... |
leohu2011/Phoice_Proper | Pods/Headers/Public/DZNPhotoPickerController/DZNPhotoSearchResultsController.h | //
// DZNPhotoSearchResultsController.h
// DZNPhotoPickerController
// https://github.com/dzenbot/DZNPhotoPickerController
//
// Created by <NAME> on 10/5/13.
// Copyright (c) 2014 DZN Labs. All rights reserved.
// Licence: MIT-Licence
//
#import <UIKit/UIKit.h>
@class DZNPhotoTag;
/** A view controller used t... |
leohu2011/Phoice_Proper | experiment/photoItem.h | <reponame>leohu2011/Phoice_Proper<gh_stars>1-10
//
// photoItem.h
// experiment
//
// Created by <NAME> on 16/5/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#ifndef photoItem_h
#define photoItem_h
#import <UIKit/UIKit.h>
#import <AVKit/AVKit.h>
#import <AVFoundation/AVFoundation.h>
#import "SCSiriWavefo... |
leohu2011/Phoice_Proper | experiment/networkRequest.h | <gh_stars>1-10
//
// networkRequest.h
// experiment
//
// Created by <NAME> on 5/7/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#ifndef networkRequest_h
#define networkRequest_h
#import <UIKit/UIKit.h>
#import "userInfo.h"
@interface networkRequest : NSObject
typedef void (^completionBlock)(BOOL resu... |
averov90/circular-buffer-Queue | Queue.h | <filename>Queue.h
#pragma once
#include <cstring>
#include <stdexcept>
template <typename T>
class Queue {
T *items, *itemse, *pick, *place;
unsigned int capacitance, stored_count;
public:
Queue(unsigned int capacity = 8):capacitance(capacity) {
if (!capacity) throw std::invalid_argument("Capacity must be at l... |
averov90/circular-buffer-Queue | CircularBuffer.h | <reponame>averov90/circular-buffer-Queue
#pragma once
#include <cstring>
#include <ostream>
#include <stdexcept>
#include <iterator>
template <typename T>
class CircularBuffer {
T *items, *itemse, *pick, *place;
unsigned int capacitance, stored_count;
public:
CircularBuffer(unsigned int capacity):capacitance(cap... |
software-foundations/learning-c | 03_functions/04_maximum.c | <filename>03_functions/04_maximum.c
#include <stdio.h>
// Function prototype
int maximum(int, int, int);
int main(void)
{
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
printf("Greather: %d\n", maximum(a, b, c));
return 0;
}
// Function definition
int maximum(int x, int y, int z)
{
int max = x;
if (y > max)
m... |
software-foundations/learning-c | 01_basics/05_aritmetic_operators.c | #include <stdio.h>
#include <stdlib.h>
int main(void) {
float a = 5;
float b = 2;
int c = 5;
int d = 2;
printf("a + b -> %f\n", a + b);
printf("a - b -> %f\n", a - b);
printf("a * b -> %f\n", a * b);
printf("a / b -> %f\n", a / b);
printf("a module b -> %d\n", c % d);
return 0;
} |
software-foundations/learning-c | 03_functions/06_srand.c | #include <stdlib.h>
#include <stdio.h>
#include <time.h>
int generate_20_random_numbers(void);
int main(void)
{
unsigned int seed;
unsigned int timestamp;
printf("### seed: ");
scanf("%u", &seed);
generate_20_random_numbers();
srand(seed);
timestamp = time(NULL);
srand(timestamp);
printf("### Timesta... |
software-foundations/learning-c | 02_flow_control/07_break.c | <reponame>software-foundations/learning-c<gh_stars>0
#include <stdio.h>
#include <stdlib.h>
// continue behavior in
// 1 - while
// 2 - for
// 3 - do while
int main(void) {
int i = 0;
int j = 0;
int k = 0;
printf("while\n");
while (i <= 5) {
printf("\ni == %d", i);
i++;
if (i == 3) {
pr... |
software-foundations/learning-c | 01_basics/07_relational_operators.c | #include <stdio.h>
#include <stdlib.h>
int main(void) {
printf("%d\n", 1 > 0);
printf("%d\n\n", 1 < 0);
printf("%d\n", 1 >> 0);
printf("%d\n\n", 1 << 0);
printf("%d\n", 1 >> 1);
printf("%d\n", 1 << 1);
return 0;
} |
software-foundations/learning-c | 03_functions/05_rand.c | <reponame>software-foundations/learning-c
#include <stdio.h>
#include <stdlib.h>
// Prototype
int module(int dividend, int divisor);
int main(void)
{
int i;
int j;
int k;
for (i = 1; i <= 5; i++)
{
printf("i %d -> %d\n", i, rand());
}
for (j = 1; j <= 20; j ++)
{
int random = rand();
int module = ra... |
software-foundations/learning-c | 02_flow_control/01_if.c | #include <stdio.h>
#include <stdlib.h>
int main(void) {
// true -> != 0
// false -> == 0
if (-1) {
printf("-1\n");
}
if (0) {
printf("if 0 -> true\n");
} else {
printf("if 0 -> false\n");
}
if (0.5) {
printf("0.5\n");
}
if (1) {
printf("1\n");
}
// if nested
if (1)... |
software-foundations/learning-c | 03_functions/01_statement_and_invocation.c | <filename>03_functions/01_statement_and_invocation.c
#include <stdio.h>
#include <stdlib.h>
int accumulate(int value) {
int accumulated = 0;
for (int i = 0; i <= value; i++) {
accumulated += i;
}
return accumulated;
}
int main(void) {
int result;
result = accumulate(10);
printf("accumulate(10) =... |
software-foundations/learning-c | 01_basics/12_logical_operators.c | #include <stdio.h>
#include <stdlib.h>
int main(void) {
int a = 0;
int b = 10;
if (a == 0 && b == 10) {
printf("a == 0 && b == 10\n");
}
if (a == 0 || b == 0) {
printf("a == 0 or b == 0\n");
}
if (!(a == 10)) {
printf("!(a == 10)");
}
return 0;
} |
software-foundations/learning-c | 03_functions/03_square.c | #include <stdio.h>
int square(int);
int main(void)
{
int x;
for (x = 1; x <= 10 ; x ++)
{
printf("-> %d\n", square(x));
}
return 0;
}
int square(int number)
{
return number * number;
} |
software-foundations/learning-c | 01_basics/09_assignment_operators.c | #include <stdio.h>
#include <stdlib.h>
int main(void) {
int var_int = 0;
var_int += 3;
var_int -= 1;
var_int *= 5;
var_int /= 2;
var_int %= 4;
printf("var_int %d\n", var_int);
return 0;
} |
software-foundations/learning-c | 02_flow_control/05_switch.c | <gh_stars>0
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int var = 30;
switch (var) {
case 0:
printf("var == 0");
break;
case 10:
printf("var == 10");
break;
case 20:
printf("var == 20");
break;
default:
printf("var is not 0, 10, or 20!");
}
return 0;
} |
software-foundations/learning-c | 02_flow_control/02_conditional_operator.c | #include <stdio.h>
#include <stdlib.h>
int main(void) {
printf("%s", 1 > 0 ? "true\n" : "false\n");
1 > 0 ? printf("true\n") : printf("false\n");
return 0;
} |
software-foundations/learning-c | 01_basics/11_math.c | <reponame>software-foundations/learning-c
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
void srand_usage(void);
int main(void) {
printf("sqrt(25) == %f\n\n", sqrt(25));
printf("2 ^ 5 == %f\n\n", pow(2, 5));
printf("log(2.718282) == %f\n\n", log(2.718282));
printf("log10(1.0) == %f\n\n", log10(1)... |
software-foundations/learning-c | 02_flow_control/04_for.c | #include <stdio.h>
#include <stdlib.h>
int line_break() { printf("---------\n"); }
// counter-controled repetition
int main(void) {
int i;
int sum;
// ++i works the same
for (i = 1; i <= 5; i++) {
printf("%d\n", i);
}
line_break();
// --i works the same
for (i = 5; i > 0; i--) {
printf("%d\... |
software-foundations/learning-c | 01_basics/02_input_user_and_math_operations.c | #include <stdio.h>
int main(void) {
int a;
float b;
int c = 3;
float d = 4;
float result_float;
int result_int;
printf("a: ");
scanf("%d", &a);
printf("b: ");
scanf("%f", &b);
result_float = a + b;
printf("a + b: %f\n", result_float);
result_int = a + c;
printf("a + c: %d\n", result_int... |
software-foundations/learning-c | 03_functions/02_prototype.c | #include <stdio.h>
#include <stdlib.h>
// function prototypes
int sum_10(int value);
float multiply_by_1_5(int value);
void say_hello();
int main(void) {
printf("sum_10(5) == %d\n\n", sum_10(5));
printf("multiply_by_1_5(2) == %f\n\n", multiply_by_1_5(2));
say_hello();
return 0;
}
int sum_10(int value) { ret... |
software-foundations/learning-c | 01_basics/04_2_auto_casting.c | #include <stdio.h>
#include <stdlib.h>
int main(void) {
float a = 1;
int b = 2;
// with variables
printf("%f\n", a + b);
printf("%d\n", 1 + b);
// with values
printf("%f\n", 1.0 + 2);
printf("%d\n", 1 + 2);
} |
software-foundations/learning-c | 01_basics/04_1_casting_types.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void) {
char string_from_int[2];
char string_from_float[10];
printf("%d\n", (int)1.0);
printf("%f\n", (float)1);
printf("%.2f\n", (float)2);
sprintf(string_from_int, "%d", 3);
printf("%s\n", string_from_int);
sprintf(string_from_flo... |
software-foundations/learning-c | 02_flow_control/03_while.c | <reponame>software-foundations/learning-c<gh_stars>0
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int i = 0;
int j = 0;
int k = -1;
int l = 10;
// counter-controled repetition
while (i < 10) {
printf("%d\n", i);
i = i + 1;
}
printf("\n");
while (j < 10) {
printf("%d\n", j)... |
software-foundations/learning-c | 01_basics/03_arithmetic.c | <reponame>software-foundations/learning-c
#include <stdio.h>
#include <stdlib.h>
int main(void) {
float a;
float b;
float c;
float d;
float result;
a = 1;
b = 2;
c = 3;
d = 4;
result = a + b + c + d;
printf("1: %f\n", result);
result = a - b - c - d;
printf("2: %f\n", result);
result = ... |
software-foundations/learning-c | 01_basics/06_equality_operators.c | #include <stdio.h>
#include <stdlib.h>
int main(void) {
// 1 if true
// 0 if false
printf("%d\n", 1 == 2);
printf("%d\n", 1 == 1);
printf("%d\n", 1 != 2);
printf("%d\n", 1 != 1);
return 0;
} |
software-foundations/learning-c | 01_basics/10_increment_decrement_operators.c | <gh_stars>0
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int var = 0;
// pos increment
var++;
var--;
// pre increment
--var;
++var;
printf("var %d", var);
return 0;
} |
software-foundations/learning-c | 01_basics/08_types.c | #include <stdio.h>
#include <stdlib.h>
int main(void) {
int var_int = 0;
double var_double = 4.2;
long double var_long_double = 4.476;
float var_float = .846;
char var_char_3[3] = "one";
char var_char_4[4] = "zero";
unsigned long int var_unsigned_long_int = 12345678912345678;
long int var_long_int = -1... |
agegold/openpilot-7 | selfdrive/camerad/cameras/sensor2_i2c.h | <filename>selfdrive/camerad/cameras/sensor2_i2c.h
struct i2c_random_wr_payload start_reg_array_ar0231[] = {{0x301A, 0x91C}};
struct i2c_random_wr_payload stop_reg_array_ar0231[] = {{0x301A, 0x918}};
struct i2c_random_wr_payload start_reg_array_imx390[] = {{0x0, 0}};
struct i2c_random_wr_payload stop_reg_array_imx390[] ... |
agegold/openpilot-7 | selfdrive/camerad/cameras/camera_qcom2.h | #pragma once
#include <cstdint>
#include <media/cam_req_mgr.h>
#include "selfdrive/camerad/cameras/camera_common.h"
#include "selfdrive/common/util.h"
#define FRAME_BUF_COUNT 4
class CameraState {
public:
MultiCameraState *multi_cam_state;
CameraInfo ci;
std::mutex exp_lock;
int exposure_time;
bool dc_... |
chrispla/propacc | realtime/ddsp_tilde/signal_in_out_base.c | <reponame>chrispla/propacc<filename>realtime/ddsp_tilde/signal_in_out_base.c
#include "m_pd.h"
static t_class *pan_tilde_class;
typedef struct _pan_tilde
{
t_object x_obj;
t_sample f_pan;
t_sample f;
t_inlet *x_in2;
t_inlet *x_in3;
t_outlet *x_out;
} t_pan_tilde;
t_int *pan_tilde_perform(t_int *w)
{
t... |
chrispla/propacc | realtime/ddsp_tilde/ddsp_model.h | #pragma once
#include <torch/script.h>
#include <torch/torch.h>
#include <string>
#define DEVICE torch::kCPU
#define CPU torch::kCPU
class DDSPModel
{
private:
torch::jit::script::Module m_scripted_model;
int m_loaded;
public:
DDSPModel();
int load(std::string path);
void perform(float *pitch, fl... |
chrispla/propacc | realtime/ddsp_tilde/m_pd.h | /* Copyright (c) 1997-1999 <NAME>.
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
#ifndef __m_pd_h_
#if defined(_LANGUAGE_C_PLUS_PLUS) || defined(__cplusplus)
extern "C" {
#endif
#define PD_MAJOR_VERSION 0
#define PD_MIN... |
borguss2014/Arduino-Snake-Game | Data_Structs.h | #ifndef Data_Structs_h
#define Data_Structs_h
#include "Arduino.h"
enum GameState
{
PLAYING,
STOP
};
enum Direction
{
UP,
DOWN,
LEFT,
RIGHT,
MIDDLE
};
struct Position
{
unsigned int x = 0;
unsigned int y = 0;
};
struct Segment
{
unsigned int x = 0;
unsigned int y = 0;
};
#endif
|
borguss2014/Arduino-Snake-Game | Button.h | <filename>Button.h
#ifndef Button_h
#define Button_h
#include "Arduino.h"
class Button
{
public:
Button(int pin);
void checkStatus();
void update();
void onPress();
void onRelease();
void setOnClickListener(
void (*clickFunction)(int),
int direction
);
private:
boo... |
borguss2014/Arduino-Snake-Game | Food.h | #ifndef Food_h
#define Food_h
#include "Arduino.h"
#include "LedControl.h"
#include "Data_Structs.h"
class Food
{
public:
Food(LedControl* lc, int rows, int columns);
void generateNewLocation();
Position getPosition();
void draw();
void clearImage();
void setDrawn(bool status);
void rese... |
borguss2014/Arduino-Snake-Game | Snake.h | <filename>Snake.h
#ifndef Snake_h
#define Snake_h
#include "Arduino.h"
#include "Food.h"
#include "LedControl.h"
#include "Data_Structs.h"
class Snake
{
public:
Snake(LedControl* lc, int rows, int columns);
bool checkCollision(Food* food);
bool checkSelfCollision();
void eat(Food* food);
void... |
Beehivenetwork/lightningcash-gold | src/chainparamsseeds.h | #ifndef BITCOIN_CHAINPARAMSSEEDS_H
#define BITCOIN_CHAINPARAMSSEEDS_H
/**
* List of fixed seed nodes for the lightningcash network
* AUTOGENERATED by contrib/seeds/generate-seeds.py
*
* Each line contains a 16-byte IPv6 address and a port.
* IPv4 as well as onion addresses are wrapped inside a IPv6 address accordi... |
Mogassam/qxtglobalshortcut | src/xcbkeyboard.h | <reponame>Mogassam/qxtglobalshortcut<gh_stars>10-100
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial L... |
JLouhela/jumpy-demo | Classes/TutorialScene.h | /// Copyright (c) 2019 <NAME>
///
/// 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, ... |
JLouhela/jumpy-demo | Classes/BeeCycles.h | <filename>Classes/BeeCycles.h
/// Copyright (c) 2019 <NAME>
///
/// 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, ... |
JLouhela/jumpy-demo | Classes/TutorialOverlay.h | <filename>Classes/TutorialOverlay.h
/// Copyright (c) 2019 <NAME>
///
/// 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... |
JLouhela/jumpy-demo | Classes/AppDelegate.h | /// Copyright (c) 2019 <NAME>
///
/// 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, ... |
JLouhela/jumpy-demo | Classes/InputHandler.h | /// Copyright (c) 2019 <NAME>
///
/// 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, ... |
JLouhela/jumpy-demo | Classes/Bunny.h | <filename>Classes/Bunny.h<gh_stars>0
/// Copyright (c) 2019 <NAME>
///
/// 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 t... |
JLouhela/jumpy-demo | Classes/BeeCycle.h | /// Copyright (c) 2019 <NAME>
///
/// 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, ... |
JLouhela/jumpy-demo | Classes/Bee.h | /// Copyright (c) 2019 <NAME>
///
/// 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, ... |
JLouhela/jumpy-demo | Classes/JumpyScene.h | /// Copyright (c) 2019 <NAME>
///
/// 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, ... |
santiramos27/Flix | Flix/View Controllers/MoviesViewController.h | <gh_stars>0
//
// MoviesViewController.h
// Flix
//
// Created by <NAME> on 6/23/21.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface MoviesViewController : UIViewController
@end
NS_ASSUME_NONNULL_END
|
santiramos27/Flix | Flix/View Controllers/UpcomingInfoViewController.h | //
// UpcomingInfoViewController.h
// Flix
//
// Created by <NAME> on 6/25/21.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface UpcomingInfoViewController : UIViewController
@property (nonatomic, strong) NSDictionary *movie;
@end
NS_ASSUME_NONNULL_END
|
Jazz86/Group4 | src/Header/ResponseEncoder.h | <filename>src/Header/ResponseEncoder.h
// Copyright (c) 2021, 鍾淯丞, 周杰仕, 林仁鴻. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GROUP4_SRC_HEADER_RESPONSEENCODER_H_
#define GROUP4_SRC_HEADER_RESPONSEENCODER_H_
#include <memory>
#include... |
Jazz86/Group4 | src/Header/UploadStream.h | // Copyright (c) 2021, 鍾淯丞, 周杰仕, 林仁鴻. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GROUP4_HEADER_UploadStream_H_
#define GROUP4_HEADER_UploadStream_H_
#include <fstream>
#include <string>
// write file to local may use a lock fil... |
Jazz86/Group4 | src/Header/FileOperator.h | // Copyright (c) 2021, 鍾淯丞, 周杰仕, 林仁鴻. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GROUP4_SRC_HEADER_FILEOPERATOR_H_
#define GROUP4_SRC_HEADER_FILEOPERATOR_H_
#include <string>
#include "APIHandler.h"
#include "OperateData.h"
#in... |
Jazz86/Group4 | src/Header/HttpListener.h | <reponame>Jazz86/Group4<filename>src/Header/HttpListener.h
// Copyright (c) 2021, 鍾淯丞, 周杰仕, 林仁鴻. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GROUP4_HEADER_HTTPLISTENER_H_
#define GROUP4_HEADER_HTTPLISTENER_H_
#include <memory.h>
... |
Jazz86/Group4 | src/Header/MainManager.h | // Copyright (c) 2021, 鍾淯丞, 周杰仕, 林仁鴻. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef Group4_Header_MainManager_H_
#define Group4_Header_MainManager_H_
#include <arpa/inet.h>
#include <netinet/in.h>
#include <signal.h>
#include <unis... |
Jazz86/Group4 | src/Header/OperateData.h | <filename>src/Header/OperateData.h
// Copyright (c) 2021, 鍾淯丞, 周杰仕, 林仁鴻. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GROUP4_SRC_OPERATEDATA_H_
#define GROUP4_SRC_OPERATEDATA_H_
#include <string>
#include <unordered_map>
// This ... |
Jazz86/Group4 | src/Header/LogHandle.h | // Copyright (c) 2021, 鍾淯丞, 周杰仕, 林仁鴻. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GROUP4_HEADER_LogHandle_H_
#define GROUP4_HEADER_LogHandle_H_
#include <string>
// write error message to local file
class LogHandle {
public:
... |
Jazz86/Group4 | src/Header/ResponseHandler.h | // Copyright (c) 2021, 鍾淯丞, 周杰仕, 林仁鴻. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GROUP4_SRC_HEADER_RESPONSEHANDLER_H_
#define GROUP4_SRC_HEADER_RESPONSEHANDLER_H_
#include <memory>
#include <string>
#include "OperateData.h"
//... |
Jazz86/Group4 | src/Header/RequestParser.h | <gh_stars>0
// Copyright (c) 2021, 鍾淯丞, 周杰仕, 林仁鴻. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GROUP4_SRC_REQUESTPARSER_H_
#define GROUP4_SRC_REQUESTPARSER_H_
#include <memory>
#include <string>
#include "OperateData.h"
// used ... |
Jazz86/Group4 | src/Header/Authenticator.h | // Copyright (c) 2021, 鍾淯丞, 周杰仕, 林仁鴻. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef GROUP4_HEADER_AUTHENTICATOR_H_
#define GROUP4_HEADER_AUTHENTICATOR_H_
#include <string>
// used to check if request is send from valid user
// whe... |
ProgrammableMatter/particle-firmware | src/avr-common/utils/uc-core/communication-protocol/CommunicationProtocolPackageTypesCtors.h | /**
* Created by <NAME> on 05.07.16
*
* In buffer construction of protocol package related implementation.
*/
#pragma once
#include "./CommunicationProtocol.h"
#include "./CommunicationProtocolPackageTypes.h"
#include "uc-core/particle/Globals.h"
#include "uc-core/parity/Parity.h"
#include "uc-core/configuration/... |
ProgrammableMatter/particle-firmware | src/avr-common/utils/uc-core/synchronization/SynchronizationTypesCtors.h | <reponame>ProgrammableMatter/particle-firmware
/**
* @author <NAME> 24.09.2016
*
* Synchronization types constructors.
*/
#pragma once
#include "uc-core/configuration/synchronization/SynchronizationTypesCtors.h"
#include "uc-core/configuration/synchronization/Synchronization.h"
#include "uc-core/configuration/com... |
ProgrammableMatter/particle-firmware | src/avr-common/utils/uc-core/scheduler/SchedulerTypes.h | /*
* @author <NAME> 18.09.2016
*
* Scheduler state definition.
*/
#pragma once
#include <stdint.h>
#include "uc-core/particle/types/ParticleStateTypes.h"
#include "uc-core/configuration/Scheduler.h"
typedef struct SchedulerTask {
uint16_t startTimestamp;
uint16_t endTimestamp;
uint16_t reScheduleDela... |
ProgrammableMatter/particle-firmware | src/avr-common/utils/uc-core/configuration/interrupts/ActuationTimer.h | /**
* @author <NAME> 20.07.2016
*
* Actuator interrupt related configuration.
*/
#pragma once
#include "TimerCounter0.h"
#include "uc-core/configuration/Actuation.h"
/**
* actuation interrupt macros
*/
#if defined(__AVR_ATtiny1634__) || defined(__AVR_ATmega16__)
# define __ACTUATOR_COMPARE_VALUE_SETUP(compa... |
ProgrammableMatter/particle-firmware | src/avr-common/utils/uc-core/particle/types/DiscoveryPulseCountersCtors.h | /*
* @author <NAME> 09.10.2016
*
* Discovery types constructor implementation.
*/
#pragma once
#include "DiscoveryPulseCountersTypes.h"
#include "uc-core/discovery/DiscoveryTypesCtors.h"
/**
* constructor function
* @param o the object to construct
*/
void constructDiscoveryPulseCounters(DiscoveryPulseCounter... |
ProgrammableMatter/particle-firmware | src/avr-common/utils/uc-core/particle/types/AlertsTypesCtors.h | <reponame>ProgrammableMatter/particle-firmware
/*
* @author <NAME> 09.10.2016
*
* Alerts types constructor implementation.
*/
#pragma once
#include "AlertsTypes.h"
/**
* constructor function
* @param o the object to construct
*/
void constructAlerts(Alerts *const o) {
o->isRxBufferOverflowEnabled = false;... |
ProgrammableMatter/particle-firmware | src/avr-common/utils/uc-core/evaluation/EvaluationTypesCtors.h | <gh_stars>1-10
/*
* @author <NAME> 15.10.2016
*
* Evaluation types constructor implementation.
*/
#pragma once
#include "EvaluationTypes.h"
#include "uc-core/configuration/Evaluation.h"
#ifdef EVALUATION_ENABLE_FLUCTUATE_CPU_FREQUENCY_ON_PURPOSE
/**
* constructor function
* @param o the object to construct
**... |
ProgrammableMatter/particle-firmware | src/avr-common/utils/common/common.h | <gh_stars>1-10
/**
* @author <NAME> 2011
*/
#pragma once
#include <inttypes.h>
#include "PortInteraction.h"
#include <stdbool.h>
#include <stddef.h>
#define forever while(1)
#define SEI SREG setBit bit(SREG_I)
#define CLI SREG unsetBit bit(SREG_I)
/**
* memory barrier to suppress code motion around the barrier
... |
ProgrammableMatter/particle-firmware | src/avr-common/utils/uc-core/synchronization/SynchronizationTypes.h | <filename>src/avr-common/utils/uc-core/synchronization/SynchronizationTypes.h
/**
* @author <NAME> 24.09.2016
*
* Synchronization related types.
*/
#pragma once
#include <stdint.h>
#include "BasicCalculationTypes.h"
#include "uc-core/configuration/synchronization/Synchronization.h"
#include "LeastSquareRegression... |
ProgrammableMatter/particle-firmware | src/avr-common/utils/uc-core/configuration/Scheduler.h | <reponame>ProgrammableMatter/particle-firmware<gh_stars>1-10
/**
* @author <NAME> 11.10.2016
*
* Scheduler related arguments.
*/
#pragma once
/**
* Size of the task array the scheduler keeps track of.
*/
#define SCHEDULER_MAX_TASKS 5
/**
* Task array id arguments:
*/
#define SCHEDULER_TASK_ID_ENABLE_ALERTS (... |
ProgrammableMatter/particle-firmware | src/avr-common/utils/uc-core/communication-protocol/Interpreter.h | /**
* Created by <NAME> on 25.05.2016
*
* Interpreter implementation.
*/
#pragma once
#include "CommunicationProtocolTypes.h"
#include "Commands.h"
#include "uc-core/parity/Parity.h"
#include "uc-core/time/Time.h"
/**
* Interprets reception in wait for being enumerate states.
* @param rxPort the port to interp... |
ProgrammableMatter/particle-firmware | src/avr-common/utils/uc-core/actuation/ActuationTypesCtors.h | /**
* @author <NAME> 12.07.2016
*
* Actuation types constructor implementation.
*/
#pragma once
#include "ActuationTypes.h"
/**
* constructor function
* @param o reference to the object to construct
*/
void constructActuators(Actuators *const o) {
o->northLeft = false;
o->northRight = false;
o->e... |
ProgrammableMatter/particle-firmware | src/avr-common/utils/uc-core/configuration/Actuation.h | /**
* @author <NAME> 20.07.2016
*
* Actuation related arguments.
*/
#pragma once
/**
* ~75% actuation duty cycle
*/
#define ACTUATION_COMPARE_VALUE_POWER_STRONG ((UINT8_MAX / 4) * 3)
/**
* ~50% actuation duty cycle
*/
#define ACTUATION_COMPARE_VALUE_POWER_MEDIUM (UINT8_MAX / 2)
/**
* ~25% actuation duty cyc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.