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> | |
| <input placeholder="Search" type="text" v-model="search"> | |
| <select v-model="selectedColor"> | |
| <option :value="0">Choose a color</option> | |
| <option :value="color" :key="color" v-for="color in colors">{{color}}</option> | |
| </select> | |
| <div style="margin-top: 20px; margin-bottom: 30px;">Search Results: <span style="font-weight: bold">{{filteredCards.length}}</span></div> | |
| <div style="display: flex; flex-wrap: wrap; justify-content: center;"> | |
| <div style="flex-basis: 20%;" v-for="card in filteredCards" :key="card.id"> |
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
| let Size = Object.freeze({ | |
| small: 'small', | |
| medium: 'medium', | |
| large: 'large' | |
| }) | |
| let Color = Object.freeze({ | |
| green: 'green', | |
| blue: 'blue', | |
| }) | |
| class Product { |
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\Services; | |
| class GeneratorService | |
| { | |
| public function newUsername() // : string | |
| { | |
| $randomAdjective = $this->getRandomAdjective(); | |
| $randomColor = $this->getRandomColor(); |
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
| export const retryWithBackoff = (delayMs: number, maxRetry = DEFAULT_MAX_RETRIES, backoffMs = DEFAULT_BACKOFF) => { | |
| let retries = maxRetry; | |
| return (src: Observable<any>) => | |
| src.pipe( | |
| retryWhen((errors: Observable<any>) => errors.pipe( | |
| mergeMap(error => { | |
| if (retries-- > 0) { | |
| const backoffTime = delayMs + (maxRetry - retries) * backoffMs; | |
| return of(error).pipe(delay(backoffTime)); |
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 * as Playmex from '@/services/playmex' | |
| export default { | |
| data: () => ({ | |
| retries:3, | |
| loading: false | |
| }), | |
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
| foreach ($this->symbols as $symbol) { | |
| $roes = $this->getEntity('indicative_roe_tbl', $symbol); | |
| if (is_array($roes)) { | |
| $this->indicativeRoes[$symbol] = $roes; | |
| } else { | |
| $this->indicativeRoes[$symbol] = []; | |
| } | |
| } | |
| $position = $this->stream['data']; |
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
| // Bracket Scalper Strategy Overview | |
| Strategy Description: | |
| - Go Long/Go Short Bracket strategies | |
| - Enables multiple 1 -click Long/Short trades bracketed with SL and TP. | |
| - 1-click position side switching | |
| - built in advanced risk management features such trailing safeties and anti-liquidation insurances, and direct exchange order detection | |
| Risk Management: |