This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| KindEditor.ready(function(K) { | |
| K.create('#id_content', { height:'400px', | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """"""""""""""""""""""""""""""""""""""""""""""""" | |
| " 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
NewerOlder