Squiggle Hub

mlao-pdx

Updated
// Make a projection of the stock price of the top 5 AI companies, in the next 10 years, with a calculator for visualization

import "hub:ozziegooen/sTest" as sTest

@name("Top AI Companies")
companies = [
  {
    name: "GOOGL",
    description: "Alphabet Inc.",
    base: 2.02T,
Updated
/*
Describe your code here
*/

a = normal(2, 5)
14 variables
·
Updated
@startClosed
@doc("[Semantic versioning](https://semver.org) is used.")
@name("Common Library Version")
export version = "2.1.0"

@startClosed
@name("Change Log")
changeLog = {
  "2.1.0": "
- FEATURE: Add `publishDictionary` to strip a dictionary from its private attributes (`_*`). 
2 variables
·
Updated
import "hub:mlao-pdx/lib-common" as c
import "hub:mlao-pdx/_quest" as q
import "hub:mlao-pdx/pert" as p
t = q.trueAssertion
f = q.falseAssertion

v = System.version
debug = Danger.json

@doc("Finance provided rate of employees.")
17 variables
·
Updated
import "hub:mlao-pdx/lib-common" as c
@doc("[Semantic versioning](https://semver.org) is used.")
@name("Quest Library Version")
export version = "0.0.0"

@name("Change Log")
changeLog = { "0.0.0": "- FEATURE: Initial development" }

sampleCount = System.sampleCount()
2 variables
·
Updated
import "hub:mlao-pdx/lib-common" as c
/* 
A quick and dirty hack to merge sort a list of basic strings.

Relatively easy to strip and reuse for other sorting needs. 

I'll come back later to clean-up and document.
*/

maxLength(lists) = lists
2 variables
·
Updated
@doc("[Semantic versioning](https://semver.org) is used.")
@name("beta-PERT version")
export version = "1.0.0"

@name("Change Log")
changeLog = { 
  "1.0.1": "
- COSMETIC: Aligned documentation lay-out with other libraries",
  "1.0.0": "
- FEATURE: Initial release"
11 variables
·
Updated
import "hub:mlao-pdx/lib-common" as c
import "hub:mlao-pdx/pert" as p
@doc(
  "# Library of __QU__ antitative __EST__ imation Functions

Functions that help build a cost estimation model in a single currency. 
All functions are data-first, 
  unless explicitly stated otherwise in its documentation.
See the calculator of each function for documentation.
1 variables
·
Updated
import "hub:mlao-pdx/lib-quest" as q
@name("FTE hourly rates")
@doc("FTE hourly rates approved by Finance department.")
fteHourlyRate = q.price(q.pert([75, 115, 250]))

@name("E-Reader prices")
@doc(
  "Kindle is the preferred e-Reader hardware due to large technical library.

There are three versions: plain, fancy, and one with writing ability."
Updated
import "hub:mlao-pdx/test-common" as c
import "hub:mlao-pdx/test-quest" as q
_pass = "pass"
_fail = "*** _fail ***"

modelHeading(version) = {
  name = Tag.getName(version)
  List.join(
    [
      "## [",
2 variables
·
Updated
import "hub:mlao-pdx/lib-common" as c
import "hub:mlao-pdx/_quest" as q
_pass = "pass"
_fail = "*** _fail ***"

@name("Squiggle Version")
squiggleVersion = System.version

@name("mlao-pdx/lib-common")
export version = c.version
14 variables
·
Updated
import "hub:mlao-pdx/lib-common" as c
@doc("[Semantic versioning](https://semver.org) is used.")
@name("Quest Library Version")
export version = "0.0.0"

@name("Change Log")
changeLog = { "0.0.0": "- FEATURE: Initial development" }

@startClosed
@doc("An atomic estimate based on a single price and single quantity.")
Updated
import "hub:mlao-pdx/lib-common" as c
import "hub:mlao-pdx/_quest" as q
_pass = "pass"
_fail = "*** _fail ***"

@name("Squiggle Version")
squiggleVersion = System.version

@name("mlao-pdx/_quest")
export version = q.version
Updated
import "hub:mlao-pdx/exporter" as e

lc = e.lowercase // Works
lmc = e.lowerMixedCase // Works
// umc = e.UpperMixedCase // Compile error
// uc = e.UPPERCASE // Compile error
Updated
/** # TL;DR
Expand all sections with a comment or calculator icon in render side. */
_ = {}

/* Syntactic sugar */
assertion = bernoulli // Thanks to ozziegooen
assumption = bernoulli
risk = bernoulli
scope = bernoulli