Skip to content

Instantly share code, notes, and snippets.

View kdankov's full-sized avatar

Konstantin Dankov kdankov

View GitHub Profile
@kdankov
kdankov / designer.html
Last active August 29, 2015 14:09
designer
<link rel="import" href="../topeka-elements/topeka-datasource.html">
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<polymer-element name="my-element">
<template>
<style>
:host {
@kdankov
kdankov / wrap
Last active December 22, 2015 04:08
Wrap 2 elements - for Niki
$("#admin-layers-nav input[type=checkbox]")
.siblings("br").remove().end()
.each(function(index){
$(this).next("label").addBack().wrapAll('<div class="new" />');
}
);
@kdankov
kdankov / dabblet.css
Created July 5, 2013 19:06 — forked from LeaVerou/dabblet.css
Playing with background-attachment
/**
* Playing with background-attachment
*/
pre {
max-height: 150px;
border: 1px solid silver;
overflow: auto;
border: 10px dotted red;
background: url('http://placedog.com/200/200');
@kdankov
kdankov / dabblet.css
Created July 5, 2013 18:42 — forked from LeaVerou/dabblet.css
Standardization status
/**
* Standardization status
*/
body {
background: #f9f7f3;
}
.standardization_status {
position: relative;
@kdankov
kdankov / MacVim URL scheme
Created April 7, 2013 14:18
Send a link to a local file, open in MacVim and move the cursor to a specific line and column.
mvim://open?url=file:///etc/hosts&line=1&column=2
@kdankov
kdankov / dabblet.css
Created March 5, 2013 11:38 — forked from Daniel-Hug/dabblet.css
A "deeper" indented text effect with the :before and :after pseudo-elements.
/**
* A "deeper" indented text effect with the :before and :after pseudo-elements.
*/
html, body {
height: 100%;
}
body {
margin: 0;