| name | explain-diff-html |
|---|---|
| description | Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output. |
Please make me a rich, interactive explanation of the specified code change.
It should have these sections:
| ;afk fishing macro for destiny 2. You will need to install ShinsImageScanClass.ahk from here: https://github.com/Spawnova/ShinsImageScanClass | |
| ;The virtual controller from the instructions here: https://github.com/A2TC-YT/Tabbed-Out-AFK | |
| ;Based on this fishing script: https://gist.github.com/AmJustS/d1eff6b0f78a48d99868c224e5dbbaaf | |
| ;F5 Starts the script | |
| ;F6 Stops the script | |
| ;F8 Completely exits the script | |
| ;Destiny 2 "Window Mode" must be set to "Windowed" | |
| ;Destiny 2 "Resolution" must be set to "1280x720" |
| nozzle_dia=0.4; | |
| layer_height=0.3; | |
| function pi() = 3.141592; | |
| function width(d,h) = h-(pi()*((h*h)-(d*d)))/(4*h); | |
| function arc(r,t) = 0.5*(t+sqrt((t*t)+4*(r*r))); | |
| function polyhole(r,n,t) = arc(r,t)/cos(180/n); | |
| function sides(d,t) = ceil(180 / acos((d-t)/d)); |
| <?php | |
| /** | |
| * Class WebinarJam | |
| * Implements the WebinarJam API as documented | |
| * https://s3.amazonaws.com/webinarjam/files/WebinarJamAPI.pdf | |
| */ | |
| class WebinarJam { | |
| public static $API_URL = 'https://app.webinarjam.com/api/v2/'; |
| <?php | |
| /** | |
| * Lightens/darkens a given colour (hex format), returning the altered colour in hex format.7 | |
| * @param str $hex Colour as hexadecimal (with or without hash); | |
| * @percent float $percent Decimal ( 0.2 = lighten by 20%(), -0.4 = darken by 40%() ) | |
| * @return str Lightened/Darkend colour as hexadecimal (with hash); | |
| */ | |
| function color_luminance( $hex, $percent ) { | |
| // validate hex string |
| #!/bin/bash | |
| # -------------------------------------- | |
| # | |
| # Title: SSH Tunnel / Socks5 Proxy Script | |
| # Author: Terry Wang | |
| # Email: i (at) terry (dot) im | |
| # Homepage: http://terry.im | |
| # File: tunnel.sh | |
| # Created: 1 Oct, 2012 | |
| # |
This gist assumes:
| var Loader = function () { } | |
| Loader.prototype = { | |
| require: function (scripts, callback) { | |
| this.loadCount = 0; | |
| this.totalRequired = scripts.length; | |
| this.callback = callback; | |
| for (var i = 0; i < scripts.length; i++) { | |
| this.writeScript(scripts[i]); | |
| } |