Skip to content

Instantly share code, notes, and snippets.

View antekone's full-sized avatar
🪤
Focusing

Grzegorz Antoniak antekone

🪤
Focusing
View GitHub Profile
trait Action {
fn invoke(&self);
fn revoke(&self);
}
struct RemoveAction {
dummy: int
}
impl RemoveAction {
import java.util.*;
import java.lang.*;
class Log {
public static void put(String fmt, Object... args) {
String data = String.format(fmt, args);
System.out.println(data);
}
}
(2:658)$ gdb -q --args cargo build
Reading symbols from cargo...done.
(gdb) r
Starting program: /home/antek/bin/cargo/cargo-nightly-i686-unknown-linux-gnu/bin/cargo build
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0xb73ffb40 (LWP 23218)]
[New Thread 0xb71feb40 (LWP 23219)]
@antekone
antekone / MainWindow.cpp
Created April 1, 2014 12:35
QNetworkAccessManager example
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <stdint.h>
#include <vector>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
@antekone
antekone / test.cpp
Created March 28, 2014 09:27
C designated initializer in C++ test
#include <cstdio>
#include <cstdarg>
using namespace std;
typedef struct {
int a;
int b;
int c;
} themespec_t;