Skip to content

Instantly share code, notes, and snippets.

View burkaslarry's full-sized avatar
🎯
Focusing

Larry burkaslarry

🎯
Focusing
View GitHub Profile
@burkaslarry
burkaslarry / kotlin
Created May 30, 2019 12:59
Setup Equal Spacing of Grid Layout of RecyclerView
class SpacesItemDecoration (): RecyclerView.ItemDecoration() {
override fun getItemOffsets(
outRect: Rect, view: View, parent: RecyclerView,
state: RecyclerView.State
@burkaslarry
burkaslarry / CarControllerTouch.cs
Last active October 31, 2019 12:28
Unity : Moving object by drag : constant speed, deceleration, and acceleration and deceleration
using UnityEngine;
using System.Collections;
public class CarControllerTouch : MonoBehaviour
{
float speed = 10f;
Vector3 destination;
float rotSpeed = 10;
@burkaslarry
burkaslarry / gist:b4dabc12de0b0d10cfbdc9447cdc673f
Created June 13, 2024 01:44
Letter Combinations of a Phone Number - Kotlin
class Solution {
private val vals = arrayOf("", "", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz")
private var result: MutableList<String> = mutableListOf()
fun letterCombinations(digits: String): List<String> {
if (digits.isEmpty()) return result
dfs(digits, 0, "")
return result
}