Code Monkey home page Code Monkey logo

probmods2's Introduction

Setting up

Dependencies

Make sure npm is up-to-date:

$ npm update -g npm

This may take a while. Next, run:

$ npm install -g browserify uglifyjs watchify grunt-cli

Next, 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:

$ brew install rbenv
$ rbenv init

Next, add ~/.rbenv/shims to your PATH.

Close and open your terminal window so that rbenv loads. Confirm that it is working with:

$ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash

If everything check out, you can now install a new version of Ruby and set it as your global default. For instance:

$ rbenv install 2.5.0
$ rbenv global 2.5.0

If you want to be able to use multiple versions of Ruby on your computer, read the rbenv docs.

Now you can install jekyll:

$ gem install jekyll

Installing packages

The 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.

$ brew install pkg-config cairo pango libpng jpeg giflib
$ npm install

If you run into problems on the first step, you may need to update homebrew or some of its dependencies. Try:

$ brew update
$ brew upgrade

Then run npm install again.

Final step

From the root directory:

$ scripts/deploy

Note that you may need to run $scripts/deploy-to-assets, depending on what the file is named.

This 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:

  • box2d.js
  • plinko.js
  • parse-bibtex.js

Running locally

jekyll serve --watch --incremental

style guide

  • put every sentence on its own line.
  • trim leading and trailing whitespace from lines.
  • use ~~~~ norun for non-runnable code blocks.
  • the math delimiter is $$, e.g., $$x + 5$$.
  • make math blocks just by putting a math on its own line, e.g.,
foo bar Bayes Theorem:

$$ P(A \mid B) \propto P(A)P(B \mid A) $$

note that this immediately follows from baz quux
  • as shown above, use \mid for the vertical pipe (| screws up the tex rendering engine)

probmods2's People

Contributors

bantic avatar benpeloquin7 avatar erindb avatar erocarrera avatar femtomc avatar hans avatar hawkrobe avatar jkhartshorne avatar jpchen avatar longouyang avatar marielajennings avatar maxkrieger avatar mhtess avatar miketam1021 avatar mvdoc avatar ngoodman avatar stuhlmueller avatar w4nderlust avatar zenkavi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.