Skip to content

Instantly share code, notes, and snippets.

🤔
running

kbrx93 kbrx93

Block or report user

Report or block kbrx93

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View MathJax based LaTeX plugin for TiddlyWiki 5.md

LaTeX plugin for TiddlyWiki 5 (based on MathJax)

(based on http://mathjax-tw5.kantorsite.net/)

To use with NodeJS create a plugins/mathjax/ directory in your wiki containing the two files (plugin.info and init.js), i.e.

plugins/
   mathjax/
      plugin.info
      init.js
tiddlers/
View knncls.py
import pandas as pd
from sklearn.neighbors import KNeighborsClassifier
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
def knn():
"""
用 KNN 算法预测用户入住位置
:return: None
@kbrx93
kbrx93 / ssh.md
Created Dec 13, 2018 — forked from suziewong/ssh.md
SSH端口转发
View ssh.md

ssh

    -C  压缩数据传输
    -f  后台登录用户名密码
    -N  不执行shell[与 -g 合用]
    -g  允许打开的端口让远程主机访问        
    -L  本地端口转发
    -R  远程端口转发
    -p  ssh 端口
@kbrx93
kbrx93 / TerminalVim.scpt
Created Dec 6, 2018 — forked from charlietran/TerminalVim.scpt
Open file in iTerm vim for MacOS Sierra 这个版本每个文件都是新窗口
View TerminalVim.scpt
-- TerminalVim.app
-- This creates a shim Application that will enable you to open files from the Finder in vim using iTerm
-- To use this script:
-- 1. Open Automator and create a new Application
-- 2. Add the "Run Applescript" action
-- 3. Paste this script into the Run Applescript section
-- 4. Save the application as TerminalVim.app in your Applications folder
-- 5. In the Finder, right click on a file and select "Open With". In that window you can set TerminalVim as a default
on run {input, parameters}
@kbrx93
kbrx93 / TerminalVim.scpt
Created Dec 6, 2018 — forked from MondoGao/TerminalVim.scpt
Open file in iTerm vim/neovim for MacOS High Sierra
View TerminalVim.scpt
-- TerminalVim.app
-- This creates a shim Application that will enable you to open files from the Finder in vim using iTerm
-- To use this script:
-- 1. Open Automator and create a new Application
-- 2. Add the "Run Applescript" action
-- 3. Paste this script into the Run Applescript section
-- 4. Save the application as TerminalVim.app in your Applications folder
-- 5. In the Finder, right click on a file and select "Open With". In that window you can set TerminalVim as a default
@kbrx93
kbrx93 / commToDDWin.sh
Last active Dec 5, 2018
[commToDDWin] DD成 Win 萌咖版 #tags: cmd
View commToDDWin.sh
# win10 修复版
## DHCP
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -dd "https://image.moeclub.org/GoogleDrive/1OVA3t-ZI2arkM4E4gKvofcBN9aoVdneh"
## 非 DHCP
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -dd "https://image.moeclub.org/GoogleDrive/1OVA3t-ZI2arkM4E4gKvofcBN9aoVdneh" --ip-addr xx.xx.xx.xx --ip-gate xx.xx.xx.xx --ip-mask xx.xx.xx.xx
> 激活
> slmgr /skms kms.moeclub.org
View mirages1.7.6修改版.css
@charset "UTF-8";/*! Theme.css v1.7.6d */html {
font-family: sans-serif;
line-height: 1.15;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%
}
body {
margin: 0
}
View mirages1.7.6未修改.css
@charset "UTF-8";/*! Theme.css v1.7.7 */html {
font-family: sans-serif;
line-height: 1.15;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%
}
body {
margin: 0
}
View 来自知乎.md

架构是对客观不足的妥协,规范是对主观不足的妥协

View QuickSort.java
public class MyQuickSort {
public static void quickSort(int[] arr, int low, int high) {
if (arr == null || arr.length <= 1 || low >= high)
return;
int i = low;
int j = high;
int midInArray = arr[(low + high) / 2];
while (i <= j) {
while (arr[i] < midInArray)
++i;
You can’t perform that action at this time.