Skip to content

Instantly share code, notes, and snippets.

View ikakus's full-sized avatar

Irakli Dadiani ikakus

  • Change invest
  • Estonia, Tallinn
View GitHub Profile
@ikakus
ikakus / ThinkLight
Created November 28, 2018 18:02 — forked from vzaliva/ThinkLight
This script controll keyboard backlight on IBM ThinkPad X-series
#!/bin/bash
# Vadim Zaliva lord@crocodile.org
# based on https://gist.github.com/hadess/6847281
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
@ikakus
ikakus / AnimatedStarsView.kt
Created July 23, 2018 10:25 — forked from xo-pixels/AnimatedStarsView.kt
Draw animated stars on Android view canvas - written in Kotlin - crafted with ❤️ by sofakingforever
package com.sofaking.moonworshipper.view
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.RectF
import android.util.AttributeSet
import android.view.View
import java.util.*
import java.util.concurrent.Executors
@ikakus
ikakus / sync-projects
Created November 18, 2016 09:20 — forked from JonasGroeger/sync-projects
Gitlab: Clone / Pull all projects in a group
#!/usr/bin/env bash
# Documentation
# https://docs.gitlab.com/ce/api/projects.html#list-projects
NAMESPACE="YOUR_NAMESPACE"
BASE_PATH="https://gitlab.example.com/"
PROJECT_SEARCH_PARAM="YOUR_SEARCH_PARAM"
if [ -z "$GITLAB_PRIVATE_TOKEN" ]; then
@ikakus
ikakus / gist:0a25a14d2a462c185f8cb4f15b8ae0eb
Created August 26, 2016 08:23 — 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.

@ikakus
ikakus / LetterBitmap.java
Created August 26, 2016 07:00 — forked from KKorvin/LetterBitmap.java
Create multi color squares with letter. For Android.
/**
* Orginal http://stackoverflow.com/questions/23122088/colored-boxed-with-letters-a-la-gmail
* Used to create a {@link Bitmap} that contains a letter used in the English
* alphabet or digit, if there is no letter or digit available, a default image
* is shown instead.
*
* Only English language supported.
*/
public class LetterBitmap {