start new:
tmux
start new with session name:
tmux new -s myname
| package com.mojolly.backchat | |
| package redis | |
| package resque | |
| import com.mojolly.backchat.redis.resque.Resque.{ResqueWorkerActor} | |
| import net.liftweb.json._ | |
| import JsonAST._ | |
| import JsonDSL._ | |
| import java.net.InetAddress | |
| import com.redis.ds.{ RedisDeque, RedisDequeClient } |
| import re | |
| def strip_margin(text): | |
| return re.sub('\n[ \t]*\|', '\n', text) | |
| def strip_heredoc(text): | |
| indent = len(min(re.findall('\n[ \t]*(?=\S)', text) or [''])) | |
| pattern = r'\n[ \t]{%d}' % (indent - 1) | |
| return re.sub(pattern, '\n', text) |
| import zlib | |
| import string | |
| BLOCK_SIZE = 16384 | |
| """Read block size""" | |
| WINDOW_BUFFER_SIZE = 16 + zlib.MAX_WBITS | |
| """zlib window buffer size, set to gzip's format""" | |
| class MyManagedResource extends ResourceController[String] { | |
| def index = Action(Ok("index")) | |
| def newScreen = Action(Ok("new")) | |
| def create = Action { | |
| Redirect(MyInjectableResource.reverseRoutes.index()) | |
| } | |
| def show(id: String) = Action(Ok("Show " + id)) |
| /** | |
| The MIT License (MIT) | |
| Copyright (c) 2013 Jean Helou | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
| Step 0. You must have the latest & greatest version of R, and scala 2.10.1, for all of this to work. | |
| Step 1. Download and unzip the MacOS X Binary jvmr_1.0.4.tgz from here: http://cran.r-project.org/web/packages/jvmr/index.html | |
| Step 2. Create a lib folder, and copy jvmr_2.10-1.0.4.jar to that folder. | |
| Step 3. Start R | |
| Step 4. At the R console | |
| >install.packages("jvmr") |
| #!/usr/bin/env python | |
| import os | |
| import requests | |
| import libxml2 | |
| import time | |
| import phue | |
| import daemon | |
| import lockfile | |
| import signal |
As answers to this Stack Overflow question
reveal, using <!--- and ---> or <!-- and --> works (view source by clicking "Raw"):