Skip to content

Instantly share code, notes, and snippets.

@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;
@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 July 5, 2013 18:42 — forked from LeaVerou/dabblet.css
Standardization status
/**
* Standardization status
*/
body {
background: #f9f7f3;
}
.standardization_status {
position: relative;
@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 / 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 / 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 {
`
### WordPress Environment ###
Home URL: http://motorbikewriter.com/shop
Site URL: http://motorbikewriter.com/shop/wordpress
WC Version: 2.6.8
Log Directory Writable: ✔
WP Version: 4.6.1
WP Multisite: –
WP Memory Limit: 256 MB
Goals:
Fundamental understanding of what HTML is and how it works
Fundamental understanding of what CSS is and how it works
Ability to make and debug web Layouts
Familiarise people with the notion of templates
Disabuse wrong or misleading notions about Responsive Design
Lectures:
@kdankov
kdankov / .vimrc
Created March 4, 2019 13:42
Minimal Vim Setup
" use vim not vi
set nocompatible
" syntax and plugins (netrw)
syntax enable
filetype plugin on
# Start SSH Agent
#----------------------------
SSH_ENV="$HOME/.ssh/environment"
function run_ssh_env {
. "${SSH_ENV}" > /dev/null
}
function start_ssh_agent {