Skip to content

Instantly share code, notes, and snippets.

View xingfeT's full-sized avatar

luoxing xingfeT

  • Central China Normal University
  • Wuhan,China
View GitHub Profile
@xingfeT
xingfeT / mapread.c
Created August 15, 2023 11:06 — forked from marcetcheverry/mapread.c
mmap and read/write string to file
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <unistd.h>
int main(int argc, const char *argv[])
{
@xingfeT
xingfeT / mergeSort.c
Created May 15, 2023 02:00 — forked from vnkdj5/mergeSort.c
Merge Sort Program in OpenMP
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "omp.h"
#define MAX_SIZE 10
//Function for creating an input array||Update accoorind to your need
void generate_list(int * x, int n) {
int i,j,t;
@xingfeT
xingfeT / glogs
Last active September 27, 2021 06:23
using glogs
set(WITH_GFLAGS OFF)
FetchContent_Declare(
glog
URL ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/glog-master.zip
)
FetchContent_MakeAvailable(glog)
add_executable(glog-test GLogTest.cpp)
target_link_libraries (glog-test glog::glog)
@xingfeT
xingfeT / install-pip3-on-centos7.md
Created September 26, 2021 10:27 — forked from iDoka/install-pip3-on-centos7.md
How to install pip3 on CentOS 7 Linux?

Install pip3 on CentOS 7

CentOS 7 still have Python 2.7 as the default tool. EPEL repository comes up with Python 3. Here’s the way to setup Python 3 and pip3 on CentOS environment.

Type on terminal:

sudo yum install -y python34-setuptools
sudo easy_install-3.4 pip
sed '/^$/d'
git archive --format=tar.gz -o /tmp/my-repo.tar.gz --prefix=my-repo/ master