Skip to content

Instantly share code, notes, and snippets.

🤖
coding

Victor Kropp kropp

🤖
coding
Block or report user

Report or block kropp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kropp
kropp / main.kt
Created Feb 7, 2019
X11 app in Kotln/Native
View main.kt
package com.github.kropp
import kotlinx.cinterop.*
import x11.*
const val APPLICATION_NAME = "spotlight"
const val SIZE = 800
@ExperimentalUnsignedTypes
@kropp
kropp / Gtk3Demo.kt
Created May 16, 2017
GTK+ Demo Application in Kotlin/Native rewritten in OO-style
View Gtk3Demo.kt
/*
* Copyright 2010-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
View QtWebChannelApiGenerator.cpp
#include "QMetaTypes.h"
#include "Api.h"
QString jsType(const QString& name);
void generateSignalClasses(QFile &out, const QMetaObject &apiMeta);
void generateParameterList(QFile &out, const QMetaMethod &methodMeta);
void generateApi(QFile &out, const QMetaObject &apiMeta);
int main(int argc, char *argv[]) {
qRegisterMetaTypes();
View keybase.md

Keybase proof

I hereby claim:

  • I am kropp on github.
  • I am kropp (https://keybase.io/kropp) on keybase.
  • I have a public key ASDD8kbuBl37-pDgJwh-ktwCQYyognNfSAlyc6Mm3BADpgo

To claim this, I am signing this object:

@kropp
kropp / photo.sh
Created Jan 19, 2016
Take a photo with a webcam on Ubuntu
View photo.sh
#!/bin/bash
export time=`date +%Y-%m-%d-%H-%M-%S`
export filename="$HOME/photos/photo-$time.jpg"
avconv -f video4linux2 -s 1920x1080 -i /dev/video0 -ss 0:0:0.1 -frames 1 $filename
echo $filename
You can’t perform that action at this time.