Skip to content

Instantly share code, notes, and snippets.

View miguelgr's full-sized avatar
🛹

Miguel García miguelgr

🛹
  • Madrid
View GitHub Profile
/*!
* Grunt
* $ npm install grunt-contrib-uglify grunt-autoprefixer grunt-contrib-cssmin grunt-contrib-imagemin grunt-contrib-sass grunt-contrib-watch grunt-contrib-concat grunt-contrib-clean grunt-contrib-jshint grunt-notify --save-dev
*/
module.exports = function(grunt) {
grunt.initConfig({
// Sass
@miguelgr
miguelgr / micro-django.py
Last active August 29, 2015 14:01 — forked from jorgebastida/gist:10582948
python micro-django.py runserver <port>
# http://programming.oreilly.com/2014/04/simplifying-django.html
import os
import sys
BASE_PATH = os.path.dirname(__file__)
from django.conf import settings
from django.conf.urls import patterns, url
from django.template.response import TemplateResponse
if (window.location.hash && window.location.hash == '#_=_') {
if (window.history && history.pushState) {
window.history.pushState("", document.title, window.location.pathname);
} else {
// Prevent scrolling by storing the page's current scroll offset
var scroll = {
top: document.body.scrollTop,
left: document.body.scrollLeft
};
window.location.hash = '';
@miguelgr
miguelgr / ecgs_service.md
Created December 14, 2023 12:29
ecgs service

Electrocardiogram Service

Requirements

Functional Requirements:

  • API endpoint to receive the ECGs for processing.

  • API endpoint to return the associated ECGs insights, expecting future analytics.