Skip to content

Instantly share code, notes, and snippets.

I'm probably coding.

Alexander Rössler machinekoder

I'm probably coding.
View GitHub Profile
machinekoder / Emacs.kms
Last active Dec 9, 2019
Emacs keys for Qt Creator
View Emacs.kms
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE KeyboardMappingScheme>
<!-- Written by Qt Creator 4.2.1, 2017-03-27T21:24:06. -->
<shortcut id="CppTools.OpenHeaderSourceInNextSplit">
<key value="Ctrl+E, F4"/>
<shortcut id="CppTools.SwitchHeaderSource">
<key value="F4"/>
machinekoder /
Created Mar 6, 2017
Pilot-API Pinconfig
#!/usr/bin/env python
def exportPin(id):
with open('/sys/class/gpio/export', 'w') as f:
f.write('%i' % id)
except IOError as e:
#!/usr/bin/env python
# Copyright 2014 Marta Rodriguez.
# 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
machinekoder / Google Play Api - Apk
Last active Jun 29, 2020 — forked from martarodriguezm/Google Play Api - Apk
This python script uploads an apk file into Google Play Store using Android Play Publisher API
View Google Play Api - Apk

In Google Developer Console inside your app project, on the Credentials section, you must create a new "Service Account" "Client ID", if you have not already. And download the p12 file. You need the service account key file, generated in the Google APIs Console into the same directory and rename it to key.p12.

On Google Play Developer Console you have to give permissions to "" for uploading apks.


Download Google APIs Client Library for Python (google-api-python-client): or use pip:

  $ pip install google-api-python-client
machinekoder /
Created Jul 4, 2015
Registers a new systemd service
import subprocess
import shlex
import sys
import argparse
if sys.version_info[0] > 2:
user_input = input
user_input = raw_input
machinekoder / cos_test.c
Created May 10, 2015
Quick test for timing behavior of cos C function
View cos_test.c
/* Program to demonstrate time taken by function cos() */
#include <stdio.h>
#include <time.h>
#include <math.h>
// The main program calls fun() and measures time taken by fun()
int main()
// Calculate the time taken by fun()
clock_t start;
View hal-mode.el
(require 'generic-x)
(define-generic-mode hal-generic-mode
(apply 'append
(mapcar #'(lambda (s) (list (upcase s) (downcase s) (capitalize s)))
'("loadrt" "loadusr" "addf" "setp" "sets" "start"
"newpin" "newcomp" "sete"
"newg" "newsig" "ready" "net" "log")))
'(;;("\\(#<_?[A-Za-z0-9_]+>\\)" (1 font-lock-type-face))
machinekoder /
Created Apr 30, 2015 for axis config
import sys
import os
import subprocess
import importlib
from machinekit import launcher
from time import *
machinekoder / coding_style.el
Last active Aug 29, 2015
pycheckers for Emacs
View coding_style.el
;; Setup flymake for Python
(when (load "flymake" t)
(defun flymake-pylint-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
(local-file (file-relative-name
echo Building Google Protobuf for Mac OS X / iOS.
echo Use 'tail -f build.log' to monitor progress.
CORES=`sysctl hw.ncpu | awk '{print $2}'`
You can’t perform that action at this time.