This file contains hidden or 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
// For an unkown reason, this works when copy/paste in ammonite but not with `amm pca.sc` | |
import $ivy.`org.scalanlp::breeze-natives:0.13.2` | |
import $ivy.`org.scalanlp::breeze-viz:0.13.2` | |
import $ivy.`org.scalanlp::breeze:0.13.2` | |
import breeze.linalg._ | |
import breeze.linalg.svd._ | |
import breeze.plot._ | |
import scala.util.Random._ |
This file contains hidden or 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 cherrypy.process.plugins import Daemonizer,PIDFile | |
import cherrypy | |
import argparse | |
parser = argparse.ArgumentParser(description="My server daemon") | |
parser.add_argument('-d','--daemon',help='Run the server as a daemon using the traditional double fork',action='store_true') | |
parser.add_argument('-a','--bind-address',help='Network interface to bind to',default='127.0.0.1') | |
parser.add_argument('-p','--port',help='Port to bind to',default=8080,type=int) | |
parser.add_argument('--pidfile',help='process id file',type=str) | |
args = parser.parse_args() |
This file contains hidden or 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 scala.concurrent.duration._ | |
import scala.concurrent.ExecutionContext | |
import scala.concurrent.Future | |
import akka.pattern.after | |
import akka.actor.Scheduler | |
/** | |
* Given an operation that produces a T, returns a Future containing the result of T, unless an exception is thrown, | |
* in which case the operation will be retried after _delay_ time, if there are more possible retries, which is configured through | |
* the _retries_ parameter. If the operation does not succeed and there is no retries left, the resulting Future will contain the last failure. |
This file contains hidden or 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
var INPUT_TYPES = 'color|date|datetime|datetime-local|file|month|number|password|range|search|tel|text|time|url|week'.split('|') | |
var App = React.createClass({ | |
getInitialState: function() { | |
return {} | |
}, | |
onChange: handleFormInputChange, | |
render: function() { |
This file contains hidden or 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
[package] | |
name = "testcontainers-sample" | |
version = "0.1.0" | |
edition = "2021" | |
[dev-dependencies] | |
async_once = "0.2.6" | |
aws-sdk-s3 = "0.28.0" | |
ctor = "0.2.4" | |
lazy_static = "1.4.0" |
OlderNewer