Skip to content

Instantly share code, notes, and snippets.

View huseyinyildirim's full-sized avatar
🎯
Focusing

Hüseyin Yıldırım huseyinyildirim

🎯
Focusing
View GitHub Profile
jQuery.validator.addMethod("phoneTR", function (phone_number, element) {
//5321234567
phone_number = phone_number.replace(/\s+/g, "");
return this.optional(element) || phone_number.length > 9 && phone_number.match(/^5[0-9][0-9][1-9]([0-9]){2}([0-9]){4}$/);
}, "Lütfen telefon numarasını kontrol ediniz.");
@huseyinyildirim
huseyinyildirim / shared_preferences_example.dart
Last active June 26, 2020 08:06
shared_preferences_example.dart
import 'package:shared_preferences/shared_preferences.dart'
class SharedPreferencesTest {
///
/// SharedPreferences Kütüphanesi Örneği
///
final String _notifications = "notifications";
final String _sortingOrder = "sortOrder";
/// ------------------------------------------------------------
@huseyinyildirim
huseyinyildirim / shared_preferences_pubspec.yaml
Last active June 26, 2020 07:58
shared_preferences_pubspec.yaml
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
shared_preferences: ^0.5.7+3