Skip to content

Instantly share code, notes, and snippets.

Alex veirus

Block or report user

Report or block veirus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
veirus /
Last active Feb 27, 2016 — forked from dansku/
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
import os.path
import glob
from datetime import date
def move(files, newname):
# Move files
veirus / select.styl
Last active Dec 5, 2016
Custom select in Stylus
View select.styl
@extend .input
padding 0
margin-top 20px
appearance none
overflow hidden
// background-image: url("../img/arrow.png")
// background-repeat no-repeat
// background-position: 96% center
View input.styl
background-color white
width 100%
height 48px
color clgreytxt
font-family: ff
font-size: 16px
line-height 16px
border none
padding 0 20px
View slider_arrows.styl
&__right, &__left
size(11px, 20px)
display inline-block
background url("../img/rarr.png") no-repeat
background url("../img/rarr_h.png") no-repeat
transform scaleX(-1.0)
View =background-image.sass
$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
background-size: $size;
View Perverted divider of the Slaanesh.sass
// Not so perverted vr:
// & + &
// border-left: 1px solid $grats-vr
// And warped one, behold:
& + &
content: ""
View wordpress display posts
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; else : ?>
<p><?php _e( 'Sorry, no posts were found.' ); ?></p>
<?php endif; ?>
veirus / wp_get_field.php
Last active Jan 18, 2017
for plugin advanced fields
View wp_get_field.php
<?php $images = get_field('images', 'options');
if( $images ): ?>
<?php foreach( $images as $image ): ?>
<a href="<?php echo $image['url']; ?>" class="fancyBox" rel="about">
<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
<?php endforeach; ?>
<?php endif; ?>
<?php unset($image); ?>
veirus / random_colorscheme.vim
Last active May 29, 2017
Set random colorscheme for yer Vim
View random_colorscheme.vim
function! SetRandomColors()
if !exists('g:mycolors')
let matches = {}
for fname in split(globpath(&runtimepath, 'colors/*.vim'), '\n')
let name = fnamemodify(fname, ':t:r')
let matches[name] = 1
let g:mycolors = sort(keys(matches), 1)
exe 'colorscheme ' . g:mycolors[localtime() % len(g:mycolors)]
veirus / Copy text directly from Photoshop text layer. Copy text directly from text layer. Works above photoshop cs6. Copy following script file into /Applications/Adobe Photoshop CC 2014/Presets/Scripts (MAC) or C:\Program Files\Adobe\Adobe Photoshop CC 2014\Presets\Scripts (WIN). Assign shortcut for easy access (cmd+option+c / ctrl+alt+c)
View Copy text directly from Photoshop text layer.
* Copy Layer text 1.0 - by Praveen Vijayan! -
* Compatibility above Photoshop CS6
* Licensed under the Creative Commons Attribution 2.5 License -
You can’t perform that action at this time.