First we start by creating a wineprefix and installing our prerequisites from terminal:
WINEARCH=win32 WINEPREFIX=/home/$USER/GarminExpress winetricks dotnet452 vcrun2010 corefontsWINEARCH=win32 WINEPREFIX=/home/$USER/GarminExpress winetricks win7First we start by creating a wineprefix and installing our prerequisites from terminal:
WINEARCH=win32 WINEPREFIX=/home/$USER/GarminExpress winetricks dotnet452 vcrun2010 corefontsWINEARCH=win32 WINEPREFIX=/home/$USER/GarminExpress winetricks win7| <?php | |
| use PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| 'array_indentation' => true, | |
| 'array_syntax' => ['syntax' => 'short'], | |
| 'binary_operator_spaces' => [ | |
| 'default' => 'single_space', |
| use std::path::Path; | |
| use std::ffi::OsStr; | |
| fn main() { | |
| fn get_extension_from_filename(filename: &str) -> Option<&str> { | |
| Path::new(filename) | |
| .extension() | |
| .and_then(OsStr::to_str)} | |
| assert_eq!(get_extension_from_filename("abc.gz"), Some("gz")); |
| // Paste these lines into website's console (Win/Linux: Ctrl + Shift + I / Mac: Cmd + Alt + I) | |
| if(!!window.React || | |
| !!document.querySelector('[data-reactroot], [data-reactid]') || | |
| Array.from(document.querySelectorAll('*')).some(e => e._reactRootContainer !== undefined || Object.keys(e).some(k => k.startsWith('__reactContainer'))) | |
| ) | |
| console.log('React.js'); | |
| if(!!document.querySelector('script[id=__NEXT_DATA__]')) | |
| console.log('Next.js'); |
| #!/usr/bin/env php | |
| <?php | |
| echo "Running tests.. "; | |
| exec('vendor/bin/phpunit', $output, $returnCode); | |
| if ($returnCode !== 0) { | |
| // Show full output | |
| echo PHP_EOL . implode($output, PHP_EOL) . PHP_EOL; | |
| echo "Aborting commit.." . PHP_EOL; |