Skip to content

Instantly share code, notes, and snippets.

View 1oo7's full-sized avatar

Jonathan G. 1oo7

View GitHub Profile
@1oo7
1oo7 / BigDecimalTest.js
Created February 10, 2021 17:40
Big Decimal Test
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))
}))
#!/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