Skip to content

Instantly share code, notes, and snippets.

View kafeg's full-sized avatar
💭
In C++ we trust!

Vitaly kafeg

💭
In C++ we trust!
View GitHub Profile
@kafeg
kafeg / main.cpp
Created August 25, 2021 09:07
Qt UTF-8 arguments, Windows
#include <QCoreApplication>
#include <QDebug>
#include <windows.h>
#include <shellapi.h>
int utf8Main(int argc, char *argv[])
{
QStringList utf8Args;
for (int i = 0; i != argc; ++i)
@kafeg
kafeg / main.go
Last active October 16, 2020 09:35
Parser for Online Lada Sklad http://sklad.lada-direct.ru/v2/cars/vesta/sw-cross/prices.html for all cities to find required car complectation (Ugly MVP)
package main
import (
"github.com/PuerkitoBio/goquery"
"github.com/geziyor/geziyor"
"github.com/geziyor/geziyor/client"
"github.com/tidwall/gjson"
"log"
"os"
"strings"
@kafeg
kafeg / admobctl.cpp
Last active November 11, 2015 13:41
Qt Quick QML AdMob Android iOS Realisation: http://forsk.ru (based on https://github.com/yevgeniy-logachev/QtAdMob)
#include "admobctl.h"
#include "QtAdMob/QtAdMobBanner.h"
#include "QtAdMob/QtAdMobInterstitial.h"
#include <QtQml>
#include <QDebug>
#include <QTimer>
AdMobCtl::AdMobCtl(QObject *parent) : QObject(parent)
{
m_Banner = CreateQtAdMobBanner();
@kafeg
kafeg / NavigationDrawer.qml
Last active September 7, 2015 05:33 — forked from jbache/NavigationDrawer.qml
Qt Quick Navigation Drawer
/*
Copyright (c) 2014 Cutehacks A/S
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
@kafeg
kafeg / kfproxy.py
Created September 1, 2015 05:45
Simply python proxy
# demo: http://forsk.ru:8232/company/yandex/blog/258673/
# pip install html5lib beautifulsoup4
# -*- coding: utf-8 -*-
import BaseHTTPServer
import requests
import string
from bs4 import BeautifulSoup
def main():
httpd = BaseHTTPServer.HTTPServer(('0.0.0.0', 8232), TMHandler)