This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
var link_entries = $('div.f-entry > p, div.f-entry > ul > li'); | |
if ( link_entries.length > 0 ) { | |
for (i = 0; i < link_entries.length; i = i + 1) { | |
link_entries[i].innerHTML = link_entries[i].innerHTML.replace(/ #(\S+)/g,' <a class="tagz" href="/tagged/$1" title="Find more posts tagged with #$1">#$1</a>'); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import frontmatter | |
import os, sys | |
from glob import glob | |
import re | |
from io import BytesIO | |
import uuid | |
if len(sys.argv) < 2: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python3 | |
''' | |
Just a little hacking location data. | |
''' | |
import location | |
import time | |
import paramiko | |
import console | |
import photos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import frontmatter | |
import glob | |
from mutagen.id3 import ID3, TIT2, TPE1, TRCK, TALB | |
import os | |
try: | |
post = frontmatter.load('podcast.yaml') | |
except: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hjarta.io { | |
tls <email> | |
root <root> | |
ext .md | |
markdown / { | |
template /templates/default.html | |
ext .md .txt | |
css css/master.css | |
js js/master.js | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('option_blogdescription', 'mikka_blogdescription', 10, 1); | |
function mikka_blogdescription($value) { | |
$lines = array( | |
"trimethylxanthin ist mein waterloo", | |
"geständnisse eines trimethylxanthin-abhängigen", | |
"cooler als die andere seite des kissens um 4 uhr morgens", | |
"reden ist silber, bloggen ist gold", | |
"traue keinem like das du nicht selbst gefälscht hast", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// --- run: x305.20171223/071123 | |
let results = [ | |
{ user: 'John Freeman', views: '46.7k', upvote: '2,625' }, | |
{ user: 'Mikka Luster', views: '33.7k', upvote: '1,798' }, | |
{ user: 'Jeanine Joy', views: '709', upvote: '12' }, | |
{ user: 'Vinay Kumaran', views: '46.9k', upvote: '5,546' }, | |
{ user: 'Annie Voss', views: '620', upvote: '15' }, | |
{ user: 'Cris Orr', views: '1.7k', upvote: '32' }, | |
{ user: 'Deborah Ross', views: '1.5k', upvote: '21' }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'listen' | |
require 'skeptick' | |
require 'pp' | |
include Skeptick | |
uploads_dir = "/u/files/" | |
originals = "uploads/" |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: "Sauce Code Nerdfont"; | |
font-style: normal; | |
font-weight: 400; | |
src: url(data:font/ttf;charset-utf-8;base64,AAEAAAAUAQAABABAQkFTRWTMXPQACOiUAAAAiEZGVE17kQBGAAjpHAAAABxHREVGtYO/sAAIuHAAAADcR1BPU8xN2KoACMvEAAAczkdTVULlN7qHAAi5TAAAEnZPUy8ylbzYWQAAAcgAAABgUGZFZOQYPKsACOk4AAACSGNtYXBys1X3AAAthAAAFoJjdnQgAL8LcQAARcAAAAAiZnBnbQZZnDcAAEQIAAABc2dhc3D//wADAAi4aAAAAAhnbHlmvhW2HQAAcwgAB8UEaGVhZAj5rPwAAAFMAAAANmhoZWEGNAxQAAABhAAAACRobXR4XJBgDAAAAigAACtcbG9jYSX9zZAAAEXkAAAtJG1heHANuQl8AAABqAAAACBuYW1lghWwRwAIOAwAABMdcG9zdFKjBGIACEssAABtO3ByZXD6NsDEAABFfAAAAEIAAQAAAAICj4Wih6hfDzz1AB8D6AAAAADRwcdKAAAAANWqn9X8fP5wBd0D+AAAAAgAAgABAAAAAAABAAAD2P7vAAAFFPx8/eYF3QABAAAAAAAAAAAAAAAAAAAKZgABAAALSAg8AFwAcgAGAAEAAAAAAAoAAAIAAMsABAACAAMCtAGQAAUAAAKKAlgAAABLAooCWAAAAV4AMgEgAAACCwUJAwQDAgIEIAAC9wIAOAMAAAAAAAAAAEFEQk8AQAAA//8C7v8GAAAD2AERYAABnwAAAAAB4AKUAAAAIAAOAlgAPgAAAAABTQAAAAAAAAJYAAACWAAAAlgA4wJYAIMCWABXAlgAVQJYABwCWAAqAlgA9QJYANACWAB6AlgAVAJYAFUCWADFAlgAVQJYANsCWABjAlgARwJYAGMCWABFAlgAOQJYACcCW |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'flickraw' | |
module Jekyll | |
class FlickresponsiveTag < Liquid::Tag | |
def initialize(tag_name, text, tokens) | |
super | |
@text = text | |
FlickRaw.api_key=Jekyll.configuration({})['flickr']['api_key'] | |
FlickRaw.shared_secret=Jekyll.configuration({})['flickr']['secret'] |
NewerOlder