Skip to content

Instantly share code, notes, and snippets.

View ingdir's full-sized avatar

Max Shirshin ingdir

  • Zalando
  • Berlin, Germany
View GitHub Profile
require 'formula'
class Imagemagick < Formula
homepage 'http://www.imagemagick.org'
url 'http://www.imagemagick.org/download/releases/ImageMagick-6.7.7-10.tar.xz'
sha1 '289e539f7fd40ca9b06f94a3348641abf0e56a1f'
head 'https://www.imagemagick.org/subversion/ImageMagick/trunk',
:using => UnsafeSubversionDownloadStrategy
var tz = [
"Africa/Cairo",
"Africa/Casablanca",
"Africa/Harare",
"Africa/Johannesburg",
"Africa/Lagos",
"Africa/Monrovia",
"Africa/Nairobi",
"America/Argentina/Buenos_Aires",
"America/Bogota",
@ingdir
ingdir / buzz.json
Last active August 29, 2015 14:07
Buzzword Abbreviations Bingo
[
"HTML",
"CSS",
"JS",
"BEM",
"MVC",
"AJAX",
"HTTP",
"HTTPS",
"SVG",
@ingdir
ingdir / fe.md
Last active August 29, 2015 14:07
Frontend For Unsuspecting And Innocent

Frontend For Unsuspecting And Innocent

Disclaimer

  • This course is not going to make you FE devs
  • Why I decided to start this course
    • Bridge the gap
    • Stop answering the same questions
    • Minimize risks
    • More info for the interested
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ingdir
ingdir / gist:6245451
Last active December 21, 2015 03:49
flyout-2
<!DOCTYPE html>
<html>
<head>
<style>
.dm-blend {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom:0;
@ingdir
ingdir / gist:6244108
Created August 15, 2013 19:43
flexible flyout
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 0;
padding: 0;
}
.dm-flyout {
@ingdir
ingdir / gist:0b211b9253c376f9cfa5
Last active December 3, 2023 11:47
BEM Cheatsheet

BEM Cheatsheet

BLOCK

Block encapsulates a standalone entity that is meaningful on its own.

While blocks can be nested and interact with each other, semantically they remain equal; there is no precedence or hierarchy.

Holistic entities without DOM representation (such as controllers or models) can be blocks as well.

@ingdir
ingdir / gist:4079902
Created November 15, 2012 17:21
Salmon day
cssIe: {
// I. DO. NOT. EVEN. KNOW. WHY. THIS. WORKS.
// I MEAN, LIKE, EVER.
'.ya-partner_type_row .ya-partner__ads-arrow': Ya.apply({top: '1px'}, Ya.isIEQuirks ? {
'font-size': '87%',
'font-weight': 'normal',
'line-height': '1.2em'
} : {
height: '87%'
})
_showPreview: function(coords) {
var that = this,
rateW = that._origWidth / that._previewWidth,
coefW = 100 / coords.w * rateW,
rateH = that._origHeight / that._previewHeight,
coefH = 100 / coords.h * rateH,
x, y, x2, y2;
if (!that._preview) return that;