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
// This will create a list of elements 0m - 50m all the way to 1150m - 2000m depends on inclusion or exclusion of the 2000 | |
List _increments50Text = [ | |
for (int i = 0; i < 2000; i += 50) | |
(i.toString() + 'm - ' + (i + 50).toString() + 'm') | |
]; | |
// same as above example but with a 100 increments instead of 50 | |
List _increments100Text = [ | |
for (int i = 0; i < 2000; i += 100) |
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 | |
namespace App; | |
use Illuminate\Database\Eloquent\Builder; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Database\Eloquent\Scope; | |
use Illuminate\Support\Arr; | |
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 | |
function generateRandomKey( $length = 6 , $withLetters = false ): string | |
{ | |
$chars = $withLetters ? str_shuffle('0W1E2R3T4Y5U6I7O8P9A0S9D8F7G6H5J4K3L2M1NBVCXZ') : str_shuffle('3759402687094152031368921'); | |
$chars = str_shuffle(str_repeat($chars, ceil($length / strlen($chars)))); | |
return strrev(str_shuffle(substr($chars, mt_rand(0, (strlen($chars) - $length - 1)), $length))); | |
} |
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
Future _createBottomSheet(BuildContext context) async { | |
// BottomSheet with state controller by the _scaffoldKey | |
// PersistentBottomSheetController _bottomSheetController; | |
// final _scaffoldKey = GlobalKey<ScaffoldState>(); | |
if (_bottomSheetController == null) { | |
_bottomSheetController = _scaffoldKey.currentState.showBottomSheet( | |
(context) { | |
return Container( | |
height: MediaQuery.of(context).size.height * 0.75, | |
color: Colors.grey, |
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
https://medium.mybridge.co/39-open-source-swift-ui-libraries-for-ios-app-development-da1f8dc61a0f | |
https://businessbloomer.com/woocommerce-visual-hook-guide-account-pages/ | |
https://www.billerickson.net/code/wp_query-arguments/ | |
https://fromupnorth.com/mixed-ui-ux-animations-4d7a22f9ab7 | |
https://code.tutsplus.com/series/create-a-license-controlled-theme-and-plugin-update-system--cms-760 |
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 | |
$last_names = array( | |
'Abbott', | |
'Acevedo', | |
'Acosta', | |
'Adams', | |
'Adkins', | |
'Aguilar', | |
'Aguirre', | |
'Albert', |
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
names = ["Aaran", "Aaren", "Aarez", "Aarman", "Aaron", "Aaron-James", "Aarron", "Aaryan", "Aaryn", "Aayan", "Aazaan", "Abaan", "Abbas", "Abdallah", "Abdalroof", "Abdihakim", "Abdirahman", "Abdisalam", "Abdul", "Abdul-Aziz", "Abdulbasir", "Abdulkadir", "Abdulkarem", "Abdulkhader", "Abdullah", "Abdul-Majeed", "Abdulmalik", "Abdul-Rehman", "Abdur", "Abdurraheem", "Abdur-Rahman", "Abdur-Rehmaan", "Abel", "Abhinav", "Abhisumant", "Abid", "Abir", "Abraham", "Abu", "Abubakar", "Ace", "Adain", "Adam", "Adam-James", "Addison", "Addisson", "Adegbola", "Adegbolahan", "Aden", "Adenn", "Adie", "Adil", "Aditya", "Adnan", "Adrian", "Adrien", "Aedan", "Aedin", "Aedyn", "Aeron", "Afonso", "Ahmad", "Ahmed", "Ahmed-Aziz", "Ahoua", "Ahtasham", "Aiadan", "Aidan", "Aiden", "Aiden-Jack", "Aiden-Vee", "Aidian", "Aidy", "Ailin", "Aiman", "Ainsley", "Ainslie", "Airen", "Airidas", "Airlie", "AJ", "Ajay", "A-Jay", "Ajayraj", "Akan", "Akram", "Al", "Ala", "Alan", "Alanas", "Alasdair", "Alastair", "Alber", "Albert", "Albie", "Aldred", "Al |
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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |
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 | |
public static function getDataFromCsvFile($csv_file){ | |
$csv = array(); | |
$file = fopen($csv_file, 'r'); | |
while (($result = fgetcsv($file)) !== false){ | |
$csv[] = $result; | |
} | |
fclose($file); | |
return $csv; | |
} |