repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
cern-fts/fts3 | src/qos-daemon/context/CDMIQosTransitionContext.h | <reponame>cern-fts/fts3<filename>src/qos-daemon/context/CDMIQosTransitionContext.h
/*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the... |
cern-fts/fts3 | src/db/generic/StorageConfig.h | <filename>src/db/generic/StorageConfig.h<gh_stars>1-10
/*
* Copyright (c) CERN 2013-2017
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not ... |
cern-fts/fts3 | src/db/generic/GenericDbIfce.h | /*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
cern-fts/fts3 | src/monitoring/BrokerConfig.h | /*
* Copyright (c) CERN 2016
*
* 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 w... |
cern-fts/fts3 | src/db/generic/ArchivingOperation.h | <reponame>cern-fts/fts3
/*
* Copyright (c) CERN 2015
*
* 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... |
cern-fts/fts3 | src/cli/MsgPrinter.h | <reponame>cern-fts/fts3<filename>src/cli/MsgPrinter.h
/*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not u... |
cern-fts/fts3 | src/cli/exception/cli_exception.h | <reponame>cern-fts/fts3
/*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... |
cern-fts/fts3 | src/common/Exceptions.h | /*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
cern-fts/fts3 | src/common/Singleton.h | /*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
cern-fts/fts3 | src/server/services/transfers/UrlCopyCmd.h | <gh_stars>1-10
/*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with ... |
cern-fts/fts3 | src/qos-daemon/fetch/CDMIFetchQosTransition.h | /*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
cern-fts/fts3 | src/bringonline-daemon/state/StateUpdater.h | <gh_stars>1-10
/*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with ... |
cern-fts/fts3 | src/common/DaemonTools.h | /*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
cern-fts/fts3 | test/unit/cli/rest/MockHttpRequest.h | <gh_stars>1-10
/*
* Copyright (c) CERN 2015
*
* 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... |
cern-fts/fts3 | src/db/generic/Pair.h | <filename>src/db/generic/Pair.h
/*
* Copyright (c) CERN 2013-2017
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in... |
cern-fts/fts3 | src/db/generic/OwnedResource.h | /*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
cern-fts/fts3 | src/common/Logger.h | /*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
cern-fts/fts3 | src/monitoring/MsgProducer.h | <filename>src/monitoring/MsgProducer.h
/*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ex... |
cern-fts/fts3 | src/server/services/transfers/SupervisorService.h | /*
* Copyright (c) CERN 2017
*
* 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 w... |
cern-fts/fts3 | src/cli/exception/rest_client_not_implemented.h | /*
* rest_client_not_implemented.h
*
* Created on: 22 Oct 2015
* Author: dhsmith
*/
#ifndef REST_CLIENT_NOT_IMPLEMENTED_H_
#define REST_CLIENT_NOT_IMPLEMENTED_H_
#include <exception>
#include <string>
#include "cli_exception.h"
namespace fts3
{
namespace cli
{
/**
* A Exception class used when the req... |
cern-fts/fts3 | src/cli/ui/DelegationCli.h | /*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
cern-fts/fts3 | src/server/services/transfers/VoShares.h | /*
* Copyright (c) CERN 2017
*
* 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 w... |
cern-fts/fts3 | src/cli/RestContextAdapter.h | /*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
cern-fts/fts3 | src/cli/ui/CliBase.h | /*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
cern-fts/fts3 | src/cli/ui/DebugSetCli.h | <filename>src/cli/ui/DebugSetCli.h<gh_stars>1-10
/*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use th... |
cern-fts/fts3 | src/common/Uri.h | <filename>src/common/Uri.h
/*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in comp... |
cern-fts/fts3 | src/server/services/transfers/SingleTrStateInstance.h | /*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
cern-fts/fts3 | src/cli/ui/RestCli.h | <filename>src/cli/ui/RestCli.h
/*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in ... |
cern-fts/fts3 | src/qos-daemon/context/ArchivingContext.h | <reponame>cern-fts/fts3
/*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... |
cern-fts/fts3 | src/db/generic/FileTransferStatus.h | /*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
cern-fts/fts3 | src/server/services/transfers/TransferFileHandler.h | /*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
cern-fts/fts3 | src/qos-daemon/QoSServer.h | <filename>src/qos-daemon/QoSServer.h
/*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... |
cern-fts/fts3 | src/cli/JobParameterHandler.h | /*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
cern-fts/fts3 | src/db/generic/TransferFile.h | <reponame>cern-fts/fts3
/*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... |
cern-fts/fts3 | src/db/generic/SingleDbInstance.h | /*
* Copyright (c) CERN 2013-2015
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
cern-fts/fts3 | src/cli/exception/rest_failure.h | <filename>src/cli/exception/rest_failure.h
/*
* rest_failure.h
*
* Created on: 13 Nov 2015
* Author: dhsmith
*/
#ifndef REST_FAILURE_H_
#define REST_FAILURE_H_
#include <exception>
#include <string>
#include <sstream>
#include "cli_exception.h"
namespace fts3
{
namespace cli
{
/**
* REST reply was rec... |
cern-fts/fts3 | src/cli/exception/wrong_protocol.h | /*
* wrong_protocol.h
*
* Created on: 22 Oct 2015
* Author: dhsmith
*/
#ifndef WRONG_PROTOCOL_H_
#define WRONG_PROTOCOL_H_
#include <exception>
#include <string>
#include "cli_exception.h"
namespace fts3
{
namespace cli
{
/**
* A Exception class used when the client detects its peer is using an unexpe... |
ryuichiueda/IAS14_CODE | ParticleFilter.h | #ifndef __PF_H_
#define __PF_H_
#include <vector>
#include <fstream>
using namespace std;
class Particle;
class Event;
typedef vector<Event> Episode;
class ParticleFilter
{
public:
ParticleFilter(ifstream *ifs);
virtual ~ParticleFilter();
void sensorUpdate(Episode *e);
void motionUpdate(Episode *e);
void norm... |
ryuichiueda/IAS14_CODE | Event.h | #ifndef __EVENT__H_
#define __EVENT__H_
#include <string>
#include <vector>
using namespace std;
class Event{
public:
Event(int trial_no);
vector<int> sensor_values;
int reward;
string action;
int trial_number;
};
#endif
|
ryuichiueda/IAS14_CODE | Particle.h | <filename>Particle.h
#ifndef __PARTICLE_H_
#define __PARTICLE_H_
class Particle
{
public:
Particle(double w);
virtual ~Particle(){}
double m_w;
int m_experience_index;
};
#endif
|
ryuichiueda/IAS14_CODE | Agent.h | <reponame>ryuichiueda/IAS14_CODE
#ifndef _AGENT__H__
#define _AGENT__H__
#include <vector>
#include <string>
using namespace std;
class Event;
typedef vector<Event> Episode;
class ParticleFilter;
class Agent {
public:
Agent(ifstream *ifs);
~Agent();
string decision(char state,bool food);
void print(ofstream ... |
ryuichiueda/IAS14_CODE | Mouse.h | <reponame>ryuichiueda/IAS14_CODE
#ifndef _MOUSE__H__
#define _MOUSE__H__
#include <vector>
#include <string>
#include <fstream>
#include "Agent.h"
using namespace std;
class ParticleFilter;
class Mouse : public Agent {
public:
Mouse(ifstream *ifs);
virtual ~Mouse();
int readButton(char number);
void motorOn(vo... |
thiagormendonca/hpc | c/resolution.c | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
double *genRandomVector(int n)
{
double *vector = (double *)malloc(n * sizeof(double));
for (int i = 0; i < n; i++)
{
vector[i] = (double)rand() / RAND_MAX;
}
return vector;
}
double **genRandomMatrix(int n)
{
double **matrix = (double **)malloc(n * siz... |
lusilva/8-puzzle-solver | headers/board.h | <filename>headers/board.h<gh_stars>0
/////////////////////////////////////////
// Assignment 1 : <NAME> //
// The header file for the board class //
/////////////////////////////////////////
#ifndef _board_h
#define _board_h
#include <string>
#include <utility>
/*
The board class stores the sta... |
dulrich/hacker-rank | lonely.c | <filename>lonely.c
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <assert.h>
int lonelyinteger(int a_size, int* a) {
int lonely = 0;
int counts[101];
memset(counts, 0, 101 * sizeof(int));
int i;
for(i = 0; i < 101; i++) {
// printf("setting %d\n", ... |
Dylan0407/Tryit | 08.practical.work.pthread.c.c | <gh_stars>0
#include <pthread.h>
#include <stdio.h>
#include <string.h>
#define START 2
#define STOP 1000001
void *print_primes(void *args)
{
char prime[STOP];
memset(prime, 1, STOP);
for (int i = START; i * i < STOP; ++i)
if (prime[i])
for (int j = i << 1; j < STOP; j += i)
prime[j] = 0;
for (int i... |
Dylan0407/Tryit | 4.practical.work.fork.exec.c | <filename>4.practical.work.fork.exec.c
#include <stdio.h>
#include <unistd.h>
int main()
{
int pid1 = fork();
if (pid1 == 0)
{
// Begin
int pid = fork();
if (pid == 0)
{
printf("child_2 after fork() again, launching free -h\n");
char *args[] = {"fre... |
trackpadpro/tppsss | src/include/stocks.h | <gh_stars>1-10
#if !defined(STOCKS_H)
#define STOCKS_H
bool updateStonks();
#endif
|
trackpadpro/tppsss | src/include/SCM.h | <filename>src/include/SCM.h
#if !defined(SCM_H)
#define STEAMCOOKIESIZE 63
#define SCM_H
bool authSteamCheck(const char tempToken[STEAMCOOKIESIZE]);
bool updateSCM(const std::string appID,const std::string marketHashName,const time_t &tmr,const std::string dataPath);
bool rebaseSCM(const std::strin... |
trackpadpro/tppsss | src/include/controlTheory.h | #if !defined(CONTROLTHEORY_H)
#define CONTROLTHEORY_H
/*class webScraper{ OLD HEADER FOR WEB SCRAPER. ALTER.
private:
bool steamCommunity, stockMarket;
long int unruh;
time_t* xtal;
public:
webScraper(time_t* tmrPtr);
~webScraper();
bool updateCSV();
};*... |
leavesster/DKNightVersion | DKNightVersion/DKNightVersion.h | //
// DKNightVersion.h
// DKNightVerision
//
// Created by Draveness on 4/14/15.
// Copyright (c) 2015 DeltaX. All rights reserved.
//
#ifndef DKNightVerision_DKNightVersion_h
#define DKNightVerision_DKNightVersion_h
#import "DKNightVersionManager.h"
#import "UILabel+NightVersion.h"
#import "UIView+NightVersion.h... |
leavesster/DKNightVersion | DKNightVersion/UIKit/UIButton/UIButton+TitleColor.h | <filename>DKNightVersion/UIKit/UIButton/UIButton+TitleColor.h
//
// UIButton+TitleColor.h
// UIButton+TitleColor
//
// Copyright (c) 2015 Draveness. All rights reserved.
//
// These files are generated by ruby script, if you want to modify code
// in this file, you are supposed to update the ruby code, run it and ... |
leavesster/DKNightVersion | DKNightVersion/Core/DKNightVersionManager.h | //
// DKNightVersionManager.h
// DKNightVersionManager
//
// Created by Draveness on 4/14/15.
// Copyright (c) 2015 DeltaX. All rights reserved.
//
#import <UIKit/UIKit.h>
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/... |
leavesster/DKNightVersion | DKNightVersion/Helper/UIImageView+NightImage.h | <reponame>leavesster/DKNightVersion<filename>DKNightVersion/Helper/UIImageView+NightImage.h
//
// UIImageView+NightImage.h
// DKNightVersion
//
// Created by Draveness on 15/6/27.
// Copyright (c) 2015年 DeltaX. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImageView (NightImage)
@property (nonatom... |
Vastlab/libMR | examples/wbl-test.c | <gh_stars>10-100
/**
* testconsole.cpp
* Copyright 2011, Securics Inc.
See accompanying LICENSE agrement for details on rights.
Parts of this technology are subject to SBIR data rights and as described in DFARS 252.227-7018 (June 1995) SBIR Data Rights which apply to Contract Number: N00014-11-C-0243 and STTR N00... |
edwardatki/eDOS | src/keyboard.c | #include "stdint.h"
#include "keyboard.h"
#include "ports.h"
#include "interrupts.h"
enum SCANCODES {
NULL_KEY = 0,
Q_PRESSED = 0x10,
Q_RELEASED = 0x90,
W_PRESSED = 0x11,
W_RELEASED = 0x91,
E_PRESSED = 0x12,
E_RELEASED = 0x92,
R_PRESSED = 0x13,
R_RELEASED = 0x93,
T_PRESSED = 0x14,
T_RELEASED = 0x94,
Y_P... |
edwardatki/eDOS | src/utility.h | #ifndef utility
#define utility
char* int_to_string (uint32_t in);
char* trim_zeroes (char* in);
char* int_to_hex_string (uint32_t in);
void wait ();
void halt ();
#endif |
edwardatki/eDOS | src/ports.c | #include "stdint.h"
#include "ports.h"
void outb (uint16_t port, uint8_t val) {
asm volatile ("outb %0, %1" : : "a"(val), "Nd"(port));
}
uint8_t inb (uint16_t port) {
uint8_t val;
asm volatile ("inb %1, %0" : "=a"(val) : "Nd"(port));
return val;
} |
edwardatki/eDOS | src/timers.c | #include "stdint.h"
#include "timers.h"
#include "ports.h"
#include "interrupts.h"
#include "video.h"
static void (*callbackAddress)(void);
void PIT_handler () {
asm("cli; pusha; xchgw %bx, %bx");
(callbackAddress)();
send_PIC_EOI(0);
asm("popa; leave; sti; iret");
}
// Set IRQ0 to fire at rate of once per th... |
edwardatki/eDOS | src/video.h | <reponame>edwardatki/eDOS
#ifndef video
#define video
void fill_screen (char *vidptr, char c, char a);
void put_string (char *vidptr, char *str, char a);
void scroll_screen (char *vidptr, unsigned int rows);
void set_cursor (unsigned int x, unsigned int y);
#endif |
edwardatki/eDOS | src/memory.c | #include "stdint.h"
#include "memory.h"
#include "video.h"
#include "utility.h"
struct Map_Entry {
uint64_t BASE : 64;
uint64_t SIZE : 64;
uint32_t TYPE : 32;
uint32_t ACPI : 32;
} __attribute__ ((__packed__));
enum MEMORY_TYPE {
USABLE = 1,
RESERVED = 2,
ACPI_RECLAIMABLE = 3,
ACPI_NVS... |
edwardatki/eDOS | src/keyboard.h | <gh_stars>1-10
#ifndef keyboard
#define keyboard
void keyboard_handler ();
char scancode_to_ascii (uint8_t scancode);
void setup_keyboard (uint32_t address);
#endif |
edwardatki/eDOS | src/interrupts.h | <filename>src/interrupts.h
#ifndef interrupts
#define interrupts
void initialise_PICs (uint8_t offset1, uint8_t offset2);
void send_PIC_EOI (uint8_t irq);
void enable_PIC_IRQ (uint8_t irq);
void disable_PIC_IRQ (uint8_t irq);
uint16_t get_IRQ_reg (uint8_t ocw3);
uint16_t get_PIC_IRR ();
uint16_t get_PIC_ISR... |
edwardatki/eDOS | src/kernel.c | <filename>src/kernel.c<gh_stars>1-10
// Currently have to have entry point at beggining of file because the bootloader only works with flat binaries
void kernel_entry () {
asm("cli");
kernel_main();
}
#include "stdint.h"
#include "video.h"
#include "utility.h"
#include "ports.h"
#include "interrupts.h"
#i... |
edwardatki/eDOS | src/timers.h | <filename>src/timers.h
#ifndef timers
#define timers
void PIT_handler ();
void setup_timer (uint16_t frequency, uint32_t address);
#endif |
edwardatki/eDOS | src/ports.h | #ifndef ports
#define ports
void outb (uint16_t port, uint8_t val);
uint8_t inb (uint16_t port);
#endif |
edwardatki/eDOS | src/video.c | <filename>src/video.c
#include "stdint.h"
#include "video.h"
#include "ports.h"
const unsigned int WIDTH = 80;
const unsigned int HEIGHT = 25;
static int vidX = 0;
static int vidY = 0;
void fill_screen (char *vidptr, char c, char a) {
unsigned int i = 0;
while (i < WIDTH*HEIGHT*2) {
vidptr[i] = c;
vidptr[i+1]... |
edwardatki/eDOS | src/memory.h | <gh_stars>1-10
#ifndef memory
#define memory
void get_memory_map ();
#endif |
edwardatki/eDOS | src/interrupts.c | <reponame>edwardatki/eDOS<filename>src/interrupts.c
#include "stdint.h"
#include "interrupts.h"
#include "ports.h"
#include "video.h"
#define ICW1_ICW4 0x01
#define ICW1_SINGLE 0x02
#define ICW1_INTERVAL4 0x04
#define ICW1_LEVEL 0x08
#define ICW1_INIT 0x10
#define ICW4_8086 0x01
#define ICW4_AUTO 0x02
#define ICW4_B... |
edwardatki/eDOS | src/utility.c | <filename>src/utility.c
#include "stdint.h"
#include "utility.h"
char* int_to_string (uint32_t in) {
char *out = "";
out[0] = (in / 1000000000) + 48;
out[1] = ((in / 100000000) % 10) + 48;
out[2] = ((in / 10000000) % 10) + 48;
out[3] = ((in / 1000000) % 10) + 48;
out[4] = ((in / 100000) % 10) + 48;
out[5] = ((... |
hjlschneider/AS5147P | AS5147P.h | /*
AS5147P device library code is place under the MIT License
Copyright (c) 2016 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation ... |
MacDue/Chaos-Equations | include/shader_program.h | <filename>include/shader_program.h<gh_stars>0
#ifndef SHADER_PROGRAM_H
#define SHADER_PROGRAM_H
#include <string>
#include <glad/glad.h>
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#define _BASIC_UNIFORM_SETTER(ctype, type_suffix) \
void uniform ## type_suffix (std::string const & key, std::initializer... |
elcano/Sweep | Libraries/CAN_Remote.h | <reponame>elcano/Sweep
/*
* CAN commands for remote control
* <NAME> Nov. 10 2019
* CAN commands are only used by the Receiver, which transmits data to Drive-By-Wire.
*/
#ifndef CAN_REMOTE_H
#define CAN_REMOTE_H
// Origin: Receiver; Function: E-stop, auto, reverse
#define RCStatus_CANID 0x5... |
jaredplusone/packml | packml_ros/include/packml_ros/packml_ros.h | /*
* Software License Agreement (Apache License)
*
* Copyright (c) 2017 <NAME>
*
* 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
*
* Un... |
D-A-E-D-A-L-U-S/PE | p001.c | /*
* Project Euler Problem 1: Multiples of 3 and 5
*
* If we list all the natural numbers below 10 that are multiples of 3 or 5,
* we get 3, 5, 6 and 9. The sum of these multiples is 23.
*
* Find the sum of all the multiples of 3 or 5 below 1000.
*/
#include <stdio.h>
int main(void) {
int i, sum = 0;
... |
D-A-E-D-A-L-U-S/PE | p002.c | <gh_stars>0
/*
* Project Euler Problem 2: Even Fibonacci numbers
*
* Each new term in the Fibonacci sequence is generated by adding the
* previous two terms. By starting with 1 and 2, the first 10 terms will be:
*
* 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
*
* By considering the terms in the Fibonacci sequence wh... |
Changzw/every-case-demo | Pods/MPITextKit/Sources/MPITextEffectWindow.h | //
// MPITextEffectWindow.h
// MPITextKit
//
// Created by Tpphha on 2020/3/22.
//
#import <UIKit/UIKit.h>
#if __has_include(<MPITextKit/MPITextKit.h>)
#import <MPITextKit/MPITextMagnifier.h>
#else
#import "MPITextMagnifier.h"
#endif
NS_ASSUME_NONNULL_BEGIN
@interface MPITextEffectWindow : UIWindow
/// Returns t... |
Changzw/every-case-demo | Pods/MPITextKit/Sources/MPITextAttributes.h | //
// MPITextAttributes.h
// MeituMV
//
// Created by Tpphha on 2019/3/24.
// Copyright © 2019 美图网. All rights reserved.
//
#import <Foundation/Foundation.h>
#if __has_include(<MPITextKit/MPITextKit.h>)
#import <MPITextKit/MPITextBackedString.h>
#import <MPITextKit/MPITextAttachment.h>
#import <MPITextKit/MPIText... |
Changzw/every-case-demo | Pods/MPITextKit/Sources/MPITextKitContext.h | <gh_stars>100-1000
//
// MPITextKitContext.h
// MeituMV
//
// Created by Tpphha on 2019/3/24.
// Copyright © 2019 美图网. All rights reserved.
//
#import <Foundation/Foundation.h>
#if __has_include(<MPITextKit/MPITextKit.h>)
#import <MPITextKit/MPITextLayoutManager.h>
#else
#import "MPITextLayoutManager.h"
#endif
/*... |
Changzw/every-case-demo | Pods/MPITextKit/Sources/MPITextKitBugFixer.h | <gh_stars>100-1000
//
// MPITextKitBugFixer.h
// MeituMV
//
// Created by Tpphha on 2019/3/24.
// Copyright © 2019 美图网. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
/**
Here solve the wrong line height problem of TextKit when have a mix
layout of multi-languages like Chinese, English... |
Changzw/every-case-demo | Pods/MPITextKit/Sources/MPITextRendererKey.h | //
// MPITextRendererKey.h
// MeituMV
//
// Created by Tpphha on 2019/3/24.
// Copyright © 2019 美图网. All rights reserved.
//
#import <UIKit/UIKit.h>
@class MPITextRenderAttributes;
NS_ASSUME_NONNULL_BEGIN
@interface MPITextRendererKey : NSObject
@property (nonatomic, readonly) MPITextRenderAttributes *attribute... |
Changzw/every-case-demo | Pods/QGVAPlayer/iOS/QGVAPlayer/QGVAPlayer/Classes/Models/QGVAPConfigModel.h | <reponame>Changzw/every-case-demo<gh_stars>0
// QGVAPConfigModel.h
// Tencent is pleased to support the open source community by making vap available.
//
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the MIT License (the "License"); you may not use this file except... |
Changzw/every-case-demo | Pods/MPITextKit/Sources/UIView+MPITextKit.h | <gh_stars>100-1000
//
// UIView+MPITextKit.h
// MPITextKit
//
// Created by Tpphha on 2020/3/22.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface UIView (MPITextKit)
- (CGPoint)mpi_convertPoint:(CGPoint)point toViewOrWindow:(nullable UIView *)view;
- (CGPoint)mpi_convertPoint:(CGPoint)point fromVie... |
Changzw/every-case-demo | Pods/MPITextKit/Sources/MPITextMagnifier.h | <filename>Pods/MPITextKit/Sources/MPITextMagnifier.h
//
// MPITextMagnifier.h
// MPITextKit
//
// Created by Tpphha on 2020/3/8.
//
#import <UIKit/UIKit.h>
/// Magnifier type
typedef NS_ENUM(NSInteger, MPITextMagnifierType) {
MPITextMagnifierTypeCaret, ///< Circular magnifier
MPITextMagnifierTypeRanged, /... |
Changzw/every-case-demo | Pods/MPITextKit/Sources/MPITextAttachmentsInfo.h | <filename>Pods/MPITextKit/Sources/MPITextAttachmentsInfo.h
//
// MPITextAttachmentsInfo.h
// MeituMV
//
// Created by Tpphha on 2019/3/24.
// Copyright © 2019 美图网. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@class MPITextAttachment;
@interface MPITextAttachmentInfo : NSObject
@prop... |
Changzw/every-case-demo | Pods/MPITextKit/Sources/MPITextInteractiveGestureRecognizer.h | //
// MPITextInteractiveGestureRecognizer.h
// MeituMV
//
// Created by Tpphha on 2019/3/24.
// Copyright © 2019 美图网. All rights reserved.
//
#import <UIKit/UIKit.h>
/** Type of result of the gesture in state UIGestureRecognizerStateRecognized. */
typedef NS_ENUM(NSInteger, MPITextInteractiveGestureRecognizerResu... |
Changzw/every-case-demo | Pods/MPITextKit/Sources/MPITextEqualityHelpers.h | //
// MPITextEqualityHelpers.h
// MeituMV
//
// Created by Tpphha on 2019/3/24.
// Copyright © 2019 美图网. All rights reserved.
//
#ifndef MPITextEqualityHelpers_h
#define MPITextEqualityHelpers_h
/**
@abstract Correctly equates two objects, including cases where both objects are nil. The latter is a case where `i... |
Changzw/every-case-demo | Pods/FRDIntent/FRDIntent/Source/FRDIntent-Bridging-Header.h | <gh_stars>100-1000
//
// FRDIntent-Bridging-Header.h
// FRDIntent
//
// Created by <NAME> on 07/12/2016.
// Copyright © 2016 Douban Inc. All rights reserved.
//
#ifndef FRDIntent_Bridging_Header_h
#define FRDIntent_Bridging_Header_h
#endif /* FRDIntent_Bridging_Header_h */
|
Changzw/every-case-demo | Pods/MPITextKit/Sources/MPITextBackgroundsInfo.h | <reponame>Changzw/every-case-demo
//
// MPITextBackgroundsInfo.h
// MeituMV
//
// Created by Tpphha on 2019/3/24.
// Copyright © 2019 美图网. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class MPITextBackground;
@interface MPITextBackgroundsInfo : NSObject
@property (nonatomi... |
Changzw/every-case-demo | Pods/MPITextKit/Sources/MPITextDefaultsValueHelpers.h | <gh_stars>100-1000
//
// MPITextDefaultsValueHelpers.h
// MeituMV
//
// Created by Tpphha on 2019/3/24.
// Copyright © 2019 美图网. All rights reserved.
//
#import <UIKit/UIKit.h>
FOUNDATION_EXTERN NSDictionary *MPITextDefaultLinkTextAttributes(void);
FOUNDATION_EXTERN NSDictionary *MPITextDefaultHighlightedLinkTex... |
Changzw/every-case-demo | Pods/MPITextKit/Sources/MPITextLayoutManager.h | <reponame>Changzw/every-case-demo
//
// MPITextLayoutManager.h
// MeituMV
//
// Created by Tpphha on 2019/3/24.
// Copyright © 2019 美图网. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@class MPITextAttachmentsInfo;
@class MPITextBackgroundsInfo;
@class MPITextDebugOption;
@interface MPI... |
Changzw/every-case-demo | Pods/FlexUI/FlexUI/Sources/Utils/NSObject+Hook.h | //
// NSObject+Hook.h
// FlexUI
//
// Created by <NAME> on 2020/9/18.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@protocol _NSObjectLoadable<NSObject>
+ (void)_flexSwiftLoad;
@end
#define DECL_HOOK_LOADABLE(cls) \
@interface cls(FlexHook) \
@end
DECL_HOOK_LOADABLE(UITableViewCell)
DECL_HOOK_LOADABLE(U... |
Changzw/every-case-demo | Pods/Target Support Files/MPITextKit/MPITextKit-umbrella.h | <reponame>Changzw/every-case-demo
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "MPILabel.h"
#import "MPITextAsyncLayer.h"
#import "MPITextAttachment.h"
#import "M... |
Changzw/every-case-demo | Pods/MPITextKit/Sources/NSMutableParagraphStyle+MPITextKit.h | <reponame>Changzw/every-case-demo
//
// NSMutableParagraphStyle+MPITextKit.h
// MeituMV
//
// Created by Tpphha on 2019/1/21.
// Copyright © 2019 美图网. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSMutableParagraphStyle (MPITextKit)
+ (instancetype)mpi_styleWithCTStyle:(CTP... |
Changzw/every-case-demo | Pods/Target Support Files/QGVAPlayer/QGVAPlayer-umbrella.h | <filename>Pods/Target Support Files/QGVAPlayer/QGVAPlayer-umbrella.h
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "QGBaseDecoder.h"
#import "QGMP4FrameHWDecoder.h... |
Changzw/every-case-demo | Pods/QGVAPlayer/iOS/QGVAPlayer/QGVAPlayer/Classes/Controllers/Decoders/QGBaseDecoder.h | // QGBaseDecoder.h
// Tencent is pleased to support the open source community by making vap available.
//
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the MIT License (the "License"); you may not use this file except in
// compliance with the License. You may obta... |
Changzw/every-case-demo | Pods/ZVProgressHUD/ZVProgressHUD/ZVProgressHUD.h | //
// ZVProgressHUD.h
// ZVProgressHUD
//
// Created by zevwings on 2017/7/11.
// Copyright © 2017-2019 zevwings. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for ZVProgressHUD.
FOUNDATION_EXPORT double ZVProgressHUDVersionNumber;
//! Project version string for ZVProgressH... |
Changzw/every-case-demo | Pods/MPITextKit/Sources/MPITextTailTruncater.h | <filename>Pods/MPITextKit/Sources/MPITextTailTruncater.h
//
// MPITextTailTruncater.h
// MeituMV
//
// Created by Tpphha on 2019/3/24.
// Copyright © 2019 美图网. All rights reserved.
//
#import <Foundation/Foundation.h>
#if __has_include(<MPITextKit/MPITextKit.h>)
#import <MPITextKit/MPITextTruncating.h>
#else
#impo... |
Changzw/every-case-demo | Pods/RxRelay/RxRelay/RxRelay.h | //
// RxRelay.h
// RxRelay
//
// Created by Wassim on 4/28/17.
// Copyright © 2017 Wassim. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for RxRelay.
FOUNDATION_EXPORT double RxRelayVersionNumber;
//! Project version string for RxRelay.
FOUNDATION_EXPORT const unsigned char RxRelayVe... |
Changzw/every-case-demo | Pods/MPITextKit/Sources/MPITextDebugOption.h | <filename>Pods/MPITextKit/Sources/MPITextDebugOption.h
//
// MPITextDebugOption.h
// MeituMV
//
// Created by Tpphha on 2019/3/24.
// Copyright © 2019 美图网. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@class MPITextDebugOption;
/**
The MPITextDebugTarget protocol defines the method a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.