start new:
tmux
start new with session name:
tmux new -s myname
package com.example.app | |
import org.scalatra._ | |
import servlet.{SizeConstraintExceededException, FileUploadSupport} | |
import scalate.ScalateSupport | |
import java.io.ByteArrayInputStream | |
import org.apache.poi.ss.usermodel.WorkbookFactory | |
import org.apache.poi.ss.usermodel.Cell | |
import org.apache.poi.ss.usermodel.DataFormatter | |
import org.apache.poi.ss.usermodel.DateUtil |
require 'excon' | |
require 'securerandom' | |
def multipart_form_data(buildpack_file_path) | |
body = '' | |
boundary = SecureRandom.hex(4) | |
data = File.open(buildpack_file_path) | |
data.binmode if data.respond_to?(:binmode) | |
data.pos = 0 if data.respond_to?(:pos=) |
class Asset(db.Model): | |
id = db.Column(db.Integer, primary_key=True) | |
name = db.Column(db.String(120), nullable=False) | |
asset_type_id = db.Column(db.Integer(), db.ForeignKey('asset_type.id'), nullable=False) | |
asset_type = db.relationship('AssetType', backref='assets') | |
# I would like a nicer way to do this | |
@property | |
def versions(self): |