Skip to content

Instantly share code, notes, and snippets.

@b1
b1 / please-stop-embedding-bootstrap-classes-in-your-html.md
Last active August 29, 2023 17:12
Please stop embedding Bootstrap classes in your HTML!

http://ruby.bvision.com/blog/please-stop-embedding-bootstrap-classes-in-your-html

Posted on Feb 29, 2012

A few months ago, Twitter released Bootstrap, a UI framework for websites that caused such an impression that it quickly become the most followed project on Github ded link.

Its popularity is due mostly to the fact that it allows developers with weak design skills such as myself to quickly create an application that looks at worst adequate, and at best, quite attractive. I'm a huge fan.

Bootstrap also appeals to developers because it's implemented in Less, a CSS preprocessor written in Javascript that you can run in your browser, allowing a comfortable developer workflow and compatibility with sites written in Ruby, Python, PHP, or any other technology you can make web applications with.

@phpdude
phpdude / nginx.conf
Last active February 28, 2024 04:36
Nginx image filter + caching of results.
location /resize {
alias /tmp/nginx/resize;
set $width 150;
set $height 100;
set $dimens "";
if ($uri ~* "^/resize_(\d+)x(\d+)/(.*)" ) {
set $width $1;
set $height $2;
set $image_path $3;
@naspeh
naspeh / translit.py
Created December 27, 2010 08:33
translit for ru/ua langs;
# -*- coding: utf-8 -*-
import re
RU = (
u'ёыъэ',
u'а,a;б,b;в,v;г,g;д,d;е,e;ё,yo;ж,zh;з,z;и,i;'
u'й,y;к,k;л,l;м,m;н,n;о,o;п,p;р,r;с,s;т,t;'
u'у,u;ф,f;х,h;ц,c;ч,ch;ш,sh;щ,shh;ъ,\";ы,y;ь,\';'
u'э,e;ю,yu;я,ya'