Skip to content

Instantly share code, notes, and snippets.

View codejunk1e's full-sized avatar
☠️

Igboanyika Nnaemeka Robin codejunk1e

☠️
View GitHub Profile
@codejunk1e
codejunk1e / linkDebugFrameworkIos
Created August 24, 2021 11:43
linkDebugFrameworkIos error building iOS
> Task :shared:linkDebugFrameworkIos FAILED
e: Compilation failed: Could not initialize class llvm.llvm
* Source files:
* Compiler version info: Konan: 1.5.21 / Kotlin: 1.5.21
* Output kind: FRAMEWORK

What happens when you type gcc main.c?

First of all, what is gcc? If we want to know What happens when you type gcc main.c, we need to know the base of all, gcc

enter image description here

GCC

enter image description here

GCC stands for GNU Compiler Collection (produced by the GNU - G nu is N ot U nix), that the name say, is a set of compilers for various languages. It provides all the infrastructure for building a entire software, like a front-end builder.

@codejunk1e
codejunk1e / Database.java
Created June 24, 2020 16:04
RoomDatabase Template for Android
package com.robin.theandroidcrew.movies.database;
import android.content.Context;
import android.util.Log;
import androidx.room.Room;
import androidx.room.RoomDatabase;
@androidx.room.Database(entities = {${MODEL_NAME}.class}, exportSchema = false, version = 1)
public abstract class Database extends RoomDatabase {
private static final String LOG_TAG = Database.class.getSimpleName();
private static final Object LOCK = new Object();
@codejunk1e
codejunk1e / RoomDao.java
Last active July 18, 2020 11:18
Room Dao File template Android
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;
import java.util.List;
@codejunk1e
codejunk1e / IntDef.java
Created June 23, 2020 00:30
IntDef file template for Android
import androidx.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
public class ${INTERFACE_NAME}s {
public static final int placeholder = 1;
@IntDef({placeholder})
@Retention(RetentionPolicy.SOURCE)
public @interface ${INTERFACE_NAME} {}
@codejunk1e
codejunk1e / StringDef.java
Last active June 23, 2020 00:33
StringDef file template for Android
import androidx.annotation.StringDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
public class ${INTERFACE_NAME}s {
public static final String placeholder = "placeholder_value";
@StringDef({placeholder})
@Retention(RetentionPolicy.SOURCE)
public @interface ${INTERFACE_NAME} {}
@codejunk1e
codejunk1e / RecyclerView.java
Created June 21, 2020 19:59
RecyclerView file template for Android
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
@codejunk1e
codejunk1e / AppExecutors.java
Created June 20, 2020 18:25
Executors file template for Android
/**
* @author ${USER}
* Created on ${DATE}
*/
import android.os.Handler;
import android.os.Looper;
import androidx.annotation.NonNull;
import java.util.concurrent.Executor;
@codejunk1e
codejunk1e / OnboardingAdapter.kt
Created May 13, 2020 16:50
Onboarding Screen with ViewPager 2 and Recyclerview
package com.ehmaugbogo.rigotrak.view.main.ui
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.RecyclerView.ViewHolder
import com.ehmaugbogo.rigotrak.R
import kotlinx.android.synthetic.main.onboarding_items.view.*
import java.util.*