Skip to content

Instantly share code, notes, and snippets.

Avatar

Edgar Schnüriger mediafreakch

  • Zug, Switzerland
View GitHub Profile
@mediafreakch
mediafreakch / sample-highstock
Last active Jan 28, 2021
Sample Highstock Data
View sample-highstock
window.GPSeries = [{"name":"vStd24_max z01","color":"#009999","data":[[1605001910400,-3.08],[1605004554240,-3.7],[1605009841920,-3.31],[1605012485760,-4.42],[1605015129600,-4.76],[1605020417280,-5.32],[1605023061120,-6.07],[1605025704960,-6.16],[1605030992640,-6.62],[1605033636480,-6.33],[1605036280320,-6.08],[1605041568000,-6.25],[1605044211840,-5.85],[1605049499520,-5.57],[1605052143360,-5.45],[1605054787200,-5.22],[1605060074880,-4.95],[1605062718720,-4.92],[1605065362560,-4.63],[1605070650240,-4.52],[1605073294080,-5.28],[1605075937920,-4.06],[1605081225600,-4.06],[1605083869440,-3.95],[1605086513280,-3.92],[1605091800960,-4.25],[1605094444800,-4.01],[1605099732480,-3.8],[1605102376320,-3.75],[1605105020160,-3.88],[1605110307840,-3.67],[1605112951680,-3.58],[1605115595520,-3.81],[1605120883200,-3.59],[1605123527040,-3.5],[1605126170880,-3.16],[1605131458560,-3.27],[1605134102400,-3.2],[1605139390080,-2.85],[1605142033920,-2.89],[1605144677760,-3.1],[1605149965440,-3.15],[1605152609280,-3.22],[160515525312
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)
})
}
@mediafreakch
mediafreakch / sprint_organisation.md
Last active Apr 11, 2017
How to organise Engineering tasks
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
@mediafreakch
mediafreakch / Frontend_Engineering_2017.md
Last active Mar 20, 2017
Frontend Engineering - Important Resources
View Frontend_Engineering_2017.md
@mediafreakch
mediafreakch / billing.json
Created Jan 18, 2017
Sample response from the Invoicing Microservice
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
@mediafreakch
mediafreakch / gist:8037519
Last active Dec 31, 2015
==Kombiniertes Beispiel==
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>
@mediafreakch
mediafreakch / gist:8037511
Created Dec 19, 2013
==Trennlinie gestrichelt + farbig==
View gist:8037511
<hr style="border-width:1px;border-style:dashed;border-color:#21a9e3;">