Skip to content

Instantly share code, notes, and snippets.

View gu-fan's full-sized avatar
🏠
Working from home

Rykk gu-fan

🏠
Working from home
  • china
View GitHub Profile
KindEditor.ready(function(K) {
K.create('#id_content', { height:'400px',
});
});
from django import forms
from django.conf import settings
class KindWidget(forms.Textarea):
"""
Setup the JS files and targetting CSS class for a textarea to
use TinyMCE.
"""
class Media:
@gu-fan
gu-fan / .vimrc
Created December 12, 2012 13:37
vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""
" Script: Rykka's Vimrc
" Author: Rykka <Rykka10(at)gmail.com>
" Update: 2012-12-12
" License: WTFPL v2.0
" vim:ft=vim tw=0 sw=4 ts=4 sts=4 fdm=marker fdls=0 :
"""""""""""""""""""""""""""""""""""""""""""""""""
" TODO:
@gu-fan
gu-fan / .zshrc
Created December 12, 2012 13:33
zshrc
# autoload omz
# zstyle :omz:style theme default
# plugins=(archlinux sprunge git)
# omz init
bindkey -v
ZSH=$HOME/.oh-my-zsh
#~/.oh-my-zsh/themes/rykka.zsh-theme
ZSH_THEME="kolo" # ~/.oh-my-zsh/themes/
# plugins=(git archlinux django github)
@gu-fan
gu-fan / server_setup
Created December 12, 2012 12:00
server_setup
#!/usr/bin/env bash
# Server Deployment Script
# Summary: Setup basic deploy enviroment for web apps.
# Author: Rykka ([email protected])
# OS: ubuntu 12.04
# Usage: sh server_setup $HOST_NAME
# Via net: wget --no-check-certificate https://gist.github.com/raw/4267247/37aa9dc296e3777161bd2b006b7f5f9d765f073b/server_setup -O - | sh
# Install puppet , and use puppet to intall
# nginx and mysql and uwsgi