Skip to content

Instantly share code, notes, and snippets.

View hagenburger's full-sized avatar

Nico Hagenburger hagenburger

View GitHub Profile
@hagenburger
hagenburger / SassMeister-input.scss
Created December 9, 2013 17:17
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
// You can use inline %placeholders in Sass:
.form %form-item + .text {
margin-top: 10px;
}
@hagenburger
hagenburger / SassMeister-input-HTML.html
Created December 10, 2013 17:04
Generated by SassMeister.com.
<input type="file">
@hagenburger
hagenburger / _examples.md 
Last active December 31, 2015 06:09
How to pass options in the [LivingStyleGuide gem](https://github.com/hagenburger/livingstyleguide-example).
Markdown Documentation File
===========================
A normal example without options (would output the HTML directly and syntax-highlighted afterwards):
~~~ example
<div class="header">
...
</div>
@hagenburger
hagenburger / SassMeister-input.scss
Created January 23, 2014 11:55
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
%some-extendable {
width: 50%;
}
.some-class-name {

I heard from GitHub’s Two-Factor Authentication nearly a couple of days ago when I was reading my RSS feed. I enabled it and couldn’ push to any of my repositories anymore. Learn in this blog post how to fix it.

Two-Factor Authentication

“Is a process involving two stages to verify the identity of an entity trying to access services in a computer or in a network.” GitHub solves this authentication with sending an SMS to a device which wants to push to their platform.

Enabling Two-Factor Authentication

@hagenburger
hagenburger / SassMeister-input-HTML.html
Created April 3, 2014 09:56
Generated by SassMeister.com.
<!DOCTYPE html>
<html>
<body>
<div lang="en">
<div class="test" lang="de">1: </div>
<div class="test" lang="en">2: </div>
<div class="test">3: </div>
</div>
</body>
</html>
@hagenburger
hagenburger / SassMeister-input.scss
Created April 25, 2014 11:47
Generated by SassMeister.com.
// ----
// Sass (v3.3.5)
// Compass (v1.0.0.alpha.18)
// ----
$font: 100 18px/1.4 "Helvetica Neue", Helvetica, sans-serif;
#x {
// works well:
font: $font;
@hagenburger
hagenburger / SassMeister-input.scss
Created June 6, 2014 13:23
Generated by SassMeister.com.
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.18)
// ----
#x {
@for $i from 3 through 1 {
content: "#{$i}";
}
}
@hagenburger
hagenburger / examples-old.md
Last active March 24, 2016 17:00
Optimized Rails I18n format

Traditional way

my_key_link: 'World'
my_key: 'Hello %{link}!'                      link: link_to(t('my_key_link'), 'xy')
'Hello <a href="xy">World</a>!'
  • Need to check if raw is required everytime
  • Translators can loose the context
@hagenburger
hagenburger / SassMeister-input.scss
Created July 2, 2014 10:20
Generated by SassMeister.com.
// ----
// Sass (v3.3.9)
// Compass (v1.0.0.alpha.20)
// ----
#x {
result: 50px * 10%;
}