text
stringlengths
9
948k
/* Copyright (c) 2017, Massachusetts Institute of Technology All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condition...
/* This file is a part of MIR project. Copyright (C) 2018-2021 Vladimir Makarov <vmakarov.gcc@gmail.com>. */ /* C to MIR compiler. It is a four pass compiler: o preprocessor pass generating tokens o parsing pass generating AST o context pass checking context constraints and augmenting AST o generation ...
/** @file * @brief Internal API for Generic Attribute Profile handling. */ /* * Copyright (c) 2016 Intel Corporation * * 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://...
/*! * MIT License * * Copyright (c) 2019 Eric Yonng<120453674@qq.com> * * 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 * ...
/**************************************************************************** * * SciTech OS Portability Manager Library * * ======================================================================== * * The contents of this file are subject to the SciTech MGL Public * License Version 1.0 (the "L...
/********************************************************************** Copyright (c) 2020 MIPT Module Name: Keywords.h Abstract: Author: JulesIMF Last Edit: 17.12.2020 19:53 Edit Notes: **********************************************************************/ static char const* _begin =...
#ifndef TEST_3D_CUBE_H #define TEST_3D_CUBE_H static float g_cube_vert_data[] = { -1.0f,-1.0f,-1.0f, // triangle 1 : begin -1.0f,-1.0f, 1.0f, -1.0f, 1.0f, 1.0f, // triangle 1 : end 1.0f, 1.0f,-1.0f, // triangle 2 : begin -1.0f,-1.0f,-1.0f, -1.0f, 1.0f,-1.0f, // triangle 2 : end 1.0f,-1.0f, ...
#import <UIKit/UIKit.h> @interface UIFont (XLsn0w) /** * 根据不同的设置返回不同的字体 */ + (UIFont *)fontWithDevice:(CGFloat)fontSize; /** * 导航栏根据不同的设置返回不同的字体 */ + (UIFont *)navItemFontWithDevice:(CGFloat)fontSize; /** * 根据两行文字设置返回不同的字体 */ + (UIFont *)fontWithTwoLine:(CGFloat)fontSize; /** * 保险页面cell字体 */ + (UIFont *)in...
/* * The MIT License (MIT) * * Copyright (c) 2014, Erick Lavoie, Faiz Khan, Sujay Kathrotia, Vincent * Foley-Bourgon, Laurie Hendren * * 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 ...
/* Copyright (c) 2015 Nordic Semiconductor. All Rights Reserved. * * The information contained herein is property of Nordic Semiconductor ASA. * Terms and conditions of usage are described in detail in NORDIC * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. * * Licensees are granted free, non-transferable use...
// Copyright 2010 Todd Ditchendorf // // 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...
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #ifndef STORAGE_LEVELDB_TABLE_MERGER_H_ #define STORAGE_LEVELDB_TABLE_MERGER_H_ namespace leveldb { c...
/* Public domain, 2014, Tobias Ulmer <tobiasu@tmux.org> */ /* Test for bug introduced in 4.4BSD modf() on sparc */ #include <math.h> #define BIGFLOAT (5e15) /* Number large enough to trigger the "big" case */ int main(void) { double f, i; f = modf(BIGFLOAT, &i); if (i != BIGFLOAT) return 1; if (f != 0.0) r...
// Copyright (c) 2009-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_WALLET_CRYPTER_H #define BITCOIN_WALLET_CRYPTER_H #include <serialize.h> #include <support/allocators/secure...
// // CommonCommandLogic.h // SDKAutoInsertPlugin // // Created by Robin on 2018/10/14. // Copyright © 2018 TendCloud. All rights reserved. // #import <Foundation/Foundation.h> #import <XcodeKit/XcodeKit.h> @interface CommonCommandLogic : NSObject<XCSourceEditorCommand> - (void)insertEditableWithInvocation:(XC...
// // Created by Andrey Ryabov on 3/25/20. // #pragma once #include <cstdlib> #include <cstdint> #include <stdexcept> #include <iostream> namespace fasttext { template<typename T_> class MemVector { public: T_ * begin() { return _data; } T_ * end() { return _data + _size; } ...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2009 The University of Tennessee a...
// Copyright 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CC_TEST_FAKE_PROXY_H_ #define CC_TEST_FAKE_PROXY_H_ #include <memory> #include "base/single_thread_task_runner.h" #include "cc/trees/layer_tree_...
#ifndef WASTEBOX_H #define WASTEBOX_H #include <QList> #include <QPoint> #include <QPixmap> #include <QWidget> QT_BEGIN_NAMESPACE class QDragEnterEvent; class QDropEvent; class QMouseEvent; QT_END_NAMESPACE class WasteBox : public QWidget { Q_OBJECT public: WasteBox( QWidget *parent = 0); protected: vo...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <ABI38_0_0React/components/view/ViewProps.h> namespace ABI38_0_0facebook { namespace ABI38_0_0React { clas...
// Copyright (c) 2018 The Bitcoin Core developers // Copyright (c) 2017 The Raven Core developers // Copyright (c) 2018 The Rito Core developers // Copyright (c) 2019 The Kimora Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" @class NSArray; @protocol BSProtobufSchemaBuilder <NSObject> - (void)addRepeatingField:(const char *)arg1 containsClass:(Class)arg2 forTag:(long long)arg3; - ...
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ZIRCON_SYSTEM_ULIB_FS_JOURNAL_ENTRY_VIEW_H_ #define ZIRCON_SYSTEM_ULIB_FS_JOURNAL_ENTRY_VIEW_H_ #include <zircon/types.h> #include <fbl/macros.h>...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
#pragma once #include "buffer.h" #include "vector.h" #include "camera.h" #include "area_light.h" #include "material.h" #include "edge.h" struct Sampler { virtual ~Sampler() {} virtual void begin_sample(int sample_id) {}; virtual void next_camera_samples(BufferView<TCameraSample<float>> samples) = 0; ...
/* * -*- mode: c-mode; c-file-style: python -*- */ #ifndef Py_REGEXPR_H #define Py_REGEXPR_H #ifdef __cplusplus extern "C" { #endif /* * regexpr.h * * Author: Tatu Ylonen <ylo@ngs.fi> * * Copyright (c) 1991 Tatu Ylonen, Espoo, Finland * * Permission to use, copy, modify, distribute, and sell this software *...
#include <stdio.h> #include <stdlib.h> #include <pthread.h> int N; int P; int **a; int **b; int **c; void *thread_function(void *arg) { int id = *(int *)arg; int start = id * (double) N / P; int end = ((id + 1) * (double) N / P) < N ? ((id + 1) * (double) N / P) : N; for (int i = 0; i < N; i++) { for (int ...
#ifndef BLOCKSTMNT_H #define BLOCKSTMNT_H #include<ASTNode.h> #include<ASTList.h> #include<ASTLeaf.h> #include "list" using std::list; class BlockStmnt:public ASTList { public: BlockStmnt(list<ASTNode*> c); virtual ~BlockStmnt(); ReturnType* eval(Environment& env); protected: pr...
/* * Copyright (C) 2015-2015 Intel Corporation. * SPDX-License-Identifier: MIT */ /* $OpenBSD: err.h,v 1.10 2006/01/06 18:53:04 millert Exp $ */ /* $NetBSD: err.h,v 1.11 1994/10/26 00:55:52 cgd Exp $ */ /*- * Copyright (c) 1993 * The Regents of the University of California. All rights reserved. * * Redistribu...
/* pcfread.c FreeType font driver for pcf fonts Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by Francesco Zappa Nardelli Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software")...
/** ****************************************************************************** * @file stm32f7xx_hal_dsi.h * @author MCD Application Team * @brief Header file of DSI HAL module. ****************************************************************************** * @attention * * Copyright (c) 2017 S...
/* $Id: vars3.c,v 1.4 2001/12/24 01:09:07 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */ /************************************************************************/ /* */ /* (C) Copyright 1989-99 Venue. All Rights Reserved. */ /* Manufactured in the United States of America. */ /* */ /***...
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "IDEScriptingProxy.h" @interface PBXBuildSettingWrapper : IDEScriptingProxy { } @end
/********************************************************************** Audacity: A Digital Audio Editor BatchPrefs.h Dominic Mazzoni James Crook **********************************************************************/ #ifndef __AUDACITY_BATCH_PREFS__ #define __AUDACITY_BATCH_PREFS__ #include <wx/defs.h> ...
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:52:25 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/ActivityAchievements.framework/ActivityAchievements * classdump-dyld is licensed under GPLv3, Copyrig...
/* * kernel/command/cmd-mkdir.c * * Copyright(c) 2007-2021 Jianjun Jiang <8192542@qq.com> * Official site: http://xboot.org * Mobile phone: +86-18665388956 * QQ: 8192542 * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "...
/* * Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "...
// // FUMakeupSupModel.h // FULiveDemo // // Created by 孙慕 on 2019/3/11. // Copyright © 2019年 FaceUnity. All rights reserved. // #import <Foundation/Foundation.h> #import "FUSingleMakeupModel.h" NS_ASSUME_NONNULL_BEGIN @interface FUMakeupSupModel : NSObject @property (nonatomic, copy) NSString *name; @property (...
// ext/tsp_kit/ruby_class_priority_queue.c #include "ruby_class_priority_queue.h" //////////////////////////////////////////////////////////////////////////////////////////////////// // // Ruby bindings for training data arrays - the deeper implementation is in // struct_priority_queue.c // VALUE priority_queue_as...
/* +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2015 The PHP Group | +---------...
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_MM_TYPES_H #define _LINUX_MM_TYPES_H #include <linux/mm_types_task.h> #include <linux/auxvec.h> #include <linux/list.h> #include <linux/spinlock.h> #include <linux/rbtree.h> #include <linux/rwsem.h> #include <linux/completion.h> #include <linux/cpumask.h> #include...
// // UsageManager.h // SpriteBuilder // // Created by Viktor on 12/2/13. // // #import <Foundation/Foundation.h> extern NSString * kSbRegisteredEmail; extern NSString * kSbUserID; @interface UsageManager : NSObject { NSString* _userID; } @property (readonly) NSString * userID; - (void) registerUsage; - (vo...
/**************************************************************************** **************************************************************************** *** *** This header was automatically generated from a Linux kernel header *** of the same name, to make information necessary for userspace to *** call i...
/* * Copyright (c) 2019-2020, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * */ #include <string.h> #include "tfm_ns_mailbox.h" /* The pointer to NSPE mailbox queue */ static struct ns_mailbox_queue_t *mailbox_queue_ptr = NULL; static inline void clear_queue_slot_empty(uint8_t idx...
#ifndef FPGA_X2P_RR_GRAPH_UTILS_H #define FPGA_X2P_RR_GRAPH_UTILS_H void init_rr_graph(INOUTP t_rr_graph* local_rr_graph); void alloc_rr_graph_net_rr_sources_and_sinks(t_rr_graph* local_rr_graph); void alloc_rr_graph_net_rr_terminals(t_rr_graph* local_rr_graph); void alloc_rr_graph_route_static_structs(t_rr_graph* ...
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:48:26 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/Home.framework/Home * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos....
/* Copyright (c) 20XX 9front * * 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, distri...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE124_Buffer_Underwrite__char_declare_loop_45.c Label Definition File: CWE124_Buffer_Underwrite.stack.label.xml Template File: sources-sink-45.tmpl.c */ /* * @description * CWE: 124 Buffer Underwrite * BadSource: Set data pointer to before the allocated memory buffer ...
#ifndef __HISAX_ISAC_H__ #define __HISAX_ISAC_H__ #include <linux/kernel.h> #include "fsm.h" #include "hisax_if.h" #define TIMER3_VALUE 7000 #define MAX_DFRAME_LEN_L1 300 #define ISAC_IOM1 0 struct isac { void *priv; u_long flags; struct hisax_d_if hisax_d_if; struct FsmInst l1m; struct FsmTimer timer; u8 mo...
/******************** (C) COPYRIGHT 2015 STMicroelectronics ******************** * Company : STMicroelectronics * Author : MCD Application Team * Description : STMicroelectronics Device Firmware Upgrade Extension Demo * Version : V3.0.5 * Date : 01-September-2015 *...
/* Copyright (c) 2019-21 M. Grady Saunders * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above * copyright notice, this list of conditions and the ...
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_X86_ATOMIC_H #define _ASM_X86_ATOMIC_H #include <linux/compiler.h> #include <linux/types.h> #include <asm/alternative.h> #include <asm/cmpxchg.h> #include <asm/rmwcc.h> #include <asm/barrier.h> /* * Atomic operations that C can't guarantee us. Useful for * resour...
#ifndef OPENTISSUE_DYNAMICS_SPH_INTEGRATORS_SPH_INTEGRATORS_H #define OPENTISSUE_DYNAMICS_SPH_INTEGRATORS_SPH_INTEGRATORS_H // // OpenTissue Template Library // - A generic toolbox for physics-based modeling and simulation. // Copyright (C) 2008 Department of Computer Science, University of Copenhagen. // // OTTL is l...
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2014 Phalcon Team (http://www.phalconphp.com) | +------...
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 12:26:27 PM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/SoundAutoConfig.framework/SoundAutoConfig * classdump-dyld is licensed under GPLv3, Copyright © 2013...
/** *@file ShotgunBullet.h *@author 翟晨昊 *@date 6/6/2020 */ #ifndef _SHOTGUNBULLET_H_ #define _SHOTGUNBULLET_H_ #include "Bullet.h" /** *@brief 霰弹枪子弹 *@author 翟晨昊 */ class ShotgunBullet :public Bullet { public: CREATE_FUNC(ShotgunBullet); /** *@brief 初始化 *@author 翟晨昊 */ bool init() override; /** *@brief ...
// SPDX-License-Identifier: GPL-2.0-only /* * linux/fs/buffer.c * * Copyright (C) 1991, 1992, 2002 Linus Torvalds */ /* * Start bdflush() with kernel_thread not syscall - Paul Gortmaker, 12/95 * * Removed a lot of unnecessary code and simplified things now that * the buffer cache isn't our primary cache - A...
/*- * Copyright (c) 1992, 1993, 1994 Henry Spencer. * Copyright (c) 1992, 1993, 1994 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Henry Spencer. * * Redistribution and use in source and binary forms, with or without * m...
#ifndef test129_Class_Defined__ #define test129_Class_Defined__ #include <stdint.h> class test129 { public: static void Blink(int32_t Pin, int32_t N); private: }; #endif
// Visual File Information // Copyright (c) Microsoft Corporation // All rights reserved. // // MIT License // // 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, i...
/* A Bison parser, made by GNU Bison 3.0.2. */ /* Bison interface for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc. 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 t...
/* This file is part of the WebKit open source project. This file has been generated by generate-bindings.pl. DO NOT MODIFY! This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation...
// Copyright (c) YugaByte, Inc. // // 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 writ...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
/** * Log file support * * Copyright (C) 2000-2013 by * Jeffrey Fulmer - <jeff@joedog.org> * This file is distributed as part of Siege * * 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;...
/** * \file * * \brief Alert Notification Profile * * Copyright (c) 2016 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistribu...
#include "CustomerCategories.h" /* In production code, I would definitely validate all input and secure the calculations upon entry of each function... */ double goldPriceStrategy (double amount,double shipping) { return amount * 0.90 + shipping; } double silverPriceStrategy (double amount,double shipping) { ...
/* * Copyright (c) 2008-2009 Patrick McHardy <kaber@trash.net> * Copyright (c) 2013 Eric Leblond <eric@regit.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * Developm...
/*- * Copyright (c) 2003 John Baldwin <jhb@FreeBSD.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, t...
// // OtherViewController.h // CSLeftSlideDemo // // Created by LCS on 16/2/12. // Copyright © 2016年 LCS. All rights reserved. // #import <UIKit/UIKit.h> @interface OtherViewController : UIViewController @end
#ifndef TSCURVE_ANALYSIS_H #define TSCURVE_ANALYSIS_H /** * \class TSCurveAnalysis * * \brief Extractor and container of threshold and noise results for each tested chip * * \author Andry Rakotozafindrabe * * This class allows to extract and store the threshold and noise from a s-curve issued * from charge inj...
/* * dvbdev.c * * Copyright (C) 2000 Ralph Metzler <ralph@convergence.de> * & Marcus Metzler <marcus@convergence.de> * for convergence integrated media GmbH * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Genera...
//****************************************************************************** // // Copyright (c) 2015 Microsoft Corporation. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LI...
/*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copy...
/* * common.c * * Created on: 11.08.2011 * Author: Frank Benoit */ #include "Common.h" #include <string.h> //pthread_mutex_t Common_global_mutex = PTHREAD_MUTEX_INITIALIZER; void Common_Init(){ //pthread_mutex_init( &Common_global_mutex, NULL ); } void Common_Exit(){ //pthread_mutex_destroy( &Common_g...
#pragma once #include <vector> #include "../Common/BaseUnknown.h" #include "../Common/ComPtrCustom.h" #include "IEncoderManager.h" struct IPropertyStore; namespace CaptureManager { namespace Transform { namespace Encoder { class WMAudioEncoderManager : public BaseUnknown<IEncoderManager> { public...
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/FuseUI.framework/FuseUI */ @interface MusicTransferProgressBannerViewController : UIViewController <MusicTransferObserver, MusicTransferProgressViewControllerDelegate, UIPopoverPresentationControllerDelegate> { MusicTransferProgressBannerV...
#pragma once #include "IPropertyViewBuilder.h" #include "PropertyManagers.h" class RebarUsagePropertyViewBuilder : public CPropertyViewBuilder { public: RebarUsagePropertyViewBuilder(PropertyManagers* pPropertyManagers, Renga::IApplicationPtr pApplication, ...
// // BRUserDefaultsConstants.h // BreadWallet // // Created by Samuel Sutch on 12/29/15. // Copyright (c) 2016 breadwallet LLC // // 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 wi...
// -*- Mode: ObjC; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #import <UIKit/UIK...
// // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved // // 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 //...
/* * COMPortSettings.h * * Created on: Apr 22, 2016 * Author: lxt12 */ #ifndef ROBOT_DRIVER_INTERFACE_SRC_NDI_COMPORTSETTINGS_H_ #define ROBOT_DRIVER_INTERFACE_SRC_NDI_COMPORTSETTINGS_H_ #include <boost/lexical_cast.hpp> #include <ros/ros.h> #include "ui_robotInterface_COMPortSettings.h" #include "inifile.h...
#ifndef __XR_INI_LTX__ #define __XR_INI_LTX__ class CInifile; BOOL __fastcall LoadLtxFile ( CInifile*, char* ); BOOL __fastcall ReadSectionLtx ( CInifile*, char* ); BOOL __fastcall ReadStringLtx ( CInifile*, char*, char*, char* ); BOOL __fastcall ReadLineLtx ( CInifile*, char*, int, char*, char* ); #endif
#pragma once #include <string> #include <stdexcept> #include <sqlite/sqlite3.h> namespace sqlite { class sqlite_exception: public std::runtime_error { public: sqlite_exception(const char* msg, std::string sql, int code = -1): runtime_error(msg), code(code), sql(sql) {} sqlite_exception(int code, std::string s...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strlcat.c :+: :+: :+: ...
#ifndef MEASUREMENT_H #define MEASUREMENT_H #include <memory> #include <chrono> #include <tuw_geometry/pose2d.h> #include <boost/date_time/posix_time/ptime.hpp> namespace tuw { class Measurement; /// Prototype using MeasurementPtr = std::shared_ptr< Measurement >; using MeasurementConstPtr = std::shared_ptr< Measure...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/databrew/GlueDataBrew_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSVector.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/databrew/model/Job.h> #inclu...
#ifndef SPHEREH #define SPHEREH #include "hitable.h" class sphere: public hitable { public: sphere() {} sphere(vec3 cen, float r, material *material ) : center(cen), radius(r), mat_ptr(material) {}; virtual bool hit(const ray& r, float tmin, float tmax, hit_record& rec) const; vec3 center; float radius; materia...
/* 加法变乘法 我们都知道:1+2+3+ ... + 49 = 1225 现在要求你把其中两个不相邻的加号变成乘号,使得结果为2015 比如: 1+2+3+...+10*11+12+...+27*28+29+...+49 = 2015 就是符合要求的答案。 请你寻找另外一个可能的答案,并把位置靠前的那个乘号左边的数字提交(对于示例,就是提交10)。 注意:需要你提交的是一个整数,不要填写任何多余的内容。 */ #include <stdio.h> int main() { int i, j; for (i = 1; i <= 48; i++...
/*! \file misc.h * \brief Miscellaneous scripting functions that aren't Halo related. * * \addtogroup PhasorAPI * @{ */ #pragma once #include "../phasor-lua.hpp" /*! \brief Get the current cpu ticks. * * \return The current cpu ticks * * Example usage: * \code * local ticks = gettick() * \endcode */ int...
/* * Copyright (c) 2021, Cesar Torres <shortanemoia@protonmail.com> * Copyright (c) 2021, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include "Common.h" #include "PlaybackManager.h" #include "Player.h" #include "VisualizationWidget.h" #include <AK/NonnullRefPtr.h> #inclu...
/** Copyright 2016 Google Inc. All Rights Reserved. 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...
#ifndef BITONIC_KERNELS_H #define BITONIC_KERNELS_H const char * bitonic_STL_sort_source = "__kernel " "\n void _kbitonic_stl_sort( " "\n __global float *input_ptr, " "\n const unsigned int stage, " "\n ...
// Copyright (c) 2014-2015 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_COMPAT_ENDIAN_H #define BITCOIN_COMPAT_ENDIAN_H #if defined(HAVE_CONFIG_H) #include "config/the420coin-config.h" ...
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #import "TFDialogVO.h" @class NSString; @interface TFErrorDialogVO : TFDialogVO { NSString *_btnLeftAction; NSString *_btnRig...
#include "push_swap.h" void ft_putstr(char *str) { int i; i = 0; if(!str[i]) return ; while(str[i]) { write(1,&str[i],1); i++; } write(1, "\n", 1); } int ft_print_ERROR() { write(2, "Error\n", 6); return(ERROR); }
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "PBCodable.h" #import "NSCopying.h" @class CKDPLocationBound, CKDPLocationCoordinate; __attribute__((visibility("hidden"))) @interface CKDPLocation : PBCodable <NSCopying...
/* * perror.c - print an error message on the standard error output */ /* $Id$ */ #include <errno.h> #include <stdio.h> #include <string.h> void perror(const char *s) { if (s && *s) { (void) fputs(s, stderr); (void) fputs(": ", stderr); } (void) fputs(strerror(errno), stderr); (void) fputs("\n", stderr); }
/** * @file MPU9255.h * @brief Main header of the library. */ // This file is a part of MPU9255 library. // Copyright (c) 2017-2020 Krzysztof Adamkiewicz <kadamkiewicz835@gmail.com> // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation fi...
#include <math.h> #include <stdio.h> #include <gkyl_vlasov.h> struct weibel_ctx { // parameters for plasma streams double nElc10, nElc20; double vthElc10, vthElc20; double uxElc10, uxElc20; double uyElc10, uyElc20; // perturbation parameters double kx, ky; double alpha; // ratio of E_y/E_x double p...