Skip to content

Instantly share code, notes, and snippets.

View veirus's full-sized avatar

Alex veirus

View GitHub Profile
$image-path: '../img' !default
=bgi($name, $ext:'png', $repeat:false, $size:false)
@if($ext == svg)
background-image: url(#{$image-path}/#{$name}.png)
background-image: url(#{$image-path}/#{$name}.#{$ext})
@if not($repeat)
background-repeat: no-repeat
@if($size)
background-size: $size;
&__item
+rel
// Not so perverted vr:
// & + &
// border-left: 1px solid $grats-vr
// And warped one, behold:
& + &
&:before
content: ""
+abs
.arrow
&__right, &__left
size(11px, 20px)
display inline-block
background url("../img/rarr.png") no-repeat
&:hover
background url("../img/rarr_h.png") no-repeat
&__left
transform scaleX(-1.0)
.input
background-color white
width 100%
height 48px
color clgreytxt
font-family: ff
font-size: 16px
line-height 16px
border none
padding 0 20px
@veirus
veirus / select.styl
Last active December 5, 2016 14:52
Custom select in Stylus
.select
@extend .input
relative()
padding 0
margin-top 20px
appearance none
overflow hidden
// background-image: url("../img/arrow.png")
// background-repeat no-repeat
// background-position: 96% center
@veirus
veirus / DROR4.py
Last active February 27, 2016 13:43 — forked from dansku/dropboxOrganize.py
Script to organize pictures uploaded from Mobile Devices to Dropbox's Camera Upload folder
#!/usr/bin/env python34
# dror4 - datetime format edition | 2016.02.27
# Based on https://gist.github.com/dansku/9040240#file-dropboxorganize-py
import os.path
import glob
from datetime import date
def move(files, newname):
# Move files