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
#!/usr/bin/env bash | |
# Carthage Workaround Script | |
# How to use: | |
# 1. Rename carthage itself to "_carthage" to use this. | |
# 2. Save this script to /usr/local/bin/carthage and use as normal. | |
# 3. .... | |
# 4. PROFIT!! | |
set -euo pipefail |
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
var BigDecimal = require('js-big-decimal') | |
var array = [255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255] | |
var decimal = new BigDecimal(0) | |
var _256 = new BigDecimal(256) | |
array.map((value => { | |
decimal = decimal.multiply(_256) | |
decimal = decimal.add(new BigDecimal(value)) | |
})) |