Skip to content

Instantly share code, notes, and snippets.

Stian Soiland-Reyes stain

Block or report user

Report or block stain

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mediainfo.sh
(base) stain@biggie:~/Pictures/whatsapp$ mediainfo VID-20171005-WA0000.mp4
General
Complete name : VID-20171005-WA0000.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (mp41/mp42/isom)
File size : 3.27 MiB
Duration : 3 min 22 s
Overall bit rate : 135 kb/s
Encoded date : UTC 2017-08-13 16:03:30
View inflation.tsv
year inflation from prev Y inflated price value chf uk cpi inflated price value gbp
1969 CHF 0.50 CHF 1.52 4.67 £0.05 £5.43
1970 5.44 CHF 0.53 CHF 1.44 7.89 £0.05 £5.19
1971 6.62 CHF 0.56 CHF 1.35 9.03 £0.06 £4.81
1972 6.86 CHF 0.60 CHF 1.26 7.65 £0.06 £4.41
1973 11.92 CHF 0.67 CHF 1.13 10.58 £0.07 £4.10
1974 7.55 CHF 0.72 CHF 1.05 19.14 £0.08 £3.71
1975 3.45 CHF 0.75 CHF 1.01 24.89 £0.10 £3.11
1976 1.27 CHF 0.76 CHF 1.00 15.07 £0.12 £2.49
1977 1.2 CHF 0.77 CHF 0.99 12.14 £0.13 £2.16
@stain
stain / properties-with-type-id.csv
Last active Jul 30, 2019
curl -s -L -H "Accept: application/ld+json" https://schema.org/ | grep @type | grep @id | cut -d '"' -f 2,4 | sed 's/"/,/'
View properties-with-type-id.csv
property type
actionableFeedbackPolicy @id
additionalType @id
afterMedia @id
arrivalTime @id
availabilityEnds @id
availabilityStarts @id
availableFrom @id
availableThrough @id
beforeMedia @id
View gist:87fc34a13eed60179447729cdf7f9ac7
### Editing this command? Also update https://ci.commonwl.org/job/cwl-spec-pr/configure
venv() {
if ! test -d $1 ; then
virtualenv $1
fi
. $1/bin/activate
}
venv venv
(. venv/bin/activate && pip install -U setuptools wheel pip)
(. venv/bin/activate && pip install --ignore-installed --verbose -U cwltest cwltool)
@stain
stain / 00-review-GIGA-D-18-00427.md
Last active May 24, 2019
Review of GigaScience manuscript GIGA-D-18-00428
View 00-review-GIGA-D-18-00427.md
@stain
stain / 00-review-datasciencehub-549-1529.md
Last active May 24, 2019
Review of DataScienceHub submission #549-1529
View 00-review-datasciencehub-549-1529.md

Review of "Scholarly data analysis to aid scientific model development" (#549-1529)

View domain-mapping.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
output name,Data Format,Data Concept,relationship
assembly,edam:format_1929 (FASTA),"http://edamontology.org/data_0925
""Sequence assembly""","derived from $(inputs.{forward,reverse,interleaved,single}_reads)"
assembly_log,iana:text/plain,"http://edamontology.org/data_3181
""Sequence assembly report""",describes $(outputs.assembly)
samtools_index,edam:format_2572 (BAM) + index,"alignment of reads to assembled contigs
http://edamontology.org/data_1383 is multiple sequence alignment, need a data concept for the result of http://edamontology.org/operation_0523 ""Mapping assembly""","derives from both $(inputs.{forward,reverse,interleaved,single}_reads) & $(outputs.assembly)"
coverage_tab,iana:text/tab-separated-values,"""contig by bam depth matrix"", and evidence report and quality metric",derives from $(outputs.samtools_index)
trimmed_sequences,gz-compressed edam:format_1929 (FASTA) ,"Contigs over a certain minimal length
Need an EDAM concept for the result of http://edamontology.org/operation_3192 ""Sequence t
View a.md
View license-in-svg.xml
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
View gist:d331abfa5900b92ad047bdac13885818
2019-04-18T12:36:44.978016564Z 2019-04-18 12:36:44 cwltool INFO: /usr/bin/arvados-cwl-runner 1.3.1, arvados-python-client 1.3.1, cwltool 1.0.20181116032456
2019-04-18T12:36:44.978518764Z 2019-04-18 12:36:44 cwltool INFO: Resolved '/var/lib/cwl/run/workflows/rp2-to-rp2path.cwl' to 'file:///var/lib/cwl/run/workflows/rp2-to-rp2path.cwl'
2019-04-18T12:36:46.332686764Z 2019-04-18 12:36:46 cwltool INFO: ../../lib/cwl/run/workflows/rp2-to-rp2path.cwl:40:3: Unknown hint http://commonwl.org/cwldep#Dependencies
2019-04-18T12:36:46.810698664Z 2019-04-18 12:36:46 cwltool ERROR: Workflow error, try again with --debug for more information:
2019-04-18T12:36:46.810698664Z ../../lib/cwl/run/tools/RetroPath2/RetroPath2.cwl:9:5: While trying to get Docker image
2019-04-18T12:36:46.810698664Z 'ibisba/retropath2:latest', failed to
2019-04-18T12:36:46.810698664Z execute 'docker': [Errno 2] No such file or
2019-04-18T12:36:
You can’t perform that action at this time.