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 / htmlall
Created April 13, 2013 17:40
HTML: htmlall
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>title of page</title>
@miguelgr
miguelgr / user-keymapl.json
Last active October 15, 2021 03:48
ST: sublime-keymap
/*
Created by: Miguel Garcia <miguel.garciarod@gmail.com>
Date: 2013
Github: miguelgr
These keybindings are personalized in order to optimize the working time avoiding
using the mouse
They work with the following packages:
@miguelgr
miguelgr / Preferences.json
Last active January 16, 2017 16:51
ST: user_settings
{
"close_windows_when_empty": false,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"font_face": "Menlo",
"font_options": ["subpixel_antialias", "no_bold"],
"font_size": 14.0,
"enable_live_count": true,
"highlight_modified_tabs": true,
"highlight_line": false,
"ignored_packages": [
@miguelgr
miguelgr / JS: console.log()
Created May 12, 2013 17:30
JS: console.log(${1:data});
<snippet>
<content><![CDATA[
console.log(${1:data});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>cl</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.javascript</scope>
</snippet>
@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

@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 / 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 / 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
*.pyc
.DS_Store
*.egg
*.egg-info
dist
build
eggs
sdist
develop-eggs
.installed.cfg
Handlebars.registerHelper('trans', function(fn) {
return gettext(fn(this));
});