Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
int main ()
{
float h,r,l,s,sq,vq,vz;
float pi=3.141526;
printf("请输入圆半径r,圆柱高h∶");
scanf("%f,%f",&r,&h); //要求输入圆半径r和圆柱高h
l=2*pi*r; //计算圆周长l
s=r*r*pi; //计算圆面积s
sq=4*pi*r*r; //计算圆球表面积sq
@junstrix
junstrix / win.emacs.el
Last active December 15, 2015 22:09
fix ecb mouse and tips , and fix semantic include path.
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")))
(load-file "D:/emacs-24.3/c_config.el")
(setq user-mail-address "[email protected]")
(setq user-full-name "Junpeng Li")
(global-set-key (kbd "M-p") 'scroll-up-line)
(global-set-key (kbd "M-n") 'scroll-down-line)
;; show time
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
let path='~/.vim/bundle'
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
@junstrix
junstrix / .vimrc
Last active December 15, 2015 11:28
config vim Like moder ide now. python , c , ctags ,cscope . and so on ..
syntax on
set guioptions=i
set number
set wildmenu
set incsearch
set guifont=Source\ Code\ Pro\ 12
"ctags -R -f ~/.vim/systags /usr/include /usr/local/include
set tags+=~/.vim/tags
" ctags -R --sort=yes --c-kinds=+p --fields=+iaS --extra=+q --language-force=C++ -f glibc_tags ./glibc-2.17/
set tags+=~/.vim/glibc_tags
@junstrix
junstrix / Nginx_uwsig_django.md
Last active February 11, 2022 09:32
Nginx, Uwsgi, Virtualenv and Django
@junstrix
junstrix / raspberrypi.md
Last active December 14, 2015 07:49
raspberrypi,树莓派单板电脑业余捣鼓...

image 陆续分享一些攻略,参考...


学习的最好的地方是raspberrypi官方论坛和elinux.org,有各种有意思的hacking,再加上google 搜索结合linux的应用就有各种有意思的创意思源,然后再实现之,也体现通过Raspberry Pi小而美的方式深入学习计算机知识.

#安装系统 最小的基本硬件有Raspberry Pi单板、SD Card、Micro USB电源线,有网络接上RJ45网线就完全可以跑起来了,这些硬件都可以在官方指定代理商ickey里可以买到。

  • 下载系统

在官方下载Raspbian系统,更多支持的OS类型可参考link