This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int main() | |
{ | |
std::cout << "foo bar" << std::endl; | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qbs.Probes | |
Product { | |
Probes.PkgConfigProbe { | |
id: pkgConfig | |
name: 'Qt5Xdg' // library for example | |
} | |
condition: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |