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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Mapbox GL JS debug page</title> | |
<meta charset='utf-8'> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | |
<link rel='stylesheet' href='../dist/mapbox-gl.css' /> | |
<style> | |
body { margin: 0; padding: 0; } | |
html, body, #map { height: 100%; } |
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 isPrime = (num) => { | |
for (let i = 2, s = Math.sqrt(num); i <= s; i++) | |
if (num % i === 0) return false; | |
return num > 1; | |
}; | |
const func = (A, B) => { | |
const obj = {}; | |
B.forEach((e) => { |
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
document.addEventListener('click', (e) => { | |
const color = getColor(e); | |
document.body.style.backgroundColor = color; | |
}) | |
const getColor = (event) => { | |
const {clientX, clientY} = event; | |
if (clientX % 2 == 0) { | |
return clientY % 2 == 0 ? "red" : "green"; | |
} else { |
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 App() { | |
const [data, setData] = useState({data: []}); | |
const [preparedData, setPreparedData] = useState({preparedData: []}); | |
useEffect(() => { | |
(async function () { | |
const data = await fetch(); | |
setData(sortById(data)); | |
setPreparedData(data.slice(0, 20)); |
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
<html> | |
<body> | |
<div id="div"> | |
</div> | |
<script> | |
function foo(e){ | |
console.log(e.target.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
#include <iostream> | |
#include <iomanip> | |
#include <valarray> | |
#include <iostream> | |
#include <fstream> | |
using namespace std; | |
// Function prototypes | |
void step( double dx, double &x, valarray<double> &Y ); | |
valarray<double> F( double x, valarray<double> 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
magnet:?xt=urn:btih:47820a3152877234a53f5adc9669362b9ab09bed&dn=Ansys-17-with-crack.rar&tr=udp%3a%2f%2ftracker.coppersurfer.tk%3a6969&tr=udp%3a%2f%2fexodus.desync.com%3a6969&tr=udp%3a%2f%2ftracker.leechers-paradise.org%3a6969&tr=udp%3a%2f%2fzer0day.ch%3a1337&tr=udp%3a%2f%2fopen.demonii.com%3a1337 |
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 calculateDensityInCell() { | |
for (let i = 0; i < N * (1 / squareSize); i++) { | |
let tempArr = []; | |
for (let j = 0; j < N * (1 / squareSize); j++) { | |
let particlesInCell = particlesArr.filter(particle => { | |
if (((particle.x > (-N / 2) + j * squareSize) && (particle.x < (-N / 2) + squareSize + j * squareSize)) && | |
((particle.y < (N / 2) - i * squareSize) && (particle.y > (N / 2) - squareSize - i * squareSize))) { | |
return true; | |
} |
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 calculateEnergy() { | |
for (let i = 0; i < zmienne[1].length; i++) { | |
let sum = 0; | |
let kineticEnergy = 0; | |
let potentialEnergy = 0; | |
for (let x = 0; x < zmienne[1][i].length / 4; x++) { | |
kineticEnergy += (1 / 2) * (Math.pow(zmienne[1][i][x * 4 + 2], 2) + Math.pow(zmienne[1][i][x * 4 + 1 + 2], 2)); | |
potentialEnergy += (1 / 2) * (Math.pow(zmienne[1][i][x * 4], 2) + Math.pow(zmienne[1][i][x * 4 + 1], 2)); | |
} |
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 t0 = performance.now(); | |
let N = 3000; //iteracje | |
let TAU = 0.01; //TAU | |
let particles = 10; | |
let damping = 0.5; | |
function RK4(tau, n) { | |
let t0 = 0.0; |
NewerOlder