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
| # * 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 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
| 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 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
| 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 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
| 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 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
| <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 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/material.dart'; | |
| import 'package:provider/provider.dart'; | |
| void main() { | |
| runApp( | |
| ChangeNotifierProvider( | |
| create: (_) => Person(name: "Yohan", age: 25), | |
| child: MyApp(), | |
| ), | |
| ); |
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 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/")); | |
| } |
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
| using System; | |
| using System.Collections.Generic; | |
| namespace test | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| MakeDict(new int[] { 10, 20, 30 }, new string[] { "B1", "B2", "B3" }); |
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
| <?php | |
| $countries = array( | |
| 'AF' => 'Afghanistan', | |
| 'AX' => 'Aland Islands', | |
| 'AL' => 'Albania', | |
| 'DZ' => 'Algeria', | |
| 'AS' => 'American Samoa', | |
| 'AD' => 'Andorra', | |
| 'AO' => 'Angola', | |
| 'AI' => 'Anguilla', |
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
| setInterval(function(){ | |
| let outTime = 1; | |
| for(let Xo of document.querySelectorAll('*[data-sigil="touchable are-friends-popup"]')) | |
| { | |
| setTimeout(function(){ | |
| Xo.click(); | |
| setTimeout(function(){ | |
| Xo.click(); | |
| document.querySelector('*[data-sigil="touchable touchable mflyout-remove-on-click m-unfriend-request"]').click(); |