Skip to content

Instantly share code, notes, and snippets.

View adrianmg's full-sized avatar
🐙
Enjoying life

Adrian Mato adrianmg

🐙
Enjoying life
View GitHub Profile
.Skeleton {
background-image: linear-gradient(270deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.1));
background-size: 400% 100%;
animation: skeleton-loading 8s ease-in-out infinite;
* {
visibility: hidden;
}
}
@adrianmg
adrianmg / vars.breakpoints.css
Last active August 18, 2018 19:15 — forked from basiclines/vars.breakpoints.css
Media Queries for mobile devices
/**
* Custom breakpoints
*
*/
@custom-media --desktop-XL screen and (max-width: 1920px);
@custom-media --desktop-L screen and (max-width: 1440px);
@custom-media --desktop-M screen and (max-width: 1280px);
@custom-media --desktop-S screen and (max-width: 1080px);
@custom-media --desktop-XS screen and (max-width: 900px);
@adrianmg
adrianmg / figma-api-basic-request.js
Created April 25, 2018 15:55
Figma API basic request
var request = require("request");
let lastUpdate;
const time = 1000;
const source = "xxx";
const options = {
url: `https://api.figma.com/v1/files/${source}`,
headers: {
"Content-Type": "application/json",
"x-figma-token": "xxx"
@adrianmg
adrianmg / svgo-icons-cleanup.sh
Created March 9, 2018 19:13
SVGO icons cleanup
svgo NAME.svg --pretty --indent=2 --config='{ "plugins": [ {"removeTitle": true}, {"removeNonInheritableGroupAttrs": true}, {"collapseGroups": true}, {"removeAttrs": {"attrs": "(fill|stroke)"}} ]}'
@adrianmg
adrianmg / Preferences.sublime-settings
Last active September 6, 2017 23:29
Sublime preferences
{
"theme": "Material-Theme-Darker.sublime-theme",
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"overlay_scroll_bars": "enabled",
"line_padding_top": 3,
"line_padding_bottom": 3,
"always_show_minimap_viewport": true,
"indent_guide_options": [ "draw_normal", "draw_active" ],
"material_theme_small_statusbar" : true ,
@adrianmg
adrianmg / setIconFile.sh
Created March 26, 2016 22:01
Set custom icns icon for a file
#!/bin/sh
# Sets an icon for the DMG
# Usage setIcon.sh pathIcnsIcon.icns pathFile.ext
iconSource=$1
iconDestination=$2
icon=/tmp/`basename $iconSource`
rsrc=/tmp/icon.rsrc
# Create icon from the iconSource
cp $iconSource $icon
@adrianmg
adrianmg / Game Development index.md
Last active April 12, 2016 21:50
Game Development Index of tools and other resources
span {
color: transparent;
text-shadow: 0 0 10px #777;
}
p { width: 300px;}
@adrianmg
adrianmg / top-15-videojuegos-españoles
Created July 7, 2012 10:50
Los verdaderos 15 mejores videojuegos "made in spain"
Según @adrianmg (el orden es aleatorio)
- PC Futbol saga (1, 2, 3, 4, 5 y 6)
- Commandos saga (1 y expansiones, 2 y 3)
- Blade: The Edge of Darkness
- La Abadía del Crimen
- Castlevania: Lords of Shadow
- PC Basket saga
- Praetorians
- Runaway