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
# -*- coding: utf-8 -*- | |
""" | |
Animated 3D sinc function | |
""" | |
from pyqtgraph.Qt import QtCore, QtGui | |
import pyqtgraph.opengl as gl | |
import pyqtgraph as pg | |
import numpy as np | |
import sys |
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
// Workflow written in SciPipe. | |
// For more information about SciPipe, see: http://scipipe.org | |
package main | |
import sp "github.com/scipipe/scipipe" | |
func main() { | |
// Create a workflow, using 4 cpu cores | |
wf := sp.NewWorkflow("my_workflow", 4) |
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 luigi | |
import sciluigi as sl | |
# ... snip ... | |
class GlobFiles(sl.Task): | |
globdir = luigi.Parameter() | |
in_depend = None |
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
#!/bin/bash | |
# -------------------------------------------------------------------------------- | |
# This script uses the coverlet tool to generate code coverage statistics about the tests | |
# For more info about coverlet: https://github.com/tonerdo/coverlet | |
# Author: Samuel Lampa | |
# -------------------------------------------------------------------------------- | |
./bin/Debug/netcoreapp2.2/MyApp.Tests.dll: | |
echo "Installing any uninstalled dependencies, by executing dotnet restore ..." | |
dotnet restore | |
dotnet build |
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
package main | |
// Source code for this experiment: https://github.com/samuell/gormula | |
import ( | |
"fmt" | |
"math" | |
) | |
func main() { |
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
monthlyPaymentUSD := Mul( | |
Div( | |
Mul( | |
Div(Val(rate), | |
Val(1200.0)), | |
Exp( | |
Add( | |
Val(1.0), | |
Div( | |
Val(rate), |
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
digraph "DNA Base Complement Workflow" { | |
rankdir=LR; | |
graph [fontname="Arial",fontsize=13,color="#384A52",fontcolor="#384A52"]; | |
node [fontname="Arial",fontsize=11,color="#384A52",fontcolor="#384A52",fillcolor="#EFF2F5",shape=box,style=filled]; | |
edge [fontname="Arial",fontsize=9, color="#384A52",fontcolor="#384A52"]; | |
"Base Complement" [shape=box]; | |
"Make DNA" [shape=box]; | |
"Reverse" [shape=box]; | |
"Base Complement" -> "Reverse" [taillabel="compl", headlabel="in"]; | |
"Make DNA" -> "Base Complement" [taillabel="dna", headlabel="in"]; |
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
digraph "resequencing_workflow" { | |
rankdir=LR; | |
graph [fontname="Arial",fontsize=13,color="#384A52",fontcolor="#384A52"]; | |
node [fontname="Arial",fontsize=11,color="#384A52",fontcolor="#384A52",fillcolor="#EFF2F5",shape=box,style=filled]; | |
edge [fontname="Arial",fontsize=9, color="#384A52",fontcolor="#384A52"]; | |
"bwa_aln_NA06984_1" [shape=box]; | |
"bwa_aln_NA06984_2" [shape=box]; | |
"bwa_aln_NA12489_1" [shape=box]; | |
"bwa_aln_NA12489_2" [shape=box]; | |
"download_fastq_NA06984_1" [shape=box]; |
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
package main | |
import ( | |
sp "github.com/scipipe/scipipe" | |
spc "github.com/scipipe/scipipe/components" | |
) | |
func main() { | |
wf := sp.NewWorkflow("example_workflow", 4) |
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
#!/bin/bash | |
# --------------------------------------------------------------------- | |
# Generate test coverage for .Net core 2 projects. | |
# --------------------------------------------------------------------- | |
# Author: Samuel Lampa | |
# | |
# This script is supposed to be run in a Windows bash-environment such | |
# as MSYS2 (See this post for a guide on how to set up one: | |
# https://bionics.it/posts/linux-like-non-wsl-terminal-env-on-windows) | |
# |
NewerOlder