This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table> | |
<tr> | |
<td>Внутри одного файла</td> | |
<td>Распространяется на множество элементов</td> | |
</tr> | |
<tr> | |
<td colspan="2"> | |
<table> | |
<tr> | |
<td>Встроенные стили</td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
padding:20px; | |
background:#FFF; | |
color:#000; | |
} | |
#header { | |
padding:10px; | |
background:#51CAC8; | |
} | |
#container { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Vertical fixed centering by inline-blocks */ | |
.container { | |
position: fixed; | |
top: 0; | |
bottom: 0; | |
left: -9999px; | |
} | |
.container:after { | |
content: ""; | |
display: inline-block; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from flask import Flask | |
import gdata.docs.service | |
import gdata.spreadsheet.service | |
app = Flask(__name__) | |
def getRegistrationsCount(): | |
client = gdata.spreadsheet.service.SpreadsheetsService() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Анимированное появление попапа | |
*/ | |
.popup { | |
width: 500px; | |
height: 500px; | |
margin: 30px; | |
background: #900; | |
animation: 'fadeIn' 1s 0 4; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body | |
{ | |
background: pink | |
} | |
.popup | |
{ | |
position: relative; | |
width: 200px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* CSS3 Blur filter test | |
*/ | |
img { | |
-webkit-filter: blur(5px); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if pgrep gst-launch | |
then | |
pkill gst-launch | |
else | |
DIR=`date "+%Y-%m-%d-%H:%M:%S"` | |
mkdir $DIR | |
gst-launch \ | |
flvmux name=camera ! filesink location="$DIR/camera.flv" \ | |
flvmux name=screen ! filesink location="$DIR/screen.flv" \ | |
\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding=utf-8 | |
import json | |
from bottle import route, run, request, debug, default_app | |
from git import Repo | |
repo = Repo("/var/www/lookido.ru/promo/htdocs") | |
origin = repo.remotes.origin | |
@route("/", method="POST") |