Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
In C++ we trust!

Vitaly kafeg

💭
In C++ we trust!
View GitHub Profile
@kafeg
kafeg / main.cpp
Created Aug 25, 2021
Qt UTF-8 arguments, Windows
View main.cpp
#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 Oct 16, 2020
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)
View main.go
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 Nov 11, 2015
Qt Quick QML AdMob Android iOS Realisation: http://forsk.ru (based on https://github.com/yevgeniy-logachev/QtAdMob)
View admobctl.cpp
#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 Sep 7, 2015 — forked from jbache/NavigationDrawer.qml
Qt Quick Navigation Drawer
View NavigationDrawer.qml
/*
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 Sep 1, 2015
Simply python proxy
View kfproxy.py
# 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)