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 lang="en-US"> | |
| <head> | |
| <title>Bouncing ball in box</title> | |
| <meta charset="UTF-8"/> | |
| <link rel="stylesheet" href="styles.css"/> | |
| </head> | |
| <body> | |
| <div class="meta-container"> | |
| <div class="canvas-container"> |
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
| $version = "1.18" | |
| $mc = "$env:APPDATA\.minecraft" | |
| $jsonFile = "$mc\assets\indexes\$version.json" | |
| $json = (Get-Content $jsonFile) -Join " " | |
| $data = ConvertFrom-Json $json | |
| $data.objects | Get-Member -MemberType NoteProperty | ForEach-Object { | |
| $path = $_.Name | |
| $hash = $data.objects."$path".hash |
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
| // Example derived from: https://eclipsesource.com/blogs/2015/06/06/registering-java-callbacks-with-j2v8/ | |
| // J2V8 is available at Maven Central: https://search.maven.org/search?q=g:com.eclipsesource.j2v8 | |
| // Compile: | |
| // javac -cp j2v8_linux_x86_64-4.8.0.jar V8Example.java | |
| // Run: | |
| // java -cp ".:j2v8_linux_x86_64-4.8.0.jar" V8Example | |
| import com.eclipsesource.v8.JavaVoidCallback; |
NewerOlder