Skip to content

Instantly share code, notes, and snippets.

View nDmitry's full-sized avatar

Dmitry Nikitenko nDmitry

View GitHub Profile
@nDmitry
nDmitry / Preferences.sublime-settings
Last active December 20, 2015 09:18
Sublime Text preferences
{
"bold_folder_labels": true,
"caret_style": "phase",
"close_windows_when_empty": true,
"color_scheme": "Packages/User/Schemes/Dark/RailsCasts.tmTheme",
"default_line_ending": "unix",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"fallback_encoding": "Cyrillic (Windows 1251)",
"find_selected_text": true,
@nDmitry
nDmitry / dabblet.css
Created August 3, 2013 10:07
CSS3 Cube
/* CSS3 Cube */
* {box-sizing: border-box;}
body {
background: #000;
}
@keyframes cube {
from {
@nDmitry
nDmitry / dabblet.css
Created August 3, 2013 10:22
Full height child of min-height parent
/**
* Full height child of min-height parent
*/
.parent {
margin: 100px;
width: 200px;
min-height: 200px;
background: #eee;
}
@nDmitry
nDmitry / dabblet.css
Created August 6, 2013 09:34
Russian or english quotes depending on `lang` attribute
/**
* Russian or english quotes depending on `lang` attribute
*/
p:lang(en) q {
quotes: "\201C" "\201D" "\2018" "\2019";
}
p:lang(ru) q {
quotes: "\00AB" "\00BB" "\201E" "\201C";
@nDmitry
nDmitry / dabblet.css
Created August 16, 2013 07:56 — forked from anonymous/dabblet.css
Examples of fallbacks for rem units.
/**
* Examples of fallbacks for rem units.
*/
html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
}
@nDmitry
nDmitry / rem.styl
Last active January 3, 2017 13:26
Stylus mixin for rem units with fallback.
/**
* rem with fallback to px
*
* Use px as unit and only within a property.
* Default root font-size is standard 16px.
*
* Example:
* p {
* font-size: rem(18px);
* box-shadow: 0 0 rem(7px) #000;
@nDmitry
nDmitry / dabblet.css
Created August 19, 2013 06:32
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
}
@nDmitry
nDmitry / dabblet.css
Created January 2, 2014 05:26
Untitled
dl, dd {
/*margin: 0;*/
}
var types = require('pg').types;
var TIMESTAMP_WOTZ = 1114; // timestamp without time zone
var PARSER = types.getTypeParser(TIMESTAMP_WOTZ);
types.setTypeParser(TIMESTAMP_WOTZ, function(val) {
var result = PARSER(val);
return val === null ? null : new Date(result - new Date().getTimezoneOffset() * 60 * 1000);
});
@nDmitry
nDmitry / miniflux-colorized-light.css
Created May 1, 2025 15:51
Solarized Light Theme for Miniflux
/* Solarized Light Theme for Miniflux */
:root {
/* Base colors from Solarized Light */
--base03: #002b36;
--base02: #073642;
--base01: #586e75;
--base00: #657b83;
--base0: #839496;
--base1: #93a1a1;
--base2: #eee8d5;