This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (true) { | |
var s = "" | |
var longS = "" | |
ssss.split(",").forEach { | |
val iS = it.substringAfter("\"").substringBefore("\"") | |
if (iS.contains("#")) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
apply plugin: 'kotlin-android' | |
apply plugin: 'kotlin-android-extensions' | |
apply plugin: 'io.fabric' | |
apply plugin: 'kotlin-kapt' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_localizations/flutter_localizations.dart'; | |
void main() => runApp(MyApp()); | |
const en = Locale("en", "UK"); | |
const ar = Locale("ar", "AE"); | |
var currentLocale = en; | |
var currentLanguage = "Enhlish"; | |
TextDirection currentTextDir = TextDirection.ltr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------ | |
Toolbar shift up on softkeyboard issue: | |
------------------------------------------ | |
- fullscreen not supported | |
removed <item name="android:windowFullscreen">true</item> from style | |
- added android:windowSoftInputMode="adjustResize|stateHidden" in manifest | |
- layout structure | |
<LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'package:bloc_vanilla_tut/counter_event.dart'; | |
class CounterBloc { | |
int _counter = 0; | |
final _counterStateController = StreamController<int>(); | |
StreamSink<int> get _inCounter => _counterStateController.sink; | |
// For state, exposing only a stream which outputs data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.shakir.a7diets.graph | |
import android.content.Context | |
import android.graphics.* | |
import android.graphics.Paint.ANTI_ALIAS_FLAG | |
import android.os.Build | |
import android.util.AttributeSet | |
import android.view.View | |
import com.ems.a7diets.Application.AppApplication | |
import com.ems.a7diets.R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val circularIndex = if (position>=0) position%hlist.size else ((hlist.size - (position % hlist.size).absoluteValue) % hlist.size) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.. Bitbucket App Password | |
.. Here's what worked for me, I am running different ids on bitbucket and github | |
Enabled Credentials Helper AndroidStudio -> File -> Settings -> Git -> Use credential helper | |
Ran git config credential.helper store | |
Ran git fetch through console once |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package shakir.bhav.pc.ui_pc | |
import javafx.application.Platform | |
import javafx.beans.InvalidationListener | |
import javafx.event.EventHandler | |
import javafx.geometry.VPos | |
import javafx.scene.Scene | |
import javafx.scene.canvas.Canvas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//upload Signed Build to testfairy | |
//https://gist.github.com/shakir915/77575eb4b0877f661a2850ddf08713aa | |
gradle.buildFinished { | |
def uploaded_urls = [] | |
def folders = [] | |
def apksPaths = [] | |
try { | |
gradle.startParameter.taskNames.forEach { task -> | |
if (task.contains("assemble") && task.contains("Release")) { | |
android.applicationVariants.all { variant -> |
OlderNewer