Converts all paths in an SVG file to all-absolute / all-relative coordinates, and prints the result to stdout.
Origin: https://github.com/johan/kilobyte-svg-challenge/blob/master/tools/
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) */ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, |
<div itemscope="itemscope" itemtype="http://schema.org/Recipe"> | |
<h1 itemprop="name">Crisp bread</h1> | |
<span itemprop="description">This is a very healthy variant of ecological crisp bread</span> | |
By <span itemprop="author">Rune Forberg</span>, | |
<meta itemprop="datePublished" content="2012-05-09">May 9, 2012 | |
<img itemprop="image" src="crisp-bread.jpg" /> | |
Prep Time: <meta itemprop="prepTime" content="PT15M">15 minutes |
from django.contrib.redirects.models import Redirect | |
from django.contrib.sites.models import Site | |
class BlogPost(models.Model): | |
... | |
slug = models.CharField(unique=true, max_length=128) | |
@models.permalink | |
def get_absolute_url(def): | |
return ('blogpost_detail', (), { 'slug' : self.slug }) |
Converts all paths in an SVG file to all-absolute / all-relative coordinates, and prints the result to stdout.
Origin: https://github.com/johan/kilobyte-svg-challenge/blob/master/tools/
#!/usr/bin/env bash | |
# | |
# Approach: | |
# 1. Find variable declaration in the form of "$my-var: anyvalue" | |
# 2. Loop through found variables and find occurrences of each variable in all sass files | |
# 3. Filter out vars that occurred only once | |
if [ -z "$1" ]; then | |
echo "Please specify a directory as the first argument." | |
exit 1 |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorum pariatur veritatis quia non reprehenderit blanditiis saepe provident facilis nemo numquam doloribus ex aperiam iste voluptas quam illum quibusdam recusandae modi aspernatur esse nesciunt tempora fugit soluta exercitationem natus maxime inventore possimus? Veniam adipisci cupiditate similique voluptas dignissimos quod vitae? Accusamus beatae cumque sint reprehenderit mollitia debitis neque eos totam temporibus expedita accusantium numquam dignissimos earum nisi obcaecati voluptate odit sit pariatur eaque aspernatur nam voluptatem cupiditate facilis culpa animi tempora id illum omnis iste. Et neque voluptatem suscipit delectus nemo numquam sapiente eum dignissimos ducimus natus quo libero nisi incidunt accusantium sequi illo architecto nostrum minima minus voluptate consequuntur quidem obcaecati temporibus veniam aspernatur. Sapiente ipsam assumenda similique magnam quis possimus quaerat eum tenetur maiores. Repellendus fugiat beatae quasi dol |
$base-font-size: 16px; | |
$base-line-height: 1.5; | |
// this value may vary for each font | |
// unitless value relative to 1em | |
$cap-height: 0.68; | |
@mixin baseline($font-size, $scale: 2) { |
// hallo fontfamily plugin | |
// (c) 2014 Alejandro Varas | |
// hallofontfamily may be freely distributed under the MIT license | |
(function(jQuery) { | |
return jQuery.widget("IKS.hallofontfamily", { | |
options: { | |
uuid: '', | |
fonts: [ | |
// from http://web.mit.edu/jmorzins/www/fonts.html |