Skip to content

Instantly share code, notes, and snippets.

View Tahmeed156's full-sized avatar

Tahmeed Tarek Tahmeed156

  • Chaldal.com
  • Dhaka, Bangladesh
  • 16:26 (UTC +06:00)
View GitHub Profile
@Tahmeed156
Tahmeed156 / fetch.c
Last active January 22, 2022 11:14
Modification of a test file taken from https://www.cs.virginia.edu/~cr4bd/4414/S2021/lottery.html for `xv6` scheduling
#include "types.h"
#include "user.h"
#include "pstat.h"
#undef USE_YIELD
#define MAX_CHILDREN 32
#define LARGE_TICKET_COUNT 100000
#define MAX_YIELDS_FOR_SETUP 100
__attribute__((noreturn))
@Tahmeed156
Tahmeed156 / build.gradle
Created April 7, 2019 12:42
How to change version of react native application
...
defaultConfig {
applicationId "com.edifybd"
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "0.5"
...
in app/build.gradle
@Tahmeed156
Tahmeed156 / errors.txt
Last active April 7, 2019 12:39
Errors during executing 'gradlew assembleRelease'
Errors like :
Execution failed for task ':app:processReleaseResources'.
> Failed to execute aapt
OR
error: uncompiled PNG file passed as argument. Must be compiled first into .flat file
@Tahmeed156
Tahmeed156 / help.txt
Last active October 21, 2018 07:23
Upgrading node modules in react native -- React native 0.56 has bugs
Performed an upgrade and faced some issues
yarn upgrade // updates everything
Use these versions
"react": "16.4.1"
"react-native": "0.55.4" // issues with the latest 0.56
"babel-preset-react-native": "4.0.0"
@Tahmeed156
Tahmeed156 / build.gradle
Created October 21, 2018 06:53
Upgrading the sdk versions for your react native project
...
android {
compileSdkVersion 28 // Use latest version
buildToolsVersion "28.0.3" // Latest version
...
...
dependencies {
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:28.+" // Use latest version
@Tahmeed156
Tahmeed156 / build.gradle
Last active October 21, 2018 06:46
Gradle error: Minimum supported Gradle version is 4.1 and method not found: 'google()' -- Problems with gradle installation
buildscript {
repositories {
maven {
url 'https://maven.google.com'
} // Instead of google() to make it work
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.google.gms:google-services:3.1.1'