I hereby claim:
- I am miklb on github.
- I am miklb (https://keybase.io/miklb) on keybase.
- I have a public key ASCIPpnA3ebZHf7nef4SLLuHXijPbzCz84WRbkvllMWiFAo
To claim this, I am signing this object:
# -*- coding:utf-8 -* | |
import location | |
import re | |
import sys | |
import json | |
import urllib | |
import webbrowser | |
from os import environ | |
from sys import exit, argv |
<?php | |
class HabariHighlight extends Plugin { | |
public function action_template_header () | |
{ | |
Stack::add('template_stylesheet','http://yandex.st/highlightjs/8.0/styles/default.min.css','highlight'); | |
Stack::add('template_header_javascript','http://yandex.st/highlightjs/8.0/highlight.min.js','highlightjs'); | |
} | |
public function theme_header( $theme ) |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
titlecase.py v0.2 | |
Original Perl version by: John Gruber http://daringfireball.net/ 10 May 2008 | |
Python version by Stuart Colville https://muffinresearch.co.uk/titlecasepy-titlecase-in-python/ | |
License: http://www.opensource.org/licenses/mit-license.php | |
""" |
javascript:function htmlreplace(a,b,element){if(!element)element=document.body;var nodes=element.childNodes;for(var n=0;n<nodes.length;n++){if(nodes[n].nodeType==Node.TEXT_NODE){nodes[n].textContent=nodes[n].textContent.replace(new RegExp(a,'gi'),b);}else{htmlreplace(a,b,nodes[n]);}}}htmlreplace('IFTTT',''); |
#!/usr/bin/env python | |
""" | |
moonphase.py - Calculate Lunar Phase | |
Author: Sean B. Palmer, inamidst.com | |
Cf. http://en.wikipedia.org/wiki/Lunar_phase#Lunar_phase_calculation | |
""" | |
import math, decimal, datetime | |
dec = decimal.Decimal |
@media print { | |
body.custom { | |
background-color: #fff; | |
background-image: url('http:/miklb.com/grid_paper_blue_lines.gif'); | |
-webkit-font-smoothing:antialiased; | |
font:normal .8764em/1.5em Arial,Verdana,sans-serif; | |
margin:100px; | |
} |
var title = '%filltext:name=Title%'; | |
slug = title.replace(/[^\w\s]/gi, ''); | |
var newslug = title.split(" ").join("-"); | |
var dt = new Date(); | |
TextExpander.appendOutput("---\n"); | |
TextExpander.appendOutput("layout: post \n"); | |
TextExpander.appendOutput("title: " + '"' +title + '"'+ "\n"); | |
TextExpander.appendOutput("tags: \n"); |
function chapel_project_metaboxes(array $meta_boxes) | |
{ | |
// underscore hides meta box from custom field list | |
$prefix = '_chapel_'; | |
$meta_boxes ['project_metabox'] = array( | |
'id' => 'project_metabox', | |
'title' => __('Project Overview', 'cmb2'), | |
'object_types' => array( 'project'), |
<?php | |
add_action( 'init', 'chapel_client_init' ); | |
/** | |
* Create Client Custom Post Type | |
* | |
*/ | |
function chapel_client_init() { |
I hereby claim:
To claim this, I am signing this object: