Skip to content

Instantly share code, notes, and snippets.

@easement
easement / recoup rplanet staking
Created March 12, 2021 19:58
Figure out how many days you need to stake something on rPlanet to recoup it's cost.
// Figure out how many days you need to stake something on rPlanet to recoup it's cost.
function recoup(aetherPerWax, stakeValue, itemCostInWax) {
var aetherPerDay = (24 * stakeValue);
var daysUntilOneWax = (aetherPerWax / aetherPerDay)
return (daysUntilOneWax * itemCostInWax)
}
//usage: recoup(5200,40,20)
// excchange rate is 5200 aether per wax, the item gets 40 aether per cycle on rPlanet and the item cost 20 wax.
// It'll take ~108 days to recoup what I spent
Kiel: https://open.spotify.com/user/kielcrunk/playlist/6Kv1TUAxTGTzVEb8I54he9?si=t5YayscgS2q1thqJi3QAlg
Brandee: https://www.youtube.com/playlist?list=PL_yp0qwUKaI1XTt0ok7A1erTDngW8c61f
Lara: https://open.spotify.com/user/larbaq/playlist/5temNWvgdZuS4ypyegRIC6?si=EYI8SKMESGmGf12TONzRPg
@easement
easement / bowling_outages.js
Last active September 6, 2017 22:27
Something to loop through a google sheet and do conditional values
function who_is_out() {
var ss=SpreadsheetApp.getActiveSpreadsheet();
var sheet=ss.getSheets()[0];
var selection=sheet.getDataRange();
var columns=selection.getNumColumns();
var rows=selection.getNumRows();
var outages; // keep running list of game outages
var outageCell; // the cell to update with outages
var personCell; // keeping track of the name for easier readability
var currentCell; // cell used for traversal
@easement
easement / gist:71c7fce9f1fe49c23a66
Created October 21, 2015 13:39
Reveal hidden fields bookmarklet
javascript:(function(){var%20is=document.getElementsByTagName("input");for(i=0;i<is.length;i++){if(typeof(is[i].attributes["type"])!="undefined"&&is[i].attributes["type"].value.toLowerCase()=="hidden"){is[i].setAttribute("type","text");is[i].setAttribute("style","background-color:#000000;color:#FFFFFF");}}})();
@easement
easement / gist:04ff0046397c7c27aa70
Last active August 29, 2015 14:10
Checkboxes in tables?
DEV PR QA UAT MERGED
- [ ] - [ ] - [ ] - [ ] - [ ]
- [ ] - [ ] - [ ] - [ ] - [ ]
- [x] -[ ] - [] - [ ] - [ ]
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = 'EMAIL@provider.com'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }
@easement
easement / trello.js
Created November 28, 2012 14:42
Get title of trello cards - click on the the tab you want then then run this in console
$.map($('.active-list .list-card-title'),function(val, i){ return $(val).text()});