Skip to content

Instantly share code, notes, and snippets.

@jeremyjordan
jeremyjordan / button_example.md
Last active September 19, 2022 03:34
Streamlit button example
@markopy
markopy / streamlit_command_line.py
Created October 22, 2019 16:23
How to parse command line arguments in streamlit with argparse
# An Example of how to parse command line arguments in streamlit.
# This is free and unencumbered software released into the public domain.
import os
import sys
import random
import argparse
import streamlit as st
parser = argparse.ArgumentParser(description='This app lists animals')
@emakryo
emakryo / ToDo.ipynb
Last active November 10, 2017 03:19
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@YoshihitoAso
YoshihitoAso / BigchainDB_Install.txt
Last active September 1, 2016 21:51
Ubuntu14.04環境へのBigchainDBのインストール方法
1)RethinkDB Serverをインストールする。
以下のコマンドを実行していけばインストール可能。
$ source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
$ wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install rethinkdb
起動してみる。
$ rethinkdb
@shibukawa
shibukawa / applicationcontext.js
Last active April 10, 2019 13:28
Electron - Mithril連係
var fs = require("fs");
var path = require("path");
var app = require("app");
var dialog = require('dialog');
var BrowserWindow = require('browser-window');
var ipc = require("ipc");
function ApplicationContext(title, defaultRoute, filter) {
this.title = title;
this.filter = filter;
@hiromasaono
hiromasaono / MakingDockerContainerForBiologist.md
Last active May 30, 2019 14:53
MakingDockerContainerForBiologist

Dockerコンテナをつくる on MacOSX

bioな分野でDockerを使うとなにがいいのか

  • コンピュータによるデータ解析をだれでもどこでもコマンド一発で再現できるのが素敵
    • エヴァンジェリスト@iNut氏談
  • バイオインフォマティクスの参入障壁の一つであるマシン環境設定も考慮しなくていい
  • いままで環境構築に時間を費やしがちだった講習会などでも便利そう
@miyakogi
miyakogi / nim_syntax.md
Last active September 6, 2025 19:46
Syntax of Nim
@kokitsuyuzaki
kokitsuyuzaki / PLINK-JP.markdown
Last active October 4, 2023 07:30
GWAS研究で利用されるソフトウェア"PLINK"のチュートリアルを大雑把に要約したもの

Performance of Flask, Tornado, GEvent, and their combinations

Wensheng Wang, 10/1/11

Source: http://blog.wensheng.org/2011/10/performance-of-flask-tornado-gevent-and.html

When choosing a web framework, I pretty much have eyes set on Tornado. But I heard good things about Flask and Gevent. So I tested the performance of each and combinations of the three. I chose something just a little more advanced than a "Hello World" program to write - one that use templates. Here are the codes:

1, Pure Flask (pure_flask.py)

@kurotaky
kurotaky / git-study-sample.md
Last active June 6, 2024 16:46
git commit するまでに自分がやっていること

コミットするまでの流れ

前回のコミットから何も変更を加えていない状態。

$ git status
# On branch masternothing to commit, working directory clean

エディタでファイルを編集する