This file contains hidden or 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
| .rgba(@colour, @alpha) { | |
| @alphaColour: hsla(hue(@colour), saturation(@colour), lightness(@colour), @alpha); | |
| @ieAlphaColour: argb(@alphaColour); | |
| background-color: @colour; // Fallback for older browsers | |
| // IE hacks | |
| zoom: 1; // hasLayout | |
| background-color: transparent\9; | |
| -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=@{ieAlphaColour}, endColorstr=@{ieAlphaColour})"; // IE 8+ |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8"?> | |
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <item android:state_enabled="false" | |
| android:color="@color/flat_disabled_text"/> | |
| <item android:color="@color/flat_normal_text"/> | |
| </selector> |
This file contains hidden or 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
| public static Observable<List<String>> paginatedThings(final Observable<Void> onNextObservable) { | |
| return Observable.create(new Observable.OnSubscribe<List<String>>() { | |
| @Override | |
| public void call(final Subscriber<? super List<String>> subscriber) { | |
| onNextObservable.subscribe(new Observer<Void>() { | |
| int latestPage = -1; | |
| @Override | |
| public void onCompleted() { | |
| subscriber.onCompleted(); |
This file contains hidden or 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
| function isEmpty(data) { | |
| if (typeof data === 'number' || typeof data === 'boolean') { | |
| return false | |
| } | |
| if (typeof data === 'undefined' || data === null) { | |
| return true | |
| } | |
| if (typeof data.length !== 'undefined') { |
This file contains hidden or 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
| function isValidCssSelector(selector) { | |
| var re = /^[A-Za-z]+[\w\-\:\.]*$/ | |
| return re.test(id) | |
| } |
This file contains hidden or 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
| func getQueryStringParameter(url: String, param: String) -> String? { | |
| let url = NSURLComponents(string: url)! | |
| return | |
| (url.queryItems? as [NSURLQueryItem]) | |
| .filter({ (item) in item.name == param }).first? | |
| .value() | |
| } |
This file contains hidden or 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/cupertino.dart'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| //runApp(IOSApp()); | |
| //runApp(AndroidApp()); | |
| runApp(defaultTargetPlatform == TargetPlatform.iOS ? IOSApp() : AndroidApp()); | |
| } |
This file contains hidden or 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.aniketkadam.sharevideoshortcut | |
| import org.junit.rules.TestWatcher | |
| import kotlinx.coroutines.Dispatchers | |
| import kotlinx.coroutines.ExperimentalCoroutinesApi | |
| import kotlinx.coroutines.test.TestCoroutineDispatcher | |
| import kotlinx.coroutines.test.resetMain | |
| import kotlinx.coroutines.test.setMain | |
| import org.junit.runner.Description |
This file contains hidden or 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 io.ugommirikwe.app | |
| import android.Manifest | |
| import android.content.Intent | |
| import android.content.pm.PackageManager | |
| import android.os.Bundle | |
| import android.provider.Settings | |
| import androidx.activity.compose.LocalActivityResultRegistryOwner | |
| import androidx.activity.compose.setContent | |
| import androidx.appcompat.app.AppCompatActivity |
This file contains hidden or 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
| fastlane_require 'dotenv' | |
| default_platform(:android) | |
| platform :android do | |
| # Have an easy way to get the root of the project | |
| def root_path | |
| Dir.pwd.sub(/.*\Kfastlane/, '').sub(/.*\Kandroid/, '').sub(/.*\Kios/, '').sub(/.*\K\/\//, '') | |
| end |
OlderNewer