Skip to content

Instantly share code, notes, and snippets.

View cuihantao's full-sized avatar

Hantao Cui cuihantao

View GitHub Profile
@montali
montali / vscode_settings.json
Created November 10, 2020 08:44
My settings for VSCode
{
"terminal.integrated.fontFamily": "Meslo LG M for Powerline",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"workbench.iconTheme": "Monokai Pro Icons",
"python.jediEnabled": false,
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
@PetrKryslUCSD
PetrKryslUCSD / testinglu.jl
Last active September 20, 2020 01:56
Testing LU
module testinglu
using LinearAlgebra
import LinearAlgebra: lu!, generic_lufact!, BlasInt, checknonsingular
function better_generic_lufact!(A::StridedMatrix{T}, ::Val{Pivot} = Val(true);
check::Bool = true) where {T,Pivot}
m, n = size(A)
minmn = min(m,n)
info = 0
@chexov
chexov / dkms r750 ubuntu driver; Rocket 750
Last active November 30, 2022 23:53
dkms for rocketraid r750
```
wget 'http://www.highpoint-tech.com/BIOS_Driver/R750/Linux/R750_Linux_Src_v1.2.7-16_08_23.tar.gz'
tar xzvf R750_Linux_Src_v1.2.7-16_08_23.tar.gz
./r750-linux-src-v1.2.7-16_08_23.bin --target r750 --noexec
cd r750
cat <<< '
MAKE="make -C product/r750/linux/ KERNELDIR=/lib/modules/${kernelver}/build"
CLEAN="make -C product/r750/linux/ clean"
BUILT_MODULE_NAME=r750
DEST_MODULE_LOCATION=/kernel/drivers/scsi/
@sloria
sloria / bobp-python.md
Last active June 12, 2024 15:02
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@rmcgibbo
rmcgibbo / LICENSE
Last active July 24, 2022 02:58
Parallel Sparse Matrix Dense Matrix Product in C/Cython/Python.
Copyright 2013 Robert T. McGibbon
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, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE O