Skip to content

Instantly share code, notes, and snippets.

View webee's full-sized avatar
🎯
Focusing

webee.yw webee

🎯
Focusing
View GitHub Profile
@webee
webee / .vromerc
Last active December 26, 2015 19:19
.vromerc
" todo.
@webee
webee / python.sh
Last active December 23, 2015 04:39
if [ "${0:0:1}" != "-" ]; then
export PY_PROFILE=$(readlink -f $0)
fi
export PY_ROOT=/home/q/python
export PY_HOME=$PY_ROOT/default
export PY_ENV=$PY_ROOT/env
export PY_SRC=$PY_ROOT/src
export PY_XSRC=$PY_ROOT/xsrc
export PY_DEFAULT_ENV=main
@webee
webee / pyenv.sh
Last active December 23, 2015 04:39
setup python environment: python2.7.5,easy_install, pip, virtualenv, ipython.#curl https://gist.githubusercontent.com/webee/6581853/raw/pyenv.sh |sudo sh
#!/bin/sh
#curl https://gist.githubusercontent.com/webee/6581853/raw/pyenv.sh |sudo sh
#set -x
#resource url.
#check root.
root=$(whoami)
if [ "$root" != "root" ];then
echo "need root privilege."
exit 1
fi
@webee
webee / gist:2715475
Created May 17, 2012 01:23
disqus universal code.
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'example'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
@webee
webee / main.c
Created March 21, 2012 05:02
webee's hello world.
#include <stdio.h>
int
main(int argc, char *argv[])
{
printf("hello, world!");
return 0;
}