- See documentation at http://star.mit.edu/cluster/docs/latest/installation.html
- pip install StarCluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- See this document for more information on making Pong: | |
-- http://elm-lang.org/blog/Pong.elm | |
-- | |
-- Make the Pong field look nicer. Add a line (or dotted line) at mid-field. | |
import Keyboard | |
import Text | |
import Window | |
-- Inputs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Mouse | |
import Graphics.Input (Input, input, hoverable) | |
type SliderInput = { mouseX:Int, mouseY:Int, mouseDown:Bool } | |
sliderInput = SliderInput <~ Mouse.x | |
~ Mouse.y | |
~ Mouse.isDown | |
type Slider = { value:Int, isMoving:Bool } | |
defaultSlider : Slider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import String | |
import Array | |
import Graphics.Input (Input, input) | |
import Graphics.Input.Field as Field | |
logistic : Float -> Float -> Float -> Float -> Float -> Float | |
logistic x emin emax mid slope = | |
( (emin-emax) / (1 + ((x/mid)^slope) ) ) + emax | |
lcurve : Float -> Float -> Float -> Path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Hacks to get line_profiler to profile top-level code in a script/module. | |
# 1. The interface only allows profiling functions, but the core profiling logic | |
# actually works directly with code objects. We create a new function object | |
# from the code at the top level of the script to profile, and call | |
# profile.add_function on it. This is enough to trick the bookkeeping code in | |
# line_profiler to include the top-level code. | |
# 2. Even though the entirety of the top-level code is profiled in full, the | |
# results printer will stop at the first function definition, class definition, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pysb import * | |
Model() | |
Monomer('Glucose') | |
Monomer('Vp') | |
Parameter('kf', .015) | |
Parameter('kr', .015) | |
Parameter('Vsk', -18) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
logger = logging.getLogger(__name__) | |
def foo(a, b): | |
logger.info('foo(%s, %s)', a, b) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.orm import (relationship, sessionmaker, subqueryload, | |
with_polymorphic) | |
from sqlalchemy import create_engine, Column, String, Integer | |
from sqlalchemy.schema import ForeignKey | |
Base = declarative_base() | |
class A(Base): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jaydebeapi | |
import pandas as pd | |
def cursor_to_df(cursor): | |
df = pd.DataFrame(cursor.fetchall()) | |
df.columns = [d[0] for d in cursor.description] | |
return df | |
fmsHostname = 'fmprod13.med.harvard.edu' | |
fmFilename = 'HITS_Reagent_Tracker_2_0' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer