Skip to content

Instantly share code, notes, and snippets.

View tmray's full-sized avatar

Tom Ray tmray

View GitHub Profile
@tmray
tmray / blogger2jekyll.py
Last active September 6, 2025 06:07
A python script to export blogger posts to jekyll posts. This script exports the new Google takeout feed.atom file from blogger to markdown posts in a jekyll site. The feed.atom file needs to be renamed to feed.xml to work
import os
import re
import xml.etree.ElementTree as ET
from datetime import datetime
# Path to your feed.xml and _posts directory
FEED_PATH = 'feed.xml'
POSTS_DIR = '_posts'
# Ensure _posts directory exists
@tmray
tmray / american-bandito-player.html
Last active May 12, 2018 23:25
American Bandito Embedded Player
<iframe sandbox="allow-same-origin allow-scripts allow-top-navigation allow-popups" scrolling=no width="100%" height="185" frameborder="0" src="https://embed.radiopublic.com/e?if=american-bandito-WdQYML"></iframe>
@tmray
tmray / jekyll-comment-code.txt
Last active February 11, 2016 20:11
jekyll comment description examples
{% comment %}
*
* This being a comment example? :)
*
{% endcomment %}
@tmray
tmray / AND_OR_NOT
Last active September 19, 2015 17:42 — forked from oliverdoetsch/AND_OR_NOT
Blogger: Globally conditional data tags for all page types
#AND
<b:if cond='data:blog.pageType == "index"'>
<b:if cond='data:blog.searchQuery'>
<!--search_page AND index_page-->
</b:if>
</b:if>
#OR
@tmray
tmray / radio-checks.css
Last active August 29, 2015 14:27
Custom checkboxes & radio buttons set up
/* Bootstrap form styles
* If you are already using bootstrap you don't need these */
.checkbox,
.radio {
position: relative;
display: block;
margin-top: 10px;
margin-bottom: 10px;
}
.checkbox label,
@tmray
tmray / expand-collapse.html
Created February 12, 2014 16:08
collapse and expand button for melon
<div class="btn-group">
<span class="btn btn-xs widget-collapse">
<i class="icon-angle-up"></i>
</span>
</div>
@tmray
tmray / text-shadow.css
Last active January 4, 2016 07:09
outline text-sahdow for fonts technique
h1 {
font-size: 80px;
letter-spacing: -2px;
line-height: 1;
/*This being the method below --Requires background to be the same color as the #1d9d74 */
text-shadow: 4px 3px 0 #1d9d74,9px 8px 0 rgba(0,0,0,0.15);
margin: 0 0 15px;
}
.article {
float: left;
width: calc(100% - 1em);
}
.element { position: relative; top: 50%; transform: translateY(-50%); }

Headline

We got an italic thing here and link.

And this here:

For a new "Linebreak"
Add 2 spaces after the word, then enter
Or add a tab then enter