Skip to content

Instantly share code, notes, and snippets.

View mathiasschopmans's full-sized avatar

Mathias Schopmans mathiasschopmans

View GitHub Profile
@mathiasschopmans
mathiasschopmans / inline-sprites.sass
Created August 5, 2014 10:02
Try to use compass' inline-image() with generated sprites.
$default-sprite-dimensions: true
$default-sprite-base-class: ".is"
@import "images/sprites/default/*.png"
@include all-default-sprites($prefix:"is")
.is
background-image: inline-image($default-sprites)
+inline-block
+hide-text
<?
/*
Plugin Name: Meta-Boxes
Plugin URI:
Description: Bilder, Fotos, Beiträge, etc.
Version: 2.0
Author: Rheinschafe - Mathias Schopmans
/* ----------------------------------------------*/
$new_meta_boxes =
@mathiasschopmans
mathiasschopmans / Wordpress: Get Latest Tweet by Username
Created October 1, 2010 17:14
A little Script that gets the latest Tweets and chaches it via Transient-API
/**
* Get the latest Tweet Text by Username
*
* @uses Transient - API for chaching
* @copyright Mathias Schopmans - 10/2010
*
* @param string $username: Twitter Username
*/
function get_last_tweet($username='nasenmann'){
javascript:var%20s=document.createElement('script');s.setAttribute('src',%20'http://jquery.com/src/jquery-latest.js');document.getElementsByTagName('body')[0].appendChild(s);alert('thank%20you%20for%20using%20jquery!');void(s);
/*
* RGBa-Mixin with fallback (http://css-tricks.com/rgba-browser-support/)
*/
=transparent-backgound($color: #000, $value:0.5)
$start: "rgb("
$end: ")"
background: #{$start}red($color), green($color), blue($color)#{$end}
background: rgba($color, $value)