This file contains 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 { GoogleGenerativeAI } from "@google/generative-ai"; | |
const API_KEY = "KKKKKKEEEEEEEEEYYYYYYYYYY"; | |
const genAI = new GoogleGenerativeAI(API_KEY); | |
const generationConfig = { | |
temperature: 0.9, | |
}; | |
// Modelo 'gemini-pro' para chat | |
const model = genAI.getGenerativeModel({ |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Flow Field Simulation</title> | |
<style> | |
canvas { | |
border: 1px solid black; | |
} | |
</style> |
This file contains 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. Press WINDOWS KEY + R | |
2. Type in "RegEdit" | |
3.Navigate on to | |
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options | |
Create a new Key: | |
"yourgame.exe" | |
Create another Key: |
This file contains 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
interface INode { | |
value: number; | |
right?: Node; | |
left?: Node; | |
} | |
class Node implements INode { | |
value: number; | |
right?: Node; | |
left?: Node; |
This file contains 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
FROM ubuntu | |
MAINTAINER Vinícius Francisco Xavier "viniciusfranciscoxavier@gmail.com" | |
# Update aptitude with new repo | |
RUN apt-get update | |
# Install software | |
RUN apt-get install -y git |
This file contains 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 object = { | |
foo: false, | |
a: { | |
b: [ | |
{ | |
c: false | |
} | |
] | |
} | |
}; |
This file contains 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
<script src="https://cdnjs.cloudflare.com/ajax/libs/konva/7.2.5/konva.min.js"></script> | |
<div id="container"></div> | |
<a href="https://jsfiddle.net/vfxloco/zvmt7rky/114/">Escape from tarkov grid inventory</a> |
This file contains 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
document.addEventListener('dblkeypress', function (event) { | |
console.log('event: ', event); | |
console.log('----Works----'); | |
}, false); | |
var dblkeypressConfig = { | |
lastKeyCode: null, | |
lastFiredTime: null, | |
interval: 500, // 500(slow) or 350(medium) or 100(fast) or 50(impossible) | |
clear: function () { |
This file contains 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 () { | |
if (!location.href.startsWith('https://store.steampowered.com/account/licenses')) { | |
alert('Please run this on Steam\'s account licenses page.'); | |
return; | |
} | |
let toDelete = []; | |
[...document.querySelectorAll('tr td:nth-child(2)')].forEach((element) => { | |
const match = element.innerHTML.match(/( Demo)\W+/gi); |
This file contains 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 run() { | |
const listIp = [] | |
for (let index = 0; index < 1000; index++) { | |
const ip = (Math.floor(Math.random() * 255) + 1)+"."+(Math.floor(Math.random() * 255))+"."+(Math.floor(Math.random() * 255))+"."+(Math.floor(Math.random() * 255)); | |
listIp.push(ip); | |
} | |
console.log('listIp: ', JSON.stringify(listIp)) | |
} | |
run() |
NewerOlder