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
<div class="main"> | |
<div class="ribbon--red">1</div> | |
<div class="ribbon--green">2</div> | |
<div class="ribbon--purple">3</div> | |
<div class="ribbon--orange">4</div> | |
<div class="ribbon--blue">50%</div> | |
<div class="ribbon--gray">:)</div> | |
<div class="ribbon--pink">!</div> | |
</div> |
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
" run command | |
" no stdin | |
" output displayed in "Press enter to continue" style | |
" current buffer untouched | |
:!uptime | |
" run command | |
" pipe range of text to command on stdin | |
" output replaces the range in the current buffer | |
:RANGE!grep foo |
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
" Toggle relative line numbers | |
function! NumberToggle() | |
if(&relativenumber == 1) | |
set norelativenumber | |
set number | |
else | |
set relativenumber | |
endif | |
endfunc |
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
.left | |
textarea | |
| $red: #f00 | |
| .test { | |
| color: $red; | |
| } | |
.right | |
pre | |
code.output |
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
// ---- | |
// Sass (v3.2.19) | |
// Compass (v0.12.6) | |
// ---- | |
// Base prototype object | |
// This is a very abstract pattern than is meant to | |
// be extended by multiple "semantic" objects (modules) | |
%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
.col-sm-25(style='margin-bottom:300px;') | |
%p Foo | |
In reply to @bimbe_lien on Twitter.
AudioJS elements expose a player
object, with a play()
method that can be called programmatically—from outside of the element.
Try this:
- Open http://jedfoster.com/AudioJS/ in your browser
- Open the console and paste in this:
document.body.querySelector(".tube-css audio").player.play();
Note that the AudioJS element is the `` tag.