repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
chuffa/ITensor | itensor/all_mps.h | //
// Copyright 2018 The Simons Foundation, 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 re... |
chuffa/ITensor | itensor/util/autovector.h | //
// Copyright 2018 The Simons Foundation, 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 re... |
chuffa/ITensor | sample/src/ising.h | #include "itensor/all.h"
using namespace itensor;
ITensor
ising(Index const& sh,
Index const& sv,
Real beta,
bool sz = false)
{
auto d = dim(sh);
auto shp = prime(sh);
auto svp = prime(sv);
auto T = ITensor(sh, shp, sv, svp);
for(auto i : range1(d)){ T.set(i, i, i, i, 1.0); }
if(sz) { ... |
chuffa/ITensor | itensor/util/static_count.h | #ifndef __ITENSOR_STATIC_COUNT_H__
#define __ITENSOR_STATIC_COUNT_H__
#include "itensor/util/print.h"
namespace itensor {
//
// Usage:
//
// static auto sc = StaticCount("Incremented %d times");
// ++sc;
// //will automatically print "Incremented ## times"
// //when program ends
//
struct StaticCount
... |
chuffa/ITensor | unittest/mps_mpo_test_helper.h | #ifndef __ITENSOR_MPS_MPO_TEST_HELPER_H
#define __ITENSOR_MPS_MPO_TEST_HELPER_H
#include "itensor/mps/autompo.h"
namespace itensor {
bool inline
checkTags(MPO const& K,
std::string const& siteTagsBra = "Site,0",
std::string const& siteTagsKet = "Site,1",
std::string const& linkTags = "Li... |
chuffa/ITensor | sample/src/trg.h | <gh_stars>100-1000
#include "itensor/all.h"
using namespace itensor;
std::tuple<ITensor, Real>
trg(ITensor const& A0,
int maxdim, int topscale,
Real cutoff = 0.0)
{
auto A = A0;
auto is = findInds(A, "0");
auto sh = is(1);
auto sv = is(2);
// Keep track of partition function per site, z = Z^(1/N)... |
chuffa/ITensor | itensor/indexset.h | //
// Copyright 2018 The Simons Foundation, 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 re... |
chuffa/ITensor | itensor/decomp_impl.h | <gh_stars>100-1000
//
// Copyright 2018 The Simons Foundation, 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-... |
chuffa/ITensor | itensor/util/flstring.h | <filename>itensor/util/flstring.h
//
// Copyright 2018 The Simons Foundation, 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/li... |
chuffa/ITensor | itensor/tensor/sliceten.h | <filename>itensor/tensor/sliceten.h
//
// Copyright 2018 The Simons Foundation, 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/... |
chuffa/ITensor | itensor/util/error.h | //
// Copyright 2018 The Simons Foundation, 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 re... |
chuffa/ITensor | itensor/util/multalloc.h | <gh_stars>100-1000
//
// Copyright 2018 The Simons Foundation, 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-... |
chuffa/ITensor | itensor/mps/sites/spintwo.h | <reponame>chuffa/ITensor
//
// Copyright 2018 The Simons Foundation, 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/LI... |
chuffa/ITensor | itensor/tensor/rangeiter.h | <reponame>chuffa/ITensor<filename>itensor/tensor/rangeiter.h
//
// Copyright 2018 The Simons Foundation, 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
//
// ... |
chuffa/ITensor | itensor/index.h | <gh_stars>1-10
//
// Copyright 2018 The Simons Foundation, 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
... |
chuffa/ITensor | itensor/tensor/ten.h | <reponame>chuffa/ITensor<gh_stars>100-1000
//
// Copyright 2018 The Simons Foundation, 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.apac... |
chuffa/ITensor | sample/src/ctmrg.h | #include "itensor/all.h"
using namespace itensor;
std::tuple<ITensor, ITensor>
ctmrg(ITensor T,
ITensor Clu,
ITensor Al,
int maxdim,
int nsteps,
Real cutoff = 0.0)
{
auto sh = commonIndex(T, Al);
auto sv = uniqueIndex(T, {Al, prime(Al)}, "0");
auto lv = commonIndex(Clu, Al);
au... |
lispysnake/lispysnake2d | src/core/input-manager.c | <reponame>lispysnake/lispysnake2d
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is ... |
lispysnake/lispysnake2d | src/core/entities/tilemap-tmx.c | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
lispysnake/lispysnake2d | src/core/entities/basic-entity.c | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
lispysnake/lispysnake2d | src/core/texture-cache.h | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
lispysnake/lispysnake2d | src/core/object.c | <gh_stars>0
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to u... |
lispysnake/lispysnake2d | src/demo/demo.c | <reponame>lispysnake/lispysnake2d
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is ... |
lispysnake/lispysnake2d | src/core/tilesheet/tilesheet-private.h | <gh_stars>0
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to u... |
lispysnake/lispysnake2d | src/core/animation.h | <gh_stars>0
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to u... |
lispysnake/lispysnake2d | src/core/components/animation-component.h | <gh_stars>0
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to u... |
lispysnake/lispysnake2d | src/core/entities/image.c | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
lispysnake/lispysnake2d | src/core/camera.c | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
lispysnake/lispysnake2d | src/core/entities/tilemap-private.h | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
lispysnake/lispysnake2d | src/core/component.h | <reponame>lispysnake/lispysnake2d
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is ... |
lispysnake/lispysnake2d | src/core/texture-cache.c | <reponame>lispysnake/lispysnake2d
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is ... |
lispysnake/lispysnake2d | src/core/tilesheet/sheet.c | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
lispysnake/lispysnake2d | src/demo/main.c | <reponame>lispysnake/lispysnake2d
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is ... |
lispysnake/lispysnake2d | src/core/components/animation-component.c | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
lispysnake/lispysnake2d | src/core/tilesheet/tsx.c | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
lispysnake/lispysnake2d | src/demo/player.c | <filename>src/demo/player.c
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is grante... |
lispysnake/lispysnake2d | src/core/engine-private.h | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
lispysnake/lispysnake2d | src/core/entities/tilemap.h | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
lispysnake/lispysnake2d | src/core/spritesheet/xml.c | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
lispysnake/lispysnake2d | src/core/object.h | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
lispysnake/lispysnake2d | src/core/spritesheet/spritesheet-private.h | <filename>src/core/spritesheet/spritesheet-private.h
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
... |
lispysnake/lispysnake2d | src/core/component.c | <gh_stars>0
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to u... |
lispysnake/lispysnake2d | src/core/scene.c | <gh_stars>0
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to u... |
lispysnake/lispysnake2d | src/core/engine-update.c | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
lispysnake/lispysnake2d | src/core/components/sprite.c | <reponame>lispysnake/lispysnake2d
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is ... |
lispysnake/lispysnake2d | src/core/engine.h | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
lispysnake/lispysnake2d | src/core/engine.c | <filename>src/core/engine.c<gh_stars>0
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permissio... |
lispysnake/lispysnake2d | src/core/ls2d.h | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
lispysnake/lispysnake2d | src/core/camera.h | <filename>src/core/camera.h
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is grante... |
lispysnake/lispysnake2d | src/core/components/position.c | <filename>src/core/components/position.c
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permiss... |
lispysnake/lispysnake2d | src/core/engine-draw.c | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
lispysnake/lispysnake2d | src/core/frame.h | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
lispysnake/lispysnake2d | src/core/spritesheet/sheet.c | <gh_stars>0
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to u... |
lispysnake/lispysnake2d | src/core/animation.c | <reponame>lispysnake/lispysnake2d
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is ... |
lispysnake/lispysnake2d | src/core/scene.h | <filename>src/core/scene.h<gh_stars>0
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission... |
lispysnake/lispysnake2d | src/core/entities/tilemap.c | <gh_stars>0
/*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to u... |
lispysnake/lispysnake2d | src/demo/level.c | /*
* This file is part of lispysnake2d.
*
* Copyright (c) 2019 <NAME>, Ltd.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this soft... |
Il-Capitano/bozonlib | bz/vec.h | <filename>bz/vec.h
// MIT License
//
// Copyright (c) 2019 Il-Capitano
//
// 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... |
Il-Capitano/bozonlib | bz/units.h | // MIT License
//
// Copyright (c) 2019 Il-Capitano
//
// 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,... |
Il-Capitano/bozonlib | bz/common.h | // MIT License
//
// Copyright (c) 2019 Il-Capitano
//
// 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,... |
Il-Capitano/bozonlib | bz/math_helper.h | <gh_stars>0
#ifndef _bz_math_helper_h_
#define _bz_math_helper_h_
#include "common.h"
#if bz_cxx14
#include <cmath>
#include <utility>
namespace bz
{
namespace internal
{
#define def_op_helpers_unary(op) \
template<typename T> ... |
BiRDLab-UMinho/vrviz | vrviz/include/vrviz/openvr_vk.h | <reponame>BiRDLab-UMinho/vrviz
//========= Copyright Valve Corporation ============//
#ifndef OPENVR_VK_H
#define OPENVR_VK_H
#if defined( _WIN32 )
#define VK_USE_PLATFORM_WIN32_KHR
#else
#define SDL_VIDEO_DRIVER_X11
#define VK_USE_PLATFORM_XLIB_KHR
#endif
#include <vulkan/vulkan.h>
#include <SDL.h>
#include <SDL_... |
BiRDLab-UMinho/vrviz | vrviz/src/mesh.h | <filename>vrviz/src/mesh.h
/*
Copyright 2011 <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 3 of the License, or
(at your option) any later version.
This... |
BiRDLab-UMinho/vrviz | vrviz/include/vrviz/openvr_gl.h | //========= Copyright Valve Corporation ============//
#ifndef OPENVR_GL_H
#define OPENVR_GL_H
#include <SDL.h>
#include <GL/glew.h>
#include <SDL_opengl.h>
#if defined( OSX )
#include <Foundation/Foundation.h>
#include <AppKit/AppKit.h>
#include <OpenGL/glu.h>
// Apple's version of glut.h #undef's APIENTRY, redefine... |
task123/AutoTTApp | autoTT/raspberryCar/ModesInfoViewController.h | <gh_stars>0
//
// ModesInfoViewController.h
// raspberryCar
//
// Created by <NAME> on 29.02.2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TCPConnection.h"
@interface ModesInfoViewController : UIViewController
@property TCPConnection* tcpConnection;
@property (strong, ... |
task123/AutoTTApp | autoTT/raspberryCar/StatusTableViewController.h | <gh_stars>0
//
// StatusTableViewController.h
// raspberryCar
//
// Created by <NAME> on 18.02.2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TCPConnection.h"
@interface StatusTableViewController : UITableViewController
@property TCPConnection* tcpConnection;
@end
|
task123/AutoTTApp | autoTT/raspberryCar/TCPConnection.h | <reponame>task123/AutoTTApp<gh_stars>0
//
// TCPConnection.h
// raspberryCar
//
// Created by <NAME> on 18.02.2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
// Class for making a tcp connection and sending and receiving messages
@interface TCPConnection : NSObject <NSS... |
task123/AutoTTApp | autoTT/raspberryCar/SetStreamSourceViewController.h | //
// SetStreamSourceViewController.h
// raspberryCar
//
// Created by <NAME> on 28.02.2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MainViewController.h"
@interface SetStreamSourceViewController : UIViewController <UITextFieldDelegate>
@property MainViewController* m... |
task123/AutoTTApp | autoTT/raspberryCar/AppDelegate.h | <reponame>task123/AutoTTApp
//
// AppDelegate.h
// raspberryCar
//
// Created by <NAME> on 15.02.2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
task123/AutoTTApp | autoTT/raspberryCar/ConnectionViewController.h | //
// ViewController.h
// raspberryCar
//
// Created by <NAME> on 15.02.2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TCPConnection.h"
@interface ConnectionViewController : UIViewController <UITextFieldDelegate>
@property (strong, nonatomic) TCPConnection* tcpConnect... |
task123/AutoTTApp | autoTT/raspberryCar/GyroscopeData.h | <reponame>task123/AutoTTApp
//
// GyroscopeData.h
// raspberryCar
//
// Created by <NAME> on 26.02.2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreMotion/CoreMotion.h>
@protocol gyroscopeDataDelegate
- (void)updateOfGyroscopeDataWithRoll:(double)roll Pitch... |
task123/AutoTTApp | autoTT/raspberryCar/SendMessageViewController.h | <reponame>task123/AutoTTApp<gh_stars>0
//
// SendMessageViewController.h
// raspberryCar
//
// Created by <NAME> on 19.02.2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TCPConnection.h"
@interface SendMessageViewController : UIViewController <UITextFieldDelegate>
@prop... |
task123/AutoTTApp | autoTT/raspberryCar/ModesTableViewController.h | <reponame>task123/AutoTTApp<gh_stars>0
//
// ModesTableViewController.h
// raspberryCar
//
// Created by <NAME> on 17.02.2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TCPConnection.h"
#import "MainViewController.h"
@interface ModesTableViewController : UITableViewContr... |
task123/AutoTTApp | autoTT/raspberryCar/VoiceRecognition.h | //
// VoiceRecognition.h
// AutoTT
//
// Created by <NAME> on 17.04.2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "TCPConnection.h"
#import </Users/hakonaustlidtasken/Documents/6. Semester/Instrumentering/tt/paulOpenEars/OpenEarsDistribution/OpenEars/Classes/in... |
task123/AutoTTApp | autoTT/raspberryCar/MainViewController.h | //
// MainViewController.h
// raspberryCar
//
// Created by <NAME> on 17.02.2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TCPConnection.h"
#import "GyroscopeData.h"
@interface MainViewController : UIViewController <gyroscopeDataDelegate>
@property (weak, nonatomic) TC... |
task123/AutoTTApp | autoTT/raspberryCar/MenuTableViewController.h | //
// MenuTableViewController.h
// raspberryCar
//
// Created by <NAME> on 17.02.2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TCPConnection.h"
#import "MainViewController.h"
@interface MenuTableViewController : UITableViewController
@property (weak, nonatomic) TCPCon... |
task123/AutoTTApp | autoTT/raspberryCar/PopUpMessageViewController.h | <reponame>task123/AutoTTApp
//
// PopUpMessageViewController.h
// raspberryCar
//
// Created by <NAME> on 24.02.2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TCPConnection.h"
@interface PopUpMessageViewController : UIViewController
@property TCPConnection* tcpConnecti... |
task123/AutoTTApp | autoTT/raspberryCar/CouldNotConnectViewController.h | //
// CouldNotConnectViewController.h
// raspberryCar
//
// Created by <NAME> on 22.02.2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TCPConnection.h"
@interface CouldNotConnectViewController : UIViewController
@property (strong, nonatomic) IBOutlet UILabel *errorMessag... |
task123/AutoTTApp | autoTT/raspberryCar/SendMessage.h | <reponame>task123/AutoTTApp<filename>autoTT/raspberryCar/SendMessage.h
//
// SendMessage.h
// raspberryCar
//
// Created by <NAME> on 18.02.2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SendMessage : UITableViewController
@end
|
clickteam-plugin/ASCII | src/Common.h | /*
* Copyright 2009-2013 <NAME>
* http://www.magicspark.org/ or http://oulydev.free.fr/
*
* 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/LICE... |
clickteam-plugin/ASCII | src/Main.h | <reponame>clickteam-plugin/ASCII<filename>src/Main.h
/*
* Copyright 2009-2013 <NAME>
* http://www.magicspark.org/ or http://oulydev.free.fr/
*
* 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 Lic... |
clickteam-plugin/ASCII | src/Resource.h | <reponame>clickteam-plugin/ASCII<filename>src/Resource.h
/*
* Copyright 2009-2013 <NAME>
* http://www.magicspark.org/ or http://oulydev.free.fr/
*
* 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... |
sivanbil/c-course | Calculator/main.c | <filename>Calculator/main.c
//
// Created by sivan on 2021/5/29.
//
#include "main.h"
int main() {
int left = 0;
int right = 0;
char operator;
int times = 0;
while(times <= 10) {
puts("please enter expression like '1 + 2':");
scanf("%d %c %d", &left, &operator, &right);
p... |
sivanbil/c-course | Pointer/main.c | //
// Created by sivan on 2021/6/1.
//
#include "main.h"
int main() {
int value_int = 2;
int other_value_int = 4;
int *p = &value_int;
// Read from back to front
// Read-only pointer points to a variable
int *const pp = &value_int;
// The pointer points to a read-only variable
int ... |
sivanbil/c-course | CompileCondition/main.c | //
// Created by sivan on 2021/5/30.
// #ifndef
// #ifdef
// #if
//
#include <stdio.h>
#define DEBUG
void dump(char *message) {
#ifdef DEBUG
puts(message);
#endif
}
int main() {
dump("main start\n");
printf("Hello world\n");
printf("__STDC_VERSION:%ld\n", __STDC_VERSION__);
#if __STDC_VERSION__ == 2... |
sivanbil/c-course | FileStream/main.h | //
// Created by sivan on 2021/6/2.
//
#include <io_utils.h>
#ifndef C_COURSE_MAIN_H
#define C_COURSE_MAIN_H
#endif //C_COURSE_MAIN_H
|
sivanbil/c-course | FileStream/main.c | <filename>FileStream/main.c<gh_stars>1-10
//
// Created by sivan on 2021/6/2.
//
#include "main.h"
int main() {
FILE *file = fopen("main.h", "r");
return 0;
} |
sivanbil/c-course | HanoiTower/tower_main.h | //
// Created by sivan on 2021/5/30.
//
#include <stdio.h>
#ifndef C_COURSE_MAIN_H
#define C_COURSE_MAIN_H
#endif //C_COURSE_MAIN_H
/**
*
* @param n
* @param src
* @param dest
* @param tmp
*/
void Move(int n, char src, char dest, char tmp);
void Move(int n, char src, char dest, char tmp) {
if (n == 0) {
... |
sivanbil/c-course | Struct/main.c | //
// Created by sivan on 2021/6/1.
//
#include "main.h"
typedef struct Job {
char *name;
int id;
char *location;
} Job;
typedef struct Person {
char *name;
int age;
Job *job;
} Person;
int main() {
Job job = {.name="intern", .id=1, .location="shanghai"};
Person person = {.age=10, .... |
sivanbil/c-course | Pointer/left_right_value.c | //
// Created by sivan on 2021/6/1.
//
#include "main.h"
int main() {
int a;
a = 2;
int *p = &a;
*p = 3;
// 右值 就是个值,而不是storage
int b = *p;
int array[4] = {0};
int *pa = array;
*pa = 2;
*(pa++) = 3;
// left is storage, right is value
return 0;
}
|
sivanbil/c-course | include/io_utils.h | <gh_stars>1-10
//
// Created by sivan on 2021/5/30.
//
#ifndef C_COURSE_IO_UTILS_H
#define C_COURSE_IO_UTILS_H
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#define PRINT_METADATA
#ifdef PRINT_METADATA
# define PRINTLNF(format, ...) printf("("__FILE__":%d) %s:"format"\n", __LINE__, __FUNCTION__, ##__VA_A... |
sivanbil/c-course | ArrayBoundary/main.h | <filename>ArrayBoundary/main.h
//
// Created by sivan on 2021/5/30.
//
#ifndef C_COURSE_MAIN_H
#define C_COURSE_MAIN_H
#include <io_utils.h>
#endif //C_COURSE_MAIN_H
|
sivanbil/c-course | Calculator/main.h | //
// Created by sivan on 2021/5/29.
//
#include "stdio.h"
#ifndef C_COURSE_MAIN_H
#define C_COURSE_MAIN_H
#endif //C_COURSE_MAIN_H
#ifndef MATH_OPERATOR
#define MATH_OPERATOR 1
#define MATH_OPERATOR_ADD '+'
#define MATH_OPERATOR_MINUS '-'
#define MATH_OPERATOR_MULTIPLE '*'
#define MATH_OPERATOR_DIVIDE '/'
#define M... |
sivanbil/c-course | HanoiTower/tower_main.c | <gh_stars>1-10
//
// Created by sivan on 2021/5/30.
//
#include "tower_main.h"
int main(void) {
Move(5, 'A', 'C', 'B');
return 0;
}
|
sivanbil/c-course | Printlnf/main.h | <reponame>sivanbil/c-course<gh_stars>1-10
//
// Created by sivan on 2021/5/30.
//
#include <stdio.h>
#include <stdarg.h>
#ifndef C_COURSE_MAIN_H
#define C_COURSE_MAIN_H
#endif //C_COURSE_MAIN_H
|
sivanbil/c-course | CompileCondition/main.h | //
// Created by sivan on 2021/5/30.
//
#ifndef C_COURSE_MAIN_H
#define C_COURSE_MAIN_H
#endif //C_COURSE_MAIN_H
|
sivanbil/c-course | Printlnf/main.c | <gh_stars>1-10
//
// Created by sivan on 2021/5/30.
//
#include "main.h"
#include "../include/io_utils.h"
void Printlnf(const char* format, ...) {
va_list args;
va_start(args, format);
vprintf(format, args);
printf("\n");
va_end(args);
}
// use macro function
//#define PRINTLNF(format, ...) printf(... |
sivanbil/c-course | MacroFunc/macro_function.c | <reponame>sivanbil/c-course
//
// Created by sivan on 2021/5/30.
//
#include <stdio.h>
#define MAX(a, b) (a) > (b) ? (a) : (b)
/**
* define macro function with multi lines.
*/
#define IS_HEX_CHARACTER(ch) \
((ch) >= '0' && (ch) <= '9') || \
((ch) >= 'A' && (ch) <= 'F') || \
((ch) >= 'a' && (ch) <= 'f')
int main(voi... |
sivanbil/c-course | ArrayBoundary/main.c | //
// Created by sivan on 2021/5/30.
//
#include "main.h"
#define MAX_SIZE 5
int main() {
int array[MAX_SIZE];
PRINT_INT(array[0]);
PRINT_INT(array[5]);
// array[5] => array + 5
// VAL The length of an array can be declared as a variable. c99+ or gcc support
int value = 2;
int array_size... |
sivanbil/c-course | Struct/link_node.c | <filename>Struct/link_node.c
//
// Created by sivan on 2021/6/2.
//
#include "main.h"
typedef struct LinkNode {
int value;
struct LinkNode *next;
} LinkNode;
LinkNode *CreateLinkNode(int value) {
LinkNode *node = malloc(sizeof(LinkNode));
if (!node) {
//
exit(0);
}
node->valu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.