Some notes, references, and resources on tools, libraries, frameworks, and concepts for building, testing, and running algo / quant / automated trading systems and strategies.
Some notes and techniques for reverse engineering Webpack (and a little bit about React/Vue/Angular) apps.
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
| // Vue 2 | |
| npm install --save-dev vite vite-plugin-vue2 dotenv @vue/compiler-sfc | |
| // Vue 3 | |
| npm install --save-dev vite @vitejs/plugin-vue dotenv @vue/compiler-sfc |
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
| [ | |
| { | |
| "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1e8.svg", | |
| "country": "Ascension Island", | |
| "code": "ac" | |
| }, | |
| { | |
| "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1e9.svg", | |
| "country": "Andorra", | |
| "code": "ad" |
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\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Composer; | |
| use Symfony\Component\Finder\Finder; | |
| use Illuminate\Filesystem\Filesystem; | |
| use Symfony\Component\Console\Input\InputArgument; |
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
| // 1. Open the browser developper console on the network tab | |
| // 2. Start the video | |
| // 3. In the dev tab, locate the load of the "master.json" file, copy its full URL | |
| // 4. Run: node vimeo-downloader.js "<URL>" | |
| // 5. Combine the m4v and m4a files with mkvmerge | |
| const fs = require('fs'); | |
| const url = require('url'); | |
| const https = require('https'); |
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
| /** | |
| * Cayenne Low-power Payload Library | |
| * | |
| * @author Pasakorn Tiwatthanont | |
| * @email ptiwatthanont@gmail.com | |
| * | |
| * @link https://htmlcheatsheet.com/js/ | |
| */ | |
| // console.log('Node.js version: ' + process.version) | |
| format = require('string-format') |
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
| <template> | |
| <div class="inline-block" v-html="require('icon-' + this.icon + '.svg')"></div> | |
| </template> | |
| <style module> | |
| .svg { | |
| fill: currentColor; | |
| height: 1em; | |
| margin-top: -4px; | |
| vertical-align: middle; |
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 logging | |
| import sys | |
| from logging.handlers import TimedRotatingFileHandler | |
| FORMATTER = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s") | |
| LOG_FILE = "my_app.log" | |
| def get_console_handler(): | |
| console_handler = logging.StreamHandler(sys.stdout) | |
| console_handler.setFormatter(FORMATTER) |
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
| <VirtualHost *:443> | |
| ServerAdmin "EMAIL ADMIN" | |
| DocumentRoot /var/www/html | |
| ServerName "SERVERNAME" | |
| ProxyRequests off | |
| ProxyPreserveHost On | |
| #Redireccion de wss a ws | |
| RewriteEngine on | |
| RewriteCond %{HTTP:Upgrade} websocket [NC] |
NewerOlder