Skip to content

Instantly share code, notes, and snippets.

View akoufa's full-sized avatar

A Koufatzis akoufa

  • arconsis IT-Solutions GmbH
  • Thessaloniki
View GitHub Profile
@akoufa
akoufa / The Technical Interview Cheat Sheet.md
Created December 19, 2016 21:13 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
var obj = { bar : function() {
var x = (() => this);
return x;
}
};
// calling the arrow function
console.log(obj.bar()() == obj); // true
var foo1 = obj.bar();
@akoufa
akoufa / app-module-build.gradle
Created August 30, 2016 07:53 — forked from segunfamisa/app-module-build.gradle
Using gradle extra properties to manage Android dependency versioning
// app module build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion rootProject.compileSdkVersion
buildToolsVersion rootProject.buildToolsVersion
defaultConfig {
applicationId "com.segunfamisa.gradleextraproperties"
minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.targetSdkVersion
@akoufa
akoufa / RxJava Delay between items emmited
Created August 4, 2016 14:00
RxJava example to show how we can delay items emmited by a source observable
// Add delay between items emmited from a list
List<Integer> list = new ArrayList<>(Arrays.asList(1, 2, 3, 4, 5, 6));
Observable
.from(list)
.zipWith(Observable.interval(5, TimeUnit.SECONDS), (integer, aLong) -> integer)
.take(list.size())
.toBlocking()
.subscribe(System.out::println);
Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21.
To use the support version of these attributes, remove the android namespace.
For instance, "android:colorControlNormal" becomes "colorControlNormal".
These attributes will be propagated to their corresponding attributes within the android namespace
for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix.
All Clickable Views:
-----------