Skip to content

Instantly share code, notes, and snippets.

Devric Devric

Block or report user

Report or block Devric

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
View gist:4942843
" just copy
map <leader>h :%! haste \| pbcopy<CR>u<CR>
" copy and quit
map <leader>hh :%! haste \| pbcopy<CR>:q!<CR>
View jquery.ba-tinypubsub.js
/*!
* jQuery Tiny Pub/Sub - v0.X - 11/18/2010
* http://benalman.com/
*
* Original Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*
* Made awesome by Rick Waldron
*
@Devric
Devric / gist:2010145
Created Mar 10, 2012
js: quick micro template
View gist:2010145
// HTML
// ==================================
<script type="template" id="template">
<h2>
<a href="{{href}}">
{{title}}
</a>
</h2>
<img src="{{imgSrc}}" alt="{{title}}">
</script>
View gist:2006043
/* rotate */
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
/*
ie only 4 rotations
1 = 90
@Devric
Devric / gist:2006010
Created Mar 9, 2012
css: ie: gradient
View gist:2006010
/* gradient */
background-image: -moz-linear-gradient(top, #81a8cb, #4477a1); /* Firefox 3.6 */
background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #4477a1),color-stop(1, #81a8cb)); /* Safari & Chrome */
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#81a8cb', endColorstr='#4477a1'); /* IE6 & IE7 */
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#81a8cb', endColorstr='#4477a1')"; /* IE8 */
@Devric
Devric / gist:2006001
Created Mar 9, 2012
css: ie: opacity
View gist:2006001
/* opacity */
opacity:0.5;
filter: alpha(opacity = 50 );
@Devric
Devric / gist:2006000
Created Mar 9, 2012
css: ie: box-shadow
View gist:2006000
/* box shadow */
-moz-box-shadow: 2px 2px 3px #969696; /* for Firefox 3.5+ */
-webkit-box-shadow: 2px 2px 3px #969696; /* for Safari and Chrome */
filter: progid:DXImageTransform.Microsoft.Shadow(color='#969696', Direction=145, Strength=3);
You can’t perform that action at this time.