Skip to content

Instantly share code, notes, and snippets.

View cstefanache's full-sized avatar
⚔️
Focusing

Cornel Stefanache cstefanache

⚔️
Focusing
View GitHub Profile
@cstefanache
cstefanache / requirements-data.json
Last active March 31, 2021 07:02
Gantt Problem
[
{
"from": "Sami Rocha",
"date": "2019-06-07T19:25:48.141Z",
"to": [
"Aden Crane"
]
},
{
"from": "Sami Rocha",
@cstefanache
cstefanache / .block
Last active August 26, 2019 10:38
fresh block
license: mit
@cstefanache
cstefanache / example.txt
Created August 21, 2019 11:51
Stackoverflow comment
Window width (wwidth) = 100
DATA.length = 8
dataPointsOnScreen = 5
Case 1: x scroll = 0
0 [middle]
| |
*----*----*-+--*----*----*----*----*
|
|<---- width = 100 --->|

Requirements

Application Requirements:

Create a static web application that is able to explore the movies data set. The application should list all movie names in a paged mannor and will allow the user to filter by name. All searches must be performed lowercase. More than that the application, during data parsing step, will have to compile a list of all available tags (e.g. Comedy|Drama|Romance) and compile a set of tags + appearance count such that it should be presented to the user.

Sample representation:

@cstefanache
cstefanache / README.md
Last active July 15, 2019 07:24 — forked from boeric/README.md
D3 Based Real Time Chart

D3 Based Real Time Chart

The real time chart is a resuable Javascript component that accepts real time data. The chart's time domain is moving with the passage of time, which means that any data placed in the chart eventually will age out and leave the chart. In addition to the main chart, the component also manages a "focus" window with a viewport (d3.brush) that can moved and sized to view an arbitrary portion of the time series data.

The component adheres to the pattern described in Towards Reusable Chart.

The following options are currently supported:

  • width and height in pixels (Number)
  • border (Boolean)
@cstefanache
cstefanache / test.js
Created March 29, 2019 04:26
Data parsing
let data = [
['356.0','Ailment_6','sleep pain back','food concentrate'],
['356.0','Ailment_2','sick feel','food healthy'],
['356.0','Ailment_10','cramps eyes', 'ibuprofen'],
['357.0','Ailment_4','back sick knee', 'biking eat'],
['357.0','Ailment_6','sick joint', 'juice nutrient'],
['357.0','Ailment_8','hurt heart', 'ibuprofen']
].reduce( (memo, item) => {
console.log(item);
const [ state, ailment, symptoms, treatments ] = item;
@cstefanache
cstefanache / .block
Last active March 28, 2019 10:45
fresh block
license: mit
@cstefanache
cstefanache / movies.csv
Created February 1, 2019 10:05
movielens small dataset
id title tags
1 Toy Story (1995) Adventure|Animation|Children|Comedy|Fantasy
2 Jumanji (1995) Adventure|Children|Fantasy
3 Grumpier Old Men (1995) Comedy|Romance
4 Waiting to Exhale (1995) Comedy|Drama|Romance
5 Father of the Bride Part II (1995) Comedy
6 Heat (1995) Action|Crime|Thriller
7 Sabrina (1995) Comedy|Romance
8 Tom and Huck (1995) Adventure|Children
9 Sudden Death (1995) Action
{
"columns": 7,
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAANACAYAAADEtbMjAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFFmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiIHhtcDpDcmVhdGVEYXRlPSIyMDE4LTAyLTAyVDE0OjM2OjU2KzAyOjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAxOC0wMi0wMlQxNDo1OToxNCswMjowMCIgeG1w
@cstefanache
cstefanache / descriptor.json
Last active February 1, 2018 16:05
Beautopia
{
"files": ["initScript.js"]
}