Instantly share code, notes, and snippets.

View evalTemplateStrings.js
const regex = /(`[${}\w\.]+`)/gm
const evalInContext = function(input) {
const that = this
return input.replace(regex, function(match) {
return function() {
return eval(match)
}.call(that)
})
}
View sprint_organisation.md

Sprint organisation

Sprint Working Principles

  • Focus on 1 goal (Business Outcome) per sprint
  • Only work on tasks that are (prioritized) on the Sprint Board
  • Work on tasks according to their priorities on the Board
  • Move Github issues to the Sprint Backlog and prioritize them with your Product Manager
  • The Engineering day can be used to work on tasks unrelated to the Topic Team's goal
View Frontend_Engineering_2017.md
View billing.json
{
"overview": {
"billing_status": "active",
"credit_limit": 1000,
"to_pay_amount": 90,
"not_invoiced_fees_debits": 21.9,
"not_invoiced_fees_credits": 15,
"not_invoiced_fees_balance": 6.9,
"total_amount": 96.9,
"next_invoice_date": "2017-01-20T00:00:00Z",
View api.core.swagger.io
# this is an example of the Uber API
# as a demonstration of an API spec in YAML
swagger: '2.0'
info:
title: ...DRAFT... Ricardo REST API
description: Biggest e-commerce provider in Switzerland's API - Web friendly
version: "0.1.0"
# the domain of the service
host: api.ricardo.ch
# array of all schemes that your API supports
View api.search.swagger.io
# this is an example of the Uber API
# as a demonstration of an API spec in YAML
swagger: '2.0'
info:
title: ...WIP... Ricardo Search API
description: Biggest e-commerce provider in Switzerland's API - Web friendly
version: "0.1.0"
# the domain of the service
host: ricardo.ch
# array of all schemes that your API supports
View tree.txt
.
├── node_modules
│   ├── JSONStream
│   │   ├── LICENSE.APACHE2
│   │   ├── LICENSE.MIT
│   │   ├── examples
│   │   │   └── all_docs.js
│   │   ├── index.js
│   │   ├── package.json
│   │   ├── readme.markdown
View gist:8037519
<div style="clear: both; float: right; width: 40%; background-color: #333333; color: white; padding: 10px; overflow: hidden; margin-left: 10px;margin-bottom:10px;">
<div style="max-width: 100%;margin-bottom:10px;">
[picture1]
</div>
<p>
Ich bin eine fliegende Box. Ich bin immer rechts ausgerichtet. Der Text fliesst aber linksb&uuml;ndig.
</p>
<span style="font-size: 1.2em; margin-top: 10px; margin-bottom: 10px; display: block;">
Dies k&ouml;nnte ein Untertitel sein
</span>
View gist:8037511
<hr style="border-width:1px;border-style:dashed;border-color:#21a9e3;">
View gist:8037497
<hr style="border-width:1px;">