This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// usage: open chrome console, paste this and enter | |
const WORD_PER_PAGE = 10; | |
const START_PAGE = 1; | |
const END_PAGE = 10; | |
const BOOK_ID = 'tvbmg'; | |
// const WORD_LIST_TYPE = 4; // 今日新词 | |
const WORD_LIST_TYPE = 5; // 今日复习 | |
function playItHere(e, link) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./bootstrap.sh | |
./b2 tools/bcp | |
mkdir ../extract | |
dist/bin/bcp build chrono coroutine context log predef headers tools/boost_install ../extract | |
./bootstrap.sh --with-libraries=coroutine | |
./b2 --prefix=./dist --build-type=minimal variant=release link=static debug-symbols=on coroutine install -j 4 | |
g++ b.cc -o b -g -Iextract/dist/include -Lextract/dist/lib/ -lboost_coroutine -lboost_context -lboost_thread |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
read -r -d '' data << EOF | |
{ | |
"execution_type": "sync", | |
"commands": [ | |
"show lldp remote", | |
"show running-config" | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <atomic> | |
#include <array> | |
#include <vector> | |
#include <cassert> | |
#include <memory> | |
#include <thread> | |
#include <chrono> | |
#include <cstdio> | |
/*! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo -n 'MSN' | toilet -f mono12 -F border --metal > /etc/motd && fortune | cowsay -f tux >> /etc/motd | |
echo 'Have a lot of fun...' >> /etc/motd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ctrl_interface=/var/run/wpa_supplicant | |
ctrl_interface_group=wheel | |
network={ | |
ssid="iFudan.1x" | |
scan_ssid=1 | |
key_mgmt=WPA-EAP | |
identity="your_stuid" | |
password="your_passwd" | |
eap=PEAP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"kernel_release": "5.5.2-arch1-1" | |
}, | |
"configurations": [ | |
{ | |
"name": "Linux", | |
"includePath": [ | |
"${workspaceFolder}/**", | |
"/usr/lib/modules/${env:kernel_release}/build/include", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Naur mvapich2-2.3/src/include/mpi.h.in mvapich2-2.3_new/src/include/mpi.h.in | |
--- mvapich2-2.3/src/include/mpi.h.in 2018-07-24 22:30:00.000000000 +0800 | |
+++ mvapich2-2.3_new/src/include/mpi.h.in 2019-09-07 21:44:17.173515626 +0800 | |
@@ -1138,6 +1138,9 @@ | |
int MPI_Initialized(int *flag); | |
int MPI_Abort(MPI_Comm comm, int errorcode); | |
+extern void* g_mpi_comm_world; | |
+inline void* MPI_Comm_world_comm() { return g_mpi_comm_world; } | |
+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "prism/logging.h" | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <dirent.h> | |
#include <string> | |
#include <iostream> | |
#include <fstream> | |
#include <unordered_map> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <endian.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <glob.h> | |
#include <limits.h> | |
#include <netdb.h> | |
#include <poll.h> | |
#include <pthread.h> | |
#include <semaphore.h> | |
#include <stddef.h> |