Skip to content

Instantly share code, notes, and snippets.

View ArvidQuarshie's full-sized avatar

arvid ArvidQuarshie

View GitHub Profile
@ArvidQuarshie
ArvidQuarshie / gist:b2cd9471905462b120ce82a5a232b19d
Created November 6, 2017 19:48 — forked from dodyg/gist:5823184
Kotlin Programming Language Cheat Sheet Part 1

#Intro

Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3

Kotlin project website is at kotlin.jetbrains.org.

All the codes here can be copied and run on Kotlin online editor.

Let's get started.

@ArvidQuarshie
ArvidQuarshie / SimpleRVAdapter.java
Created March 29, 2017 09:49 — forked from sheharyarn/SimpleRVAdapter.java
Simple Recycler View adapter (without XML layout)
/**
* SimpleRVAdapter to quickly get started with simple Lists in Recyclerview
*
* Usage:
*
* RecyclerView rv = (RecyclerView)findViewById(R.id.rv);
* rv.setLayoutManager(new LinearLayoutManager(getContext()));
* rv.setAdapter(new SimpleRVAdapter(new String[] {"1", "2", "3", "4", "5", "6", "7"}));
*
* @author Sheharyar Naseer
@ArvidQuarshie
ArvidQuarshie / jinja2_file_less.py
Created May 8, 2016 14:38 — forked from wrunk/jinja2_file_less.py
python jinja2 examples
#!/usr/bin/env/python
#
# More of a reference of using jinaj2 without actual template files.
# This is great for a simple output transformation to standard out.
#
# Of course you will need to "sudo pip install jinja2" first!
#
# I like to refer to the following to remember how to use jinja2 :)
# http://jinja.pocoo.org/docs/templates/
#