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
test |
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
# Automatically update fastlane | |
update_fastlane | |
default_platform(:ios) | |
# Default temporary keychain password and name, if not included from environment | |
TEMP_KEYCHAIN_NAME_DEFAULT = "fastlane_flutter" | |
TEMP_KEYCHAN_PASSWORD_DEFAULT = "temppassword" | |
# Remove the temporary keychain, if it exists |
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:io'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:image/image.dart' as Im; | |
import 'package:path_provider/path_provider.dart' show getTemporaryDirectory; | |
Future<File> imageCompress(File file,{int maxFileSize = 3}) async { | |
Im.Image image = Im.decodeImage( file.readAsBytesSync()); | |
Im.Image smallerImage = Im.copyResize(image, width: image.width ~/ 2); | |
final appPath = await getTemporaryDirectory(); | |
file = File('${appPath.path}/img_c${DateTime.now().millisecondsSinceEpoch}.jpg') |
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
void main() { | |
final list = ['a', 'b', 'c']; | |
list.mapIndex((i, index) { | |
print("item $i inddex $index "); | |
}).toList(); | |
print("==============="); | |
list.forEachIndex((i, index) { | |
print("item $i inddex $index "); |
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
void main() { | |
final Get get = Get(); | |
print(get.get); | |
} | |
class Get { | |
String get get => "Hello Get"; | |
} |
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
const sendmail = require('sendmail')({ silent: true }); | |
const nodemailer = require('nodemailer'); | |
class Mail { | |
constructor(options) { | |
this.transporter = null; | |
this.options = Object.assign({ | |
smtp: null, | |
verificationSubject: 'Please activate your email address', |
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
public class PhoneUtils { | |
public static final String TAG = "PhoneUtils"; | |
private static PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance(); | |
public static Phonenumber.PhoneNumber getValidPhoneNumber(String countryCode, String phoneNumberStr) { | |
return getValidPhoneNumber(countryCode.concat(phoneNumberStr)); | |
} | |
public static String getValidPhoneNumberStr(String countryCode, String phoneNumberStr) { |
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 android.os.Build | |
import android.text.Html | |
import android.widget.Button | |
import android.widget.TextView | |
/** | |
* Created by ahmedwahdan | |
*/ | |
var TextView.coloredText: String | |
get() { |
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.example.api; | |
import java.util.Map; | |
import retrofit.Call; | |
import retrofit.http.Body; | |
import retrofit.http.GET; | |
import retrofit.http.POST; | |
public interface Api { |
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
<?xml version="1.0" encoding="utf-8"?> | |
<data> | |
<messages> | |
<ccp_dialog_title translation="اختار دولة"/> | |
<ccp_dialog_search_hint_message translation="بحث"/> | |
<ccp_dialog_no_result_ack_message translation=" لا يوجد نتائج"/> | |
</messages> | |
<countries> | |
<country |
NewerOlder