Skip to content

Instantly share code, notes, and snippets.

@snsnsjsn
snsnsjsn / Upgrade vim
Created Aug 12, 2018 — forked from yevrah/Upgrade vim
Update to Vim8 on Centos 7
View Upgrade vim
# You may use this CentOS 7 repository on Fedora Copr for Vim 8 builds.
# https://copr.fedorainfracloud.org/coprs/mcepl/vim8/
#
# Run these commands on CentOS 7.
# Add this repository:
sudo curl -L https://copr.fedorainfracloud.org/coprs/mcepl/vim8/repo/epel-7/mcepl-vim8-epel-7.repo -o /etc/yum.repos.d/mcepl-vim8-epel-7.repo
# Upgrade Vim to vim 8:
@snsnsjsn
snsnsjsn / new_file0
Created Apr 29, 2016
wechat php api 微信php接口代码
View new_file0
<?php
/**
* wechat php test
*/
//define your token
define("TOKEN", "weixin");
$wechatObj = new wechatCallbackapiTest();
//这里是第一次token获取后,就不需要再执行验证了,或者可以在获取token后,注释掉 $wechatObj->valid();这样就是对接好后不需要每次对暗号token
if($_GET['echostr'])
@snsnsjsn
snsnsjsn / newFile1.txt
Last active Apr 27, 2016
html+css菜单代码
View newFile1.txt
simple html template
@snsnsjsn
snsnsjsn / gcc_compile.sh
Created Apr 17, 2016 — forked from dogukancagatay/gcc_compile.sh
Scripts for compiling compilers gcc-4.8.3 and llvm-clang-3.4.
View gcc_compile.sh
#!/usr/bin/env bash
#####################
## Set build prefix and source code dir
#####################
BUILD_PREFIX="/home/dogukan/local"
SRC_DIR="/home/dogukan/src"
BUILD_DIR="/home/dogukan/src/build"
View new_gist_file.html
Most popular keyboard shortcuts within GistBox
Up/Down - Previous/Next Gist
Ctrl+e - Edit a selected Gist
Ctrl+s - Save Gist
Save Gists from anywhere with Clipper
GistBox Clipper is the companion extension to GistBox, the most beautiful way to organize code snippets. It allows a user to create a GitHub Gist from any page on the web.
Download from the Chrome Web Store
View Database System Concepts数据库系统概念.sql
-- 数据库系统概念(原书第六版)——原整版带书签
-- mysql 服务器支持 # 到该行结束、-- 到该行结束 以及 /* 行中间或多个行 */ 的注释方格
create table `teaches`(
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
primary key (ID,course_id,sec_id,semester,year),
@snsnsjsn
snsnsjsn / 0_reuse_code.js
Created Feb 18, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console