Skip to content

Instantly share code, notes, and snippets.

View el22or's full-sized avatar

Dragan Eror el22or

View GitHub Profile
multipass: true
plugins:
- addAttributesToSVGElement: false
- addClassesToSVGElement: false
- cleanupAttrs: true
- cleanupEnableBackground: true
- cleanupIDs: true
- cleanupListOfValues: true
- cleanupNumericValues:
@el22or
el22or / README.md
Last active February 27, 2020 09:22
Gist tips

Gist tips

Search

Search gist for keyword and by specific user

git user:el22or

git user:el22or

@el22or
el22or / screen-to-dropbox
Created October 24, 2018 10:18 — forked from kloneets/screen-to-dropbox
Screenshot to dropbox on linux
#!/bin/bash
# Take a screenshot of an area of the screen, upload it to dropbox and put the url into the clipboard
# Put file in any directory under your dropbox
# If it is subfolder, than you need to make them manually
FILENAME=~/Dropbox/Public/Screenshots/Screenshot_`date +%Y-%m-%d-%H:%M`.png
# Select an area and save the screenshot
# you need to instal gnome-screenshot
/** @define MediaEmbed */
/**
* Media embeds
*
* For use with media embeds – such as videos, slideshows, or even images –
* that need to retain a specific aspect ratio but adapt to the width of their
* containing element.
*
* Based on: http://alistapart.com/article/creating-intrinsic-ratios-for-video
@el22or
el22or / git-ignore-update.md
Created March 1, 2017 15:46
Ignore update on specific file, where you want to keep only local changes.

To leave the file in the repo but ignore future changes to it:

git update-index --assume-unchanged <file>

and to undo this:

git update-index --no-assume-unchanged 
@el22or
el22or / font-face.scss
Created December 18, 2015 21:44
Fonts implementation.
/**
* Roboto.
*/
/* (normal) */
@include font-face(
"roboto",
font-files(
"Roboto-Regular-webfont.ttf",
"Roboto-Regular-webfont.eot",
$breakpoints: (
small: 0, // Phones, watches, ...
narrow: 640px, // Portrait oriented tablets
normal: 980px, // Landscape oriented tablets, laptops, smaller desktop screens, ...
wide: 1200px // Large desktop screens, TVs, ...
);
@function breakpoint-size($key, $max-width: false) {
@if ($max-width) {
@return map-get($breakpoints, $key) - 1
}

Git notes

Remotes

Working with remotes

  • Show remotes
git remote
git remote show upstream
<!DOCTYPE html>
<html<?php print $html_attributes; ?>>
<head>
<?php print $head; ?>
<title><?php print $head_title; ?></title>
<?php print $styles; ?>
<?php print $head_scripts; ?>
</head>
<body<?php print $body_attributes;?>>