text stringlengths 5.8k 28.2k |
|---|
/**
* FITS2CSV -- Convert FITS Binary Tables to one or more CSV files.
*
* Usage:
* fits2csv [<otps>] [ <input> ..... ]
*
* @file fits2csv.c
* @author <NAME>
* @date 8/13/16
*
* @brief Convert FITS Binary Tables to one or more CSV files.
*/
#include <stdio.h>
#include <unistd.... |
/* FUNCTIONS to extract indel alleles from reads, calculate counts and reduce counts for ambigous reads that do not span the entire indel homopolymer or repeat tract , created 07/04/11 */
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
int indel_cmp(const void *a,const void ... |
/*
* File: ekfAHRS.c
*
* MATLAB Coder version : 3.2
* C/C++ source code generated on : 15-Apr-2019 03:04:04
*/
/* Include Files */
#include "ekfAHRS.h"
/* Variable Definitions */
static boolean_T flag_not_empty;
static double P[81];
static double Q[81];
static double R[16];
static double xhat[9];
sta... |
/*
* MIT License
*
* Copyright (c) 2021 <NAME>
*
*/
#include <string.h>
#include "dgx_p8_screen.h"
#include "driver/spi_master.h"
#include "driver/gpio.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_heap_caps.h"
static uint32_t p8_gpio_mask_set[256];
static uint32_t p8_gpio_mask_clea... |
/* Copyright 2009 <NAME> and <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
*
* Unless required by applicable law or agreed ... |
//
// Rubio3x3.c
// Rubio Another Face
//
// Created by <NAME> on 11/02/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
#include "Rubio3x3.h"
#include "Mover.h"
RubikCube tri_init ()
{
return rubikCube_init (3);
}
void tri_R (RubikCube cubo) { rk_R(cubo); }
void tri_R2 (RubikCube cubo) { rk_R(cubo... |
/*
* Copyright (c) 2017,2018 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish... |
/*
* FreeRTOS Kernel V10.4.0
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, includ... |
/****************************************************************************
*
* FINAL BATTLE EXAM
*
* Student name: <NAME>
*
* WARNING! REMEMBER:
* - Program must compile. No compiling program is a 0 in the mark.
* - Program must be perfectly tabulated and spaced.
* - Program must follow req... |
/*
* Copyright (c) 2015 <NAME>, Inc., http://www.sippysoft.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* no... |
/*
* SSI.c
* ----------
* Inspired by examples in ValvanoWareTM4C123 by Dr. <NAME>
* as well as his book Embedded Systems: Real-Time Interfacing to Arm Cortex-M Microcontrollers
* You can find ValvanoWareTM4C123 at http://edx-org-utaustinx.s3.amazonaws.com/UT601x/ValvanoWareTM4C123.zip?dl=1
* You can ... |
// Copyright (c) 2004-2020 Microchip Technology Inc. and its subsidiaries.
// SPDX-License-Identifier: MIT
#include <stdint.h>
#include <stdio.h>
#include <unistd.h>
#include <microchip/ethernet/board/api.h>
#include "meba_aux.h"
#define RED 0 // NB: Red/Green reversed in board docs
#define GREEN 1 // NB: R... |
#include "iodine.h"
#include <ruby/thread.h>
#include <stdint.h>
// clang-format on
#define FIO_INCLUDE_LINKED_LIST
#include "fio.h"
#include <pthread.h>
static ID STATE_PRE_START;
static ID STATE_BEFORE_FORK;
static ID STATE_AFTER_FORK;
static ID STATE_ENTER_CHILD;
static ID STATE_ENTER_MASTER;
static ID STATE_ON... |
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... |
// wspice.h
// Matlab Mex Interface Replacement
//typedef MTensor mxArray;
#define mxINT32_CLASS MType_Integer
#define mxREAL MType_Double
/*
-Abstract
Define and assign the Mice particular variable types.
Do not edit, touch, or in any way alter the code within this file.
-Disclaimer
THI... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <ctype.h>
#define BLOCK_SIZE 8192
#define MINIMUM_RUN 8
#define MAXIMUM_REDUNDANCY 6
// you cannot write a patch block with an offset of 4,542,278 (0x454F46) because it is the end of file marker
#define EOF_MARKER 4542278
struct p... |
// ---------------------------------------------------------------------------
// Copyright <NAME> 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)... |
/*
* cipher.c
*
* Copyright 2014, 2015 by <NAME>. All rights released.
*/
#include <ctype.h>
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#define GROUPING 5 /* Historical for numeric output. */
#define WRAP_WIDTH ((GROUPING+1)*10)
#define BUFFER_SIZE (GROU... |
/*
* OpenBIOS virtio-1.0 virtio-blk driver
*
* Copyright (c) 2013 <NAME> <<EMAIL>>
* Copyright (c) 2018 <NAME> <<EMAIL>>
*
* This work is licensed under the terms of the GNU GPL, version 2 or (at
* your option) any later version. See the COPYING file in the top-level
* directory.
*/
#include "config.h"
#inclu... |
/*
(C) 2001 by Argonne National Laboratory.
See COPYRIGHT in top-level directory.
*/
#include "mpe_logging_conf.h"
#if defined( STDC_HEADERS ) || defined( HAVE_STDIO_H )
#include <stdio.h>
#endif
#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H )
#include <stdlib.h>
#endif
#if defined( STDC_HEADERS ) ||... |
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2010 - 2020 iVeia
* <NAME> <<EMAIL>>
*
* Read and process iVeia EEPROM IPMI-based board info. Required to determine
* MAC address.
*
* Note: currently uses CONFIG_DM_I2C_COMPAT for accessing I2C bus - this
* method is deprecated.
*/
#include <common.h>
#... |
/**
* multi-sdr-gps-sim generates a IQ data stream on-the-fly to simulate a
* GPS L1 baseband signal using a SDR platform like HackRF or ADLAM-Pluto.
*
* This file is part of the Github project at
* https://github.com/mictronics/multi-sdr-gps-sim.git
*
* Copyright © 2021 Mictronics
* Distributed under the MIT L... |
/* Haiku-specific stuff */
#ifdef __HAIKU__
#define major(x) ((int)(0x00ff & ((x) >> 8)))
#define minor(x) ((int)(0xffff00ff & (x)))
#define makedev(maj,min) ((0xff00 & ((maj)<<8)) | (0xffff00ff & (min)))
// override bool
#define _WINDEF_H
#ifndef __cplusplus
#include <stdbool.h>
#endif
typedef bool BOOL;
#ifndef __cp... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include "ByteToolkit.h"
#include "rw.h"
#include "qcat.h"
#include "zstd.h"
#include <sz_dummy_compression.h>
#define radius 32768
inline int quantize_api(float *data, float pred, float error_bound) {
float data_value=... |
/* ------------------------------------------
* Copyright (c) 2017, Synopsys, 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:
* 1) Redistributions of source code must retain the above copyr... |
/*
The MIT License (MIT)
Copyright (c) 2017 <NAME>, <NAME>, <NAME>, <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
t... |
//-------------------------------------------------------------------------
/*
Copyright (C) 1996, 2003 - 3D Realms Entertainment
This file is part of Duke Nukem 3D version 1.5 - Atomic Edition
Duke Nukem 3D is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
a... |
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <thread.h>
#include <ctype.h>
#include <plumb.h>
#include <9pclient.h>
#include "dat.h"
static int replyid;
int
quote(Message *m, CFid *fid, char *dir, char *quotetext)
{
char *body, *type;
int i, n, nlines;
char **lines;
if(quotetext){... |
/* python-exec -- a Gentoo tool to choose the correct Python script
* variant for currently selected Python implementation.
* (c) 2012-2016 <NAME>
* Licensed under the terms of the 2-clause BSD license.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
... |
/*
* Copyright (C)2015-2016 Haxe Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge,... |
/******************************************************************************
KPP - The Kinetic PreProcessor
Builds simulation code for chemical kinetic systems
Copyright (C) 1995-1996 <NAME> and <NAME>
Copyright (C) 1997-2005 <NAME>
KPP is free software; you can redistribute it and/or modify it un... |
/* MoAn is a motif discovery tool for DNA sequences */
/* Copyright (C) 2006 <NAME> */
/* This program is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU General Public License */
/* as published by the Free Software Foundation; either version 2 */
/* of the License, or (at you... |
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif /* _GNU_SOURCE */
#include <time.h>
#include <sys/file.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/random.h>
#include <assert.h>
#include <dirent.h>
#include <endian.h>
#include <err.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdint.h>
#include <... |
#include "ul_math_bcd.h"
#include <stdlib.h>
u8 asc_point = '.';
u8 asc_space = ' ';
u8 asc_minus = '-';
u8 bcd2bin_u8( u8 bcd ){ return ( (bcd & 0xF) + (bcd >> 4) * 10 ); }
u8 bin2bcd_u8( u8 bin ) {
u8 tens = 0;
while (bin > 9) { bin -= 10; tens++; }
return ( (tens << 4) + bin );
}
#ifdef __AVR__
u... |
#line 1 "./cfunc.mod"
#include "ngspice/cm.h"
extern void cm_d_hdl(Mif_Private_t *);
#line 1 "./digital/d_hdl/cfunc.mod"
/*******************************************************************************
** MOD FILE (c) 2015, SiliconReef
*****************************************************************************... |
/*
* Copyright (C) 2008, <NAME>
* F.C. Donders Centre for Cognitive Neuroimaging, Radboud University Nijmegen,
* Kapittelweg 29, 6525 EN Nijmegen, The Netherlands
*
*/
#include <string.h>
#include "mex.h"
#include "matrix.h"
#include "buffer.h"
#include <pthread.h>
#include "extern.h"
#define DEFAULT_HOST "loca... |
/*******************************************************************
*
* File: ddr_oxsemi.c
*
* Description: Declarations for DDR routines and data objects
*
* Author: <NAME>
*
* Copyright: Oxford Semiconductor Ltd, 2009
*/
#include <common.h>
#include <asm/arch/clock.h>
#include... |
/*
* Hobject enumeration support.
*
* Creates an internal enumeration state object to be used e.g. with for-in
* enumeration. The state object contains a snapshot of target object keys
* and internal control state for enumeration. Enumerator flags allow caller
* to e.g. request internal/non-enumerable prop... |
/*
* This file is part of the coreboot project.
*
* Copyright 2013 Google Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distribute... |
//
// Source: https://code.google.com/p/google-security-research/issues/detail?id=126
// Blog Post: http://googleprojectzero.blogspot.com/2014/11/pwn4fun-spring-2014-safari-part-ii.html
// Exploit Author: <NAME>
//
// clang -o key_exploit key_exploit.c -framework CoreFoundation -framework IOKit -g -D_FORTIFY_SO... |
/* Change this if the SERVER_NAME environment variable does not report
the true name of your web server. */
#if 1
#define SERVER_NAME cgiServerName
#endif
#if 0
#define SERVER_NAME "www.boutell.dev"
#endif
/* You may need to change this, particularly under Windows;
it is a reasonable guess as to an acceptable place ... |
#include "fat.h"
uint16_t swap_word_endianness(uint16_t value)
{
return (uint16_t)(((value & 0xFF) << 16) | ((value & 0xFF00) >> 16));
}
uint16_t get_swapped_word(uint8_t *location)
{
return (uint16_t)((MMIO8(location+1) << 8) | MMIO8(location));
}
uint32_t get_swapped_long(uint8_t *location)
{
return (uint32_... |
/***************************************************************************
* Copyright (C) 2018 The BlackBoxCmaera Company Limited GPS-PIE.COM
*
* File : MMA8652FC/MMA8652FC_funcs.c
*
* Date : 2018/08/28
*
* Revision : 1.0
*
* Usage: Interface Functions source code file for the MMA8652FC accelerometer
*
************... |
/* nbnsd - A minimal NetBIOS Name Service responder
Copyright (C) 2010 eGauge Systems LLC
Contributed by <NAME> <<EMAIL>>
This file is part of nbnsd.
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 So... |
/**
@file flash_write.h
@brief Write program to flash.
@author <NAME>
@version 1.0
@date 24.9.2018
X...
Copyright 2018 <NAME>. This file is part of the iocom project and shall only be used,
modified, and distributed under the terms of the project licensing. By continuing to use, modify,
or... |
/**************************** Module Header ********************************\
* Module Name: exitwin.c
*
* Copyright (c) 1985 - 1999, Microsoft Corporation
*
* History:
* 07-23-92 ScottLu Created.
\***************************************************************************/
#include "precomp.h"
#pragma ... |
//
// Created by Lenovo on 2021-11-16.
//
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "esp_err.h"
#include "esp_event.h"
#include "esp_log.h"
#include "esp_wifi.h"
#include "esp_sntp.h"
#include "inc... |
#include "util.h"
#include <regex.h>
int getch() {
struct termios oldattr, newattr;
int ch;
tcgetattr(STDIN_FILENO, &oldattr);
newattr = oldattr;
newattr.c_lflag &= ~(ICANON | ECHO);
tcsetattr(STDIN_FILENO, TCSANOW, &newattr);
ch = getchar();
tcsetattr(STDIN_FILENO, TCSANOW, &oldattr);
return ch;
}
... |
/* hv.h
*
* Copyright (C) 1991, 1992, 1993, 1996, 1997, 1998, 1999,
* 2000, 2001, 2002, by <NAME> and others
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
*
*/
/* typedefs to eliminate some typing */
ty... |
#include "ruby/ruby.h"
#include "ruby/st.h"
#include "vm_core.h"
#include "eval_intern.h"
#include "ruby/encoding.h"
#include "internal.h"
#include "iseq.h"
#include "node.h"
#include "insns.inc"
#include "insns_info.inc"
VALUE yarv_builder_build_from_source(VALUE self, VALUE src);
VALUE yarv_builder_build_yarv_tree(r... |
/* Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
Contributed by <NAME>
This file is part of the GNU Fortran 95 runtime library (libgfortran).
Libgfortran 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 Fo... |
#include <p24FJ128GB206.h>
#include <stdint.h>
#include "config.h"
#include "common.h"
#include "usb.h"
#include "usb2.h"
#include "pin.h"
#include "ui.h"
#include "spi.h"
#include "timer.h"
#include "oc.h"
#include "int.h"
#include "uart.h"
#include "i2c.h"
#include "lcd.h"
#include <stdio.h>
#define cap(mn,x,mx) ((... |
/*
* Copyright (C) 2002 <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
/*
* Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009
* The President and Fellows of Harvard College.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain ... |
/*********************************************************************
*
* (C) Copyright Broadcom Corporation 2013-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
*
* htt... |
#include "rt.h"
#include "rt_jtoc.h"
#include "rt_raycast.h"
int rt_jtoc_compare_str_with_texture_name(t_obj_texture *texture, char *str)
{
int i;
int cache_counter;
i = -1;
cache_counter = texture->textures_count;
while (++i < cache_counter)
if ((ft_strstr(texture->textures_path[i], str)))
return (i);
r... |
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "find_file.h"
#define PI 3.1415926
#define RADIUS 6370997.00
#define BUFSIZE 1024
float AreaFromLonLat(float,float);
int main()
{
FILE *fileinAEZ,*fileinProtected,*fileinSoil,*fileinSage, *fileout;
FILE *fileinname;
FILE *fileinVegCarbon;
FILE *FileL... |
#include "btree1.h"
// debug slot function
#ifdef DEBUG
Btree1Slot *btree1Slot(Btree1Page *page, uint32_t idx)
{
return slotptr(page, idx);
}
uint8_t *btree1Key(Btree1Page *page, uint32_t idx)
{
return keyptr(page, idx);
}
uint8_t *btree1Addr(Btree1Page *page, uint32_t off)
{
return keyaddr(page, off);
}
#undef... |
/*
* wedge.c - Originally cribbed from djpeg.c but substantially
* rewritten, which contains the following:
*
* Copyright (C) 1991-1997, <NAME>.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* The objective of "wedge... |
/* devScalerAsyn.c
Author: <NAME>
25-Oct-2006
This is device support for the scaler record with asyn drivers.
*/
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <stdio.h>
#include <recGbl.h>
#include <dbAccess.h>
#include <dbDefs.h>
#include <link.h>
#include <errlog.h>
#include... |
/*
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 the rights
to use, copy, modify, merge, publish, distribute... |
/*
* Copyright 2021 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following di... |
/******************************************************************************/
/* */
/* fuchi.c - An implementation of Fuchi's distributed mutual exclusion */
/* algorithm described in the paper: ... |
/*! \file bcma_bcmbd_cmicd_fifoops.c
*
* This file provides the FIFO operation for CMICd devices.
*/
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
#include <b... |
/******************************************************************************
* Copyright (C) 2017 Broadcom. The term "Broadcom" refers to Broadcom Limited
* and/or its subsidiaries.
*
* This program is the proprietary software of Broadcom and/or its licensors,
* and may only be used, duplicated, modified or... |
#include <stddef.h>
#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
#include "smedl_types.h"
#include "monitor_map.h"
/*****************************************************************************
* Murmur hash
* Uses MurmurHash3 adapted from original by <NAME>
******************************************... |
#include <m8c.h>
#define Boot_RxD_RXBUF_ENABLE 0
//-------------------------------------------------
// Prototypes of the Boot_RxD API.
//-------------------------------------------------
#if ( Boot_RxD_RXBUF_ENABLE )
extern char Boot_RxD_aRxBuffer[];
extern BYTE Boot_RxD_bRxCnt;
extern BYTE Boot_RxD_fStatus;
#endif... |
/*
* avr-nixie-ctrl.c
*
* ATmega328p AVR interfaces with Raspberry Pi to provide two timing-critical
* functions for the Nixie Tube clock: digit multiplexing, digit illumination intensity.
*
* The setup:
* - MISO/MOSI/SCK/RST for direct programming from RPi Zero W
* - MISO/MOSI/SCK/SS for bi-directional commun... |
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <linux/input.h>
#include <string.h>
#include <stdio.h>
#include <linux/input-event-codes.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <stdlib.h>
#include <syslog.h>
#include <sys/types.h>
#include <sys/stat.h>
typedef st... |
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... |
#include <errno.h>
#include <fcntl.h>
#include <net/if_utun.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/kern_control.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/sys_domain.h>
#include <sys/types.h>
#include <sys/un.h>
#includ... |
//============================================================
//
// myosd.c - Implementation of osd stuff
//
// Copyright (c) 1996-2007, <NAME> and the MAME Team.
// Visit http://mamedev.org for licensing and usage restrictions.
//
// MAME4DROID MAME4iOS by <NAME> (Seleuco)
//
//===================================... |
/*
* iprule.c "ip rule".
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*
* Authors: <NAME>, <<EMAIL>>
... |
/*
* Copyright (C) 2011 The Android Open Source Project
*
* 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 app... |
/*
* (C) Copyright 2003
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* (C) Copyright 2003
* <NAME>, EMK Elektronik GmbH, <EMAIL>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the G... |
/* Extended Module Player
* Copyright (C) 1996-2021 <NAME> and <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to... |
/*
* Copyright 2017, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(DATA... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
//Network Systems Programming Assignment 2
//<NAME>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
#define MAXLINE 4096 /*max text line length*/
#define LISTENQ 8 /*maximum... |
/*
* qt-faststart.c, v0.2
* by <NAME> (<EMAIL>)
* This file is placed in the public domain. Use the program however you
* see fit.
*
* This utility rearranges a Quicktime file such that the moov atom
* is in front of the data, thus facilitating network streaming.
*
* To compile this program, start from the bas... |
/* BSD Socket API Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <string.h... |
/* vim: tabstop=4 shiftwidth=4 noexpandtab
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2019 <NAME>
*
* tutorial - A recreation of the original wizard.py, explaining
* the functionality of ToaruOS and how ... |
/* Copyright (C) 2010 The Trustees of Indiana University. */
/* */
/* Use, modification and distribution is subject to the Boost Software */
/* License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at */
/* http:... |
/*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "native_client/src/trusted/service_runtime/win/debug_exception_handler.h"
#include <stddef.h>
#include <stdio.h>
#include <windo... |
// Lab 1-1.
// This is the same as the first simple example in the course book,
// but with a few error checks.
// Remember to copy your file to a new on appropriate places during the lab so you keep old results.
// Note that the files "lab1-1.frag", "lab1-1.vert" are required.
// Should work as is on Linux and Mac. M... |
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <ctype.h>
#include "baos.h"
#include "huffman.h"
#include "hfc.h"
#include "array.h"
#include <stdio.h> // debugging
// encode support
static void vbyte_encode(struct baos *out, long i) {
int len = (i < 0x80) ? 0 :
(i < 0x4000) ? 1 :
(i < 0x200... |
/*
Copyright (c) 2013 <NAME>.
Small test & bench for PFFFT, comparing its performance with the scalar FFTPACK, FFTW, and Apple vDSP
How to build:
on linux, with fftw3:
gcc -o test_pffft -DHAVE_FFTW -msse -mfpmath=sse -O3 -Wall -W pffft.c test_pffft.c fftpack.c -L/usr/local/lib -I/usr/local/include/ -lfftw... |
/*
Copyright (C) 2002, <NAME> <EMAIL>
*/
#include "syst.h"
#include "interface.h"
#include "crt_util.h"
#include "plot.h"
#include "kinaux.h"
#include "strfun.h"
#include "sf_pdt.h"
#include "read_func.h"
/*
#include "phys_val.h"
#include "parser.h"
#include "4_vector.h"
#include "VandP.h"
*/
#include "num_out.h"
#i... |
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include<stdio.h>
#include<stdlib.h>
#include<errno.h>
#include<string.h>
#include<signal.h>
#include<pthread.h>
#include<stdbool.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<sys/wait.h>
#include<sys/socket.h>
#include<netinet/in.h>
#include... |
/* std_str_format.c - Str format method
Copyright (c) 2010-2011 <NAME>
Alore is licensed under the terms of the MIT license. See the file
LICENSE.txt in the distribution.
*/
#include "alore.h"
#include "std_module.h"
#include "str.h"
#include "internal.h"
#include <math.h>
/* Size of the internal buffer... |
/*
--------------------------------------------------
<NAME> (<EMAIL>)
--------------------------------------------------
Auto-shoot / trigger bot for CS:GO.
https://github.com/tfcnn
July 2021
Compile:
clang aimbot.c -Ofast -lX11 -lm -o aim
*/
#include <stdio.h>
#include <string.h>
#include <... |
/**
* @file loess.c
* Modified by <NAME>
* <NAME>
*/
/*
* The authors of this software are Cleveland, Grosse, and Shyu.
* Copyright (c) 1989, 1992 by AT&T.
* Permission to use, copy, modify, and distribute this software for any
* purpose without fee is hereby granted, provided that this entire not... |
/***********************************************************
Copyright 1991-1997 by Stichting Mathematisch Centrum, Amsterdam,
The Netherlands.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby gran... |
#include <stdio.h>
#include "core/ppu.h"
#include "core/cpu.h"
#include "core/mmu.h"
#include "core/bus.h"
u8 ppu_palette[12] =
{
0xE0, 0xF8, 0xD0,
0x88, 0xC0, 0x70,
0x34, 0x68, 0x56,
0x08, 0x18, 0x20
};
void ppu_init(ppu_t* ppu, bool is_cgb)
{
ppu->mode = MODE_OAM;
ppu->cycles = 0;
ppu->line = 0; // todo: ch... |
/*
* Copyright (C) 2018 Marvell International Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
* https://spdx.org/licenses
*/
/* CCU unit device driver for Marvell AP807, AP807 and AP810 SoCs */
#include <common/debug.h>
#include <drivers/marvell/ccu.h>
#include <lib/mmio.h>
#include <armada_common.h>
#includ... |
#include "rtsp-media.h"
#include "sdp.h"
#include "sdp-options.h"
#include "sdp-a-fmtp.h"
#include "sdp-a-rtpmap.h"
#include "sys/path.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <assert.h>
static inline int scopy(struct rtsp_media_t* medias, char** dst, const char* src)
... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* lib/kadm5/str_conv.c */
/*
* Copyright 1995 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* ... |
#include "memories_2.h"
#include "catf.h"
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#define BLOB(name) _binary_##name##_0_start
extern char BLOB(i4_module)[];
extern char BLOB(c4_source)[];
#define OUT(label) \
{ \
snprintf(e, e_sz, "%s: %d", __FILE__, __LINE__); \
goto label;... |
// SPDX-License-Identifier: GPL-2.0-only
/**
* IBM Accelerator Family 'GenWQE'
*
* (C) Copyright IBM Corp. 2013
*
* Author: <NAME> <<EMAIL>>
* Author: <NAME> <<EMAIL>>
* Author: <NAME> <<EMAIL>>
* Author: <NAME> <<EMAIL>>
*/
/*
* Debugfs interfaces for the GenWQE card. Help to debug potential
* problems. Du... |
/*-
* Copyright (c) 2003-2007 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.