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
(function ($) { | |
var nativeOuterHtml = ('outerHTML' in document.createElement('div')); | |
$.fn.outerHtml = function () { | |
if (nativeOuterHtml) { | |
return this[0].outerHTML; | |
} | |
else { | |
return this.eq(0).clone().appendTo($('<div />')).parent().html(); | |
} | |
}; |
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
/** | |
* a good start | |
*/ | |
@-ms-viewport { width: device-width; } | |
html | |
{ | |
min-height : 100%; | |
font-family : sans-serif; |
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
/** | |
* How to make <pre> grow with <code>? | |
*/ | |
html | |
{ | |
background-color: #111; | |
} | |
article |
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
#!/bin/sh | |
gvim=gvim | |
( pidof $( basename "$gvim" ) > /dev/null ) || exec "$gvim" "$1" | |
dn="$( pwd | sed 's/ /\\ /g' )" | |
fn="$( echo "$1" | sed 's/ /\\ /g' )" | |
exec "$gvim" --remote-send "<ESC>:cd ${dn}<CR>:tabnew +cd\ - ${fn}<CR>" |
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
<?php | |
/** | |
* `<?=` jest zawsze dostępny, niezależnie od ustawienia `short_open_tag` | |
*/ | |
/** | |
* use newly created object on the fly | |
*/ | |
$this->addFoo( |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=1024" /> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<title>squirrel boy</title> | |
<meta name="description" content="" /> |
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
<?php | |
error_reporting(E_ALL | E_STRICT); | |
$foo = array('hello', ' ', 'world', '.'); | |
$prefix = uniqid('♠'); | |
extract($foo, EXTR_PREFIX_ALL|EXTR_REFS, $prefix); | |
$prefix .= '_'; | |
for ($i = -1 ; isset(${$prefix . ++$i}) ;) | |
{ |
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
/** | |
* Responsive example with css-only mobile menu switch | |
*/ | |
html | |
{ | |
font-family : sans-serif; | |
} |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
p | |
{ | |
margin : 0; | |
} | |
section | |
{ |
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
/** | |
* Android 2.x does not animate css with position fixed? | |
*/ | |
.a | |
{ | |
border : #6f6 solid; | |
} | |
.b |
OlderNewer