Skip to content

Instantly share code, notes, and snippets.

View miguelgr's full-sized avatar
🛹

Miguel García miguelgr

🛹
  • Madrid
View GitHub Profile
@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.

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 / 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
/*!
* 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
Handlebars.registerHelper('trans', function(fn) {
return gettext(fn(this));
});
*.pyc
.DS_Store
*.egg
*.egg-info
dist
build
eggs
sdist
develop-eggs
.installed.cfg
@miguelgr
miguelgr / sharped_box.sass
Created November 19, 2013 22:59
Sharped box
=sharped_box($width, $height, $point, $color, $two_sides: false)
height: $height
width: $width
background: $color
position: absolute
.caret
$opposite: opposite-position($point)
border: $height/2 solid transparent
border-#{$opposite}: $height/2 solid $color
border-#{$point}: 0
@miguelgr
miguelgr / caret.sass
Created November 19, 2013 22:22
Caret mixin. Specify the position for the caret, the size and color.
=caret($point, $size, $color)
$opposite: opposite-position($point)
border: $size solid transparent
border-#{$opposite}: $size solid $color
border-#{$point}: 0
height: 0
width: 0
// usage
@miguelgr
miguelgr / button_shadow_mixin.sass
Last active December 27, 2015 11:09
Mixin to create: Button with shadow and hover effect
@import "compass"
=btn_color_big_shadow($color, $fontSize)
border: 0
cursor: pointer
display: inline-block
font-weight: normal
font-size: $fontSize
line-height: normal
@miguelgr
miguelgr / markdown_es.md
Created July 20, 2013 18:56
MD:Markdown-index

MARKDOWN

Autor: John Gruber y Aaron Swartz

Fecha: 25 Marzo 2004

Formato: .md