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
| <nb-select multiple placeholder="Select Showcase" | |
| [(selected)]="selectedItem" | |
| (selectedChange)="selecionar($event)"> | |
| <nb-select-label> | |
| Selected: {{ selectedItem }} | |
| </nb-select-label> | |
| <nb-option value="todos" *ngIf="todoss">Selecionar todos</nb-option> | |
| <nb-option value="disabled" *ngIf="!todoss">Limpar seleção</nb-option> | |
| <nb-option value="0">Option 0</nb-option> |
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
| const buffer = require('buffer'); | |
| const crypto = require('crypto'); | |
| // Demo implementation of using `aes-256-gcm` with node.js's `crypto` lib. | |
| const aes256gcm = (key) => { | |
| const ALGO = 'aes-256-gcm'; | |
| // encrypt returns base64-encoded ciphertext | |
| const encrypt = (str) => { | |
| // Hint: the `iv` should be unique (but not necessarily random). |
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
| choco install vscode git nodejs yarn hyper winrar -y |
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 versions of Hyper may add additional config options, | |
| // which will not automatically be merged into this file. | |
| // See https://hyper.is#cfg for all currently supported options. | |
| module.exports = { | |
| config: { | |
| // choose either `'stable'` for receiving highly polished, | |
| // or `'canary'` for less polished but more frequent updates | |
| updateChannel: 'stable', |
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
| const { parseFromTimeZone, formatToTimeZone } = require('date-fns-timezone') | |
| const { getTime, toDate } = require('date-fns') | |
| const dataTime = getTime(new Date()) // 1567520182997 | |
| const dataDate = toDate(dataTime) | |
| const date = new Date() | |
| const format = 'DD.MM.YYYY HH:mm:ss.SSS [GMT]Z' | |
| const output = formatToTimeZone(dataTime, format, { timeZone: 'America/Sao_Paulo' }) |
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 | |
| // URL da Request | |
| $url_base = "https://api.twitch.tv/helix/streams?user_login="; | |
| // Something is wrong String | |
| $qs = "jukes"; | |
| // Array de Streamers | |
| $stream = array("jukes","gaules","lineage2Oficial"); |
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
| Options +MultiViews | |
| RewriteEngine on | |
| RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC] | |
| RewriteRule ^ /%1 [NC,L,R] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_FILENAME}\.php -f | |
| RewriteRule ^(.+)$ $1\.php [R=301,L] |
NewerOlder