Skip to content

Instantly share code, notes, and snippets.

View jendas1's full-sized avatar

Jan Studený jendas1

  • Aalto University, Finland
  • Espoo, Finland
View GitHub Profile
@jendas1
jendas1 / Academic.keylayout
Created October 20, 2019 15:13
EN + CZ + DE keyboard layout
<?xml version="1.1" encoding="UTF-8"?>
<!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<!--Last edited by Ukelele version 3.3.0.240 on 2018-12-30 at 13:16 (CET)-->
<!--Sorin Paliga ©-->
<keyboard group="126" id="-14092" name="Academic" maxout="2">
<layouts>
<layout first="0" last="0" mapSet="312" modifiers="48"/>
</layouts>
<modifierMap id="48" defaultIndex="0">
<keyMapSelect mapIndex="0">
@jendas1
jendas1 / # gcc@8 - 2019-05-07_21-16-38.txt
Created May 7, 2019 19:25
gcc@8 on "CentOS Linux release 7.5.1804 (Core) " - Homebrew build logs
Homebrew build logs for gcc@8 on "CentOS Linux release 7.5.1804 (Core) "
Build date: 2019-05-07 21:16:38
@jendas1
jendas1 / .vimrc
Created June 29, 2018 08:24
vimrc
filetype indent on
set clipboard^=unnamed,unnamedplus "clipboard
set shiftwidth=4
set tabstop=4
set relativenumber
set ruler
set ignorecase
set smartcase
" reuse buffers of files which are already open, useful for quickfix
@jendas1
jendas1 / syslog_logger.h
Created December 8, 2015 16:54
Qt syslog logger
#include <QString>
#include <QDebug>
#include <QCoreApplication>
#include <QFileInfo>
#include <syslog.h>
void syslogMessageHandler(QtMsgType type, const QMessageLogContext & context, const QString & clean) {
#ifdef APP_NAME
const char * app_name = APP_NAME;
# generated by Slic3r 1.2.9 on Fri Nov 27 14:51:39 2015
avoid_crossing_perimeters = 0
bed_shape = 0x0,200x0,200x200,0x200
bed_temperature = 110
before_layer_gcode =
bottom_solid_layers = 3
bridge_acceleration = 0
bridge_fan_speed = 100
bridge_flow_ratio = 1
bridge_speed = 60
@jendas1
jendas1 / useful_c_snippets.c
Created April 8, 2015 16:49
Snippets for better experience when working with C
//
// There are some snippets I've found useful when programming in C.
// Author: Jan Studený
//
#include <stdio.h>
#define __STDC_FORMAT_MACROS // Enable printing (u)int(64,32,16,8)_t
#include <inttypes.h>
#define allocate_object(type) (type *) malloc(sizeof(type))
#define allocate_array(length, type) (type *) malloc((length)*sizeof(type))
@jendas1
jendas1 / TimeDefs.h
Last active February 5, 2023 19:28
__TIME__ and __DATE__ formatting macros
//
// TimeDefs.h
//
// Created by Jan Studený on 15/03/15.
// based on http://stackoverflow.com/questions/11697820/how-to-use-date-and-time-predefined-macros-in-as-two-integers-then-stri
#ifndef TimeDefs_h
#define TimeDefs_h