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
def flatten(array) | |
if array.empty? | |
array | |
else | |
element = array.pop | |
element.kind_of?(Array) ? flatten(array) + flatten(element) : flatten(array) << element | |
end | |
end | |
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
class RPNCalc | |
def evaluate(str) | |
operator = /[\/\+\-\*\^]/ | |
stack = [] | |
equation = str.split(' ') | |
while equation[0].numeric? | |
equation[0] = Float(equation[0]) | |
stack << equation.shift | |
end |
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
function main() { | |
Logger.clear(); | |
var apiKey = ''; | |
var acctID = ''; | |
var token = retrieveTokenByApiKey(apiKey); | |
url = 'https://api.wildapricot.org/v2/accounts/acctID/' | |
var batchUrl = "https://api.wildapricot.org/batch"; |
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
<style> | |
.content-wrapper{ | |
width: 100%; | |
} | |
.content-wrapper img{ | |
width: 100%; | |
} | |
.text-wrapper{ |