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
{ | |
AF: "Afghanistan", | |
AX: "\xc5land Islands", | |
AL: "Albania", | |
DZ: "Algeria", | |
AS: "American Samoa", | |
AD: "Andorra", | |
AO: "Angola", | |
AI: "Anguilla", | |
AQ: "Antarctica", |
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
@echo off | |
if "%1"=="" ( | |
echo No arguments provided. | |
exit /b | |
) | |
set args=%* | |
C:/tools/php72/php.exe %args% |
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
1 : Shutdown or Quit your XAMPP server from Xampp control panel. | |
2 : Download the ZIP version of MariaDB | |
3 : Rename the xampp/mysql folder to mysql_old. | |
4 : Unzip or Extract the contents of the MariaDB ZIP file into your XAMPP folder. | |
5 : Rename the MariaDB folder, called something like mariadb-5.5.37-win32, to mysql. | |
6 : Rename xampp/mysql/data to data_old. | |
7 : Copy the xampp/mysql_old/data folder to xampp/mysql/. | |
8 : Copy the xampp/mysql_old/backup folder to xampp/mysql/. | |
9 : Copy the xampp/mysql_old/scripts folder to xampp/mysql/. |
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
# * Fine Tuning | |
key_buffer = 64M | |
max_allowed_packet = 128M | |
thread_cache_size = 30 | |
myisam-recover = BACKUP | |
max_connections = 150 | |
table_open_cache = 2048 | |
thread_concurrency = 10 | |
wait_timeout = 600 |
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
internal class AvoidHang : IDisposable | |
{ | |
private readonly SemaphoreSlim _semaphore = new System.Threading.SemaphoreSlim(1, 1); | |
Stopwatch stopwatch = new Stopwatch(); | |
bool _started = true; | |
public AvoidHang(int fast = 1000) | |
{ | |
stopwatch.Start(); | |
(new Thread(() => |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace ConsoleApp1 | |
{ | |
internal class Program |
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
Array | |
( | |
[wc-pending] => Pending payment | |
[wc-processing] => Processing | |
[wc-on-hold] => On hold | |
[wc-completed] => Completed | |
[wc-cancelled] => Cancelled | |
[wc-refunded] => Refunded | |
[wc-failed] => Failed | |
[wc-checkout-draft] => Draft |
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
<select id="country" name="country" class="form-control {{ $errors->has('country') ? 'is-invalid' : '' }}" class="form-control"> | |
<option value="Afghanistan" {{ old('country' == "Afghanistan") ? 'selected' : '' }}>Afghanistan</option> | |
<option value="Åland Islands" {{ old('country' == "Åland Islands") ? 'selected' : '' }}>Åland Islands</option> | |
<option value="Albania" {{ old('country' == "Albania") ? 'selected' : '' }}>Albania</option> | |
<option value="Algeria" {{ old('country' == "Algeria") ? 'selected' : '' }}>Algeria</option> | |
<option value="American Samoa" {{ old('country' == "American Samoa") ? 'selected' : '' }}>American Samoa</option> | |
<option value="Andorra" {{ old('country' == "Andorra") ? 'selected' : '' }}>Andorra</option> | |
<option value="Angola" {{ old('country' == "Angola") ? 'selected' : '' }}>Angola</option> | |
<option value="Anguilla" {{ old('country' == "Anguilla") ? 'selected' : '' }}>Anguilla</option> | |
<option value="Antarctica" {{ old('country' == "Antarctica") ? 'selected' : '' }}>Antarctica</option |
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:provider/provider.dart'; | |
void main() { | |
runApp( | |
ChangeNotifierProvider( | |
create: (_) => Person(name: "Yohan", age: 25), | |
child: MyApp(), | |
), | |
); |
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 static Intent getOpenFacebookIntent(Context context) { | |
try { | |
context.getPackageManager().getPackageInfo("com.facebook.katana", 0); | |
Intent intent = new Intent("android.intent.action.VIEW", Uri.parse("fb://page/xxx")); | |
intent.addFlags(CrashUtils.ErrorDialogData.BINDER_CRASH); | |
return intent; | |
} catch (Exception unused) { | |
return new Intent("android.intent.action.VIEW", Uri.parse("https://www.facebook.com/xxx/")); | |
} |
NewerOlder