Skip to content

Instantly share code, notes, and snippets.

View chestozo's full-sized avatar

chestozo

  • Portugal
  • 22:06 (UTC +01:00)
View GitHub Profile
@chestozo
chestozo / dabblet.css
Created December 24, 2011 22:00 — forked from anonymous/dabblet.css
Untitled
body {
padding-top: 100px;
padding-left: 30px;
font: 12px arial;
}
div.ballon {
position: absolute;
display: inline-block;
border: 1px solid #EEE;
@chestozo
chestozo / dabblet.css
Created December 24, 2011 22:00 — forked from anonymous/dabblet.css
Untitled
a {
display: inline-block;
padding: 3px 12px;
border: 1px solid #999;
border-top-color: #BBB;
border-radius: 3px;
font: 11px arial;
text-decoration: none;
@chestozo
chestozo / dabblet.css
Created March 12, 2012 10:43
Untitled
a {
display: inline-block;
padding: 3px 12px;
border: 1px solid #999;
border-top-color: #BBB;
border-radius: 3px;
font: 11px arial;
text-decoration: none;
@chestozo
chestozo / yandex-mail.archive.user.js
Created March 29, 2012 09:16 — forked from gurugray/yandex-mail.archive.user.js
кнопка «Архив» для почты Яндекса
// «archive» button for yandex mail
// version 0.1.5
// 2012-03-28
//
// ==UserScript==
// @name «Yandex Mail Archive button»
// @namespace http://gurugray.ru
// @description Создаём кнопку «В архив» на web-почте Яндекса
// @include http*://mail.yandex*/neo2/*
div.tag {
background: #EDF;
display: inline-block;
padding: .3em .6em;
padding-left: .8em;
border-radius: .6em;
font: 10pt arial;
text-shadow: 1px 1px #F7F7F7;
}
@chestozo
chestozo / gist:2731958
Created May 19, 2012 18:57
git: display ins and outs
function __get_git_branch {
local br=""
local git="$(git symbolic-ref HEAD 2> /dev/null)"
# git
if [ -n "$git" ]; then
br="${git##refs/heads/}"
fi
echo "$br"
@chestozo
chestozo / gist:2894548
Created June 8, 2012 08:48
Merge to master
function __get_git_branch {
local br=""
local git="$(git symbolic-ref HEAD 2> /dev/null)"
# git
if [ -n "$git" ]; then
br="${git##refs/heads/}"
fi
echo "$br"
@chestozo
chestozo / gist:2937233
Created June 15, 2012 15:58
Regexp with `g` flag #regexp #flags
"a=1&b=2".match(/[a-z]=\d/i) // --> ["a=1"]
"a=1&b=2".match(/[a-z]=\d/gi) // --> ["a=1", "b=2"]
"a=1&b=2".match(/[a-z]=(\d)/i) // --> ["a=1", "1"]
"a=1&b=2".match(/[a-z]=(\d)/gi) // --> ["a=1", "b=2"] - !!!
.img {
position: absolute;
background: #FBB;
width: 400px;
height: 80%;
}
.arrow-right {
position: absolute;
right: 0;
.left {
border: 1px solid;
border-color: #d7d7d7 #b8b8b8 #656667;
background: -webkit-linear-gradient(top,#fdfdfd 0,#BBB 100%);
left: 0;
width: 11px;
height: 12px;
position: absolute;
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;