Skip to content

Instantly share code, notes, and snippets.

View x-raizor's full-sized avatar

Andrew Shapiro x-raizor

View GitHub Profile
@x-raizor
x-raizor / gist:3886170
Created October 13, 2012 21:14 — forked from crizCraig/gist:2816295
Download images from Google Image search using Python
import json
import os
import time
import requests
from PIL import Image
from StringIO import StringIO
from requests.exceptions import ConnectionError
def go(query, path):
"""Download full size images from Google image search.
@x-raizor
x-raizor / dabblet.css
Created March 7, 2013 13:02
Общая базовая линия
/* Общая базовая линия */
body{background: #fefefe; min-height: 100%; font: 14px/130% Helvetica, Arial, sans-serif; margin: 2em 3em;}
p {width: 16em;}
.bigger {font-size: 18px; line-height: 100%;}
@x-raizor
x-raizor / dabblet.css
Created March 9, 2013 22:25
Быстрый тест состояния кнопок
/* Быстрый тест состояния кнопок */
body {background: #ffffff; min-height: 100%;}
#button {width: 120px; height: 56px;}
#button {background-image: url(https://dl.dropbox.com/u/2323744/i/1.png); }
#button:hover {background-image: url(https://dl.dropbox.com/u/2323744/i/2.png);}
#button:active {background-image: url(https://dl.dropbox.com/u/2323744/i/3.png);}
#button:active {transition: none;}
* {transition: background 0.3s linear;}; /* Анимируй всё! */
@x-raizor
x-raizor / dabblet.css
Created March 10, 2013 12:09
Тест кнопок, спрайты в одном файле
/* Тест кнопок, спрайты в одном файле */
body {background: #ffffff; min-height: 100%;}
#button {width: 120px; height: 56px;}
#button {background-image: url(https://dl.dropbox.com/u/2323744/i/3states.png); }
#button:hover {background-position-x: 240px;}
#button:active {background-position-x: 120px;}
#button:active {transition: none;}
* {transition: background-image 0.3s linear;}; /* Анимируй всё! */
@x-raizor
x-raizor / dabblet.css
Last active December 15, 2015 04:48
Zona tray icon animation test
/* Zona tray icon animation test */
body {background: #ffffff; min-height: 100%; font-family: Helvetica, sans-serif;}
#holder {text-align: center;}
#icon, #icon2 {
-webkit-animation-play-state: running;
-o-animation-play-state: running;
animation-play-state: running;
-webkit-animation-iteration-count: infinite;
-o-animation-iteration-count: infinite;
@x-raizor
x-raizor / dabblet.css
Created March 26, 2013 15:59
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
input {
height: 34px;
pagging: 2em 2em;
margin: 2em;
}
@x-raizor
x-raizor / dabblet.css
Last active December 20, 2015 04:59
Weather Block
/**
* Weather Block
*/
body {
font-size: 11px;
font-family: Arial, sans-serif;
}
.ts {
font-size: 50%;
@x-raizor
x-raizor / dabblet.css
Created August 16, 2013 14:25
Тестер фона
/**
* Тестер фона
*/
background: #EBEFF0 url('http://ashapiro.ru/reps/test/mediahit-background.png');
min-height: 100%;
@x-raizor
x-raizor / dabblet.css
Created April 4, 2014 03:51
Тестер фона
/**
* Тестер фона
*/
/* background: #EBEFF0 url('http://ashapiro.ru/reps/test/mediahit-background.png'); */
background: #D8D5D0 url('http://d.pr/i/6cTr+');
min-height: 100%;
@x-raizor
x-raizor / dabblet.css
Created April 9, 2014 07:08
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
background: #fff;
/*background: linear-gradient(45deg, #f06, yellow); */
min-height: 100%;
}
.head {