Skip to content

Instantly share code, notes, and snippets.

@simkli
simkli / sc.py
Last active September 28, 2016 21:28
Command for capturing a screenshot, annote it and upload it via sFTP on macOS
#!/usr/local/bin/python3
import subprocess
import time
import pysftp
import os
SFTP_HOST = 'example.com'
SFTP_USER = 'user'
SFTP_PASS = 'pass'
@simkli
simkli / retina-mixing.less
Created March 21, 2016 15:08
Retine Less Mixin
.retina-image(@file, @type, @width, @height,@repeat: no-repeat, @posx:0, @posy:0) {
background-image: url('@{file}.@{type}');
background-repeat: @repeat;
background-position: @posx @posy;
@media screen and (-webkit-min-device-pixel-ratio: 2) {
background-size: @width @height;
background-image: url('@{file}_2x.@{type}');
background-position: @posx * 2 @posy * 2;
}
@simkli
simkli / textbausteinAbfrage.tpl
Created July 20, 2015 17:03
Shopware Abfrage leerer Textbaustein
{if "{s name='IndexCopyright'}{/s}" eq ""}
LEER
{else}
NICHT LEER
{/if}