Skip to content

Instantly share code, notes, and snippets.

View elliotboney's full-sized avatar

Elliot Boney elliotboney

View GitHub Profile
;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));
@coryjthompson
coryjthompson / WebinarJam.php
Created January 20, 2016 17:19
Implements the WebinarJam API.
<?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/';
@stephenharris
stephenharris / color_luminance.php
Created May 7, 2013 14:19
Lighten or darken a given colour
<?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
@terrywang
terrywang / tunnel.sh
Last active February 28, 2016 13:33
SSH Tunnel
#!/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
#
@oodavid
oodavid / README.md
Last active April 6, 2024 18:45 — forked from aronwoost/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@Victa
Victa / gist:1569879
Created January 6, 2012 09:37
Async Script Loader with Callback
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]);
}