This guide will help you set up a complete LaTeX environment on Windows with MiKTeX, VS Code, and automatic formatting with latexindent.
- Windows 10/11
- Package manager (Chocolatey, Winget, or Scoop)
- VS Code (or install it during this process)
This guide will help you set up a complete LaTeX environment on Windows with MiKTeX, VS Code, and automatic formatting with latexindent.
| openssl req -newkey rsa:4096 -days 1001 -nodes -x509 -subj "/C=US/ST=California/L=San Francisco/O=Twitch/OU=web/CN=localhost" -extensions SAN -config ".\openssl.cnf" -keyout "testing.key" -out "testing.crt" |
| Artisan | |
| // Displays help for a given command | |
| php artisan --help OR -h | |
| // Do not output any message | |
| php artisan --quiet OR -q | |
| // Display this application version | |
| php artisan --version OR -V | |
| // Do not ask any interactive question | |
| php artisan --no-interaction OR -n | |
| // Force ANSI output |
| <?php | |
| ini_set('display_errors', 1); | |
| ini_set('display_startup_errors', 1); | |
| error_reporting(E_ALL); | |
| $database = 'db'; | |
| $user = 'user'; | |
| $pass = 'pass'; | |
| $host = 'localhost'; |
| 1. Make Home Directory for SShH keys. | |
| c://users/UserName/.SSH (for Windows 7) | |
| 2. Generate SSH key by command: | |
| ssh-keygen -t rsa -C "user@mail.ru" | |
| # Creates a new ssh key, using the provided email as a label | |
| Generating public/private rsa key pair. | |
| It's created a pair of keys - private and public in home dir .SSH | |
| C:\Users\SuvorovAG\.ssh\id_rsa |
| <?php | |
| /** | |
| * StatusCodes provides named constants for | |
| * HTTP protocol status codes. Written for the | |
| * Recess Framework (http://www.recessframework.com/) | |
| * | |
| * @author Kris Jordan | |
| * @license MIT | |
| * @package recess.http | |
| * |
| // If you want inserted images in a CKEditor to be responsive | |
| // you can use the following code. It creates a htmlfilter for the | |
| // image tag that replaces inline "width" and "style" definitions with | |
| // their corresponding attributes and add's (in this example) the | |
| // Bootstrap "img-responsive" class. | |
| CKEDITOR.on('instanceReady', function (ev) { | |
| ev.editor.dataProcessor.htmlFilter.addRules( { | |
| elements : { | |
| img: function( el ) { | |
| // Add bootstrap "img-responsive" class to each inserted image |
| <?php | |
| return array ( | |
| '(UTC-11:00) Midway Island' => 'Pacific/Midway', | |
| '(UTC-11:00) Samoa' => 'Pacific/Samoa', | |
| '(UTC-10:00) Hawaii' => 'Pacific/Honolulu', | |
| '(UTC-09:00) Alaska' => 'US/Alaska', | |
| '(UTC-08:00) Pacific Time (US & Canada)' => 'America/Los_Angeles', | |
| '(UTC-08:00) Tijuana' => 'America/Tijuana', | |
| '(UTC-07:00) Arizona' => 'US/Arizona', |
| 1. Open "my.ini" in "C:\xampp\mysql\bin\" directory. | |
| 2. Edit the following lines. | |
| # Add the following code before [client]. | |
| default-character-set=utf8 | |
| # Add the following code before [mysqld]. | |
| character-set-server=utf8 | |
| skip-character-set-client-handshake |
| var arr = { | |
| max: function(array) { | |
| return Math.max.apply(null, array); | |
| }, | |
| min: function(array) { | |
| return Math.min.apply(null, array); | |
| }, | |
| range: function(array) { |