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 { TokenController } from "@api-token/token.controller"; | |
import { TokenService } from "@api-token/services/token.service"; | |
import { Test } from "@nestjs/testing"; | |
import { HttpStatus, INestApplication } from "@nestjs/common"; | |
import { Token, User } from "@entities"; | |
import { getRepositoryToken } from "@nestjs/typeorm"; | |
import { Repository } from "typeorm"; | |
describe("TokenController", () => { | |
let app: INestApplication; |
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
// copiar o codigo e colar na console do browser | |
// se nao sabe como fazer segue o link abaixo | |
// https://www.digitalocean.com/community/tutorials/how-to-use-the-javascript-developer-console | |
const removeElements = (elements) => { | |
if (elements && elements.length) { | |
elements.forEach((element) => { | |
element.remove(); | |
}); | |
} |
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 axios, { Method } from 'axios'; | |
(async (forNumber) => { | |
const arr = Array(10 * forNumber).fill(null).map((n, i) => i) | |
for (const i of arr) { | |
try { | |
const PreviousMessages = arr.slice(0, i + 1).fill(null).map((n, index) => { | |
return { | |
msg: index, | |
createdOn: new Date().toISOString() |
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
class Base64 { | |
constructor() { | |
} | |
// A helper that returns Base64 characters and their indices. | |
static chars = { | |
ascii: function () { | |
return 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; | |
}, |
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
[core] | |
editor = code --wait | |
pager = | |
[push] | |
followTags = true | |
[alias] | |
c = !git add --all && git commit -m | |
s = !git status -s | |
l = !git log --pretty=format:'%C(blue)%h%C(red)%d %C(white)%s - %C(cyan)%cn, %C(green)%cr' | |
amend = !git add --all && git commit --amend --no-edit |
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
.react-grid-layout{position:relative;transition:height .2s ease}.react-grid-item{transition:all .2s ease;transition-property:left,top}.react-grid-item.cssTransforms{transition-property:transform}.react-grid-item.resizing{z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{background:red;opacity:.2;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.react-grid-item>.react-resizable-handle{position:absolute;width:20px;height:20px;bottom:0;right:0;cursor:se-resize}.react-grid-item>.react-resizable-handle::after{content:'';position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,.4);border-bottom:2px solid rgba(0,0,0,.4)}.react-resizable-hide>.react-resizable-handle{display:none}body{padding:20px}#content{width:100%}.react-grid-layout{b |
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
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | |
window['process'] = { | |
env: {NODE_ENV: 'prod'} | |
} | |
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; | |
function unwrapExports (x) { | |
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; |
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
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | |
var React__default = _interopDefault(React); | |
var PluginTwo = function PluginTwo(_ref) { | |
var count = _ref.count, | |
handlerClick = _ref.handlerClick; | |
var _useState = React.useState(count), | |
state = _useState[0], |
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
var React__default = React; | |
var PluginOne = function PluginOne(_ref) { | |
var count = _ref.count, | |
handlerClick = _ref.handlerClick; | |
var _useState = React.useState(count), | |
state = _useState[0], | |
setState = _useState[1]; | |
return React__default.createElement("div", null, React__default.createElement("h2", null, "Plugin One"), React__default.createElement("hr", null), React__default.createElement("button", { |
NewerOlder