Skip to content

Instantly share code, notes, and snippets.

typedef const char* pFunc(const char*);
typedef const char* (*pFunc2)(const char*);
const char* func1(const char * p)
{
cout << p << endl;
return p;
}
@ZikiSoy
ZikiSoy / filter.txt
Last active March 23, 2017 18:13
adb filter
[Adblock Plus 2.0]
! Version: 201703231740
! The contents of this filter list are fetched from the EasyList repository: https://github.com/easylist/easylist
! Title: WTFList
! Homepage: https://easylist.to/
!
!-----------------------General advert blocking filters-----------------------!
www.solidot.org##DIV[id="headads"]
dynamic.cloud.vip.xunlei.com##DIV[id="pop__div__id"]
www.elle.com##DIV[id="campaign_133363_container_overlay"][class="bcx_container bcx_fade bcx_overlay"]
@ZikiSoy
ZikiSoy / btbook.user.js
Created September 13, 2015 09:28
scripts
// ==UserScript==
// @name BtBook Utilities
// @namespace http://github.com/zikisoy
// @version 0.1
// @description Add magnet link to BtBook!
// @author hmmm
// @match http://www.btbook.net/search/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @grant GM_xmlhttpRequest
// @grant GM_openInTab
@ZikiSoy
ZikiSoy / 0_reuse_code.js
Last active August 29, 2015 14:12
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
@ZikiSoy
ZikiSoy / AlgoContestHeader
Last active December 27, 2015 03:39
C++ header file for algorithm contest
/*==================================================*\
| Author: ziki
| Created Time:
| File Name:
| Description:
\*==================================================*/
#include <vector>
#include <list>
#include <map>
#include <set>
@ZikiSoy
ZikiSoy / VimrcForUbuntu
Last active December 27, 2015 03:39
My simple vimrc for ubuntu and acm-icpc contest
set sw=4 ts=4 nobk ai cin nu
set mp=g++\ -g\ -DLOCAL\ -O2\ -o\ %<\ %
map <F5> :w<CR> :make<CR>
map <F6> :!gnome-terminal -x ./%<<CR>
map <F7> :!gnome-terminal -x gdb %<<CR>
set gfn=Courier_New:h14
set fencs=utf-8,gb2312,gbk,gb18030