.bashrc
: append to the local.bashrc
.bashrc-remote
: append to the remote.bashrc
.screenrc
: local.screenrc
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
import argparse | |
import math | |
import re | |
import time | |
from dataclasses import dataclass | |
from pywinauto.application import Application, WindowSpecification | |
from pywinauto.keyboard import VirtualKeyAction | |
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
export interface Dict { | |
[key: string]: string | |
} | |
export const g: string = "g"; |
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
import { hdf5 } from 'hdf5'; | |
import { Access } from 'hdf5/lib/globals'; | |
let f = new hdf5.File('test.hdf5', Access.ACC_RDONLY); |
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 | |
set -e | |
# Put | |
# 1. CUDA installation script (cuda_*.run, see https://developer.nvidia.com/cuda-downloads) | |
# 2. cuDNN archive (cudnn-*.tgz, see https://developer.nvidia.com/rdp/cudnn-download) | |
# 3. Intel MKL archive (l_mkl_*.tgz, see https://software.intel.com/en-us/intel-mkl) | |
# under $HOME | |
# Also set INTEL_MKL_SN to Intel MKL's serial number (XXXX-XXXXXXXX) |
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
import operator | |
import itertools | |
import math | |
import collections | |
_SYMBOL_TO_OP = {'+': operator.add, '-': operator.sub, '*': operator.mul, '/': operator.truediv, | |
'!': lambda a, b: b-a, '@': lambda a, b: b/a} | |
_R_OP = {'!': '-', '@': '/'} | |
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 | |
# Licence: GPLv3, MIT, BSD, Apache or whatever you prefer; FREE to use, modify, copy, no obligations | |
# Description: Bash Script to Start the process with NOHUP and & - in background, pretend to be a Daemon | |
# Author: Andrew Bikadorov | |
# Script v1.5 | |
# For debugging purposes uncomment next line | |
#set -x |
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
\documentclass{article} | |
\usepackage{fontspec, xunicode, xltxtra} | |
\setmainfont{宋体} | |
\XeTeXlinebreaklocale "zh" | |
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt | |
\defaultfontfeatures{Mapping=tex-text} | |
\begin{document} |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <time.h> | |
// Prime[N] = ? | |
int main(){ | |
double time_start = clock(); | |
const int N = 4263116; | |
const int UPPER_BOUND = 80000000; |