Skip to content

Instantly share code, notes, and snippets.

View fizzvr's full-sized avatar
🏳️
2023

Vladimir Rodríguez fizzvr

🏳️
2023
View GitHub Profile
https://gist.github.com/balupton/4752443

DocPad: Clean dates in post URLs

Creates URLs like /2012/12/15/merry-xmas for your blog posts.

Requires momentjs to be installed: npm install --save moment

# Define our Configuration
docpadConfig =
# Define our own Collections
collections:
# Posts
# Anything outputted to the posts directory can be considered a post
# Sort the posts by newest first
# And set their layout to `post` automatically if it isn't already set

DocPad: Absolute URL Helper

Uses a docpad configuration file to specify template data that we can use in our document to generate absolute urls.

# Define our Configuration
docpadConfig =
# Define our own Collections
collections:
# Posts
# Anything outputted to the posts directory can be considered a post
# Sort the posts by newest first
# And set their layout to `post` automatically if it isn't already set

DocPad: Sitemap Genereation

Generates a sitemap.txt file your website. To use add the contents of the docpad.coffee file of this gist into your docpad configuration file.

Note: There is now the Sitemap Plugin which generates a proper sitemap.xml file for you automatically instead of the basic sitemap.txt file this gist creates.

@fizzvr
fizzvr / ID
Created August 27, 2014 20:32
Steam
| steamname: FizzVR
| steamID32: STEAM_0:1:50351163
| steamID64: http://steamcommunity.com/profiles/76561198060968055
| customURL: http://steamcommunity.com/id/fizzvr
| steamrep: http://steamrep.com/profiles/76561198060968055
@fizzvr
fizzvr / code 2
Last active August 29, 2015 14:06
analitycs code
<script>
(function(f,i,z,v,r,e,c){f['GoogleAnalyticsObject']=r;f[r]=f[r]||function(){
(f[r].q=f[r].q||[]).push(arguments)},f[r].l=1*new Date();e=i.createElement(z),
c=i.getElementsByTagName(z)[0];e.async=1;e.src=v;c.parentNode.insertBefore(e,c)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-<%- @site.anal %>', 'fizzvr.github.io');
ga('send', 'pageview');
</script>
@fizzvr
fizzvr / plantilla-principal.html.eco
Created September 16, 2014 20:01
AntiSpamEmail
<a href="&#0109;&#97;&#105;&#108;&#116;&#111;&#58;&#102;i&#00122;&#122;&#118;&#114;&#0064;&#103;&#00109;&#97;&#00105;&#00108;&#0046;&#0099;&#00111;&#109;">&#102;i&#00122;&#122;&#118;&#00114;&#64;&#00103;&#00109;&#0097;&#105;&#108;&#46;&#99;&#111;&#00109;</a>