Skip to content

Instantly share code, notes, and snippets.

Function.prototype.default = function() {
var that = this,
defArgs = arguments,
count = arguments.length;
return function() {
var args = Array.prototype.slice.call(arguments);
if (count) {
for (var i=0; i<count; ++i) {
if(typeof args[i] === 'undefined') {
@leoneed
leoneed / dabblet.html
Created February 7, 2014 22:42
Untitled
<div id="wrap">
<button>Click Me</button>
<button>Click Me</button>
<button>Click Me</button>
<button>Click Me</button>
<button>Click Me</button>
<button>Click Me</button>
</div>
function fib (i) {
var f = 1, s = 1;
function recur(i, f, s) {
if (!i) {
return 1;
}
return s + recur(--i, s, f+s);
}
@leoneed
leoneed / dabblet.css
Created March 2, 2013 12:17
Untitled
.content
{
width: 500px;
height: 150px;
background: #ddd;
position: relative;
}
.content div
{
@leoneed
leoneed / dabblet.css
Created February 27, 2013 20:35 — forked from tyv/dabblet.css
Суть модуляций состоит в том,
/*
Суть модуляций состоит в том,
что некоторые заранее
определенные свойства элемента
(цвет, позиционирование и т.д.)
изменяются не резко,
как это обычно бывает
с добавлением класса,
в котором переопределены
текущие свойства элемента,
@leoneed
leoneed / dabblet.css
Created February 27, 2013 14:49 — forked from tyv/dabblet.css
static:
body
{
font-size: 24px;
}
.parent
{
position: static;
width: 50%;
}
@leoneed
leoneed / dabblet.css
Created February 27, 2013 11:46 — forked from tyv/dabblet.css
testtask
/* testtask */
@font-face {
font-family: 'PT Sans';
font-style: normal;
font-weight: 400;
src: local('PT Sans'), local('PTSans-Regular'), url(http://themes.googleusercontent.com/static/fonts/ptsans/v4/7YGmE4Ls5b94ct65u07hVQLUuEpTyoUstqEm5AMlJo4.woff) format('woff');
}
@-webkit-keyframes chooser-label {
from { left: 0 }
@leoneed
leoneed / dabblet.css
Created December 29, 2012 19:57
Untitled
td
{
width: 20px;
height: 20px;
background-color: red;
}
td.selected
{
@leoneed
leoneed / dabblet.css
Created December 29, 2012 18:53 — forked from anonymous/dabblet.css
Untitled
.wrapper div
{
float: left;
width: 20px;
height: 20px;
background-color: red;
}
div.asd
{