Skip to content

Instantly share code, notes, and snippets.

Avatar

Paschalis Mpeis Paschalis

View GitHub Profile
View README.md

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:
20-dns.conf
95-configured
AccelerometerPlay
AccessoryDisplayCommon
AccessoryDisplaySink
AccessoryDisplaySource
ActionBarCompat
@Paschalis
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
http://www.opensourceforu.com/2011/06/virtual-machines-for-abstraction-dalvik-vm/
Instruction length: 16bit.
Registers: 4
* myvm.c
*/
#include "stdio.h"
@Paschalis
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
Paschalis / Android PostRequest
Last active Dec 19, 2015
Android HTTP Post request, in an Asynchronous background process
View Android PostRequest
/**
* Paschalis Mpeis
* paschalis.mp
*
* Usage: AsyncPostRequest r = new AsyncPostRequest(url, parameters); r.execute();
*/
/**
* AsyncPostRequest class
*/
You can’t perform that action at this time.