Skip to content

Instantly share code, notes, and snippets.

Avatar

Giorgio Sironi giorgiosironi

View GitHub Profile
@giorgiosironi
giorgiosironi / gist:eea5dc5db2de457d8ee5988218dbcabc
Created Nov 25, 2020
Example of Crossref metadata of a withdrawn bioRxiv article
View gist:eea5dc5db2de457d8ee5988218dbcabc
$ curl -s -L -H "Accept: application/vnd.crossref.unixref+xml" "https://doi.org/10.1101/2020.01.30.927871"
<?xml version="1.0" encoding="UTF-8"?>
<doi_records>
<doi_record owner="10.1101" timestamp="2020-06-02 10:44:42">
<crossref>
<posted_content type="preprint" language="en" metadata_distribution_opts="any">
<group_title>Evolutionary Biology</group_title>
<contributors>
<person_name contributor_role="author" sequence="first">
<given_name>Prashant</given_name>
View gist:1728a34fcff5310e4eb3f00803f0c253
[09:40:26][giorgio@Newton:~/code/prc]$ node -v
v14.5.0
[09:40:28][giorgio@Newton:~/code/prc]$ npm install
npm WARN eslint-config-airbnb@18.2.0 requires a peer of eslint-plugin-jsx-a11y@^6.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb@18.2.0 requires a peer of eslint-plugin-react@^7.20.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb@18.2.0 requires a peer of eslint-plugin-react-hooks@^4 || ^3 || ^2.3.0 || ^1.7.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
audited 1043 packages in 19.194s
View gist:2696d209fb7e3068a9fec59d364e294d
{"log":"2020-06-02T09:27:47.515Z app:api:fetch-abstract-from-crossref Found abstract for 10.1101/339747: \r\n Abstract\r\n \r\n Induction of a non-culturable state has been demonstrated for many bacteria. In a clinical perspective, the lack of growth due to these non-culturable bacteria can have major consequences for the diagnosis and treatment of patients. Here we show how anoxic conditioning (restriction of molecular oxygen, O\r\n 2\r\n ) generates difficult-to-culture (DTC) bacteria during biofilm growth. A significant subpopulation of\r\n Pseudomonas aeruginosa\r\n entered a DTC state after anoxic conditioning, ranging from five to 90 % of the total culturable population, in both planktonic and biofilm models. Anoxic conditioning also generated DTC subpopulations of\r\n Staphylococcus aureus\r\n and\r\n Staphylococcus epidermidis\r\n . Growth of the DTC populations were achieved by substit
View gist:c3819154af0856d7640f580db531de75
Proposal for scientific publishers 0507
- Highlight on Page 2 | Added on Thursday, May 28, 2020, 03:16 PM
The proposed process envisions that authors post articles and data on repositories and journals peer review and curate those articles and data in exchange for service fees
==========
Proposal for scientific publishers 0507
- Highlight on Page 3 | Added on Thursday, May 28, 2020, 03:21 PM
Publishers could also incentivize peer review service by offering vouchers to peer reviewers. Such vouchers would entitle the recipient to a discounted peer review for one of their own articles (note that the voucher won’t promise a favorable outcome of the peer review)
==========
View gist:c7d1cd1f6163fd2250ae1162e4e844fe
## 1. Lego
What is this? A set of Lego bricks ok. Trademarked name.
It's also one of the most overused metaphors in software development. You can replicate software an infinite number of times. So if you have reusable components that you or someone else have built, you put them together to get a complete application like GMail or Microsoft Word.
## 2. Cables
Reality is more similar to this. Software components and libraries follow different standards, are built for different audiences and incorporate different assumptions. So they need to be put together with duct tape, screws, adapters; completely custom parts need to be fitted in to get a polished product.
The end result can be scary but it's not necessarily of low quality; what can be scary is if you were given the Lego bricks and asked to put together this. This could happen because you have purchased the product (a set of bricks) or even across different teams in a single company if there is a separation of development (build it) and operations (run
@giorgiosironi
giorgiosironi / blocking-test.js
Last active Nov 14, 2019 — forked from diversemix/blocking-test.js
Test for understanding how blocking works
View blocking-test.js
const fs = require('fs');
const log = (text) => {
console.log(new Date() + ' ' + text);
}
const util = require('util');
const sleep = async ms => {
return new Promise(resolve => setTimeout(resolve, ms));
};
View docker-compose.yml
version: '3'
services:
b:
build:
context: .
dockerfile: Dockerfile.b
args:
image_tag: ${IMAGE_TAG}
image: b:${IMAGE_TAG}
View gist:cbf2596fac3ecdd4d02110086b8d9d47
Martin Fowler foreword
- real data and analysis
- 1 hour from commit to production as the benchmark
- speed with stability, not a trade-off
- caveats: subjective perceptions, sampling bias, confirmation bias
- scope: from commit to production, not entire development process
Courtney Kissler (Nike) foreword
- advocates for the book by personal experience
- optimizing for speed, not cost
- senior leadership commitment to a learning organization
View gist:54d6610342fe63ba60767a95f026e265
# https://github.com/hibri/pair-programming-interview-resources/wiki/The-Checkout-Kata
The Checkout Kata
BlueReZZ edited this page on 27 Jun 2012 · 5 revisions
We’re going to see how far we can get in implementing a supermarket checkout that calculates the total price of a number of items. In a normal supermarket, things are identified using Stock Keeping Units, or SKUs. In our store, we’ll use individual letters of the alphabet (A, B, C, and so on). Our goods are priced individually. In addition, some items are multipriced: buy n of them, and they’ll cost you y pounds. For example, item ‘A’ might cost 50 pounds individually, but this week we have a special offer: buy three ‘A’s and they’ll cost you 130. The price and offer table:
Item Price Offer
--------------------------
A 50 3 for 130
View gist:cbff58b48f4259870752ff5a8e80db51
{
"subjects": [
{
"id": "biochemistry-and-chemical-biology",
"name": "Biochemistry and chemical biology"
}
]
}
<subjects>