repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
Mike575/rdkit
Code/ChemicalFeatures/ChemicalFeature.h
<gh_stars>1-10 // // Copyright (C) 2004-2008 <NAME> and Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include <RD...
Mike575/rdkit
Code/GraphMol/StructChecker/StripSmallFragments.h
// // Copyright (C) 2016 Novartis Institutes for BioMedical Research // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include <RDGeneral/e...
Mike575/rdkit
Code/Numerics/Optimizer/BFGSOpt.h
// // Copyright (C) 2004-2008 <NAME> and Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include <RDGeneral/export...
Mike575/rdkit
Code/DataStructs/base64.h
// // Copyright (C) 2002-2008 <NAME> and Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include <RDGeneral/export.h...
Mike575/rdkit
Code/GraphMol/MolStandardize/TautomerCatalog/TautomerCatalogUtils.h
// // Copyright (C) 2018 <NAME> // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include <RDGeneral/export.h> #ifndef __RD_TAUTOMER_CATALO...
Mike575/rdkit
Code/GraphMol/FragCatalog/FragCatGenerator.h
// // Copyright (C) 2003-2006 Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include <RDGeneral/export.h> #ifndef...
Mike575/rdkit
Code/GraphMol/MolBundle.h
<reponame>Mike575/rdkit<filename>Code/GraphMol/MolBundle.h // // Copyright (C) 2017 <NAME> // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. //...
Mike575/rdkit
Code/JavaWrappers/GenericRDKitException.h
// $Id: GenericRDKitException.h // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // // A generic exception (to cause a corresponding one to be...
Mike575/rdkit
Code/GraphMol/FileParsers/SequenceParsers.h
// // Copyright (C) 2015,2016 <NAME> and NextMove Software // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include <RDGeneral/export.h> #...
Mike575/rdkit
Code/GraphMol/FMCS/SubstructureCache.h
<filename>Code/GraphMol/FMCS/SubstructureCache.h<gh_stars>1-10 // // Copyright (C) 2014 Novartis Institutes for BioMedical Research // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at ...
Mike575/rdkit
Code/GraphMol/SanitException.h
// // Copyright (C) 2002-2006 Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include <RDGeneral/export.h> #ifnde...
Mike575/rdkit
Code/GraphMol/atomic_data.h
// // Copyright (C) 2001-2008 <NAME> and Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // /*! \file atomic_data.h ...
Mike575/rdkit
Code/GraphMol/Substruct/SubstructMatch.h
<reponame>Mike575/rdkit // // Copyright (C) 2001-2017 <NAME> and Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #i...
Mike575/rdkit
Code/GraphMol/MolInterchange/MolInterchange.h
// // Copyright (C) 2018 <NAME> // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include <RDGeneral/export.h> #ifndef RD_MOLINTERCHANGE_H_...
Mike575/rdkit
Code/RDGeneral/StreamOps.h
// // Copyright (C) 2002-2008 <NAME> and Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // // #include <RDGeneral/expo...
Mike575/rdkit
Code/PgSQL/rdkit/cache.h
// $Id$ // // Copyright (c) 2010-2015, Novartis Institutes for BioMedical Research Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must ret...
Mike575/rdkit
Code/GraphMol/FileParsers/ProximityBonds.h
// // Copyright (C) 2013-2017 <NAME> and NextMove Software // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include <RDGeneral/export.h> #...
Mike575/rdkit
Code/GraphMol/Substruct/SubstructUtils.h
// // Copyright (C) 2003-2010 <NAME> and Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include <RDGeneral/export...
Mike575/rdkit
Code/GraphMol/ReducedGraphs/ReducedGraphs.h
<reponame>Mike575/rdkit // // Copyright (C) 2013 <NAME> // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include <RDGeneral/export.h> #ifn...
Mike575/rdkit
Code/RDGeneral/RDValue-doublemagic.h
// Copyright (c) 2015, Novartis Institutes for BioMedical Research Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above co...
ftalex/optimizeddynamiccharts
NCIChart/views/NCIAxis.h
<filename>NCIChart/views/NCIAxis.h // // NCIAxis.h // NCIChart // // Created by Ira on 4/15/14. // Copyright (c) 2014 FlowForwarding.Org. All rights reserved. // #import <Foundation/Foundation.h> #import "NCILine.h" @class NCISimpleChartView; @interface NCIAxis : NCILine - (id)initWithOptions:(NSDictionary *)op...
ftalex/optimizeddynamiccharts
NCIChart/views/NCIChartView.h
// // NCIChartView.h // NCIChart // // Created by Ira on 12/22/13. // Copyright (c) 2013 FlowForwarding.Org. All rights reserved. // #import <UIKit/UIKit.h> #import "NCISimpleChartView.h" @interface NCIChartView : NCISimpleChartView @property(nonatomic, strong) NCISimpleChartView *topChart; @property(nonatomic, ...
ftalex/optimizeddynamiccharts
NCIChart/views/NCIBarGraphView.h
// // NCIBarGraphView.h // NCIChart // // Created by Ira on 3/11/14. // Copyright (c) 2014 FlowForwarding.<EMAIL>. All rights reserved. // #import "NCISimpleGraphView.h" @interface NCIBarGraphView : NCISimpleGraphView @end
ftalex/optimizeddynamiccharts
NCIChart/views/NCISimpleGraphView.h
<reponame>ftalex/optimizeddynamiccharts // // NCISimpleGraphView.h // NCIChart // // Created by Ira on 12/20/13. // Copyright (c) 2013 FlowForwarding.Org. All rights reserved. // #import <UIKit/UIKit.h> #import "NCISimpleChartView.h" #import "NCISeries.h" @class NCISimpleGridView; @interface NCISimpleGraphView :...
ftalex/optimizeddynamiccharts
NCIChart/views/NCISimpleChartView.h
<reponame>ftalex/optimizeddynamiccharts<gh_stars>0 // // NCISimpleChartView.h // NCIChart // // Created by Ira on 12/20/13. // Copyright (c) 2013 FlowForwarding.Org. All rights reserved. // #import <UIKit/UIKit.h> #import "NCIChartOptions.h" #import "NCILine.h" #import "NCIAxis.h" #import "NCISeries.h" @class NCI...
ftalex/optimizeddynamiccharts
NCIChart/views/NCISimpleGridView.h
// // NCISimpleGridView.h // NCIChart // // Created by Ira on 12/22/13. // Copyright (c) 2013 FlowForwarding.Org. All rights reserved. // #import <UIKit/UIKit.h> #import "NCISimpleGraphView.h" #import "NCISeries.h" @interface NCISimpleGridView : UIView @property(nonatomic, strong) NCISimpleGraphView *graph; - (...
ftalex/optimizeddynamiccharts
NCIChart/views/NCIBtmGraphView.h
// // NCIBtmChartView.h // NCIChart // // Created by Ira on 12/22/13. // Copyright (c) 2013 FlowForwarding.Org. All rights reserved. // #import <UIKit/UIKit.h> #import "NCISimpleGraphView.h" @class NCIChartView; @interface NCIBtmGraphView : NCISimpleGraphView - (void)redrawRanges; - (void)startMoveWithPoint:(CGP...
ftalex/optimizeddynamiccharts
NCIChart/views/NCISeries.h
// // NCISeries.h // Pods // // Created by Lappy on 4/2/15. // // #import <Foundation/Foundation.h> @interface NCISeries : NSObject //<NSFastEnumeration> { @public float* _x; float* _y; } -(id)initWithCount:(NSUInteger)count xValues:(float *)x yValues:(float*)y; @property (nonatomic, readonly) NSUInteger...
ftalex/optimizeddynamiccharts
NCIChart/views/NCIBarGridView.h
<filename>NCIChart/views/NCIBarGridView.h // // NCIBarGridView.h // NCIChart // // Created by Ira on 3/11/14. // Copyright (c) 2014 FlowForwarding.Org. All rights reserved. // #import "NCISimpleGridView.h" @interface NCIBarGridView : NCISimpleGridView @end
ftalex/optimizeddynamiccharts
NCIChart/views/NCIBar.h
// // NCIBar.h // NCIChart // // Created by Ira on 3/11/14. // Copyright (c) 2014 FlowForwarding.Org. All rights reserved. // #import <UIKit/UIKit.h> @interface NCIBar : UIView @end
ftalex/optimizeddynamiccharts
NCIChart/views/NCILine.h
<filename>NCIChart/views/NCILine.h // // NCILine.h // NCIChart // // Created by Ira on 1/15/14. // Copyright (c) 2014 FlowForwarding.Org. All rights reserved. // #import <UIKit/UIKit.h> @interface NCILine : NSObject - (id)initWithOptions:(NSDictionary *)options; - (void)setUpLine:(CGContextRef) currentContext; ...
ftalex/optimizeddynamiccharts
NCIChart/views/NCIZoomGraphView.h
// // NCIZoomGraphView.h // NCIChart // // Created by Ira on 1/27/14. // Copyright (c) 2014 Flow<EMAIL>. All rights reserved. // #import "NCISimpleGraphView.h" @interface NCIZoomGraphView : NCISimpleGraphView<UIScrollViewDelegate> //- (NSArray *)getValsInRanges; -(float)getScaleIndex; -(float)getXValuesGap; -(fl...
ftalex/optimizeddynamiccharts
NCIChart/views/NCITopGraphView.h
// // NCITopGraphView.h // NCIChart // // Created by Ira on 12/22/13. // Copyright (c) 2013 FlowForwarding.Org. All rights reserved. // #import "NCIChartView.h" #import "NCIZoomGraphView.h" #import "NCISeries.h" @interface NCITopGraphView : NCIZoomGraphView @property(nonatomic, strong) NCIChartView* nciChart; @...
ftalex/optimizeddynamiccharts
NCIChart/views/NCIHandspikeView.h
// // NCIHandspikeView.h // Tapestry // // Created by Infoblox Inc on 11/19/13. // Copyright (c) 2013 FlowForwarding.Org. All rights reserved. // Licensed under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0 // #import <UIKit/UIKit.h> @interface NCIHandspikeView : UIView - (id)i...
ftalex/optimizeddynamiccharts
NCIChart/views/NCIChartOptions.h
<filename>NCIChart/views/NCIChartOptions.h // // NCIChartOptions.h // NCIChart // // Created by Ira on 12/20/13. // Copyright (c) 2013 FlowForwarding.Org. All rights reserved. // #import <Foundation/Foundation.h> @interface NCIChartOptions : NSObject extern NSString *const nciIsFill; extern NSString *const nciIs...
secretarium/demo_circular_buffer
Include/queue.h
<filename>Include/queue.h #pragma once #include <atomic> //single consumer single producer queue, i.e. only one thread for sending and one thread for receiving template<typename T, size_t Size> class spsc_queue { public: spsc_queue() : head_(0), tail_(0) {} bool push(const T & value) { size_t head = head_.load(s...
secretarium/demo_circular_buffer
Include/test_queue_type.h
#pragma once #include <array> #include "queue.h" #define LOG_BLOCK_SIZE 1024 #define LOG_BUFFER_SIZE 1024 using block = std::array<uint8_t, LOG_BLOCK_SIZE>; using queue = spsc_queue<block, LOG_BUFFER_SIZE>;
aminnelson/google-appengine-mac-launcher
App/MBMainTableView.h
/* Copyright 2009 Google 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 writing, software di...
aminnelson/google-appengine-mac-launcher
App/MBConsoleController.h
<reponame>aminnelson/google-appengine-mac-launcher<gh_stars>0 /* Copyright 2009 Google 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 r...
aminnelson/google-appengine-mac-launcher
App/MBEngineController.h
/* Copyright 2009 Google 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 writing, software di...
aminnelson/google-appengine-mac-launcher
App/MBSimpleProgressController.h
/* Copyright 2009 Google 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 writing, software di...
aminnelson/google-appengine-mac-launcher
App/MBProjectInfoController.h
/* Copyright 2009 Google 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 writing, software di...
aminnelson/google-appengine-mac-launcher
App/MBProjectArrayController.h
<reponame>aminnelson/google-appengine-mac-launcher /* Copyright 2009 Google 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 ...
aminnelson/google-appengine-mac-launcher
App/MBAddNewAppController.h
<gh_stars>0 /* Copyright 2009 Google 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 writing,...
aminnelson/google-appengine-mac-launcher
App/MBDeployController.h
<reponame>aminnelson/google-appengine-mac-launcher /* Copyright 2009 Google 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 ...
aminnelson/google-appengine-mac-launcher
App/MBAddExistingAppController.h
<filename>App/MBAddExistingAppController.h /* Copyright 2009 Google 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 applicab...
aminnelson/google-appengine-mac-launcher
App/MBValidToColorTransformer.h
<reponame>aminnelson/google-appengine-mac-launcher<filename>App/MBValidToColorTransformer.h<gh_stars>0 /* Copyright 2009 Google 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....
aminnelson/google-appengine-mac-launcher
App/MBProject.h
/* Copyright 2009 Google 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 writing, software di...
aminnelson/google-appengine-mac-launcher
App/MBAddAppController.h
<gh_stars>0 /* Copyright 2009 Google 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 writing,...
aminnelson/google-appengine-mac-launcher
App/MBPreferences.h
<filename>App/MBPreferences.h /* Copyright 2009 Google 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 agr...
aminnelson/google-appengine-mac-launcher
App/MBRunStateToImageTransformer.h
<reponame>aminnelson/google-appengine-mac-launcher /* Copyright 2009 Google 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 ...
aminnelson/google-appengine-mac-launcher
App/MBTaskArrayController.h
<filename>App/MBTaskArrayController.h /* Copyright 2009 Google 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 la...
aminnelson/google-appengine-mac-launcher
App/MBLogFilter.h
<reponame>aminnelson/google-appengine-mac-launcher /* Copyright 2009 Google 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 ...
aminnelson/google-appengine-mac-launcher
App/MBAddNewAppControllerTest.h
/* Copyright 2009 Google 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 writing, software di...
aminnelson/google-appengine-mac-launcher
App/MBAlertWriter.h
/* Copyright 2009 Google 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 writing, software di...
aminnelson/google-appengine-mac-launcher
App/MBHardCodedOpenPanel.h
/* Copyright 2009 Google 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 writing, software di...
aminnelson/google-appengine-mac-launcher
App/MBPreferenceController.h
/* Copyright 2009 Google 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 writing, software di...
aminnelson/google-appengine-mac-launcher
App/MBMainWindow.h
<reponame>aminnelson/google-appengine-mac-launcher /* Copyright 2009 Google 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 ...
aminnelson/google-appengine-mac-launcher
App/MBEngineRuntime.h
<reponame>aminnelson/google-appengine-mac-launcher /* Copyright 2009 Google 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 ...
aminnelson/google-appengine-mac-launcher
App/MBToolbar.h
<gh_stars>0 /* Copyright 2009 Google 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 writing,...
aminnelson/google-appengine-mac-launcher
App/MBEngineTask.h
<filename>App/MBEngineTask.h /* Copyright 2009 Google 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 agre...
aminnelson/google-appengine-mac-launcher
App/MBMainWindowDelegate.h
<reponame>aminnelson/google-appengine-mac-launcher /* Copyright 2009 Google 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 ...
jaafarbarek/pyrtos
micropython-1.5/cc3200/telnet/telnet.c
<filename>micropython-1.5/cc3200/telnet/telnet.c<gh_stars>0 /* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2015 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated docum...
jaafarbarek/pyrtos
micropython-1.5/py/objmodule.c
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 <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 Sof...
jaafarbarek/pyrtos
micropython-1.5/cc3200/mods/pybadc.c
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 <NAME> * Copyright (c) 2015 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
jaafarbarek/pyrtos
micropython-1.5/stmhal/fsusermount.c
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2014 <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 ...
jaafarbarek/pyrtos
micropython-1.5/cc3200/fatfs/src/drivers/sd_diskio.c
//***************************************************************************** // sd_diskio.c // // Low level SD Card access hookup for FatFS // // Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/ // // // Redistribution and use in source and binary forms, with or without // modification, are p...
jaafarbarek/pyrtos
micropython-1.5/stmhal/ledtask.c
#include "stdio.h" #include "FreeRTOS.h" #include "task.h" #include STM32_HAL_H void LedTask(void *pvParameters) { /* GPIO structure */ GPIO_InitTypeDef GPIO_InitStructure; /* Configure I/O speed, mode, output type and pull */ GPIO_InitStructure.Pin = GPIO_PIN_5; GPIO_InitStructure.Mode = GPIO_MOD...
jaafarbarek/pyrtos
micropython-1.5/cc3200/mods/pybsleep.c
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2015 <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 ...
jaafarbarek/pyrtos
micropython-1.5/stmhal/mphal.h
// We use the ST Cube HAL library for most hardware peripherals #include STM32_HAL_H // Basic GPIO functions #define GPIO_read_pin(gpio, pin) (((gpio)->IDR >> (pin)) & 1) #if defined(MCU_SERIES_F7) #define GPIO_set_pin(gpio, pin_mask) (((gpio)->BSRR) = (pin_mask)) #define GPIO_clear_pin(gpio, pin_mask) (((g...
jaafarbarek/pyrtos
micropython-1.5/stmhal/boards/STM32F4DISC/mpconfigboard.h
#define STM32F4DISC #define MICROPY_HW_BOARD_NAME "F4DISC" #define MICROPY_HW_MCU_NAME "STM32F407" #define MICROPY_HW_HAS_SWITCH (1) #define MICROPY_HW_HAS_SDCARD (0) #define MICROPY_HW_HAS_MMA7660 (0) #define MICROPY_HW_HAS_LIS3DSH (1) #define MICROPY_HW_HAS_LCD (0) #defi...
jaafarbarek/pyrtos
micropython-1.5/bare-arm/main.c
<filename>micropython-1.5/bare-arm/main.c #include <stdint.h> #include <stdio.h> #include <string.h> #include "py/nlr.h" #include "py/compile.h" #include "py/runtime.h" #include "py/repl.h" void do_str(const char *src, mp_parse_input_kind_t input_kind) { mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_std...
jaafarbarek/pyrtos
micropython-1.5/stmhal/boards/STM32F411NUCLEO/mpconfigboard.h
<gh_stars>0 #define MICROPY_HW_BOARD_NAME "F411NUCLEO" #define MICROPY_HW_MCU_NAME "STM32F411" #define MICROPY_PY_SYS_PLATFORM "pyboard" #define MICROPY_HW_HAS_SWITCH (1) #define MICROPY_HW_HAS_SDCARD (0) #define MICROPY_HW_HAS_MMA7660 (0) #define MICROPY_HW_HAS_LIS3DSH (0) #def...
jaafarbarek/pyrtos
micropython-1.5/py/bc.c
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2014 <NAME> * Copyright (c) 2014 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software")...
jaafarbarek/pyrtos
micropython-1.5/esp8266/modnetwork.c
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2015 <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 ...
jaafarbarek/pyrtos
micropython-1.5/py/parse.h
<reponame>jaafarbarek/pyrtos<filename>micropython-1.5/py/parse.h /* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and assoc...
jaafarbarek/pyrtos
micropython-1.5/py/objfilter.c
<filename>micropython-1.5/py/objfilter.c /* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation file...
jaafarbarek/pyrtos
micropython-1.5/py/objsingleton.c
<reponame>jaafarbarek/pyrtos /* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
jaafarbarek/pyrtos
micropython-1.5/stmhal/main.c
<gh_stars>0 #include "stdio.h" #include "FreeRTOS.h" #include "task.h" #include "timers.h" #include "semphr.h" #include STM32_HAL_H #include "py/mpconfig.h" #define MICROPYTHON_TASK_PRIORITY (2) #define MICROPYTHON_TASK_STACK_SIZE ((6 * 1024) + 512) #define LED_TASK_PRIORITY (2) #define LED_TA...
jaafarbarek/pyrtos
micropython-1.5/stmhal/modpyb.c
<reponame>jaafarbarek/pyrtos /* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
jaafarbarek/pyrtos
micropython-1.5/qemu-arm/test_main.c
#include <stdint.h> #include <stdio.h> #include <string.h> #include <malloc.h> #include "py/nlr.h" #include "py/obj.h" #include "py/compile.h" #include "py/runtime0.h" #include "py/runtime.h" #include "py/stackctrl.h" #include "py/gc.h" #include "py/repl.h" #include "tinytest.h" #include "tinytest_macros.h" void do_...
CalebLammers/CTA200
main.c
<reponame>CalebLammers/CTA200<gh_stars>0 #include <stdio.h> #include "average.h" //I added calculation and print of the average of 1.0, 2.0, and 3.0 int main() { double arr[] = {1.0, 2.0, 3.0, 4.0}; double result = average(4, arr); double result2 = average(3, arr); printf("The average of 1, 2, 3 and...
alyssonlcss/2-work_of_the_university-ADS
sources/functions.c
#include <string.h> #include <stdio.h> #include <stdlib.h> #include "../headers/functions.h" void rotate1I(Node **pt, int *h) { Node *ptu = (*pt)->left; if(ptu->bal == -1) { (*pt)->left = ptu->right; ptu->right = (*pt); (*pt) = ptu; ptu->right->bal = 0; } else { ...
alyssonlcss/2-work_of_the_university-ADS
sources/app.c
<gh_stars>0 #include <string.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include "../headers/functions.h" int main() { int i, j; srand(time(NULL)); for (i = 0; i < K; i++) { Node *root = NULL; int h, sum = 0, *vec = (int*)malloc(sizeof(int)*_10K); paInVec(vec, (ra...
alyssonlcss/2-work_of_the_university-ADS
headers/functions.h
#ifndef FUNCTIONS_H #define FUNCTIONS_H #define K 1000 #define _10K 10000 #define _100K 100000 struct node { int key; int bal; struct node *right; struct node *left; }; typedef struct node Node; void rotate1I(Node **pt, int *h); void rotate2I(Node **pt, int *h); void insertAVL(int inKey, Node **pt, ...
tollesonpdx/Last_Minute_Camping_With_C
code/f_sqlOpenMakeDB.c
<reponame>tollesonpdx/Last_Minute_Camping_With_C // <NAME> Copyright (c) 2019 // New Beginnings - Capstone Project // filename: f_sqlOpenMakeDb.c #include "headers.h" // function definition sqlite3 * sqlOpenMakeDb(char * dbname, int p) { sqlite3 * db; int rc = sqlite3_open(dbname, &db); if (p) { prin...
tollesonpdx/Last_Minute_Camping_With_C
code/f_userListMake.c
// <NAME> Copyright (c) 2019 // New Beginnings - Capstone Project // filename: f_makeUserList.c #include "headers.h" struct userList* userListMake(int p) { if (p) { printf("creating list of uncoded users..."); } struct userList* L = malloc(sizeof(struct userList)); L->head = NULL; L->p = p; L-...
tollesonpdx/Last_Minute_Camping_With_C
code/f_convertAddress2G.c
// <NAME> Copyright (c) 2019 // New Beginnings - Capstone Project // filename: f_convertAddress2G.c #include "headers.h" char* convertAddress2G(char* address) { int len_googAdd = strlen(address)+1; char* googAdd = calloc(len_googAdd, sizeof(char)); strcpy(googAdd, address); googAdd[len_googAdd]='\...
tollesonpdx/Last_Minute_Camping_With_C
code/headers.h
// <NAME> Copyright (c) 2019 // New Beginnings - Capstone Project // filename: headers.h #ifndef __HEADERS_H_ #define __HEADERS_H_ // included libraries #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <math.h> #include <time.h> #include <string.h> #include <sqlite3.h> #include <curl/curl.h> #inc...
tollesonpdx/Last_Minute_Camping_With_C
test/test_sqlite.c
// <NAME> Copyright (c) 2018 // test file for SQLite // attribution: https://sqlite.org/quickstart.html #include <stdio.h> #include <sqlite3.h> #include "sqlstmts.h" // function prototype void sql_stmts(char * sql); void sql1(sqlite3 * db, char * zErrMsg, int rc); // function prototype callback must be in main sta...
tollesonpdx/Last_Minute_Camping_With_C
test/test_wrapField.c
// <NAME> // testing of field wrapper function // filename: test_wrap.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include "f_wrapField.c" int main() { char* a = "test"; printf("a is %s\t%ld\n",a,strlen(a)); char* c = wrapField(a); printf("c is %s\t%ld\n",c,strlen(c)); r...
tollesonpdx/Last_Minute_Camping_With_C
test/ll/structs.h
<gh_stars>0 // structure definitions typedef struct userList { struct userData* head; struct userData* tail; int count; } userList; typedef struct userData { char userLocation[1000]; double u_lat; // user's latitude double u_long; // user's longitude struct userData* next; // po...
tollesonpdx/Last_Minute_Camping_With_C
code/structs.h
// <NAME> Copyright (c) 2019 // New Beginnings - Capstone Project // filename: structs.h #ifndef __STRUCTS_H_ #define __STRUCTS_H_ // structure definitions typedef struct userData { char userLocation[1000]; struct tm begDate; // beginning date struct tm endDate; // ending date double maxDriveTime...
tollesonpdx/Last_Minute_Camping_With_C
code/f_userListDelete.c
// <NAME> Copyright (c) 2019 // New Beginnings - Capstone Project // filename: f_userListDelete.c #include "headers.h" int userListDelete(struct userList* L, int p) { if (p) { printf("deleting user list..."); } if (L->head == NULL) { if (p) { printf("no head, returning...\n"); } ...
tollesonpdx/Last_Minute_Camping_With_C
test/test_cJSON.c
<reponame>tollesonpdx/Last_Minute_Camping_With_C // <NAME> Copyright (c) 2019 // New Beginnings - Capstone Project // filename: test_cJSON.c // this file is used to test the cJSON features before // incorporating into the main capstone project // attributions // http://www.json.org/ // https://github.com/DaveGamble/c...
tollesonpdx/Last_Minute_Camping_With_C
test/test_python.c
// <NAME> Copyright (c) 2018 // Python test file // attribution: https://docs.python.org/2/extending/embedding.html #include <Python.h> int main(int argc, char *argv[]) { Py_SetProgramName(argv[0]); /* optional but recommended */ Py_Initialize(); PyRun_SimpleString("from time import time,ctime\n" ...
tollesonpdx/Last_Minute_Camping_With_C
test/FAKEcurl.c
<reponame>tollesonpdx/Last_Minute_Camping_With_C // <NAME> Copyright (c) 2019 // New Beginnings - Capstone Project // filename: FAKEcurl.c // this file is used to test the cJSON features // without actually curling data from Google API #include "headers.h" buffer FAKEcurl() { int p = 1; if (p) printf("f...
tollesonpdx/Last_Minute_Camping_With_C
code/f_parseWeathers.c
<gh_stars>0 // <NAME> Copyright (c) 2019 // New Beginnings - Capstone Project // filename: f_parseWeathers.c #include "headers.h" char* parseWeathers(char* string, int p) { // create cJSON object cJSON* json = cJSON_Parse(string); if (json == NULL) { const char *error_ptr = cJSON_GetE...
tollesonpdx/Last_Minute_Camping_With_C
test/sample_code/cJSON/sample_cJSON.c
// <NAME> Copyright (c) 2019 // New Beginnings - Capstone Project // filename: test_cJSON.c // this file is used to test the cJSON features before // incorporating into the main capstone project // attributions // http://www.json.org/ // https://github.com/DaveGamble/cJSON #include <stdio.h> #include <stdlib.h> #inc...
tollesonpdx/Last_Minute_Camping_With_C
code/f_currDateTime.c
// <NAME> (c) 2019 // New Beginnings - Capstone Project // filename: f_currDateTime.c // attribution: https://en.wikipedia.org/wiki/C_date_and_time_functions // attribution: https://stackoverflow.com/questions/3673226/how-to-print-time-in-format-2009-08-10-181754-811 USER paxdiablo #include "headers.h" int display...