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
"""PyBites Amazon book affiliation link generator. | |
Uses the link pasted to clipboard and puts the generated link back onto the | |
clipboard. https://pybit.es/pyperclip.html | |
Set the AMAZON_AFFILIATE_CODE variable to your own Amazon affiliate code. | |
From https://twitter.com/pybites/status/1277141497117323266 | |
Separate concerns and enable other AF codes to be registered and |
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 $ivy.`com.zaxxer:nuprocess:2.0.0`, com.zaxxer.nuprocess._ | |
import scala.collection.JavaConverters._ | |
import java.nio.ByteBuffer | |
import scala.concurrent.{Future, Promise} | |
class ProcessHandler extends NuAbstractProcessHandler { | |
private var nuProcess: NuProcess = null | |
override def onStart(nuProcess: NuProcess): Unit = { |
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
{ | |
"num_3_seen": 13, | |
"num_5_seen": 11, | |
"num_filtered_short_reads": 0, | |
"num_fl": 9, | |
"num_flc": 0, | |
"num_flnc": 9, | |
"num_flnc_bases": 35563, | |
"num_nfl": 13, | |
"num_nflc": null, |
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 spray.http.HttpMethods._ | |
import spray.http.{HttpResponse, HttpMethod, HttpMethods, AllOrigins} | |
import spray.http.HttpHeaders.{`Access-Control-Allow-Methods`, `Access-Control-Max-Age`, `Access-Control-Allow-Headers`, `Access-Control-Allow-Origin`} | |
import spray.routing._ | |
import spray.routing.directives.BasicDirectives | |
/** | |
* Forked from | |
* | |
* https://gist.github.com/joseraya/176821d856b43b1cfe19 |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |