Skip to content

Instantly share code, notes, and snippets.

Hyvi Hyvi

  • huawei Inc
  • china
Block or report user

Report or block Hyvi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Hyvi
Hyvi / cutcode.sh
Last active Jan 19, 2019
用于截图部分代码,粘贴到keynote ///
View cutcode.sh
#!/bin/bash
# 先安装highlight, "brew install highlight"
# Parse arguments
usage() {
echo "Usage: $0 [-h] [-v] [-f FILE] [-k fontsize] [-s startline] [-e endline]"
echo " -h Help. Display this message and quit."
echo " -v Version. Print version number and quit."
echo " -k Specify font-size."
echo " -f Specify file FILE."
echo " -s Specify the line number of the file that start from ."
View dabblet.html
<P>&nbsp;&nbsp;秦奋忏悔了4个小时,牧师受不了了。<br><br>&nbsp;&nbsp;牧师说:我们的教堂太小了,装不下他那么大的罪恶,前面还有一个比较大的教堂。
View gist:4368397
origin 学习
hyvi:~/.vim$ tree -L 2
.
├── autoload
│   ├── pathogen.vim
│   └── zencoding.vim
├── bundle
│   ├── gist-vim
│   ├── matchit.zip
│   ├── nerdtree
@Hyvi
Hyvi / nginx_static_post_405.conf
Created Aug 31, 2012
A static page can not handle POST, so nginx return 405. There is workaround...
View nginx_static_post_405.conf
# work-around 405 for POST to static URL
upstream my-static-server-name {
server 11.111.111.111:8080;
}
.
.
.
View tests.html
<html>
<head>
<title> Test </title>
<style type="text/css">
.left{width:200px;
height:300px;
background-color:red;
float:left;
}
.middle {
View gist:1971646
vim_plugin_task "ack.vim", "git://github.com/mileszs/ack.vim.git"
vim_plugin_task "color-sampler", "git://github.com/vim-scripts/Color-Sampler-Pack.git"
vim_plugin_task "conque", "http://conque.googlecode.com/files/conque_1.1.tar.gz"
vim_plugin_task "fugitive", "git://github.com/tpope/vim-fugitive.git"
vim_plugin_task "git", "git://github.com/tpope/vim-git.git"
vim_plugin_task "haml", "git://github.com/tpope/vim-haml.git"
vim_plugin_task "indent_object", "git://github.com/michaeljsmith/vim-indent-object.git"
vim_plugin_task "javascript", "git://github.com/pangloss/vim-javascript.git"
vim_plugin_task "nerdtree", "git://github.com/wycats/nerdtree.git"
vim_plugin_task "nerdcommenter", "git://github.com/ddollar/nerdcommenter.git"
@Hyvi
Hyvi / .vimrc
Created Mar 4, 2012
vim配置
View .vimrc
nmap <F2> a<C-R>=strftime("%c")<CR><Esc>
"http://stackoverflow.com/questions/69998/tabs-and-spaces-in-vim
set tabstop=4
set shiftwidth=4
set expandtab
call pathogen#infect()
syntax on
filetype plugin indent on
View 12306AutoLogin.user.js
/*
12306 Auto Login => A javascript snippet to help you auto login 12306.com.
Copyright (C) 2011 Kevintop
Includes jQuery
Copyright 2011, John Resig
Dual licensed under the MIT or GPL Version 2 licenses.
http://jquery.org/license
Includes 12306.user.js
View hadoop报jvm的crash的错误
问题:
hadoop能正常的启动,但是在mapreduce的时候出现
Lost tracker错误。datanode进程中只有一个hadoop进程。
err信息 :
#
# A fatal error has been detected by the Java Runtime Environment:
#
@Hyvi
Hyvi / window_size_and_scroll_bars_position.js
Created Dec 8, 2011
Getting window size and scroll bars position in JavaScript/DHTML
View window_size_and_scroll_bars_position.js
/**
* Getting window size and scroll bars position in JavaScript/DHTML
* http://www.softcomplex.com/docs/get_window_size_and_scrollbar_position.html
*/
function f_clientWidth() {
return f_filterResults (
window.innerWidth ? window.innerWidth : 0,
document.documentElement ? document.documentElement.clientWidth : 0,
document.body ? document.body.clientWidth : 0
You can’t perform that action at this time.