Skip to content

Instantly share code, notes, and snippets.

View narqo's full-sized avatar
🌤️
Berlin, +21°

Vladimir Varankin narqo

🌤️
Berlin, +21°
View GitHub Profile
@narqo
narqo / dabblet.css
Created February 11, 2012 00:35
Tables' border-radius + box-shadow playgroud
/**
* Tables' border-radius + box-shadow playgroud
*/
body{
font:82.5% Arial, sans-serif;
margin:5px;
padding:0;
}
table{
border:0;
@narqo
narqo / pybemhtml.py
Created October 26, 2011 01:38
Simple BEMHTML renderer via PyV8 (code.google.com/p/pyv8/)
# -*- coding: utf-8 -*-
# Dead simple BEMHTML renderer concept via PyV8 (code.google.com/p/pyv8/)
import os
import PyV8
PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
PAGE = os.path.join(PROJECT_ROOT, 'pages/page')
@narqo
narqo / trip_sorter.js
Created May 14, 2011 13:19
A simple javascript template language.
/**
* Движек шаблонов (template engine).
*
* Синтаксис:
* <code>
* var tpl = "Время ожидания ответа составило бы %{var} миллиардов лет",
* data = {var: 80};
* te.renderTpl(tpl, data, 1);
* </code>
*/