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
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; | |
@layer base { | |
html { | |
-webkit-tap-highlight-color: transparent; | |
} | |
} |
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
var fs = require('fs'); | |
var obj = { | |
date: date, | |
speed: speed | |
} | |
data.push(obj) |
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
<!-- Importing JS --> | |
<script src="https://cdn.jsdelivr.net/npm/chart.js@3.7.1/dist/chart.min.js"></script> | |
<script type="text/javascript" src="index.js"></script> |
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
// These arrays will have the same hash-code. | |
String[] example1 = {"a", "b", "c"}; // Hash: 126145 | |
String[] example2 = {"a", "b", "c"}; // Hash: 126145 | |
// These arrays will NOT have the same hash-code. | |
String[] example1 = {"a", "b", "c"}; // Hash: 126145 | |
String[] example2 = {"aa", "b", "c"}; // Hash: 3015872 |
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
String input = "This is an example with the string named input"; | |
int position = input.lastIndexOf(" "); // Get last space | |
position++; // Jump to next character, so you skip the space | |
System.out.println(input.substring(position)); // Prints input |
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
EnablePrimaryMouseButtonEvents (true); | |
function OnEvent(event,arg) | |
if IsKeyLockOn("Capslock")then | |
if IsMouseButtonPressed(3)then | |
repeat | |
if IsMouseButtonPressed(1) then | |
repeat | |
MoveMouseRelative(0,1) -- This changes the "stage" of the recoil hold // 0.4 is hard, 0.1 less hard! | |
Sleep(9) | |
until not IsMouseButtonPressed(1) |
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 java.util.Random; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
// Giving advice to user | |
System.out.println("How much characters should your password have?"); |
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
public class Main { | |
public static void main(String[] args) { | |
System.out.println(Math.sqrt(2.5)); | |
} | |
} |