Skip to content

Instantly share code, notes, and snippets.

View kergalym's full-sized avatar

Galym Kerimbekov kergalym

  • Kazakhstan
View GitHub Profile
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC883 Analog [ALC883 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC883 Digital [ALC883 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: Generic Digital [Generic Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
#cat /etc/modprobe.d/alsa.conf
# Alsa kernel modules' configuration file.
# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore
##
## IMPORTANT:
-- Standard awesome library
require("volume")
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
public function dbSelectMenuItems($page, &$cPage, $limIndex) {
$conn = $this->connect->getConn();
$countStmt = $conn->prepare("SELECT COUNT(id) FROM articles");
$countStmt->execute();
while ($countIndex = $countStmt->fetch(PDO::FETCH_NUM)) {
$arrID[] = $countIndex['0'];
}
@app.route('/adminboard/adminboard_main/')
@login_required
def show_dashboard_main():
per_page = 9
articles_loop = []
form = dashboard_itemsform.DashboardItemsForm()
servername = socket.gethostname()
approot = app.root_path
users = g.user
instance = SysInfo()
namespace MS\Core;
use PDO;
use PharData;
class Querator {
public $connect;
public function __construct() {
$this->connect = new \MS\Core\ConfigModel();
<div class="layout-one" id="layout-one">
<input type="button" id="letter" name="dod" onclick="letter('1590')" value="ض"/>
<input type="button" id="letter" name="sod" onclick="letter('1589')" value="ص"/>
<input type="button" id="letter" name="tha" onclick="letter('1579')" value="ث"/>
<input type="button" id="letter" name="kaf" onclick="letter('1602')" value="ق"/>
<input type="button" id="letter" name="fa" onclick="letter('1601')" value="ف"/>
<input type="button" id="letter" name="ghayn" onclick="letter('1594')" value="غ"/>
....
</div>
<script>
В шаблоне:
<td><input type='text' id='delid_{{ article.id }}' name='delid_{{ article.id }}' value='{{ article.id }}' size='1' ></td>
В wtf-forms:
delid + "_" + article.id = TextField('delid' + "_" + article.id, validators=[DataRequired()])
В views:
request.form['delid' + "_" + item]
from flask_wtf import Form
from wtforms import TextField, BooleanField, SubmitField
from wtforms.validators import DataRequired
class DashboardItemsForm(Form):
item_chb = BooleanField('item_chb', validators=[DataRequired()])
delid = TextField('delid', validators=[DataRequired()])
rename = SubmitField('rename')