Skip to content

Instantly share code, notes, and snippets.

@nico-izo
nico-izo / main.cpp
Created November 3, 2016 22:42
qbs simple project
#include <iostream>
int main()
{
std::cout << "foo bar" << std::endl;
return 0;
}
@nico-izo
nico-izo / toimgur.py
Created August 10, 2016 20:32
God I hate ffmpeg
#!/usr/bin/env python3
import os
import sys
import subprocess
from datetime import datetime
def time_diff(to_time, from_time):
time_format = "%H:%M:%S"
delta = datetime.strptime(to_time, time_format) - datetime.strptime(from_time, time_format)
@nico-izo
nico-izo / OUTPUT
Created August 25, 2015 16:19
Qbs WTF 2.0
$ qbs resolve -nf qbsbug.qbs profile:qt-5-4-ololo project.includeSomething:false
No build graph exists yet for this configuration.
Resolving project for configuration qt-5-4-ololo-debug
project.includeSomething is false but we are in Depends condition
project.includeSomething == false
project.includeSomething == false
project.includeSomething == false
Setting up build graph for configuration qt-5-4-ololo-debug
@nico-izo
nico-izo / OUTPUT
Last active August 29, 2015 14:28
qbs wtf
# output
$ qbs resolve -nf qbsbug.qbs profile:qt-5-4-ololo project.includeSomething:false
No build graph exists yet for this configuration.
Resolving project for configuration qt-5-4-ololo-debug
project.includeSomething is false but we are here
ERROR: /home/nico-izo/gitgames/qbsbug2/probemodule.qbs:13:2 Product dependency 'Qt.ololo' not found.
$ qbs resolve -nf qbsbug.qbs profile:qt-5-4-ololo project.includeSomething:true
import qbs.Probes
Product {
Probes.PkgConfigProbe {
id: pkgConfig
name: 'Qt5Xdg' // library for example
}
condition: {
@nico-izo
nico-izo / rca.user.js
Last active August 29, 2015 14:10
Very simple yandex rich content plugin for point.im
// ==UserScript==
// @name RCA Point Extension
// @namespace RCAPointExtension
// @description Simple yandex rich content AJAX getter
// @include http*://*point.im*
// @exclude http*://*point.im/statistics
// @run-at document-end
// @version 1.0.0.0
// @grant none
// @require https://github.com/radjah/pointext/raw/master/jq/jquery.js