Skip to content

Instantly share code, notes, and snippets.

View aganzha's full-sized avatar

Aleksey Ganzha aganzha

  • Tensor
  • Kaliningrad, Russia
View GitHub Profile
@aganzha
aganzha / gist:e1c9fa47dac70378f849cd25c0b9fca4
Last active February 13, 2024 05:02
Launch org.gnome.libpanel.demo

To install and run libpanel demo with flatpak:

git clone https://gitlab.gnome.org/GNOME/libpanel.git
cd libpanel
mkdir flatpak_build
mkdir flatpak_target

change file org.gnome.libpanel.demo.json Сhange runtime to "runtime-version": "45".

@aganzha
aganzha / main.rs
Last active November 25, 2023 12:12
use gtk::prelude::*;
use gtk::{glib, Application, ApplicationWindow, HeaderBar, Box, Orientation, Button, FlowBox, Label};
const APP_ID: &str = "BoxSizing";
fn main() -> glib::ExitCode {
let app = Application::builder().application_id(APP_ID).build();
app.connect_activate(build_ui);
app.run()
https://manifest.prod.boltdns.net/manifest/v1/hls/v4/clear/6062814535001/1eca8016-caff-493f-8752-d466fd655143/10s/master.m3u8?fastly_token=NWQ4OTY5NjFfMDJiNmJhNzg4YjdhN2YxZmJlODJkOGVlYjI2MzExYTQ2ZDMxY2EyYWYyZDc4YTYxY2Y5MDkzZWMzZWE5YzNjYg%3D%3D
@aganzha
aganzha / SCSS.md
Created August 6, 2013 20:47 — forked from jareware/SCSS.md

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the awesome CSS extensions you've always wished you had:

  • [
- 5 марта, 6 марта, 9 марта;
- 7 июня, 8 июня;
- 4 октября, 6 октября;
- 4 декабря, 5 декабря, 7 декабря.
- Я не знаю, когда день рождения Оли, но я знаю, что ты этого тоже не знаешь, - заявил Коля.
Если Он сказал так, значит месяц (а Коля знает месяц) - это или Октябрь или Декабрь.
Потому что есть 2 уникальные даты 9 марта и 8 июня. Если бы у Васи было 8 или 9 - то он знал бы день рождения, даже и без месяца.
Но он не знает - Коля в этом уверен. Значит месяц или Октябрь или Декабрь.
create or replace function subs_renewals(date) returns setof renewals_member as $$
DECLARE
r RECORD;
now boolean;
mem renewals_member;
renewed bool;
churned bool;
mon date;
canceled date;
renewal_date date;
alert('test1')
//По поводу создания заявок из корзины: нужно в ф-ию GoTo3() на странице корзины, рядом с отправкой запроса нужно вставить вот такой код:
$.ajax({
url:'http://62.109.20.30/ext/order',
type:'POST',
data:{
order: $('.item-2 td').text(),
name: $("#NameTxb").val(),
phone: $("#TelefonTxb").val(),
email: $("#EmailTxb").val()
}
@aganzha
aganzha / test.html
Created December 3, 2013 22:04 — forked from Munawwar/test.html
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
/*
This code is a IE8 (and below), polyfill for HTML5 Range object's startContainer,
startOffset, endContainer and endOffset properties.
*/
(function () {
function findTextNode(node, text) {