repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
kouxichao/ncnn
examples/image_caption/image_caption.h
#pragma once //the size of input image #ifndef IMAGE_SIZE #define IMAGE_SIZE 384 #endif //max byte to save results #ifndef CAPTION_MAX_SIZE #define CAPTION_MAX_SIZE 1000 #endif //image_data path #ifndef RGB_PATH #define RGB_PATH "image.data" #endif //encoder's output dimmention #ifndef ENCODER_DIM #define ENCODER_D...
kouxichao/ncnn
src/layer/dimop.h
#ifndef LAYER_DIMOP_H #define LAYER_DIMOP_H #include "layer.h" namespace ncnn { class DimOp : public Layer { public: DimOp(); virtual int load_param(const ParamDict& pd); virtual int forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const; // virtual int ...
kouxichao/ncnn
examples/face_recognition/face_recognization.h
<filename>examples/face_recognition/face_recognization.h #ifndef FACE_RECOGNIZATION_h #define FACE_RECOGNIZATION_h //#include "net.h" #include<vector> #ifndef DKMAXBOXNUM #define DKMAXBOXNUM 30 // 最多可检测对象数目 #endif #ifndef FEATURE_DIM #define FEATURE_DIM 128 #endif #ifndef DKMINFACEREGISTERIMGNUM #define DKMINFACEREGI...
kouxichao/ncnn
examples/image_caption/encoder_forward.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <signal.h> #include <pthread.h> #include <sys/prctl.h> #include <math.h> #include "hi_common.h" #include "hi_comm_sys.h" #incl...
kouxichao/ncnn
examples/test/resnet.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <signal.h> #include <pthread.h> #include <sys/prctl.h> #include <math.h> #include "hi_common.h" #include "hi_co...
smamczak/NibView
Example/NibView/NibView.h
<filename>Example/NibView/NibView.h // // NibView.h // NibView // // Created by Domas on 10/02/2017. // Copyright © 2017 Trafi. All rights reserved. // #import <UIKit/UIKit.h> //! Project version number for NibView. FOUNDATION_EXPORT double NibViewVersionNumber; //! Project version string for NibView. FOUNDATION...
hfqf/SpeSqliteManager
SpeSqliteManager/SpeSqliteUpdateManager.h
// // Created by Points on 15-04-03. // Copyright (c) 2015年 Points. All rights reserved. // #import <Foundation/Foundation.h> #import <sqlite3.h> #define SINGLETON_FOR_HEADER(className) \ + (className *)sharedInstance; //单例实现的公用函数 #define SINGLETON_FOR_CLASS(className) \ + (className *)sharedInstance { \ static cl...
meego-tablet-ux/meego-app-fingerpaint
plugin/fingerpaint.h
<gh_stars>0 /* * Copyright 2011 Intel Corporation. * * This program is licensed under the terms and conditions of the * Apache License, version 2.0. The full text of the Apache License is at * http://www.apache.org/licenses/LICENSE-2.0 */ #ifndef FINGERPAINT_H #define FINGERPAINT_H #include <QGraphicsWidget> ...
hoheinzollern/FStar
examples/primitives/c/fstarlib.c
#include "fstarlib.h" // Rotate left and right for different sizes of integers uint8 FStar_UInt8_op_Less_Less_Less(uint8 x, int y){ return ((uint8)(x << y)) + (x >> (8 - y)); } uint8 FStar_UInt8_op_Greater_Greater_Greater(uint8 x, int y){ return (x >> y) + ((uint8)(x << (8 - y))); } uint8 FStar...
hoheinzollern/FStar
examples/primitives/c/fstarlib.h
#include <stdint.h> #include <string.h> #include <stdio.h> // Integer constants #define FStar_UInt64_one_wide ((uint128_t)1) #define FStar_UInt64_zero_wide ((uint128_t)0) #define FStar_UInt64_one ((uint64)1) #define FStar_UInt64_zero ((uint64)0) #define FStar_UInt63_one ((uint64)1) #define FStar_UInt63_zer...
hoheinzollern/FStar
examples/primitives/c/test_curve.c
<gh_stars>1-10 #include <stdint.h> #include <stdio.h> #include "fstarlib.h" #define Bignum_Parameters_norm_length 5 #define Bignum_Parameters_a24_prime 121665 #define Bignum_Bigint_template int #define Bignum_Bigint_template_const Bignum_Bigint_template #define Bignum_Bigint_bigint uint64* #define Bignum_Bigint_bigi...
hoheinzollern/FStar
examples/primitives/c/test_poly.c
#include <stdint.h> #include <stdio.h> #include "fstarlib.h" #define Parameters_platform_size 63 #define Parameters_platform_wide 63 #define Parameters_norm_length 5 #define Parameters_bytes_length 17 #define Parameters_ndiff_prime 26 #define Parameters_ndiff 28 void print_array(uint64* array, int le...
wavecomp/waveext
waveflow/kernel_lib/dfx_op_base.h
<gh_stars>1-10 /* * Copyright (c) 2010-2018 Wave Computing, Inc. and its applicable licensors. * All rights reserved; provided, that any files identified as open source shall * be governed by the specific open source license(s) applicable to such files. * * For any files associated with distributions under the...
wavecomp/waveext
waveflow/kernel_lib/gemm_fp.h
<reponame>wavecomp/waveext<filename>waveflow/kernel_lib/gemm_fp.h /* * Copyright (c) 2010-2018 Wave Computing, Inc. and its applicable licensors. * All rights reserved; provided, that any files identified as open source shall * be governed by the specific open source license(s) applicable to such files. * * Fo...
wavecomp/waveext
waveflow/kernel_lib/softmax_lut_dfx.h
/* * Copyright (c) 2010-2018 Wave Computing, Inc. and its applicable licensors. * All rights reserved; provided, that any files identified as open source shall * be governed by the specific open source license(s) applicable to such files. * * For any files associated with distributions under the Apache 2.0 lic...
wavecomp/waveext
waveflow/kernel_lib/config.h
<reponame>wavecomp/waveext /* * Copyright (c) 2010-2018 Wave Computing, Inc. and its applicable licensors. * All rights reserved; provided, that any files identified as open source shall * be governed by the specific open source license(s) applicable to such files. * * For any files associated with distributio...
wavecomp/waveext
waveflow/kernel_lib/binop_dfx.h
/* * Copyright (c) 2010-2018 Wave Computing, Inc. and its applicable licensors. * All rights reserved; provided, that any files identified as open source shall * be governed by the specific open source license(s) applicable to such files. * * For any files associated with distributions under the Apache 2.0 lic...
wavecomp/waveext
waveflow/kernel_lib/dfx_registry.h
/* * Copyright (c) 2010-2018 Wave Computing, Inc. and its applicable licensors. * All rights reserved; provided, that any files identified as open source shall * be governed by the specific open source license(s) applicable to such files. * * For any files associated with distributions under the Apache 2.0 lic...
wavecomp/waveext
waveflow/kernel_lib/gemm_dfx.h
<filename>waveflow/kernel_lib/gemm_dfx.h /* * Copyright (c) 2010-2018 Wave Computing, Inc. and its applicable licensors. * All rights reserved; provided, that any files identified as open source shall * be governed by the specific open source license(s) applicable to such files. * * For any files associated wi...
wavecomp/waveext
waveflow/kernel_lib/tanh_lut_dfx.h
<filename>waveflow/kernel_lib/tanh_lut_dfx.h<gh_stars>1-10 /* * Copyright (c) 2010-2018 Wave Computing, Inc. and its applicable licensors. * All rights reserved; provided, that any files identified as open source shall * be governed by the specific open source license(s) applicable to such files. * * For any f...
wavecomp/waveext
waveflow/kernel_lib/sigmoid_lut_dfx.h
/* * Copyright (c) 2010-2018 Wave Computing, Inc. and its applicable licensors. * All rights reserved; provided, that any files identified as open source shall * be governed by the specific open source license(s) applicable to such files. * * For any files associated with distributions under the Apache 2.0 lic...
wavecomp/waveext
waveflow/kernel_lib/dyn_fx_pt.h
<filename>waveflow/kernel_lib/dyn_fx_pt.h /* * Copyright (c) 2010-2018 Wave Computing, Inc. and its applicable licensors. * All rights reserved; provided, that any files identified as open source shall * be governed by the specific open source license(s) applicable to such files. * * For any files associated w...
briandl2000/reactphysics3d
include/reactphysics3d/components/RigidBodyComponents.h
/******************************************************************************** * ReactPhysics3D physics library, http://www.reactphysics3d.com * * Copyright (c) 2010-2020 <NAME> * ********************************************************************************* *...
furkankaplan/fk-firebase-kit-ios
fk-firebase-kit-ios/Resource/fk_firebase_kit_ios.h
// // fk_firebase_kit_ios.h // fk-firebase-kit-ios // // Created by <NAME> on 29.09.2020. // #import <Foundation/Foundation.h> //! Project version number for fk_firebase_kit_ios. FOUNDATION_EXPORT double fk_firebase_kit_iosVersionNumber; //! Project version string for fk_firebase_kit_ios. FOUNDATION_EXPORT const ...
krenzlin/teensy-synth
src/filter.h
#pragma once #include <stdint.h> namespace filter { struct LP { int32_t sample {}; int32_t process(int32_t input); }; }
krenzlin/teensy-synth
src/buffer.h
<filename>src/buffer.h<gh_stars>0 #include <stddef.h> #include <array> template<typename T, size_t N> struct Buffer { size_t read_ix {0}; size_t write_ix {0}; std::array<T, N+1> values {}; T default_value {}; inline bool empty() { return write_ix == read_ix; } inline bool full() ...
krenzlin/teensy-synth
src/voices.h
#pragma once #include <stdint.h> #include <math.h> #include "misc.h" #include "ADSR.h" namespace osc { constexpr uint8_t n_voices {16}; template<typename T> struct VoiceManager { std::array<T, n_voices> voices {}; std::array<T*, 127> notes {}; int32_t process() { int32_...
krenzlin/teensy-synth
src/osc.h
<gh_stars>0 #pragma once #include <stdint.h> #include "delay.h" #include "filter.h" namespace osc { class Saw { uint32_t phase {(uint32_t) INT32_MIN}; uint32_t p_incr {0}; int32_t sample{0}; uint8_t note_ {0}; public: void note_on(uint8_t note, uint8_t velocity...
krenzlin/teensy-synth
tests/mocks/core_pins.h
#include <stdint.h> uint32_t analogWriteResolution(uint32_t bits); void analogWriteDAC0(int val);
krenzlin/teensy-synth
src/misc.h
<gh_stars>0 #pragma once #include <stdint.h> namespace misc { constexpr float tuning {440.f}; #ifdef AUDIO_SAMPLE_RATE_EXACT constexpr uint16_t samplerate {(uint16_t) AUDIO_SAMPLE_RATE_EXACT}; #else constexpr uint16_t samplerate {48000U}; #endif constexpr uint32_t random_seed {42U}; // must be non-zer...
krenzlin/teensy-synth
src/AudioObjects.h
<filename>src/AudioObjects.h #include "Audio.h" #include "osc.h" #include "voices.h" #include "misc.h" #define AUDIO_BLOCK_SAMPLES 128 template<typename T> class AudioObject : public AudioStream, public T { public: AudioObject() : AudioStream(0, NULL) {}; void update(void) { auto blo...
krenzlin/teensy-synth
src/delay.h
<gh_stars>0 #include <stddef.h> #include <array> template<size_t N> inline size_t advance(const size_t ix) { return (ix + 1) % (N); } template<typename T, size_t N> struct Delay { size_t ix {0}; std::array<T, N> values {}; inline size_t length() { return N; } T read() { retur...
krenzlin/teensy-synth
src/luts.h
#pragma once #include <stdint.h> #include <array> #include "misc.h" namespace luts { const auto m_to_incr = []() { std::array<uint32_t, 128> lut; for (auto i=0; i<=127; i++) { auto f = misc::m_to_f(i); lut[i] = misc::f_to_incr(f); } return lut; }(); }
nacker/menuItem
menuItem/ViewController.h
// // ViewController.h // menuItem // // Created by nacker <EMAIL> on 15/9/29. // Copyright © 2015年 Shanghai Minlan Information & Technology Co ., Ltd. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
WCTP/Apriori_Production
Apriori/Apriori/SubList.h
<gh_stars>0 /* Author: <NAME> & <NAME> * Class : CSI-281-01 * Assignment : Final Project * Date Assigned : November 30, 2017 * Due Date : November 5, 2017 * * Description : * An implementation of the Apriori algorithm. * * Certification of Authenticity : * I certify that this is entirel...
WCTP/Apriori_Production
Apriori/Apriori/ItemsList.h
<gh_stars>0 /* Author: <NAME> & <NAME> * Class : CSI-281-01 * Assignment : Final Project * Date Assigned : November 30, 2017 * Due Date : November 5, 2017 * * Description : * An implementation of the Apriori algorithm. * * Certification of Authenticity : * I certify that this is entirel...
WCTP/Apriori_Production
Apriori/Apriori/functions.h
<gh_stars>0 #ifndef FUNCTIONS_H #define FUNCTIONS_H #include <iostream> #include <string> #include <sstream> #include <fstream> #include "ItemsList.h" #include "SubList.h" using namespace std; /* functions */ void calculateSupport(SubList& sub1, SubList& sub2, bool flipper, bool **transaction, int fileL...
constantine97a/nginx-1.0.14_comment
src/os/unix/ngx_shmem.h
<reponame>constantine97a/nginx-1.0.14_comment<filename>src/os/unix/ngx_shmem.h /* * Copyright (C) <NAME> * Copyright (C) Nginx, Inc. */ #ifndef _NGX_SHMEM_H_INCLUDED_ #define _NGX_SHMEM_H_INCLUDED_ #include <ngx_config.h> #include <ngx_core.h> /** * 进程间的互斥锁基本上实现方式是两种,、 * #1 进程间的共享内存 * #2 使用文件锁的方式进程 */ type...
constantine97a/nginx-1.0.14_comment
src/http/ngx_http_request_body.c
/* * Copyright (C) <NAME> * Copyright (C) Nginx, Inc. */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> static void ngx_http_read_client_request_body_handler(ngx_http_request_t *r); static ngx_int_t ngx_http_do_read_client_request_body(ngx_http_request_t *r); static ngx_int_t ngx_http_write...
constantine97a/nginx-1.0.14_comment
objs/autotest.c
#include <sys/types.h> #include <unistd.h> #include <sched.h> int main() { sched_yield(); return 0; }
MoltenCoffee/aoc-2021
day03/src/main.c
<gh_stars>0 #include <stdio.h> #include <stdlib.h> #include "../../lib/common.h" #define LINES 1000 static char getMostPrevalentChar(char **array, int lines, int pos) { int oneCount = 0; int totalCount = 0; for (int i = 0; i < lines; i++) { if (array[i][0] == 'n') continue; totalCount++; i...
MoltenCoffee/aoc-2021
day02/src/main.c
<gh_stars>0 #include <stdlib.h> #include <ctype.h> #include <stdbool.h> #include <string.h> #include <stdio.h> #define INPUT_SIZE 1000 typedef enum { UP, DOWN, FORWARD } Direction; typedef struct { Direction direction; int amount; } Instruction; int main(int argc, char *argv[]) { if (argc != 2) { ...
MoltenCoffee/aoc-2021
day04/src/main.c
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <stdbool.h> #include "../../lib/common.h" #define LIST_SIZE 100 #define BOARD_ROWS 5 #define BOARD_COLS 5 typedef struct Field { int val; bool checked; } Field; typedef Field Row[BOARD_COLS]; typedef Row Board[BOARD_ROWS]; s...
MoltenCoffee/aoc-2021
day10/src/main.c
<reponame>MoltenCoffee/aoc-2021 #include <ctype.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "../../lib/common.h" static int compare(const void* a, const void* b) { uint64_t int_a = *((uint64_t*)a); uint64_t int_b = *((uint64_t*)b); if (int_a == int_b) return ...
MoltenCoffee/aoc-2021
day11/src/main.c
#include <ctype.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "../../lib/common.h" #define ROW_COUNT 10 #define COL_COUNT 10 typedef uint8_t Grid[ROW_COUNT][COL_COUNT]; static void propagateFlash(Grid rows, Grid flashed) { // Flash all octopuses with 9 or higher boo...
MoltenCoffee/aoc-2021
day06/src/main.c
<reponame>MoltenCoffee/aoc-2021 #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <ctype.h> #include "../../lib/common.h" #define DAYS 256 #define NEW_FISH_VALUE 8 #define RESET_FISH_VALUE 6 int main(int argc, char *argv[]) { printf("\n"); if (argc != 2) { fprintf(stderr, "Exactly one ar...
MoltenCoffee/aoc-2021
day07/src/main.c
<filename>day07/src/main.c<gh_stars>0 #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <ctype.h> #include "../../lib/common.h" #define INPUT_SIZE 1000 static int compare(const void *a, const void *b) { uint16_t int_a = *((uint16_t *)a); uint16_t int_b = *((uint16_t *)b); if (int_a == int_b)...
MoltenCoffee/aoc-2021
day13/src/main.c
#include <ctype.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "../../lib/common.h" #define INITIAL_ARRAY_SIZE 1020 #define GROW_FACTOR 2 typedef struct Coord { uint16_t X; uint16_t Y; } Coord; static Coord foldCoords(Coord* coords, int coordCount, char foldDir, u...
MoltenCoffee/aoc-2021
lib/common.h
#ifndef aoc_files_h #define aoc_files_h #include <stdio.h> #include <stdlib.h> #include <string.h> char* readFile(const char* path); char* readLine(char* buffer); #endif
MoltenCoffee/aoc-2021
day09/src/main.c
#include <ctype.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "../../lib/common.h" typedef struct Point { int value; bool visited; } Point; static bool isLowPoint(Point** rows, int r, int c, int maxRow, int maxCol) { int current = rows[r][c].value; if (r != 0 && ...
MoltenCoffee/aoc-2021
day01/src/main.c
#include <stdlib.h> #include <ctype.h> #include <stdio.h> #define ARRAY_SIZE 2000 static inline void emptyBuffer(char *buffer) { buffer[0] = '\0'; } static inline void addValue(char *buffer, long *values, int i) { values[i] = atol(buffer); } static void readValues(FILE *file, long *values) { char buffer[10]; ...
MoltenCoffee/aoc-2021
lib/common.c
#include "common.h" static size_t getFilesize(FILE* file) { fseek(file, 0L, SEEK_END); size_t fileSize = ftell(file); rewind(file); return fileSize; } char* readFile(const char* path) { FILE* file = fopen(path, "r"); if (file == NULL) fprintf(stderr, "\033[1;31mCould not open provided fil...
MoltenCoffee/aoc-2021
day08/src/main.c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <ctype.h> #include <stdbool.h> #include "../../lib/common.h" #define TOTAL_LINES 200 typedef char segment[8]; typedef segment row[14]; typedef int keyRow[10]; typedef int outputRow[4]; typedef char mapRow[7]; static int findIndex(int *array, int l...
MoltenCoffee/aoc-2021
day05/src/main.c
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <stdbool.h> #include "../../lib/common.h" #define TOTAL_LINES 500 typedef struct Line { int x1; int y1; int x2; int y2; } Line; int main(int argc, char *argv[]) { printf("\n"); if (argc != 2) { fprintf(stderr, "Exactly one argument...
ScaleFT/libxjwt
src/keyset.c
<reponame>ScaleFT/libxjwt /** * Copyright 2017, ScaleFT Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
ScaleFT/libxjwt
tests/test_split.c
/** * Copyright 2017, ScaleFT Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
ScaleFT/libxjwt
tests/utils.c
<reponame>ScaleFT/libxjwt /** * Copyright 2017, ScaleFT Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
ScaleFT/libxjwt
src/key.c
/** * Copyright 2017, ScaleFT Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
ScaleFT/libxjwt
src/internal/xjwt_key.h
<reponame>ScaleFT/libxjwt<filename>src/internal/xjwt_key.h /** * Copyright 2017, ScaleFT Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses...
ScaleFT/libxjwt
tests/test_verify.c
<reponame>ScaleFT/libxjwt<filename>tests/test_verify.c /** * Copyright 2017, ScaleFT Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
ScaleFT/libxjwt
tests/xjwt_tests.h
<filename>tests/xjwt_tests.h /** * Copyright 2017, ScaleFT Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
ScaleFT/libxjwt
src/validator.c
<reponame>ScaleFT/libxjwt<gh_stars>1-10 /** * Copyright 2017, ScaleFT Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
ScaleFT/libxjwt
src/key_ec.c
/** * Copyright 2017, ScaleFT Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
ScaleFT/libxjwt
tests/test_keyset.c
<gh_stars>1-10 /** * Copyright 2017, ScaleFT Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
ScaleFT/libxjwt
src/b64.c
<reponame>ScaleFT/libxjwt /** * Copyright 2017, ScaleFT Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
ScaleFT/libxjwt
src/error.c
<reponame>ScaleFT/libxjwt /** * Copyright 2017, ScaleFT Inc * Copyright 2007-2010 <NAME>. * Copyright 2006 <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://...
ScaleFT/libxjwt
include/xjwt/xjwt_error.h
/** * Copyright 2017, ScaleFT Inc * Copyright 2007-2010 <NAME>. * Copyright 2006 <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/LI...
ScaleFT/libxjwt
include/xjwt/xjwt_validator.h
/** * Copyright 2017, ScaleFT Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
ScaleFT/libxjwt
src/parse.c
/** * Copyright 2017, ScaleFT Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
ScaleFT/libxjwt
src/internal/xjwt_parse.h
<gh_stars>1-10 /** * Copyright 2017, ScaleFT Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
maximbilan/UISegmentedControl_IconAndText
UISegmentedControl_IconAndText/UIImage+UISegmentedControlIconAndText.h
<reponame>maximbilan/UISegmentedControl_IconAndText<gh_stars>1-10 // // UIImage+UISegmentedControlIconAndText.h // UISegmentedControl_IconAndText // // Created by <NAME> on 6/8/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (UISegmentedControlIconAndText) + (...
n-t-roff/ex-3.6
mapmalloc.c
<reponame>n-t-roff/ex-3.6 /* * AT&T Unix 7th Edition memory allocation routines. * * Modified by <NAME>, Freiburg i. Br., Germany, February 2005. * * Copyright(C) Caldera International Inc. 2001-2002. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are...
n-t-roff/ex-3.6
ex_vars.h
<filename>ex_vars.h /* sccs id @(#) ex_vars.h @(#)makeoptions 6.1 10/18/80 */ #define AUTOINDENT 0 #define AUTOPRINT 1 #define AUTOWRITE 2 #define BEAUTIFY 3 #define DIRECTORY 4 #define EDCOMPATIBLE 5 #define ...
n-t-roff/ex-3.6
ex_put.c
/* Copyright (c) 1980 Regents of the University of California */ /* static char *sccsid = "@(#)ex_put.c 6.3 11/3/80"; */ #include "ex.h" #include "ex_tty.h" #include "ex_vis.h" /* * Terminal driving and line formatting routines. * Basic motion optimizations are done here as well * as formatting of lines (printing o...
MichaelQuell/PSNM
GrayScott/Programs/OpenCL/gs_functions.c
// // // //This file contains only functions for main_gs.c // // #include <CL/cl.h> #include <sys/time.h> #include <string.h> //read the INPUTFILE void parainit(int * Nx, int * Ny, int * Tmax, int * plotgap, double * Lx, double * Ly, double * dt, double * Du, double * Dv, double * A, double *B ){ int intcomm[4]; do...
MichaelQuell/PSNM
GrayScott/Programs/OpenCL/main_gs.c
<filename>GrayScott/Programs/OpenCL/main_gs.c<gh_stars>10-100 #include "clFFT.h" #include <stdio.h> #include <stdlib.h> #include <math.h> #include <sys/time.h> #include "gs_functions.c" #if defined(cl_amd_fp64) || defined(cl_khr_fp64) #if defined(cl_amd_fp64) #pragma OPENCL EXTENSION cl_amd_fp64 : enable ...
kelvin943/ZQFoundation
ZQCommon/Category/Other/UIImage+ZQAdd.h
// // UIImage+ZQAdd.h // ZQFoundation // // Created by macro on 2019/9/10. // #import <UIKit/UIKit.h> /* e.g: get image from defaul iconfont: ImageWithDefaultIconfont(_iconStr_,_size_,_color_) get image from costom iconfont: ImageWithDefaultIconfont(_fontName_,_iconStr_,_size_,_color_) */ #define ImageWith...
kelvin943/ZQFoundation
ZQUIKit/ZQCustomizeBar/UIViewController+ZQCustomizeNavBar.h
// // UIViewController+ZQCustomizeNavBar.h // ZQDemoApp // // Created by 张泉(macro) on 2019/7/26. // Copyright © 2019 张泉. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface ZQCustomNavBar : UIView /// 导航栏背景颜色的透明度(0,1) @property (nonatomic, assign) CGFloat barAlpha; /// 导航栏的vc 自己na...
kelvin943/ZQFoundation
ZQFoundation.h
// // ZQFoundation.h // ZQFoundation // // Created by macro on 2019/9/26. // #if __has_include(<ZQFoundation/ZQFoundation.h>) #import <ZQFoundation/ZQCommon.h> #import <ZQFoundation/ZQUIKit.h> #else #import "ZQCommon.h" #import "ZQUIKit.h" #endif
kelvin943/ZQFoundation
ZQUIKit/ZQTableViewController/Cells/BaseTableViewCell.h
// // BaseTableViewCell.h // MJRefresh // // Created by macro on 2019/9/7. // #import <UIKit/UIKit.h> #import "BaseModel.h" @interface BaseTableViewCell : UITableViewCell @property (nonatomic, strong) id<CellModelBasicProtocol> cellModel; @property (nonatomic, strong) NSIndexPath* indexPath; + (NSString *)cellIdent...
kelvin943/ZQFoundation
ZQUIKit/ZQHoverViewController/ZQHoverViewController.h
<filename>ZQUIKit/ZQHoverViewController/ZQHoverViewController.h // // ZQHoverViewController.h // ZQFoundation // // Created by 张泉(Macro) on 2019/10/30. // #import "BaseViewController.h" #import "ZQHoverScrollView.h" NS_ASSUME_NONNULL_BEGIN @interface ZQHoverViewController : BaseViewController @property (nonatomi...
kelvin943/ZQFoundation
ZQUIKit/Common/ZQSegmentView.h
<reponame>kelvin943/ZQFoundation // // ZQSegmentView.h // ZQFoundation // // Created by 张泉(Macro) on 2019/10/12. // /* // suggest init frame - (ZQSegmentView *)segmentView { if (!_segmentView) { _segmentView = [[ZQSegmentView alloc] initWithFrame:CGRectMake(0, 0,SCREENWIDTH , 44)]; _segm...
kelvin943/ZQFoundation
ZQUIKit/ZQPageViewController/ZQBookViewController.h
<reponame>kelvin943/ZQFoundation<gh_stars>1-10 // // ZQPageViewController.h // ZQFoundation // // 基于 UIPageViewController 封装的分页控制器, // Created by 张泉(Macro) on 2019/10/17. // #import "BaseViewController.h" NS_ASSUME_NONNULL_BEGIN @interface ZQBookViewController : BaseViewController @property (nonatomic,assign,re...
kelvin943/ZQFoundation
Example/ZQFoundation/hoverVC.h
// // hoverVC.h // ZQFoundation_Example // // Created by 张泉(Macro) on 2019/10/21. // Copyright © 2019 macro. All rights reserved. // #import <ZQFoundation/ZQFoundation.h> NS_ASSUME_NONNULL_BEGIN @interface hoverVC : HoverTableViewController @end NS_ASSUME_NONNULL_END
kelvin943/ZQFoundation
ZQUIKit/ZQHoverViewController/ZQHoverScrollView.h
// // ZQHoverScrollView.h // ZQFoundation // // Created by 张泉(Macro) on 2019/10/30. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @class ZQHoverScrollView; @protocol ZQHoverScrollViewDataSource <NSObject> @required - (UIView*)headViewForHoverView:(ZQHoverScrollView*)hoverView; - (UIView*)hoverViewForHoverVie...
kelvin943/ZQFoundation
ZQUIKit/ZQBaseModel/BaseModel.h
<gh_stars>1-10 // // BaseModel.h // MJRefresh // // Created by macro on 2019/9/6. // #if __has_include(<YYModel/YYModel.h>) #import <YYModel/YYModel.h> #else #import "YYModel.h" #endif #import <Foundation/Foundation.h> @protocol CellModelBasicProtocol <NSObject> @property (nonatomic, assign) Class cellClass; @pr...
kelvin943/ZQFoundation
Example/ZQFoundation/ZQViewController.h
<filename>Example/ZQFoundation/ZQViewController.h // // ZQViewController.h // ZQFoundation // // Created by macro on 11/15/2018. // Copyright (c) 2018 macro. All rights reserved. // #import "BaseTableViewController.h" #import "UITableView+ZQAdd.h" @import UIKit; @interface ZQViewController : BaseTableViewControll...
kelvin943/ZQFoundation
ZQCommon/Category/View/UIButton+ZQAdd.h
// // UIButton+ZQAdd.h // ZQDemoApp // // Created by 张泉(macro) on 2019/3/1. // Copyright © 2019 张泉. All rights reserved. // #import <UIKit/UIKit.h> #import <objc/runtime.h> //按钮点击事件回调 typedef void(^TouchUpInsideAction)(UIButton * _Nullable button); //按钮图片和文字布局方式 typedef NS_ENUM(NSInteger, SCButtonLayoutStyle) { ...
kelvin943/ZQFoundation
Example/ZQFoundation/tableVC.h
// // tableVC.h // ZQFoundation_Example // // Created by 张泉(Macro) on 2019/10/23. // Copyright © 2019 macro. All rights reserved. // #import <ZQFoundation/ZQFoundation.h> NS_ASSUME_NONNULL_BEGIN @interface tableVC : BaseTableViewController @end NS_ASSUME_NONNULL_END
kelvin943/ZQFoundation
ZQUIKit/ZQTableViewController/ViewAdaptor/BaseTableViewAdaptor.h
<filename>ZQUIKit/ZQTableViewController/ViewAdaptor/BaseTableViewAdaptor.h // // BaseTableViewAdaptor.h // MJRefresh // // Created by macro on 2019/9/6. // #if __has_include(<MJRefresh/MJRefresh.h>) #import <MJRefresh/MJRefresh.h> #else #import "MJRefresh.h" #endif #import <Foundation/Foundation.h> #import "BaseMod...
kelvin943/ZQFoundation
ZQUIKit/ZQBaseViewModel/BaseViewModel.h
<reponame>kelvin943/ZQFoundation<filename>ZQUIKit/ZQBaseViewModel/BaseViewModel.h // // BaseViewModel.h // Pods // // Created by 张泉(macro) on 2019/9/10. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface BaseViewModel : NSObject @end @interface BaseTableViewModel : BaseViewModel @end NS_...
kelvin943/ZQFoundation
ZQCommon/Macro/ZQMacros.h
// // ZQMacros.h // ZQDemoApp // // Created by Macro on 2017/11/14. // Copyright © 2017年 Macro. All rights reserved. // #ifndef ZQMacros_h #define ZQMacros_h #pragma mark - Print #ifdef DEBUG //print #define ZQPrint(format, ...) do { \ fprintf(stderr, "============================...
kelvin943/ZQFoundation
ZQCommon/ZQCommon.h
// // ZQCommon.h // ZQDemoApp // // Created by Macro on 2018/8/17. // Copyright © 2018年 Macro. All rights reserved. // #if __has_include(<ZQFoundation/ZQCommon.h>) //Macrpo #import <ZQFoundation/ZQMacros.h> #import <ZQFoundation/ZQSingleton.h> //UI #import <ZQFoundation/UIButton+ZQAdd.h> #import <ZQFoundation/UI...
kelvin943/ZQFoundation
ZQCommon/Category/View/UITableView+ZQAdd.h
<filename>ZQCommon/Category/View/UITableView+ZQAdd.h<gh_stars>1-10 // // UITableView+ZQAdd.h // ZQFoundation // // Created by 张泉(macro) on 2019/9/25. // 零行代码为 tableview 添加空数据加载占位图 #import <UIKit/UIKit.h> @interface UITableView (ZQEmptyData) @property (nonatomic, assign) BOOL firstReload; //是否第一次加载 @propert...
kelvin943/ZQFoundation
Example/ZQFoundation/TestVC.h
<filename>Example/ZQFoundation/TestVC.h // // TestVC.h // ZQFoundation_Example // // Created by 张泉(Macro) on 2019/10/17. // Copyright © 2019 macro. All rights reserved. // #import <ZQFoundation/ZQFoundation.h> NS_ASSUME_NONNULL_BEGIN @interface TestVC : BaseViewController @end NS_ASSUME_NONNULL_END
kelvin943/ZQFoundation
Example/ZQFoundation/ZQAppDelegate.h
<filename>Example/ZQFoundation/ZQAppDelegate.h // // ZQAppDelegate.h // ZQFoundation // // Created by macro on 11/15/2018. // Copyright (c) 2018 macro. All rights reserved. // @import UIKit; @interface ZQAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
kelvin943/ZQFoundation
ZQUIKit/ZQPageViewController/ZQPageViewController.h
<gh_stars>1-10 // // ZQPageViewController.h // ZQFoundation // // Created by 张泉(Macro) on 2019/10/18. // /** used self.pageVC = [[ZQPageViewController alloc ] init]; [self.view addSubview:self.pageVC.view]; { UIViewController * tempVC = [[UIViewController alloc] init]; tempVC.view.backgroundColor = ZQ...
kelvin943/ZQFoundation
ZQCommon/Category/Other/NSDictionary+ZQAdd.h
// // NSDictionary+ZQAdd.h // ZQFoundation // // Created by macro on 2019/9/11. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN @interface NSDictionary (ZQSafe) - (NSString*)stringObjectForKey:(id)aKey; - (int)intValueForKey:(id)aKey; - (float)floatValueForKey:(id)aKey; - (double)doubleValueForKey:(...
kelvin943/ZQFoundation
ZQCommon/Macro/ZQSingleton.h
// // ZQSingleton.h // ZQCustomView // // Created by Macro on 16/8/29. // Copyright © 2016年 Macro. All rights reserved. // //单例宏 #ifndef ZQSingleton_h #define ZQSingleton_h // .h文件 #define ZQSingletonH(name) \ + (instancetype)shared##name; // .m文件 #define ZQSingletonM(name) \ static id _instance; \ \ + (instanc...
kelvin943/ZQFoundation
ZQUIKit/ZQUIKit.h
<filename>ZQUIKit/ZQUIKit.h // // ZQUIKit.h // ZQFoundation // // Created by Macro on 2019/9/11. // #if __has_include(<ZQFoundation/ZQUIKit.h>) #import <ZQFoundation/ZQToastUtil.h> #import <ZQFoundation/ZQSegmentView.h> #import <ZQFoundation/BaseModel.h> #import <ZQFoundation/BaseViewModel.h> #import <ZQFounda...