Skip to content

Instantly share code, notes, and snippets.

View FMCalisto's full-sized avatar
🎲
Researching

Francisco Maria Calisto FMCalisto

🎲
Researching
View GitHub Profile
// Study List -> sl
getStudyList((studyList) => {
for (var i = 0; i < studyList.length; i++) {
const slEach = studyList[i];
const slPatientAttr = slEach.PatientMainDicomTags;
const slMainAttr = slEach.MainDicomTags;
const slSeries = slEach.Series;
const slPatientName = slPatientAttr.PatientName;
function download(data, name, type) {
var link = document.createElement("a");
var data = JSON.stringify(data, null, 4);
var blob = new Blob([data], {
type: 'application/octet-stream'
});
var url = URL.createObjectURL(blob, {
type: type
});
{
"id": "12345"
{
"modality": "MRI",
{
"slice": "1"
{
"freehand": [[x11 y11],
[x12 y12],
...
{
"id": "12345"
{
"modality": "MRI",
"birad": "3",
{
"annotation_date": "08082017",
"slice": "1"
{
"freehand": [[x11 y11],
@FMCalisto
FMCalisto / MainSection.js
Created July 12, 2017 09:08
State Update
import React from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as Actions from '../actions';
/* MATERIAL-UI COMPONENTS IMPORT */
import { withStyles, createStyleSheet } from 'material-ui/styles';
@FMCalisto
FMCalisto / style.css
Created December 26, 2016 19:36
CaGJournal Style
/*
Theme Name: Fashionistas
Theme URI: http://athemes.com/theme/fashionista
Author: aThemes
Author URI: http://athemes.com
Description: Fashionistas is a bold and fun theme built on Bootstrap, suitable for magazine style blogs.
Version: 1.7
License: GNU General Public License v3.0
License URI: license.txt
Tags: black, white, two-columns, fixed-layout, threaded-comments, full-width-template, custom-menu
@FMCalisto
FMCalisto / analyticsContainer.js
Last active December 23, 2016 17:04
Analytics Container
/*
* | | | | ANALYTICS CONTAINER | | | |
*
* 6_7_avg_weight_per_cattle_type
* average_first_birth_per_cattle_type
* avg_weight_per_cattle_type
* births_this_year
* females_6_7_avg_weight_per_cattle_type
* females_avg_weight_per_cattle_type
* females_per_cattle_type
@FMCalisto
FMCalisto / Footer CaGJournal
Last active November 17, 2016 15:53
Computers and Graphics Journal Footer
@FMCalisto
FMCalisto / animalBirthContainer.js
Created November 3, 2016 11:24
Animal Birth Container Variables
const livestockAnimalCattleBreedEnumLocale = {
BOVINE: "Bovino", // COWS
CAPRINE: "Caprino", // GOATS
EQUINE: "Equino", // HORSES
OVINE: "Ovino", // SHEEP
POULTRY: "Aves de capoeira", // CHICKENS, DUCKS, TURKEYS, ETC
SUINE: "Suino" // PIGS
};
const livestockSexEnumLocale = {
@FMCalisto
FMCalisto / tabs.js
Created October 31, 2016 15:43
Tabs Parts Component
import React from 'react';
import _ from 'lodash';
let Tabs = ({
tabs = [],
activeTab,
rightIcons = [],
i18n
}) => {