Skip to content

Instantly share code, notes, and snippets.

View groenewege's full-sized avatar

Gunther Groenewege groenewege

View GitHub Profile
@groenewege
groenewege / gist:920317
Created April 14, 2011 19:45
bash - profile
export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH"
export EDITOR='subl -w'
export SVN_REP="/Users/gunther/Documents/SVN"
export CLICOLOR=1
# use yellow for directories
export LSCOLORS=dxfxcxdxbxegedabagacad
@groenewege
groenewege / .vimrc
Created April 14, 2011 22:03
vim - status line
if has('statusline')
set statusline=%<%f\ " Filename
set statusline+=%w%h%m%r " Options
set statusline+=%{fugitive#statusline()} " Git Hotness
set statusline+=\ [%{&ff}/%Y] " filetype
set statusline+=\ [%{getcwd()}] " current dir
set statusline+=%=%-14.(Line:\ %l\ of\ %L\ [%p%%]\ -\ Col:\ %c%V%) " Right aligned file nav info
endif
@groenewege
groenewege / HTML_insert.vim
Created April 26, 2011 12:50
vim - insert html
" Version 1.2
" Script create :IMG command, whitch insert HTML IMG tag
" with fill atributes width and height.
"
" It's need _identify_ utility from ImageMagic!
"
" (c) Petr Mach <gsl@seznam.cz>, 2003
" http://iglu.cz/wraith/
"
" Call it without parameter for file browser for selecting image.
@groenewege
groenewege / insert_image.vim
Created April 26, 2011 12:52
vim - insert image
call NERDTreeAddKeyMap({
\ 'key': 'b',
\ 'callback': 'NERDTreeInsertImage',
\ 'quickhelpText': 'Insert XHTML tag of image' })
function! NERDTreeInsertImage()
let n=g:NERDTreeFileNode.GetSelected()
if n!={}
let path=escape(n.path.str(),' ')
let theWH=substitute(system('identify -format %wx%h "'.path.'"'),'\n','','')
@groenewege
groenewege / responsive_table.scss
Created October 26, 2012 07:44 — forked from chriseppstein/responsive_table.scss
sass - responsive tables
@include handhelds {
table.responsive {
width: 100%;
thead {
display: none;
}
tr {
display: block;
}
td, th {
@groenewege
groenewege / gist:3957577
Created October 26, 2012 08:13
css - dropshadow
.drop-shadow {
background: #9479fa;
}
.drop-shadow.top {
box-shadow: 0 -4px 2px -2px rgba(0,0,0,0.4)
}
.drop-shadow.right {
box-shadow: 4px 0 2px -2px rgba(0,0,0,0.4)
@groenewege
groenewege / gist:3957619
Created October 26, 2012 08:29
css - emphasize
div[class*="emphasize-"] {
background: #69D2E7;
}
.emphasize-dark {
box-shadow: 0 0 5px 2px rgba(0,0,0,.35)
}
.emphasize-light {
box-shadow: 0 0 0 10px rgba(255,255,255,.25)
@groenewege
groenewege / gist:3957624
Created October 26, 2012 08:30
css - embossed
div[class*="embossed"] {
background: #8ec12d;
color: #333;
text-shadow: 0 1px 1px rgba(255,255,255,0.9);
}
.embossed-light {
border: 1px solid rgba(0,0,0,0.05);
box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
@groenewege
groenewege / gist:3957627
Created October 26, 2012 08:31
css - gradient
div[class*="gradient"]{
background-color: #DEB8A0;
box-shadow: 0 0 0 1px #a27b62;
}
.gradient-light-linear {
background-image: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));
}
.gradient-dark-linear {
@groenewege
groenewege / gist:3957629
Created October 26, 2012 08:31
css - rounded corners
div[class*="rounded"] {
background: #fca1cc;
}
.light-rounded {
border-radius: 3px;
}
.heavy-rounded {
border-radius: 8px;