Skip to content

Instantly share code, notes, and snippets.


Paschalis Mpeis Paschalis

View GitHub Profile

Fix powerline-status colors after reloading vimrc:

Populate all highlight groups of powerline, and copy them:

To generate all of the hi groups you will have to enter insert, visual, and normal mode. This will cause powerline-status to create these hi groups.

NOTE: This has to be done BEFORE any reloading of the vimrc. Remember, if vimrc get reloaded it will mess up with these values that you are trying to preserve. Also make sure to copy ALL of the Pl_ entries.

View Submodules
Available submodules (5.1.1 r4 branch)
Available sub-modules:
Paschalis / myvm.c
Created Jun 1, 2015
Minmal Register Based VM
View myvm.c
/* A simple(cool) example of a register based VM, w/ a minimal IS (load, store,add) implemented by
Instruction length: 16bit.
Registers: 4
* myvm.c
#include "stdio.h"
Paschalis / page-types.c
Last active Aug 29, 2015
vm-linux helper files
View page-types.c
* page-types: Tool for querying page flags
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; version 2.
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
View pname.c
#include <stdio.h>
#include <string.h>
#include <sys/system_properties.h>
/* Get device name
1/ Compile with the Android NDK Toolchain:
arm-linux-androideabi-gcc -static pname.c -o pname
2/ Transfer on device:
Paschalis / Android PostRequest
Last active Dec 19, 2015
Android HTTP Post request, in an Asynchronous background process
View Android PostRequest
* Paschalis Mpeis
* Usage: AsyncPostRequest r = new AsyncPostRequest(url, parameters); r.execute();
* AsyncPostRequest class
You can’t perform that action at this time.