Skip to content

Instantly share code, notes, and snippets.

View lolmaus's full-sized avatar
🧠
Reducing entropy

Andrey Mikhaylov (lolmaus) lolmaus

🧠
Reducing entropy
View GitHub Profile
@mixin calc($dir, $arg) {
#{$dir}: calc(#{$arg});
-moz-#{$dir}: calc(#{$arg});
-webkit-#{$dir}: calc(#{$arg}); }
html {
@include calc('width', '10em + 20px'); }
@import singularitygs
@import breakpoint
.column
+breakpoint('700px')
+float-span(1)
@lolmaus
lolmaus / authfile.txt
Last active December 16, 2015 14:49
Backing up to Selectel using S3QL File extensions are added for syntax highlighting. Remove them if you gonna use this.
[selectel]
storage-url: swift://auth.selcdn.ru
backend-login: 12345
backend-password: qwertyUIOP
@lolmaus
lolmaus / SassMeister-input.sass
Created April 25, 2013 11:03
Generated by SassMeister.com, the Sass playground.
// ---
// Compass (v0.13.alpha.4)
// Sass (v3.2.9)
// ---
=reset-body
line-height: 1.2
+global-reset
<p>Yay!</p>
$slicer-breakpoints: 0 768px 980px 1200px;
@include from(3) {
/* bla */
}
@lolmaus
lolmaus / foo.html
Last active December 17, 2015 06:48
<h1>Yay!</h1>
html
background-color: red
@lolmaus
lolmaus / gist:5576260
Last active December 17, 2015 07:58
An example of an object returned by github_api (as reported by Ruby inspect).
#<Github::ResponseWrapper
@body="#<Hashie::Mash
comments=0
comments_url="https://api.github.com/gists/5567591/comments"
commits_url="https://api.github.com/gists/5567591/commits"
created_at="2013-05-13T11:05:44Z" description=""
files=#<Hashie::Mash
foo.html=#<Hashie::Mash
content="<h1>Yay!</h1>"
filename="foo.html"
# coding=utf-8
texturepath = "/opt/minecraft/overviewer"
outputdir = "/opt/minecraft/overviewer/render"
worlds["world"] = "/opt/minecraft/server/worlds/world"
def signFilter(poi):
"All signs"
return poi["id"] == "Sign"