Skip to content

Instantly share code, notes, and snippets.

meta_info_wn-pbs:
component: WN-Pbs
type: worker_node
version: 2.5.13
site_level_config_version: 1.0
default_var_prefix: pbs_default_var
runtime_vars:
- pbs_runtime_var_ce_host
level_2_configurators:
yaim:
.
├── .editorconfig
├── .gitignore
├── CONTRIBUTING.md
├── _config.yml
├── _data
│   ├── api.yml
│ ├── comparative.yml
title: Bugmark
authors:
snehasi:
name: Sneha Sinha
andyl:
name: Andy Leak
cynthiapereira:
name: Cynthia Pereira
email: getbugmark@gmail.com
description: "Bugmark Information"
$(document).ready(function() {
$.ajax({
url: "link",
async: false,
success: function(csv) {
//parse the csv
}
});
}
var renderChart = function(data) {
var chart_data = formatDataForChart(data)
var ctx = document.getElementById('canvas').getContext('2d')
window.my_chart = new Chart(ctx, {
//your chart scaffolding
})
}
var formatDataForChart = function(content) {
var first_item = _.get(content, '[0]', {})
var column_labels = _.map(_.omit(first_item, ['cycles']), function(val, key) {
run 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47 2018-05-30 11:02:47
days 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
open issues at the end of a day 4.0 6.0 4.0 4.0 3.0 4.0 5.0 5.0 0.0 4.0 6.0 2.0 5.0 5.0 4.0
closed issues at the end of a day 0.0 3.0 7.0 3.0 3.0 7.0 2.0 3.0 4.0 4.0 3.0 5.0 4.0 4.0 7.0
run 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59 2018-06-09 07:58:59
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 100 columns, instead of 75. in line 2.
cycles, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
offers, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 17, 18, 19, 20, 20, 21, 21, 22, 23, 24, 24, 25, 26, 27, 28, 29, 30, 31, 31, 32, 31, 32, 33, 34, 34, 35, 36, 37, 36, 37, 38, 39, 40, 41, 39, 40, 41, 42, 43, 44, 45, 46, 45, 46, 46, 47, 47, 48, 45, 46, 44, 45, 45, 46, 45, 46, 47, 48, 47, 48, 48, 49, 50, 51, 51, 52, 52, 53, 51, 52, 53, 54, 55, 56, 56, 57, 56, 57, 55, 56, 55
contracts, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 8, 8, 10, 10, 10, 10, 11, 11, 11,
@snehasi
snehasi / gist:10da468589fe311844e7e53c9c72e83e
Created May 8, 2018 03:19
Switching between ruby versions without rvm on ubuntu14.04
sudo apt-get install ruby2.5
sudo apt-get install ruby-switch
ruby-switch --list
sudo ruby-switch --set ruby2.5