{"id":13415412,"url":"https://github.com/probmods/probmods2","last_synced_at":"2026-04-07T15:35:59.256Z","repository":{"id":43685672,"uuid":"58169538","full_name":"probmods/probmods2","owner":"probmods","description":"probmods 2: electric boogaloo","archived":false,"fork":false,"pushed_at":"2023-11-17T20:36:21.000Z","size":10443,"stargazers_count":296,"open_issues_count":21,"forks_count":77,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-07-31T21:53:46.611Z","etag":null,"topics":["cognitive-science","probabilistic-programming","tutorial","webppl"],"latest_commit_sha":null,"homepage":"https://probmods.org/v2","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/probmods.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-06T00:42:41.000Z","updated_at":"2024-07-15T22:20:10.000Z","dependencies_parsed_at":"2024-01-14T16:09:18.130Z","dependency_job_id":"dc6cf9e1-6dc3-4753-99cf-5af375c8fc27","html_url":"https://github.com/probmods/probmods2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probmods%2Fprobmods2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probmods%2Fprobmods2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probmods%2Fprobmods2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probmods%2Fprobmods2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/probmods","download_url":"https://codeload.github.com/probmods/probmods2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243658060,"owners_count":20326459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cognitive-science","probabilistic-programming","tutorial","webppl"],"created_at":"2024-07-30T21:00:48.384Z","updated_at":"2026-04-07T15:35:59.241Z","avatar_url":"https://github.com/probmods.png","language":"JavaScript","readme":"## Setting up\n\n### Dependencies\n\nMake sure `npm` is up-to-date:\n\n```sh\n$ npm update -g npm\n```\n\nThis may take a while. Next, run:\n\n```sh\n$ npm install -g browserify uglifyjs watchify grunt-cli\n```\n\nNext, you need to install jekyll. If installing on a Mac, this can be complicated because MacOS's default Ruby installation is incompatible. Instead, install and use `rbenv` to set up virtual ruby environments:\n\n```sh\n$ brew install rbenv\n$ rbenv init\n```\n\nNext, add `~/.rbenv/shims` to your PATH. \n\nClose and open your terminal window so that `rbenv` loads. Confirm that it is working with:\n\n```sh\n$ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash\n```\n\nIf everything check out, you can now install a new version of Ruby and set it as your global default. For instance:\n\n```sh\n$ rbenv install 2.5.0\n$ rbenv global 2.5.0\n```\n\nIf you want to be able to use multiple versions of Ruby on your computer, read the `rbenv` [docs](https://github.com/rbenv/rbenv).\n\nNow you can install jekyll:\n\n```sh\n$ gem install jekyll\n```\n\n### Installing packages\n\nThe first line below installs some dependencies that aren't available through NPM. The second line installs all the NPM-managed dependencies listed in `package.json`.\n\n```sh\n$ brew install pkg-config cairo pango libpng jpeg giflib\n$ npm install\n```\n\nIf you run into problems on the first step, you may need to update homebrew or some of its dependencies. Try:\n\n```sh\n$ brew update\n$ brew upgrade\n```\n\nThen run `npm install` again.\n\n### Final step\nFrom the root directory:\n\n```\n$ scripts/deploy\n```\n\nNote that you may need to run `$scripts/deploy-to-assets`, depending on what the file is named.\n\nThis updates all dependencies and copies them to the assets folder. Note that there are several custom javascript libraries in `assets` that are NOT maintained through nmp: \n\n* box2d.js\n* plinko.js\n* parse-bibtex.js\n\n## Running locally\n\n```sh\njekyll serve --watch --incremental\n```\n\n### style guide\n\n- put every sentence on its own line.\n- trim leading and trailing whitespace from lines.\n- use `~~~~ norun` for non-runnable code blocks.\n- the math delimiter is `$$`, e.g., `$$x + 5$$`.\n- make math blocks just by putting a math on its own line, e.g.,\n\n```\nfoo bar Bayes Theorem:\n\n$$ P(A \\mid B) \\propto P(A)P(B \\mid A) $$\n\nnote that this immediately follows from baz quux\n```\n\n- as shown above, use `\\mid` for the vertical pipe (`|` screws up the tex rendering engine)\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobmods%2Fprobmods2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprobmods%2Fprobmods2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobmods%2Fprobmods2/lists"}