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
def db_choices(table, id): | |
from django.db import connection as C | |
return C.cursor().execute( | |
'SELECT %s, LongTextA FROM %s' % (id,table) | |
) and C.cursor().fetchall() |
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
#!/usr/bin/env python | |
# Requirements: requests, lxml | |
import requests | |
from lxml import html | |
TALKNAME = "Caching Django" | |
COLOR = '\033[1;34m' | |
END = '\033[0m' | |
def talk_text((N, E)): |
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
Я: Потому что в таких документах не принято использовать отчество. Я думал уникального номера моего свидетельства будет достаточно. | |
ОНА: нет, не верно, отчество обязательно. а вот номер св-ва нам не нужен в таких документах |
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
<x-main id="properties-list" class="-module-items-list" hidden> | |
<x-captions></x-captions> | |
<x-list></x-list> | |
</x-main> |
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
$('.touch-me') | |
.addClass('again') | |
.prop('hidden', false) | |
.html('I\'m touched!'); | |
$('.btn').addClass('active') | |
.siblings().removeClass('active'); |
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
$('.option').addClass('active') | |
.siblings().removeClass('active') | |
.parent().addClass('expand'); |
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
$('#gallery-tip').after(( | |
this.layout.settings = (new exports.SettingsFormView({app: this.app, parent: this})).render() | |
).el); |
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> | |
<tasks-list></tasks-list> | |
<script>window.addEventListener('polymer-ready', function() { | |
document.querySelector('tasks-list').reset(new Backbone.Collection([ | |
{title: 'Minification deployment script'}, | |
{title: 'Refine Vagrantfile'}, | |
{title: 'Fix header markup'} | |
])) | |
})</script> |
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
<polymer-element name="tasks-list"> | |
<template> | |
<link rel="stylesheet" href="style.css"> | |
<template repeat="{{ tasks }}"><div>{{ title }}</div></template> | |
</template> | |
<script>Polymer({reset: function(collection){ this.tasks = collection.toJSON() }})</script> | |
</polymer-element> |
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
this.$el.fadeOut((function() { this.remove() }).bind(this)) |
OlderNewer