Skip to content

Instantly share code, notes, and snippets.

View xell's full-sized avatar

Guozhu Liu xell

View GitHub Profile
@xell
xell / find-vimgrep.vim
Created July 12, 2020 17:20
[find vimgrep]
""command! -nargs=1 Find call Find('<args>')
""command! -nargs=* Find call Find(<f-args>)
function! s:find(ext, str, option) ""{{{2
let grepori = &grepprg
let range = escape(expand(""%:p:h""), ' ')
if a:str == ''
echomsg 'There is no input!'
return 0
endif
@xell
xell / cssformat1.css
Created July 12, 2020 17:14
[css format 1]
background: -webkit-gradient(linear, 0 0, 100 100, from(red), to(blue));
box-shadow: 2px 2px 5px #ff5500;
text-shadow: 2px 2px 5px #ff0000;
color: white;
background-color: #ffff00;
-webkit-transform: rotateZ(45deg);
@xell
xell / SMBDIS.ASM
Created October 18, 2017 04:55 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@xell
xell / surge.conf
Created October 26, 2015 15:32 — forked from blackgear/surge.conf
Surge config for new user
[General]
loglevel = warning
bypass-system = true
skip-proxy = 192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,localhost,*.local,*.lan
bypass-tun = 192.168.0.0/16,10.0.0.0/8,172.16.0.0/12
dns-server = 114.114.114.114,114.114.115.115
[Proxy]
PROXY = custom,服务器地址,服务器端口,加密方式,密码,模块地址,tcp-fast-open=true
@xell
xell / 0_reuse_code.js
Created June 13, 2014 16:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
var d = document.createElement('div');
d.innerHTML = '\
<style>\
*:not(.icon):not(i), *:not(.icon):not(i):after, *:not(.icon):not(i):before {\
box-shadow: none !important;\
text-shadow: none !important;\
background-image: none !important;\
}\
*:not(.icon):not(i) {\
border-color: transparent !important;\
/*
=skin=
@name Xell Test 2
@author xell
@homepage N/A
@email xell.liu@gmail.com
@license MPL/LGPL/GPL
=/skin=