Skip to content

Instantly share code, notes, and snippets.

View snsnsjsn's full-sized avatar

yuanc snsnsjsn

View GitHub Profile
@snsnsjsn
snsnsjsn / Upgrade vim
Created August 12, 2018 09:54 — forked from yevrah/Upgrade vim
Update to Vim8 on Centos 7
# 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:
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
@snsnsjsn
snsnsjsn / new_file0
Created April 29, 2016 14:05
wechat php api 微信php接口代码
<?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 April 27, 2016 12:20
html+css菜单代码
simple html template
@snsnsjsn
snsnsjsn / gcc_compile.sh
Created April 17, 2016 14:53 — forked from dogukancagatay/gcc_compile.sh
Scripts for compiling compilers gcc-4.8.3 and llvm-clang-3.4.
#!/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"
-- 数据库系统概念(原书第六版)——原整版带书签
-- 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 February 18, 2016 05:08
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