Skip to content

Instantly share code, notes, and snippets.

View xles's full-sized avatar
💭
Github fucking sucks, time to leave this AI garbage site

xles McFuzzypants xles

💭
Github fucking sucks, time to leave this AI garbage site
View GitHub Profile
@xles
xles / Tumblr photoset
Created August 10, 2013 18:10
Custom implementation of the Tumblr Photoset, without support for the Tumblr Lightbox. A bit crude, but it works...
{block:Photoset}
<script type="text/javascript">
var layout = {JSPhotosetLayout};
var photocount = 0;
var photoclass = '', photos = [];
for(var i=0;i<layout.length;i++) {
switch(layout[i]) {
case "1":
photoclass = 'col-lg-12';
break;
@xles
xles / gist:6151209
Created August 4, 2013 17:58
playing around with bootstrap 3 rc1
<div class="container">
<div class="panel col-4 col-offset-4">
<form>
<div class="panel-heading">
<h2 class="panel-title">Please sign in</h2>
</div>
<div class="form-group">
<label for="exampleInputEmail">Email address</label>
<input type="text" class="form-control" id="" placeholder="Email address" autofocus="">
</div>
<dubstep>
<melody />
<drop what="bass">
<wub />
<wub />
<wub />
<wahwah>eee</wahwah>
<wub />
<wub />
<wub />
@xles
xles / gist:3653482
Created September 6, 2012 09:12
Makefile looping?
looptest:
cd assets/images/; \
echo "Processing SVG assets"; \
for file in *.svg; do \
$(INKSCAPE) -d 300 -f $(CURDIR)/assets/images/$$file; \
-e $(CURDIR)/build/tmp/$$file.png; \
echo "processed" $$file; \
done; cd ../../build/tmp/; \
echo "Done processing SVG assets"
@xles
xles / gist:3639667
Created September 5, 2012 16:43
Trying to make my inline docbook images a little less verbose...
<assetimage>filename</assetimage>
<!-- ------------------------------------------------------------------- -->
<xsl:template match="assetimage">
<inlinemediaobject>
<imageobject condition="print">
<imagedata contentdepth="1em" format="svg">
<xsl:attribute name="fileref">
<xsl:text>assets/images/</xsl:text>
<xsl:value-of select="." />
<xsl:text>.svg</xsl:text>
@xles
xles / reader.html
Created August 19, 2012 23:09
Text-file prettifier for my dropbox.
<!doctype html>
<html>
<head>
<title>Text prettifier</title>
<style media="all">
p {
font-size: 12pt;
text-indent: 2em;
line-height: 1.5em;
text-align: justify;