- Install jags: in the terminal using homebrew
brew install jags - Install rjags: in R
install.packages("rjags")
library(rjags)
| from geventwebsocket.handler import WebSocketHandler | |
| from gevent.pywsgi import WSGIServer | |
| from flask import Flask, request, render_template | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def index(): | |
| return render_template('index.html') |
| . | |
| ├── deploy.py | |
| ├── project | |
| │ ├── application.py | |
| │ ├── apps | |
| │ │ ├── articles | |
| │ │ │ ├── forms.py | |
| │ │ │ ├── __init__.py | |
| │ │ │ ├── models.py | |
| │ │ │ └── views.py |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import sys, time, threading, abc | |
| from optparse import OptionParser | |
| def parse_options(): | |
| parser = OptionParser() | |
| parser.add_option("-t", action="store", type="int", dest="threadNum", default=1, | |
| help="thread count [1]") |
| -- Remove the history from | |
| rm -rf .git | |
| -- recreate the repos from the current content only | |
| git init | |
| git add . | |
| git commit -m "Initial commit" | |
| -- push to the github remote repos ensuring you overwrite history | |
| git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git |
| digraph G { | |
| rankdir=LR | |
| splines=line | |
| node [fixedsize=true, label=""]; | |
| subgraph cluster_0 { | |
| color=white; | |
| node [style=solid,color=blue4, shape=circle]; |
| digraph G { | |
| rankdir=LR | |
| splines=line | |
| nodesep=.05; | |
| node [label=""]; | |
| subgraph cluster_0 { | |
| color=white; |
| /* | |
| * I add this to html files generated with pandoc. | |
| */ | |
| html { | |
| font-size: 100%; | |
| overflow-y: scroll; | |
| -webkit-text-size-adjust: 100%; | |
| -ms-text-size-adjust: 100%; | |
| } |
| // License: MIT - https://opensource.org/licenses/MIT | |
| // Author: Michele Locati <michele@locati.it> | |
| // Source: https://gist.github.com/mlocati/7210513 | |
| function perc2color(perc) { | |
| var r, g, b = 0; | |
| if(perc < 50) { | |
| r = 255; | |
| g = Math.round(5.1 * perc); | |
| } | |
| else { |
| /** | |
| * @author qiao / https://github.com/qiao | |
| * @author mrdoob / http://mrdoob.com | |
| * @author alteredq / http://alteredqualia.com/ | |
| * @author WestLangley / http://github.com/WestLangley | |
| * @author erich666 / http://erichaines.com | |
| * @author mrflix / http://felixniklas.de | |
| * | |
| * released under MIT License (MIT) | |
| */ |
brew install jagsinstall.packages("rjags")
library(rjags)