This file contains 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
general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS;250 | |
general.smoothScroll.msdPhysics.enabled;true | |
general.smoothScroll.msdPhysics.motionBeginSpringConstant;450 | |
general.smoothScroll.msdPhysics.regularSpringConstant;450 | |
general.smoothScroll.msdPhysics.slowdownMinDeltaMS;50 |
This file contains 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
''' | |
Description: convert cache from music.163.com to mp3 | |
Usage: python3 crackmusic163.py sourcefile [...] | |
Output: cache files converted to mp3 in current directory | |
''' | |
def crack163Cache(srcfile): | |
dstfile = srcfile.rstrip('uc!') + 'mp3' | |
with open(srcfile, 'rb') as f1, open(dstfile,'xb') as f2: | |
data = bytearray(f1.read()) | |
for i in range(len(data)): |
This file contains 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
"******* Chong's vimrc *******" | |
" true color | |
set termguicolors | |
" No Vi | |
set nocompatible | |
" auto read file changed from outside | |
set autoread |
This file contains 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
/* | |
source: https://www.cs.uic.edu/~hnagaraj/articles/linked-list/ | |
*/ | |
#ifndef _LINUX_LIST_H | |
#define _LINUX_LIST_H | |
/* | |
* These are non-NULL pointers that will result in page faults | |
* under normal circumstances, used to verify that nobody uses |
This file contains 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
# source: https://en.opensuse.org/SDB:Installing_Java | |
# download jdk tar.gz, extract and move to /usr/lib64 and | |
# replace jdk versions manually in this script | |
# (after execution run update-alternatives) | |
#!/bin/bash | |
sudo gzip $(readlink -f /usr/lib64/jdk1.8.0_111/man/man1/java.1) | |
sudo gzip $(readlink -f /usr/lib64/jdk1.8.0_111/man/man1/keytool.1) | |
sudo gzip $(readlink -f /usr/lib64/jdk1.8.0_111/man/man1/orbd.1) | |
sudo gzip $(readlink -f /usr/lib64/jdk1.8.0_111/man/man1/policytool.1) |
This file contains 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 sys | |
file = open(sys.argv[1]) | |
gradetotal = 0 | |
pointtotal = 0 | |
def calcGPA(grade,point,method): | |
global gradetotal | |
global pointtotal | |
if method == "HUST": |