Skip to content

Instantly share code, notes, and snippets.

View nullscc's full-sized avatar
🎯
Focusing

nullscc

🎯
Focusing
View GitHub Profile
@nullscc
nullscc / inject.lua
Created November 2, 2016 07:38 — forked from cloudwu/inject.lua
Inject code with locals and upvalues
local FUNC_TEMP=[[
local $ARGS
return function(...)
$SOURCE
end,
function()
return {$LOCALS}
end
]]
@nullscc
nullscc / .vimrc
Last active May 26, 2019 03:53
vimrc
"vundle
set nocompatible
filetype off
set tabstop=4
set rtp+=~/.vim/bundle/Vundle.vim
"set termguicolors
set background=light
set hlsearch
call vundle#begin()
@nullscc
nullscc / py_sqlalchemy.py
Created January 18, 2018 03:43
python操作sqlalchemy
#!/usr/bin/env python
#-*- coding:utf8 -*-
# Power by null 2018-01-18 11:35:41
from sqlalchemy import create_engine, or_, and_, not_, distinct
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.sql import func
from sqlalchemy import Table, Column, Integer, String, Float, MetaData, ForeignKey, Text
@nullscc
nullscc / comile.vimrc
Last active June 4, 2020 03:47
compile c file under vim
nmap <leader>c :!echo -e '\033[32m--------------------------------------------------------------\033[0m' && g++ % -o ~/a.out && echo -e '\033[31m--------------------------------------------------------------\033[0m' <CR>
nmap <leader>q :!echo -e '\033[32m--------------------------------------------------------------\033[0m' && ~/a.out && echo -e '\033[31m--------------------------------------------------------------\033[0m' <CR>
@nullscc
nullscc / .tmux.conf
Last active June 4, 2020 03:46
tmux setting for .tmux.conf
unbind C-b
set -g prefix C-n
setw -g mode-keys vi
#set-option -g default_terminal "xterm-256color"
set -g default-terminal "screen-256color"
# set-option -ga terminal-overrides ",xterm-256color:Tc"
#bind R source-file ~/.tmux.conf; display-message "Config reloaded.."
# set-option -g default-command "reattach-to-user-namespace -l bash"
bind -r ^k resizep -U 5
bind -r ^j resizep -D 5
@nullscc
nullscc / vim_tab_indent
Last active June 5, 2020 08:45
vimtab距离、缩进和自动缩进
set tabstop=4
set sw=4
set ts=4
@nullscc
nullscc / README
Created July 28, 2024 16:21
vscode code 下mac环境调试cmake下的c++程序
生成配置文件:cmd+shift+p: CMake: Configure
编译:cmd+shift+p: CMake: Build
调试: VScode左侧的调试栏,选择一个程序进行调试
@nullscc
nullscc / 创建可以使用React的Electron项目.md
Last active September 20, 2025 17:49
创建可以使用React的Electron项目
@nullscc
nullscc / nodejs安装naudiodon.md
Created September 20, 2025 17:51
nodejs安装naudiodon